/* EXIMIA — v3 inner pages (the Palantir black & white system of the homepage,
   reusable). Mobile-first. Loaded after styles.css by every redesigned page,
   which sets <body class="hx-page">. Every class is prefixed .hx- so nothing
   leaks into pages that are still on the old design. The homepage keeps its
   own home.css; the primitives here mirror it 1:1 (same class names), so a
   later pass can move index.html onto this file too. */

.hx-page {
  /* Palantir monochrome: override the site's violet accent tokens with white;
     .hx-light bands flip to black. */
  --hx-ink: 0, 0, 0;
  --hx-paper: 255, 255, 255;
  --accent: rgb(var(--hx-paper));
  --accent-light: rgb(var(--hx-paper));
  --accent-dim: rgba(var(--hx-paper), 0.83);
  --accent-rgb: var(--hx-paper);
  --accent-2: rgb(var(--hx-paper));
  --hx-gutter: clamp(1.25rem, 5vw, 2rem);
  --hx-max: 1240px;
  --hx-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hx-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hx-line: rgba(var(--hx-paper), 0.08);
  --hx-line-strong: rgba(var(--hx-paper), 0.16);
  --hx-glass: rgba(var(--hx-paper), 0.035);
  --hx-section-y: clamp(4.5rem, 12vw, 8.5rem);
  --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-primary);
}

.hx-main {
  font-family: var(--hx-body);
  overflow-x: clip;
  background: var(--bg-primary);
}

.hx-wrap {
  width: 100%;
  max-width: var(--hx-max);
  margin: 0 auto;
  padding-inline: var(--hx-gutter);
}

.hx-section {
  position: relative;
  padding-block: var(--hx-section-y);
}

.hx-section + .hx-section:not(.hx-light) {
  border-top: 1px solid var(--hx-line);
}

/* ── Type ─────────────────────────────────────────────── */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.62);
}

.hx-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.hx-h1 {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 13vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--text-primary);
  margin-top: 1.1rem;
  text-wrap: balance;
}

.hx-h2 {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin-top: 1rem;
  text-wrap: balance;
}

.hx-h3 {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hx-lead {
  margin-top: 1.1rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hx-grad {
  color: rgba(var(--hx-paper), 0.42);
}

.hx-head {
  margin-bottom: clamp(2.25rem, 6vw, 3.75rem);
}

.hx-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Buttons & links ──────────────────────────────────── */
.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.5rem 1.35rem;
  border-radius: 0;
  font-family: var(--hx-body);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--hx-ease), background-color 0.35s, border-color 0.35s, color 0.35s;
}

.hx-btn:active {
  transform: scale(0.97);
}

.hx-btn__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 0.45s var(--hx-ease);
}

.hx-btn__icon svg {
  width: 18px;
  height: 18px;
}

.hx-btn:hover .hx-btn__icon {
  transform: translateX(4px);
}

.hx-btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.hx-btn--primary:hover {
  background: rgba(var(--hx-paper), 0.84);
}

.hx-btn--line {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hx-line-strong);
}

.hx-btn--line:hover {
  border-color: var(--text-primary);
  background: var(--hx-glass);
}

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--hx-paper), 0.35);
  text-underline-offset: 5px;
  transition: color 0.3s;
}

.hx-link:hover {
  color: var(--text-primary);
}

.hx-body a,
.hx-faq details p a,
.hx-list a,
.hx-plans__fine a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hx-btn:focus-visible,
.hx-link:focus-visible,
.hx-faq summary:focus-visible,
.hx-channel:focus-visible,
.hx-field input:focus-visible,
.hx-field textarea:focus-visible,
.hx-consent input:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

/* long labels may wrap on the narrowest phones / with text-spacing overrides */
@media (max-width: 559px) {
  .hx-btn {
    white-space: normal;
    text-align: center;
  }

  .hx-actions .hx-btn {
    flex: 1 1 100%;
  }

  /* hero: the two actions share one row so the copy fits the first screen */
  .hx-phero .hx-actions .hx-btn,
  .hx-prod .hx-actions .hx-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.9rem;
    gap: 0.5rem;
  }

  .hx-hide-sm {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO — one documentary still, headline over its dark side
   ═══════════════════════════════════════════════════════ */
.hx-phero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 860px);
  padding-top: 8rem;
  /* clears the chat bubble fixed along the bottom edge */
  padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: var(--bg-primary);
}

.hx-phero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hx-phero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-phero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--hx-ink), 0.55) 0%, rgba(var(--hx-ink), 0.1) 26%, rgba(var(--hx-ink), 0.35) 52%, rgba(var(--hx-ink), 0.92) 82%, var(--bg-primary) 100%);
}

.hx-phero__content {
  position: relative;
  width: 100%;
}

.hx-phero .hx-h1 {
  max-width: 12ch;
}

.hx-phero .hx-lead {
  color: rgba(var(--hx-paper), 0.78);
}

.hx-phero .hx-actions {
  margin-top: 2rem;
}

/* entrance: pure CSS, never waits for a script */
@keyframes hx-page-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hx-phero__content > * {
    animation: hx-page-in 0.9s var(--hx-ease) both;
  }

  .hx-phero__content > *:nth-child(2) { animation-delay: 0.08s; }
  .hx-phero__content > *:nth-child(3) { animation-delay: 0.16s; }
  .hx-phero__content > *:nth-child(4) { animation-delay: 0.24s; }

  .hx-phero__media img {
    animation: hx-page-zoom 2.4s var(--hx-ease) both;
  }
}

@keyframes hx-page-zoom {
  from { transform: scale(1.08); }
  to { transform: none; }
}

/* ═══════════════════════════════════════════════════════
   STEPS — numbered, thin rules
   ═══════════════════════════════════════════════════════ */
.hx-steps {
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: hx-step;
  border-top: 1px solid var(--hx-line-strong);
}

.hx-step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--hx-line);
}

.hx-step__num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  padding-top: 0.2rem;
}

.hx-step p {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   SPLIT — two columns (fit / not fit), tiles grid
   ═══════════════════════════════════════════════════════ */
.hx-split {
  display: grid;
  gap: 1rem;
}

.hx-panel {
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--hx-line-strong);
  background: var(--hx-glass);
}

.hx-panel .hx-h3 {
  margin-bottom: 1.1rem;
}

.hx-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.hx-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ✓ drawn with borders (no icon font), – for the "no" list */
.hx-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.38em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  transform: rotate(-45deg);
}

.hx-list--no li::before {
  top: 0.78em;
  width: 0.8rem;
  height: 0;
  border-left: 0;
  border-bottom: 1.5px solid rgba(var(--hx-paper), 0.5);
  transform: none;
}

.hx-tiles {
  display: grid;
  gap: 1px;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-tile {
  padding: clamp(1.4rem, 4vw, 2rem);
  background: var(--bg-primary);
}

.hx-tile p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.hx-tile .hx-list {
  margin-top: 1.1rem;
  gap: 0.6rem;
}

.hx-tile .hx-list li {
  font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════════
   EMBED — the booking widget sits on a white band
   ═══════════════════════════════════════════════════════ */
.hx-embed {
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-primary);
}

.hx-embed iframe {
  display: block;
  width: 100%;
  min-height: 820px;
  border: 0;
}

.hx-embed__note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   CONTACT CHANNELS
   ═══════════════════════════════════════════════════════ */
.hx-channels {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.hx-phone {
  display: inline-block;
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 10vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  text-decoration: none;
}

.hx-phone:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

.hx-channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.hx-channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 92px;
  padding: 0.95rem;
  border: 1px solid var(--hx-line-strong);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.3s, border-color 0.3s;
}

.hx-channel:hover {
  border-color: var(--text-primary);
  background: var(--hx-glass);
}

.hx-channel svg {
  width: 20px;
  height: 20px;
}

.hx-meta {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hx-line);
}

.hx-meta dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.56);
}

.hx-meta dd {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.hx-meta dd a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ═══════════════════════════════════════════════════════
   FORM — white panel, square fields
   ═══════════════════════════════════════════════════════ */
.hx-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 5vw, 2.25rem);
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-primary);
}

.hx-field {
  display: grid;
  gap: 0.45rem;
}

.hx-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hx-field input,
.hx-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hx-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.25s;
}

.hx-field textarea {
  min-height: 132px;
  resize: vertical;
}

.hx-field input:hover,
.hx-field textarea:hover {
  border-color: rgba(var(--hx-paper), 0.4);
}

.hx-field input[aria-invalid="true"],
.hx-field textarea[aria-invalid="true"] {
  border-color: var(--text-primary);
  border-width: 2px;
}

.hx-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hx-error::before {
  content: "— ";
}

.hx-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hx-consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: rgb(var(--hx-paper));
}

.hx-consent a {
  color: var(--text-primary);
  text-decoration: underline;
}

.hx-form .hx-btn {
  width: 100%;
}

.hx-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   FAQ — native <details>
   ═══════════════════════════════════════════════════════ */
.hx-faq {
  border-top: 1px solid var(--hx-line);
}

.hx-faq details {
  border-bottom: 1px solid var(--hx-line);
}

.hx-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
}

.hx-faq summary::-webkit-details-marker {
  display: none;
}

.hx-faq summary::after {
  content: "";
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid var(--hx-line-strong);
  background:
    linear-gradient(var(--text-primary), var(--text-primary)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--text-primary), var(--text-primary)) center / 1.5px 11px no-repeat;
  transition: transform 0.4s var(--hx-ease), border-color 0.3s;
}

.hx-faq details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--text-primary);
}

.hx-faq details p {
  padding: 0 2.5rem 1.4rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   CLOSING STRIP
   ═══════════════════════════════════════════════════════ */
.hx-closing {
  display: grid;
  gap: 1.75rem;
  align-items: end;
}

.hx-closing .hx-h2 {
  margin-top: 0.75rem;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT HERO — copy left, the module's black & white render right
   ═══════════════════════════════════════════════════════ */
.hx-prod {
  position: relative;
  overflow: hidden;
  padding-top: 7.5rem;
  padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
}

.hx-prod__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hx-prod__art {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hx-prod__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, rgba(var(--hx-ink), 1) 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(var(--hx-ink), 1) 62%, transparent 100%);
}

.hx-prod .hx-h1 {
  max-width: 13ch;
  /* sized by the shorter side too, so short wide screens (unfolded foldables) keep it in view */
  font-size: clamp(2.6rem, min(10vw, 11vh), 5.6rem);
}

.hx-prod .hx-actions {
  margin-top: 2rem;
}

.hx-prod__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: no-preference) {
  .hx-prod__copy > * {
    animation: hx-page-in 0.9s var(--hx-ease) both;
  }

  .hx-prod__copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hx-prod__copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hx-prod__copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hx-prod__copy > *:nth-child(5) { animation-delay: 0.3s; }

  .hx-prod__art {
    animation: hx-page-in 1.2s var(--hx-ease) 0.15s both;
  }
}

/* ═══════════════════════════════════════════════════════
   PLANS — same cards as the homepage (mobile: swipe row)
   ═══════════════════════════════════════════════════════ */
.hx-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--hx-line-strong);
  background: var(--hx-glass);
  margin-bottom: 1.5rem;
}

.hx-toggle[hidden] {
  display: none;
}

.hx-toggle button {
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--hx-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.hx-toggle button[aria-selected="true"] {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.hx-toggle button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.hx-plan-group[hidden] {
  display: none;
}

.hx-plan-group + .hx-plan-group {
  margin-top: 2.5rem;
}

.hx-plan-group__note {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hx-plan-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin-inline: calc(var(--hx-gutter) * -1);
  padding-inline: var(--hx-gutter);
  scroll-padding-inline: var(--hx-gutter);
  padding-block: 14px 4px;
}

.hx-plan-row::-webkit-scrollbar {
  display: none;
}

.hx-plan {
  position: relative;
  flex: 0 0 min(84%, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-secondary);
}

.hx-plan--accent {
  border-color: var(--text-primary);
  background: var(--bg-tertiary);
}

.hx-plan__badge {
  position: absolute;
  top: -12px;
  left: 1.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hx-plan__name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--hx-paper), 0.7);
}

.hx-plan__price {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.hx-plan__price small {
  font-family: var(--hx-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.hx-plan__billing {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hx-plan__desc {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.hx-plan__list {
  margin-top: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  list-style: none;
  flex: 1;
}

.hx-plan__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.hx-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--text-primary);
}

.hx-plan__list strong {
  color: var(--text-primary);
}

.hx-plan .hx-btn {
  margin-top: 1.4rem;
  width: 100%;
}

.hx-plans__fine {
  margin-top: 1.6rem;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hx-swipe {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
}

.hx-swipe__bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--hx-line-strong);
  overflow: hidden;
}

.hx-swipe__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--text-primary);
  transform-origin: left;
  transition: transform 0.15s linear;
}

.hx-swipe__hint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   FEATURE ROWS — copy + product screenshot (black & white)
   ═══════════════════════════════════════════════════════ */
.hx-features {
  display: grid;
  gap: clamp(3.5rem, 9vw, 6.5rem);
}

.hx-feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hx-feature__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hx-feature .hx-h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: -0.035em;
}

.hx-feature .hx-body {
  margin-top: 0.8rem;
}

.hx-feature .hx-list {
  margin-top: 1.2rem;
}

.hx-shot {
  margin: 0;
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-secondary);
}

.hx-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hx-shot figcaption {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--hx-line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   DOWNLOADS — desktop app per OS
   ═══════════════════════════════════════════════════════ */
.hx-dl {
  display: grid;
  gap: 1px;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-dl__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: 104px;
  padding: 1.25rem 1.4rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.3s;
}

.hx-dl__card:hover {
  background: var(--bg-secondary);
}

.hx-dl__card:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: -4px;
}

.hx-dl__os {
  font-family: var(--hx-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hx-dl__fmt {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.hx-dl__go {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hx-dl__you {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: none;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hx-dl__card.is-you {
  box-shadow: inset 0 0 0 1px var(--text-primary);
}

.hx-dl__card.is-you .hx-dl__you {
  display: block;
}

.hx-dl__fine {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   AI SPOTLIGHT — prompt mock-ups
   ═══════════════════════════════════════════════════════ */
.hx-prompt {
  margin-top: 1.4rem;
  border: 1px solid var(--hx-line-strong);
  background: var(--bg-primary);
}

.hx-prompt__bar {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--hx-line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.hx-prompt__body {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 64px;
  padding: 0.9rem;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.hx-prompt__body::before {
  content: "›";
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.hx-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--text-primary);
}

@media (prefers-reduced-motion: no-preference) {
  .hx-caret {
    animation: hx-blink 1.1s steps(1) infinite;
  }
}

@keyframes hx-blink {
  50% { opacity: 0; }
}

.hx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.hx-chips span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hx-line-strong);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   USAGE TABLE — per-unit prices
   ═══════════════════════════════════════════════════════ */
.hx-usage {
  display: grid;
  gap: 1px;
  background: var(--hx-line);
  border: 1px solid var(--hx-line);
}

.hx-usage div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--bg-primary);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hx-usage b {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.hx-list--cols {
  gap: 0.75rem 2rem;
}

/* spacing helpers for panels and trailing actions */
.hx-panel .hx-feature__kicker + .hx-h3 {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.hx-panel .hx-body {
  margin-top: 0.6rem;
}

.hx-panel .hx-list {
  margin-top: 1.2rem;
}

.hx-actions--after {
  margin-top: 2.25rem;
}

.hx-plans__custom {
  margin-top: 1rem;
}

.hx-split + .hx-plans__fine {
  margin-top: 1.25rem;
}

/* ═══════════════════════════════════════════════════════
   VOICE DEMO — one live agent (/voice-demo)
   ═══════════════════════════════════════════════════════ */
.hx-demo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--text-primary);
  background: var(--bg-tertiary);
}

.hx-demo__card--split {
  display: grid;
  gap: 1.75rem;
}

.hx-demo__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hx-demo__copy .hx-h3 {
  margin-top: 0.6rem;
}

.hx-demo__copy > p:not([class]) {
  margin-top: 0.7rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hx-demo__copy .hx-list {
  margin-top: 1.2rem;
}

/* the widget area: the LeadConnector loader renders its call button here */
.hx-demo__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  min-height: 200px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--hx-line);
  background: var(--bg-primary);
  text-align: center;
}

.hx-demo__fallback {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hx-demo__fallback a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hx-demo__fine {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   White bands (.hx-light) — flipping the tokens makes every
   component inside adapt.
   ═══════════════════════════════════════════════════════ */
.hx-light {
  --hx-paper: 0, 0, 0;
  --hx-ink: 255, 255, 255;
  --bg-primary: rgb(var(--hx-ink));
  --bg-secondary: rgba(var(--hx-paper), 0.045);
  --bg-tertiary: rgba(var(--hx-paper), 0.08);
  --text-primary: rgb(var(--hx-paper));
  --text-secondary: rgba(var(--hx-paper), 0.7);
  --text-tertiary: rgba(var(--hx-paper), 0.56);
  --hx-line: rgba(var(--hx-paper), 0.1);
  --hx-line-strong: rgba(var(--hx-paper), 0.22);
  --hx-glass: rgba(var(--hx-paper), 0.025);
  --accent: rgb(var(--hx-paper));
  --accent-light: rgb(var(--hx-paper));
  --accent-rgb: var(--hx-paper);
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ── Shared chrome on v3 pages: monochrome ── */
body.hx-page .skip-link {
  color: var(--bg-primary);
}

/* anchors and focus clear the fixed navbar */
html:has(body.hx-page) {
  scroll-padding-top: 104px;
}

/* ═══════════════════════════════════════════════════════
   ≥ 768px
   ═══════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hx-eyebrow {
    font-size: 0.76rem;
  }

  .hx-phero {
    align-items: center;
    padding-top: 9rem;
  }

  .hx-phero__shade {
    background:
      linear-gradient(90deg, rgba(var(--hx-ink), 0.94) 0%, rgba(var(--hx-ink), 0.82) 32%, rgba(var(--hx-ink), 0.35) 58%, rgba(var(--hx-ink), 0.05) 80%),
      linear-gradient(180deg, rgba(var(--hx-ink), 0.55) 0%, rgba(var(--hx-ink), 0) 24%, rgba(var(--hx-ink), 0) 76%, var(--bg-primary) 100%);
  }

  .hx-phero__content {
    max-width: 44rem;
  }

  .hx-steps {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }

  .hx-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx-closing {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }

  .hx-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }

  .hx-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
  }

  .hx-swipe {
    display: none;
  }

  .hx-plan-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: 16px;
  }

  .hx-plan-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-plan {
    padding: 2rem 1.6rem 1.6rem;
  }

  .hx-dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-usage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-list--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-prod__art {
    width: min(100%, 420px);
  }
}

@media (min-width: 900px) {
  .hx-prod {
    padding-top: 9rem;
  }

  .hx-demo__card--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  .hx-prod__art {
    width: min(100%, 520px);
  }

  .hx-prod__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }

  .hx-feature {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .hx-feature:nth-child(even) .hx-shot {
    order: -1;
  }
}

@media (min-width: 1080px) {
  .hx-steps {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
    column-gap: 1.25rem;
  }

  .hx-step {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--hx-line-strong);
    border-bottom: 0;
  }

  .hx-step__num {
    grid-row: auto;
    margin-bottom: 1.4rem;
  }

  .hx-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .hx-tiles--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hx-steps--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* short screens from 768px wide (landscape tablets, small laptops): the headline is sized by
   height too, so the hero's buttons stay above the chat bubble */
@media (min-width: 768px) and (max-height: 820px) {
  .hx-phero {
    padding-top: 8rem;
  }

  .hx-phero .hx-h1 {
    max-width: 14ch;
    font-size: clamp(2.6rem, min(7vw, 8.5vh), 5rem);
  }

  .hx-prod .hx-h1 {
    max-width: 16ch;
    font-size: clamp(2.6rem, min(7vw, 8.5vh), 5.6rem);
  }

  /* the plan line repeats further down; here it would crowd the bottom edge */
  .hx-prod__note {
    display: none;
  }
}

/* short wide screens (unfolded foldables, landscape phones): the hero fits the viewport */
@media (orientation: landscape) and (max-height: 640px) {
  .hx-phero {
    min-height: 100svh;
    padding-top: 6.5rem;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hx-phero {
    align-items: flex-start;
  }

  /* wider measure: the headline takes two lines instead of four */
  .hx-phero__content {
    max-width: 56rem;
  }

  .hx-phero .hx-eyebrow {
    display: none;
  }

  .hx-phero .hx-h1 {
    margin-top: 0;
  }

  .hx-phero .hx-h1 {
    max-width: 20ch;
    font-size: clamp(2.2rem, 9vh, 3.6rem);
  }

  .hx-phero .hx-lead {
    max-width: 44rem;
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .hx-phero .hx-actions {
    margin-top: 1.4rem;
  }

  /* product hero: art beside the copy, so the buttons stay above the chat bubble */
  .hx-prod {
    padding-top: 6.5rem;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .hx-prod__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 2rem;
  }

  .hx-prod__art {
    width: min(100%, 62vh);
  }

  .hx-prod .hx-eyebrow {
    display: none;
  }

  .hx-prod .hx-h1 {
    margin-top: 0;
    max-width: 16ch;
    font-size: clamp(2.2rem, 9vh, 3.6rem);
  }

  .hx-prod .hx-lead {
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .hx-prod .hx-actions {
    margin-top: 1.4rem;
  }

  /* the plan line repeats further down; here it would crowd the bottom edge */
  .hx-prod__note {
    display: none;
  }
}

/* short portrait phones (iPhone SE, foldable cover screens): no eyebrow, smaller type,
   so the hero's buttons clear the chat bubble; the headline stays below the nav */
@media (max-width: 767px) and (max-height: 700px) {
  .hx-phero,
  .hx-prod {
    padding-top: 7rem;
  }

  .hx-phero .hx-eyebrow,
  .hx-prod .hx-eyebrow {
    display: none;
  }

  .hx-phero .hx-h1,
  .hx-prod .hx-h1 {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
  }

  .hx-prod .hx-lead {
    font-size: 0.95rem;
  }

  .hx-prod .hx-actions {
    margin-top: 1.4rem;
  }

  .hx-prod__note {
    display: none;
  }

  .hx-phero .hx-lead {
    font-size: 0.95rem;
  }

  .hx-phero .hx-actions {
    margin-top: 1.4rem;
  }
}

/* ═══════════════════════════════════════════════════════
   Reduced motion — nothing moves
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hx-btn,
  .hx-btn__icon,
  .hx-faq summary::after {
    transition: none;
  }
}
