/* public/home.css — landing page overhaul ("Operational rhythm")
   Scoped under .hx-page so it can't leak into the rest of the app. */

.hx-page {
  --hx-ink:      #0e1014;
  --hx-ink-2:    #14171d;
  --hx-ink-3:    #1b1f27;
  --hx-line:     rgba(255, 255, 255, 0.08);
  --hx-line-2:   rgba(255, 255, 255, 0.14);
  --hx-paper:    #eef1f5;
  --hx-paper-2:  #e3e8ef;
  --hx-paper-ink:#14171d;
  --hx-fg:       #eef1f5;
  --hx-fg-dim:   #9aa3b2;
  --hx-amber:    #ffb700;
  --hx-amber-2:  #ffce5c;
  --hx-blue:     #4c8dff;

  --hx-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --hx-body:    'Inter', 'Segoe UI', sans-serif;
  --hx-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --hx-wrap: 1120px;
  --hx-pad: clamp(20px, 5vw, 40px);

  font-family: var(--hx-body);
  color: var(--hx-fg);
  background: var(--hx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hx-page *,
.hx-page *::before,
.hx-page *::after { box-sizing: border-box; }

.hx-wrap {
  max-width: var(--hx-wrap);
  margin: 0 auto;
  padding-left: var(--hx-pad);
  padding-right: var(--hx-pad);
}

.hx-page a { text-decoration: none; }

.hx-page :focus-visible {
  outline: 2px solid var(--hx-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shared type ---------- */
.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--hx-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hx-fg-dim);
}
.hx-eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hx-amber);
  box-shadow: 0 0 0 4px rgba(255, 183, 0, 0.16);
}
.hx-eyebrow--ink { color: #5a6472; }

.hx-h2 {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hx-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--hx-fg-dim);
  max-width: 52ch;
  margin: 0;
}

/* ---------- buttons ---------- */
.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hx-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.hx-btn--primary {
  background: var(--hx-amber);
  color: #14110a;
  box-shadow: 0 10px 30px -12px rgba(255, 183, 0, 0.7);
}
.hx-btn--primary:hover {
  background: var(--hx-amber-2);
  color: #14110a;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(255, 183, 0, 0.75);
}
.hx-btn--ghost {
  background: transparent;
  color: var(--hx-fg);
  border-color: var(--hx-line-2);
}
.hx-btn--ghost:hover {
  border-color: var(--hx-amber);
  color: var(--hx-amber);
  transform: translateY(-2px);
}
.hx-btn__arrow { transition: transform 0.18s ease; }
.hx-btn:hover .hx-btn__arrow { transform: translateX(4px); }

/* on paper sections */
.hx-btn--ink.hx-btn--ghost { color: var(--hx-paper-ink); border-color: rgba(20, 23, 29, 0.2); }
.hx-btn--ink.hx-btn--ghost:hover { color: #a8750a; border-color: var(--hx-amber); }

/* ================= HERO ================= */
.hx-hero {
  position: relative;
  overflow: hidden;
  background: var(--hx-ink);
  padding-top: clamp(72px, 12vh, 130px);
  padding-bottom: clamp(48px, 8vh, 88px);
  isolation: isolate;
}
.hx-hero__grid {
  position: absolute;
  inset: -2px;
  z-index: -2;
  background-image:
    linear-gradient(var(--hx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hx-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 28%, transparent 76%);
          mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 28%, transparent 76%);
}
.hx-hero__glow {
  position: absolute;
  z-index: -1;
  top: -30%; left: 50%;
  width: 900px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 183, 0, 0.16), rgba(255, 183, 0, 0) 70%);
  pointer-events: none;
}
.hx-hero__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  max-width: 16ch;
}
.hx-line { display: block; overflow: hidden; padding: 0.04em 0; }
.hx-word { display: inline-block; }
.hx-line--accent .hx-word { color: var(--hx-amber); }

.hx-hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--hx-fg-dim);
  max-width: 44ch;
  margin: 0 0 36px;
}
.hx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---- signature: the cadence line ---- */
.hx-cadence {
  margin-top: clamp(56px, 9vh, 96px);
}
.hx-cadence__track {
  position: relative;
  height: 60px;
  border-top: 1px solid var(--hx-line-2);
  background-image: repeating-linear-gradient(
    90deg, var(--hx-line) 0 1px, transparent 1px 44px);
}
/* taller beat ticks every ~4 units */
.hx-cadence__track::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 16px;
  background-image: repeating-linear-gradient(
    90deg, var(--hx-line-2) 0 1px, transparent 1px 176px);
}
.hx-cadence__playhead {
  position: absolute;
  top: -1px; bottom: 0; left: 0;
  width: 2px;
  background: var(--hx-amber);
  box-shadow: 0 0 20px 2px rgba(255, 183, 0, 0.55);
  animation: hx-sweep 5.5s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
.hx-cadence__playhead::after {
  content: "";
  position: absolute;
  top: -4px; left: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hx-amber);
  box-shadow: 0 0 14px 2px rgba(255, 183, 0, 0.8);
}
@keyframes hx-sweep {
  0%   { left: 0;    opacity: 0; }
  7%   { opacity: 1; }
  93%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.hx-cadence__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--hx-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hx-fg-dim);
}
.hx-cadence__labels span { position: relative; }

/* ================= PROBLEM STRIP ================= */
.hx-problem {
  background: var(--hx-ink-2);
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
  padding: clamp(56px, 9vh, 96px) 0;
}
.hx-problem__inner { max-width: 760px; }
.hx-problem__kicker {
  font-family: var(--hx-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hx-amber);
  margin: 0 0 18px;
}
.hx-problem__lead {
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.hx-problem__lead em {
  font-style: normal;
  color: var(--hx-amber);
}
.hx-problem__body {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--hx-fg-dim);
  margin: 0;
}

/* ================= OFFER ================= */
.hx-offer { padding: clamp(64px, 10vh, 112px) 0; }
.hx-offer__head { max-width: 640px; margin-bottom: clamp(36px, 5vh, 56px); }
.hx-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.hx-card {
  position: relative;
  background: var(--hx-ink-3);
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  padding: 30px 28px 34px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hx-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--hx-amber), transparent 65%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.hx-card:hover {
  transform: translateY(-4px);
  border-color: var(--hx-line-2);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.9);
}
.hx-card:hover::before { transform: scaleX(1); }
.hx-card__tag {
  font-family: var(--hx-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hx-amber);
  display: block;
  margin-bottom: 18px;
}
.hx-card__icon {
  color: var(--hx-amber);
  font-size: 26px;
  margin-bottom: 16px;
}
.hx-card__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.hx-card__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hx-fg-dim);
  margin: 0 0 10px;
}
.hx-card__body:last-child { margin-bottom: 0; }

/* ================= CADENCE (product) ================= */
.hx-product {
  background: var(--hx-paper);
  color: var(--hx-paper-ink);
  padding: clamp(64px, 10vh, 112px) 0;
}
.hx-product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hx-product__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hx-product__title b { color: #b57f00; font-weight: 600; }
.hx-product__body {
  font-size: 1.12rem;
  line-height: 1.62;
  color: #4a5462;
  margin: 0 0 16px;
  max-width: 46ch;
}
.hx-feats {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hx-feats li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #2c333d;
}
.hx-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.36em;
  width: 12px; height: 12px;
  border: 2px solid var(--hx-amber);
  border-radius: 3px;
  background: rgba(255, 183, 0, 0.18);
}
.hx-product__note {
  font-size: 0.92rem;
  color: #6b7480;
  margin: 16px 0 0;
}

/* ---- swimlane gantt visual ---- */
.hx-swim {
  background: #fff;
  border: 1px solid var(--hx-paper-2);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 40px 80px -50px rgba(20, 23, 29, 0.55);
}
.hx-swim__bar-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--hx-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #98a1ae;
  padding: 0 0 12px 96px;
  border-bottom: 1px solid var(--hx-paper-2);
  margin-bottom: 8px;
}
.hx-swim__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.hx-swim__name {
  flex: 0 0 84px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a5462;
}
.hx-swim__lane {
  position: relative;
  flex: 1;
  height: 16px;
  border-radius: 5px;
  background-image: repeating-linear-gradient(
    90deg, var(--hx-paper-2) 0 1px, transparent 1px 25%);
}
.hx-swim__bar {
  position: absolute;
  top: 1px; bottom: 1px;
  left: calc(var(--s) * 100%);
  width: calc((var(--e) - var(--s)) * 100%);
  background: var(--c, var(--hx-amber));
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.hx-swim.is-in .hx-swim__bar { transform: scaleX(1); }
.hx-swim__now {
  position: absolute;
  top: 32px; bottom: 12px;
  left: 62%;
  width: 2px;
  background: #14171d;
  opacity: 0;
  transition: opacity 0.5s ease 0.6s;
}
.hx-swim.is-in .hx-swim__now { opacity: 0.55; }

/* ================= PROCESS / CTA ================= */
.hx-process {
  padding: clamp(64px, 10vh, 112px) 0;
  text-align: center;
  border-top: 1px solid var(--hx-line);
}
.hx-process__inner { max-width: 680px; margin: 0 auto; }
.hx-process__body {
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--hx-fg-dim);
  margin: 0 0 14px;
}
.hx-process__cta { margin-top: 34px; }

/* mini cadence divider reused as a rhythm marker */
.hx-rule {
  height: 1px;
  max-width: var(--hx-wrap);
  margin: 0 auto;
  background: repeating-linear-gradient(
    90deg, var(--hx-line-2) 0 1px, transparent 1px 22px);
}

/* ================= reveal system ================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

/* hero word rise (only when JS active) */
.js .hx-hero .hx-word { transform: translateY(112%); opacity: 0; }
.js .hx-hero.is-ready .hx-word {
  animation: hx-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes hx-rise {
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   INTERIOR PAGES — shared components extending the home system
   ============================================================ */

/* ---- interior page hero (smaller than the home hero) ---- */
.hx-hero--page { padding-bottom: clamp(40px, 6vh, 64px); }
.hx-hero--page .hx-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  max-width: 20ch;
  margin-bottom: 20px;
}
.hx-hero__kicker {
  font-family: var(--hx-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--hx-amber);
  margin: 0 0 20px;
  max-width: 30ch;
}
.hx-hero__intro {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--hx-fg-dim);
  max-width: 62ch;
  margin: 0 0 30px;
}
.hx-hero--page .hx-rule { margin-top: clamp(36px, 6vh, 64px); }

/* ---- eyebrow alignment helper ---- */
.hx-eyebrow--center { justify-content: center; }

/* ---- section system ---- */
.hx-section { padding: clamp(56px, 9vh, 104px) 0; }
.hx-section--alt {
  background: var(--hx-ink-2);
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
}
.hx-section--paper { background: var(--hx-paper); color: var(--hx-paper-ink); }
.hx-section--paper .hx-h2 { color: var(--hx-paper-ink); }
.hx-section--paper .hx-lede,
.hx-section--paper .hx-prose p { color: #4a5462; }
.hx-section--paper .hx-eyebrow { color: #5a6472; }

.hx-section__head { max-width: 760px; margin: 0 0 clamp(32px, 5vh, 52px); }
.hx-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- prose blocks (the centered "detail" copy) ---- */
.hx-prose { max-width: 720px; }
.hx-prose--center { margin-left: auto; margin-right: auto; text-align: center; }
.hx-prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--hx-fg-dim);
  margin: 0 0 18px;
}
.hx-prose p:last-child { margin-bottom: 0; }

/* ---- checklist / guardrail list ---- */
.hx-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 780px;
  display: grid;
  gap: 16px;
}
.hx-checklist li {
  position: relative;
  padding-left: 40px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.5;
  color: var(--hx-fg-dim);
}
.hx-checklist li strong { color: var(--hx-fg); font-weight: 600; }
.hx-checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.18em;
  width: 20px; height: 20px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314110a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--hx-amber);
}
.hx-checklist--avoid li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6e9ef' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px var(--hx-line-2);
}

/* ---- split: heading beside a list ---- */
.hx-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.hx-split__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.hx-split__intro { color: var(--hx-fg-dim); font-size: 1.08rem; line-height: 1.6; margin: 0; }

/* ---- contact form ---- */
.hx-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--hx-ink-3);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.9);
}
.hx-field { margin-bottom: 18px; text-align: left; }
.hx-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hx-fg-dim);
  margin-bottom: 8px;
}
.hx-input {
  width: 100%;
  background: var(--hx-ink);
  border: 1px solid var(--hx-line-2);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--hx-fg);
  font-family: var(--hx-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hx-input::placeholder { color: #6b7480; }
.hx-input:focus {
  outline: none;
  border-color: var(--hx-amber);
  box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.16);
}
textarea.hx-input { resize: vertical; min-height: 128px; }
.hx-field__hint { color: #6b7480; font-size: 0.82rem; margin: -8px 0 16px; }

/* ---- alerts ---- */
.hx-alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid transparent;
}
.hx-alert--error { background: rgba(226, 75, 74, 0.12); border-color: rgba(226, 75, 74, 0.4); color: #ff9b9a; }
.hx-alert--warn { background: rgba(255, 183, 0, 0.1); border-color: rgba(255, 183, 0, 0.4); color: var(--hx-amber-2); }
.hx-alert--info { background: rgba(76, 141, 255, 0.12); border-color: rgba(76, 141, 255, 0.4); color: #9cc0ff; }

/* ---- links ---- */
.hx-link { color: var(--hx-amber); text-decoration: none; }
.hx-link:hover { text-decoration: underline; }

/* ---- small button variant ---- */
.hx-btn--sm { padding: 10px 16px; font-size: 0.92rem; border-radius: 8px; }

/* ---- centered card shell (auth + simple message pages) ---- */
.hx-shell {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background: var(--hx-ink);
}
.hx-shell__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: var(--hx-ink-3);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 40px 90px -60px rgba(0, 0, 0, 0.9);
}
.hx-shell__card--center { text-align: center; }
.hx-shell__title {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.hx-shell__sub { color: var(--hx-fg-dim); font-size: 0.98rem; line-height: 1.55; margin: 0 0 24px; }
.hx-shell__foot { text-align: center; margin-top: 22px; color: var(--hx-fg-dim); font-size: 0.95rem; }
.hx-shell__card .hx-btn { width: 100%; justify-content: center; }

/* ---- demo top bar (live Cadence demo chrome) ---- */
.hx-demobar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: var(--hx-ink-2);
  border-bottom: 1px solid var(--hx-line);
  font-family: var(--hx-body);
}
.hx-demobar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hx-demobar__brand img { height: 26px; }
.hx-demobar__tag { color: var(--hx-fg-dim); font-size: 0.82rem; }
.hx-demobar__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.hx-demobar__link { color: var(--hx-fg-dim); font-size: 0.9rem; text-decoration: none; white-space: nowrap; transition: color 0.15s ease; }
.hx-demobar__link:hover { color: var(--hx-amber); }
.hx-demobar__actions .hx-btn { white-space: nowrap; }

/* ---- plan / billing card ---- */
.hx-plan { max-width: 560px; margin: 0 auto; }
.hx-plan__card {
  background: var(--hx-ink-3);
  border: 1px solid var(--hx-line);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 38px);
}
.hx-plan__name {
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.hx-plan__body { color: var(--hx-fg-dim); font-size: 1.02rem; line-height: 1.6; margin: 0 0 12px; }
.hx-plan__price { color: var(--hx-amber); font-weight: 600; }
.hx-plan__card .hx-btn { margin-top: 20px; }

/* ================= responsive ================= */
@media (max-width: 820px) {
  .hx-product__grid { grid-template-columns: 1fr; }
  .hx-product__visual { order: -1; }
  .hx-split { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .hx-cadence__labels span:nth-child(2),
  .hx-cadence__labels span:nth-child(4) { display: none; }
  .hx-btn { width: 100%; justify-content: center; }
  .hx-demobar__tag { display: none; }
  .hx-demobar__actions { gap: 12px; }
  /* Keep the demo CTA inline — the full-width rule above is for page CTAs. */
  .hx-demobar__actions .hx-btn { width: auto; }
  /* The logo already links home, so drop the redundant back link on phones. */
  .hx-demobar__link--back { display: none; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js .hx-hero .hx-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hx-cadence__playhead { animation: none; left: 34%; }
  .hx-swim__bar { transition: none; transform: scaleX(1); }
  .hx-swim__now { transition: none; opacity: 0.55; }
  .hx-btn, .hx-card, .hx-card::before { transition: none; }
}
