/* ============================================================
   NATIVVE marketing site — Kinesthetic Clay design system.
   Source of truth: nativve-os/public/ds/ (colors, typography, fonts).
   Heebo for ALL text (Hebrew-native), Fira Code for numbers/IDs.
   NO serif. Primary buttons = dusty-blue. Gold = accent only, never
   body text. Shared by EN (LTR) and HE (RTL).
   ============================================================ */

:root {
  /* Primary — dusty blue (ds: --primary, used for buttons/links). */
  --blue: #7E96AC;            /* ds --dusty-blue */
  --blue-deep: #5E7C99;
  --blue-tint: rgba(126, 150, 172, 0.14);
  --blue-ring: rgba(126, 150, 172, 0.40);

  /* Accent — gold (logo, active nav, emphasis ONLY; NEVER body text). */
  --gold: #C9A227;            /* ds --gold-500 */
  --gold-deep: #B89020;
  --gold-tint: rgba(201, 162, 39, 0.14);

  /* Ground — Kinesthetic Clay warm cream */
  --ivory: #F4F1EC;           /* ds --cream */
  --paper: #FBFAF7;
  --sunk: #EFEBE4;

  /* Ink */
  --ink: #2A2622;
  --body: #3D3A34;
  --dim: #7A736A;
  --faint: #A8A199;

  /* Lines — hairline */
  --line: rgba(42, 38, 34, 0.12);
  --line-soft: rgba(42, 38, 34, 0.07);
  --grid-line: rgba(42, 38, 34, 0.06);   /* ds paper-grid texture (felt, not faint) */

  /* Status hues (ds — muted clay, terracotta = error not alarm-red) */
  --sage: #5F8F6B;
  --dusty-blue: #7E96AC;
  --terracotta: #C26D5C;
  --heal: #A091B5;

  /* Brand fonts — Heebo everywhere, Fira Code for numbers/IDs (per ds/typography.css).
     --font-display kept as an alias to Heebo so any display rules resolve to brand. */
  --font-ui: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: var(--font-ui);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background-color: var(--ivory);
  /* Signature paper-grid texture (ds/base.css) */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.75rem; }

/* ---- Display type ---- */
/* Heebo for ALL headings, both languages (ds/typography.css: no serif).
   Hero = 800, titles = 700, tracking -0.01em. */
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); }

h1, .section-title { font-weight: 800; letter-spacing: var(--track-tight, -0.01em); }

/* ---- Header ---- */
header { padding: 1.75rem 0; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr; /* logo (English wordmark) always on the LEFT, even on the RTL /he page */
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.lang-toggle {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dim);
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  transition: color 0.2s ease;
}
.lang-toggle:hover { color: var(--blue); }
.nav-cta {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { border-color: var(--blue); background: var(--blue-tint); }

/* ---- Hero ---- */
.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: start;
  max-width: 820px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold);
}
h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
}
h1 .accent { color: var(--blue); }
h1 .dot-accent { color: var(--gold); }
.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--dim);
  max-width: 620px;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}
.cta-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;                 /* --primary-ink */
  background: var(--blue);        /* --primary = dusty-blue (ds: gold is accent only) */
  border: 1px solid var(--blue);
  padding: 0.8rem 1.7rem;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--blue); border-color: var(--blue-ring); }

/* ---- Sections / cards ---- */
.section { padding: 4rem 0; border-top: 1px solid var(--line-soft); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-sub { color: var(--dim); max-width: 580px; margin: 0 0 3rem; font-size: 1.05rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.card {
  padding: 2.25rem 2rem;
  border-inline-end: 1px solid var(--line-soft);
  transition: background 0.25s ease;
}
.card:last-child { border-inline-end: none; }
.card:hover { background: var(--ivory); }
.card .dot {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  border: 1px solid var(--line-soft);
}
.dot.sage { background: rgba(95, 143, 107, 0.12); }
.dot.dusty { background: rgba(126, 150, 172, 0.14); }
.dot.heal { background: rgba(160, 145, 181, 0.14); }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }
.card p { color: var(--dim); font-size: 0.97rem; line-height: 1.65; }

/* Cards stack on narrow screens — restore horizontal dividers */
@media (max-width: 560px) {
  .card { border-inline-end: none; border-bottom: 1px solid var(--line-soft); }
  .card:last-child { border-bottom: none; }
}

/* ---- Capability grid (21st "Features 4" layout, clay-restyled) ----
   Bordered divide grid: 4-up desktop, 2×2 tablet, 1-col mobile. */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.cap {
  padding: 2.1rem 1.6rem;
  border-inline-end: 1px solid var(--line-soft);
  transition: background 0.25s ease;
}
.cap:last-child { border-inline-end: none; }
.cap:hover { background: var(--ivory); }
.cap-ic {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line-soft);
}
.cap-ic svg { width: 22px; height: 22px; }
.cap-ic.ic-sage { background: rgba(95,143,107,0.14); color: var(--sage); }
.cap-ic.ic-blue { background: rgba(126,150,172,0.16); color: var(--blue-deep); }
.cap-ic.ic-gold { background: var(--gold-tint); color: var(--gold-deep); }
.cap-ic.ic-heal { background: rgba(160,145,181,0.16); color: var(--heal); }
.cap h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--ink); }
.cap p { color: var(--dim); font-size: 0.94rem; line-height: 1.6; }

@media (max-width: 860px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(2) { border-inline-end: none; }
  .cap:nth-child(1), .cap:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-inline-end: none; border-bottom: 1px solid var(--line-soft); }
  .cap:last-child { border-bottom: none; }
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.75rem 0; }
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-brand { display: flex; align-items: center; gap: 0.5rem; }
.foot-brand img { height: 24px; }
.foot-brand span { font-weight: 700; color: var(--ink); }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--dim); text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.foot-links a:hover { color: var(--blue); }
.copy { color: var(--faint); font-size: 0.85rem; width: 100%; text-align: start; margin-top: 1.75rem; }
.copy span { font-family: var(--font-mono); }

/* ---- Legal pages (privacy / data-deletion) ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 1.5rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); text-align: start; margin: 1.5rem 0 0.4rem; }
.legal h1 { font-family: var(--font-display); font-weight: 800; }
.legal .updated { color: var(--dim); font-size: 0.9rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.5rem; color: var(--ink); }
.legal p, .legal li { color: var(--body); line-height: 1.75; }
.legal a { color: var(--blue); }
.legal ul, .legal ol { padding-inline-start: 1.25rem; margin-top: 0.5rem; }
.legal strong { font-weight: 700; color: var(--ink); }

/* ============================================================
   HOME — Kinso-inspired upgrades (hero product, marquee,
   dark act, social proof, scroll-reveal). EN + HE share these;
   logical properties keep them RTL-safe.
   ============================================================ */

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Nav link (new) ---- */
.nav-link {
  font-weight: 500; font-size: 0.92rem; color: var(--dim);
  text-decoration: none; transition: color 0.2s ease;
}
.nav-link:hover { color: var(--blue); }
@media (max-width: 720px) { .nav-link { display: none; } }

/* ---- Hero: split copy + product ---- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  max-width: none;            /* override base .hero max-width */
  padding: 4.5rem 0 3.5rem;
}
.hero-copy { max-width: 560px; }

/* Warm gradient wash behind the hero (Kinso temperature, Nativve hues) */
.hero-split::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(201,162,39,0.10), transparent 60%),
    radial-gradient(760px 520px at 95% 30%, rgba(94,124,153,0.10), transparent 62%);
  pointer-events: none;
}
main { position: relative; }

/* Social proof under CTA */
.social-proof {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.75rem; color: var(--dim); font-size: 0.95rem;
}
.social-proof strong { color: var(--ink); font-weight: 600; }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); flex: none;
  box-shadow: 0 0 0 0 rgba(95,143,107,0.45);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(95,143,107,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(95,143,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,143,107,0); }
}
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

/* ---- Product mockup (pure CSS) ---- */
.hero-visual { position: relative; }
.app-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(42,38,34,0.28), 0 8px 20px -12px rgba(42,38,34,0.14);
  overflow: hidden;
}
.app-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ivory);
}
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.tl-dot:nth-child(1) { background: var(--terracotta); }
.tl-dot:nth-child(2) { background: var(--gold); }
.tl-dot:nth-child(3) { background: var(--sage); }
.app-search {
  margin-inline-start: 0.5rem; flex: 1;
  font-size: 0.8rem; color: var(--faint);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: 7px; padding: 0.4rem 0.7rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-body { padding: 1.1rem 1.15rem 1.25rem; }
.app-greeting { margin-bottom: 0.9rem; }
.ag-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.ag-sub { font-size: 0.82rem; color: var(--dim); margin-top: 0.15rem; }
.feed { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.feed-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0.65rem;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
/* Solid status dots (the ◍ glyph is hidden; the disc is drawn here) */
.feed-ic {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  font-size: 0; line-height: 0; overflow: hidden;
  box-shadow: 0 0 0 3px var(--paper);
}
.ic-sage { background: var(--sage); }
.ic-blue { background: var(--blue); }
.ic-gold { background: var(--gold); }
.ic-heal { background: var(--heal); }
.feed-txt { font-size: 0.82rem; color: var(--body); line-height: 1.4; }
.feed-txt b { color: var(--ink); font-weight: 600; }
.feed-meta { font-size: 0.72rem; color: var(--faint); font-family: var(--font-mono); }

/* Floating notification card */
.float-card {
  position: absolute;
  inset-block-end: -26px; inset-inline-end: -18px;
  width: 248px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 22px 44px -22px rgba(42,38,34,0.32);
  animation: floaty 6s ease-in-out infinite;
}
.fc-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.74rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 0.35rem; }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 3px var(--gold-tint); }
.fc-body { font-size: 0.8rem; color: var(--body); line-height: 1.45; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .hero-copy { max-width: 640px; }
  .float-card { inset-inline-end: 4px; width: 220px; }
}

/* ---- Integration marquee ---- */
.marquee-wrap { padding: 2.5rem 0 1rem; }
.marquee-label {
  text-align: center; font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* Track holds 3 identical sets; we translate by exactly one set (-33.333%)
   so the loop is seamless. padding-inline-end keeps the inter-set gap equal
   to the inter-item gap, so the seam is invisible. */
.marquee-track { display: flex; gap: 2.75rem; padding-inline-end: 2.75rem; width: max-content; animation: scrollX 40s linear infinite; }
.m-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.02rem; font-weight: 600; color: var(--dim); white-space: nowrap;
}
.m-item img { height: 22px; width: auto; display: block; flex: none; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
:lang(he) .marquee-track, html[lang="he"] .marquee-track { animation-name: scrollXrtl; }
@keyframes scrollXrtl { from { transform: translateX(0); } to { transform: translateX(33.3333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Dark second act ---- */
.dark-act {
  background: radial-gradient(120% 100% at 80% 0%, #2A2420 0%, #1E1B18 55%, #16130F 100%);
  margin: 5rem 0;
  padding: 5.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 40px 90px -50px rgba(42,38,34,0.5);
}
.dark-act::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 75%);
}
.dark-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 3rem; align-items: center;
}
.eyebrow-dark { color: #C9C2B8; border-bottom-color: var(--gold); }
.dark-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1;
  color: #F4F1EC; margin-bottom: 1.1rem; letter-spacing: -0.01em;
}
.dark-title .grad {
  background: linear-gradient(92deg, #7E96AC 0%, #C9A227 55%, #C26D5C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.dark-sub { color: #B7B0A6; font-size: 1.08rem; line-height: 1.7; max-width: 460px; }

.dark-visual { display: flex; justify-content: center; }
/* Signal card — clay-styled activity timeline (21st "Modern Timeline" pattern) */
.signal-card {
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 1.4rem 1.45rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}
.sc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.15rem;
}
.sc-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: #9FCBAA; background: rgba(95,143,107,0.16);
  border: 1px solid rgba(95,143,107,0.3);
  padding: 0.28rem 0.6rem; border-radius: 999px;
}
.sc-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #8FC6A0; flex: none;
  box-shadow: 0 0 0 0 rgba(143,198,160,0.5); animation: livePulse 2.2s ease-out infinite;
}
.sc-app { font-size: 0.72rem; color: #8E867C; font-weight: 600; letter-spacing: 0.02em; }

.sc-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.sc-step {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
  gap: 0.85rem; position: relative; padding-bottom: 1.1rem;
}
.sc-step:last-child { padding-bottom: 0; }
/* connector spine between nodes */
.sc-step:not(:last-child)::before {
  content: ""; position: absolute;
  inset-inline-start: 15px; top: 32px; bottom: -2px;
  width: 2px; background: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}
.sc-node {
  width: 32px; height: 32px; border-radius: 10px; flex: none; z-index: 1;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.sc-node img { width: 18px; height: 18px; display: block; }
.sc-node-done {
  background: rgba(95,143,107,0.22); border-color: rgba(95,143,107,0.45);
  color: #8FC6A0; font-size: 0.85rem; font-weight: 700;
}
.sc-text { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.15rem; }
.sc-t { color: #F1ECE3; font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.sc-s { color: #9A9289; font-size: 0.8rem; line-height: 1.35; }
.sc-step-done .sc-t { color: #9FCBAA; }

@media (max-width: 800px) {
  .dark-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   APPLY — concierge intake (qualify → book). EN + HE share.
   ============================================================ */
.apply { display: flex; justify-content: center; padding: 2.5rem 0 4rem; }
.apply-card {
  width: 100%; max-width: 620px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -34px rgba(42,38,34,0.3);
  overflow: hidden;
}
.apply-progress { height: 4px; background: var(--sunk); }
.apply-progress-bar {
  display: block; height: 100%; width: 0;
  background: var(--gold); transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.apply form { padding: 2.5rem 2.25rem 2rem; }

.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.is-active { display: block; animation: stepIn 0.35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.is-active { animation: none; } }

.apply-q {
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.2; margin: 0.6rem 0 0.5rem; color: var(--ink);
}
.apply-q { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.apply-help { color: var(--dim); font-size: 1rem; margin-bottom: 1.6rem; max-width: 46ch; }

/* Choice buttons — tap = select + auto-advance (no Continue on these steps).
   A trailing radio-style marker shows tappability + fills on select. */
.choices { display: flex; flex-direction: column; gap: 0.7rem; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: start; width: 100%;
  font-family: var(--font-ui); font-size: 1.05rem; font-weight: 500;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 1.05rem 1.2rem; min-height: 56px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease;
}
.choice::after {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); transition: border-color 0.16s ease, background 0.16s ease;
}
.choice:hover { border-color: var(--blue); background: var(--blue-tint); transform: translateY(-1px); }
.choice:hover::after { border-color: var(--blue); }
.choice:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
/* selected flash before auto-advance */
.choice.is-sel {
  border-color: var(--blue); background: var(--blue-tint);
  box-shadow: 0 0 0 1px var(--blue);
}
.choice.is-sel::after {
  border-color: var(--blue); background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--paper);
}

/* Text inputs */
.apply-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.apply-input {
  display: block; width: 100%; margin-top: 0.4rem;
  font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.8rem 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.apply-input::placeholder { color: var(--faint); }
.apply-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.apply-textarea { resize: vertical; line-height: 1.55; }
.apply-err { color: var(--terracotta); font-size: 0.9rem; min-height: 1.2em; margin-top: 0.2rem; }

/* Nav row — only shown on text steps (choice steps auto-advance).
   Primary commits; Back is a quiet text link, never a competing button. */
.apply-nav { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.8rem; }
.apply-nav .btn-primary { margin-inline-start: auto; order: 2; }
.apply-back {
  order: 1;
  background: none; border: none; padding: 0.4rem 0.2rem; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500; color: var(--dim);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.16s ease;
}
.apply-back:hover { color: var(--ink); }
.apply-back[hidden] { display: none; }
/* privacy reassurance under email */
.apply-reassure { font-size: 0.82rem; color: var(--faint); margin-top: 0.6rem; }

/* Done */
.apply-done { text-align: center; padding: 0.5rem 0 0.5rem; }
.apply-check {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.2rem;
  background: rgba(95,143,107,0.14); color: var(--sage);
  font-size: 1.6rem; font-weight: 700;
}
.apply-done .apply-q { margin-top: 0; }
.apply-done .apply-help { margin: 0 auto 1.8rem; }
.apply-book { display: inline-block; }
.apply-fineprint { margin-top: 1.4rem; font-size: 0.9rem; color: var(--dim); }
.apply-fineprint a { color: var(--blue); }

@media (max-width: 520px) {
  .apply form { padding: 2rem 1.4rem 1.6rem; }
}

/* ============================================================
   POLISH PASS — "Who it's for" 3-up + pilot CTA panel.
   Kills the stranded-heading-in-empty-cream look.
   ============================================================ */

/* Text-only "What it is" section: don't leave a 3rem dead gap below */
#what .section-sub { margin-bottom: 0; }

/* Who it's for — heading + 3-up grid */
.section-split .section-title { margin-bottom: 2rem; }
.who-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--paper);
}
.who-item {
  padding: 1.9rem 1.6rem;
  border-inline-end: 1px solid var(--line-soft);
}
.who-item:last-child { border-inline-end: none; }
.who-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.45rem; }
.who-item p { color: var(--dim); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 720px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-item { border-inline-end: none; border-bottom: 1px solid var(--line-soft); }
  .who-item:last-child { border-bottom: none; }
}

/* Pilot CTA panel — a real anchored block, not a stranded heading */
#pilot { padding: 1rem 0 4rem; }
.pilot-panel {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3.25rem 2rem;
  box-shadow: 0 24px 60px -40px rgba(42,38,34,0.3);
  position: relative; overflow: hidden;
}
.pilot-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 50% 0%, var(--gold-tint), transparent 70%);
}
.pilot-panel > * { position: relative; z-index: 1; }
.pilot-panel .eyebrow { border-bottom: none; margin-bottom: 0.75rem; padding-bottom: 0; }
.pilot-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.pilot-sub { color: var(--dim); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.6; }
.pilot-cta { justify-content: center; }

/* Slightly tighter global section rhythm */
.section { padding: 3.5rem 0; }
