/* ============================================================
   CLARIDIAN — Landing  (v3 · white + purple, liquid glass)
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* hidden scrollbar */
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
:where(#see-it, #features){ scroll-margin-top: 88px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:root{
  --cream:        #EFE9DD;
  --cream-2:      #E7E0CF;
  --cream-3:      #F5F0E5;
  --surface:      #FFFFFF;
  --surface-warm: #FAF6EC;

  --ink:          #161B17;
  --ink-2:        #3A413A;
  --ink-3:        #6F6C61;
  --ink-4:        #9C9785;

  --brand:        #5B47D9;
  --brand-2:      #7361E5;
  --brand-3:      #9286EF;
  --brand-tint:   #DAD2F5;
  --brand-wash:   #EEEAFB;

  --line:         #E8E4DC;
  --line-2:       #F0EBE0;

  --ok:           #4F7A3D;
  --ok-tint:      #DDE7D0;
  --warn:         #C8923A;
  --warn-tint:    #F2E5C8;
  --danger:       #B45C53;
  --danger-tint:  #F2D9D5;

  --font-display: "Cabinet Grotesk", "General Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif:   "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

body{
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: #FFFFFF;
}

/* ---- subtle living ambient light ---- */
.bg-mesh{
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  background:
    radial-gradient(38vmax 38vmax at 18% 10%, rgba(218,210,245,.18), transparent 60%),
    radial-gradient(44vmax 44vmax at 82% 6%,  rgba(238,234,251,.22), transparent 62%),
    radial-gradient(50vmax 50vmax at 76% 96%, rgba(250,246,236,.30), transparent 60%),
    radial-gradient(46vmax 46vmax at 6% 92%,  rgba(247,242,232,.30), transparent 60%),
    #FFFFFF;
  filter: saturate(110%);
  animation: drift 34s var(--ease) infinite alternate;
}
.bg-mesh::after{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(28vmax 28vmax at 56% 24%, rgba(146,134,239,.08), transparent 60%),
    radial-gradient(32vmax 32vmax at 32% 76%, rgba(218,210,245,.10), transparent 62%);
  animation: drift2 42s var(--ease) infinite alternate;
}
@keyframes drift{
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
@keyframes drift2{
  0%   { transform: translate3d(0,0,0) scale(1.04); opacity: .85; }
  100% { transform: translate3d(4%, -3%, 0) scale(1); opacity: 1; }
}

/* ============================================================
   liquid-glass surface
============================================================ */
.lg{
  position: relative;
  background:
    linear-gradient(158deg, rgba(255,255,255,.82), rgba(255,255,255,.58) 60%, rgba(255,255,255,.52));
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 -14px 30px rgba(91,71,217,.04),
    0 1px 0 rgba(20,18,10,.03),
    0 22px 50px -26px rgba(40,30,90,.22),
    0 6px 16px -8px rgba(20,18,10,.05);
  overflow: hidden;
}
.lg::after{
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(148deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%),
    radial-gradient(120% 60% at 18% -10%, rgba(255,255,255,.45), transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.lg::before{
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ============================================================
   typography
============================================================ */
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}
.serif{ font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.mono{ font-family: var(--font-mono); }
.eyebrow{
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}

/* ============================================================
   layout shell
============================================================ */
.wrap{ width: min(1180px, 92vw); margin: 0 auto; }
/* matches the nav's horizontal padding so edges align with logo "C" (left) and Open-dashboard button end (right) */
.wrap-wide{
  width: calc(100% - 2 * clamp(20px, 5vw, 60px));
  margin: 0 auto;
}

/* ---- nav: frosted glass bar ---- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 50;
  width: 100%; margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px clamp(20px, 5vw, 60px);
  border-bottom: 1px solid rgba(20,18,10,.06);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}
.brand-mark{
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px;
  letter-spacing: -.02em; color: var(--ink);
  justify-self: start;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
}
.brand-logo{
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(91,71,217,.28));
  flex-shrink: 0;
}
.brand-word{ color: var(--brand); font-family: var(--font-display); font-weight: 800; font-style: normal; }
.brand-mark span{ color: var(--brand); }
.brand-mark span.serif{ font-size: 23px; margin-left: 1px; }
.nav-links{ display: flex; gap: 4px; justify-self: center; }
.nav-links a{
  padding: 8px 16px; border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover{ background: rgba(91,71,217,.08); color: var(--ink); }
.nav-cta{ display: flex; align-items: center; gap: 18px; justify-self: end; }
.nav-text{
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: color .2s var(--ease);
}
.nav-text:hover{ color: var(--ink); }

/* ---- buttons ---- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  cursor: pointer;
}
.btn--primary{
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(91,71,217,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(91,71,217,.75); }
.btn--dark{
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(22,27,23,.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn--dark:hover{ background: #0d110e; transform: translateY(-2px); }
.btn--ghost{
  background: rgba(255,255,255,.68); color: var(--ink);
  border: 1px solid rgba(240,238,230,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px -16px rgba(22,27,23,.3);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.btn--ghost:hover{ transform: translateY(-2px); background: rgba(255,255,255,.85); }
.btn--lg{ padding: 15px 30px; font-size: 16px; }
.btn--cta-cream{
  background: var(--cream); color: var(--ink);
  font-weight: 700;
  box-shadow: 0 14px 28px -14px rgba(20,18,10,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--cta-cream:hover{ transform: translateY(-2px); background: #F5F0E5; }

/* ---- orbiting border glow ---- */
@property --a{ syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cta-glow{
  position: relative; z-index: 0;
  box-shadow: 0 0 0 1.5px rgba(91,71,217,.45), 0 0 22px -2px rgba(91,71,217,.4);
  animation: glow-breathe 2.8s var(--ease) infinite;
}
/* vivid orbiting rim — masked to the border only, so the black interior stays clean */
.cta-glow::before{
  content: ""; position: absolute; inset: -2px;
  border-radius: inherit; z-index: 2; padding: 2px;
  background: conic-gradient(from var(--a),
              transparent 0deg 110deg,
              var(--brand) 170deg,
              #c4b8ff 220deg,
              #fff 255deg,
              #c4b8ff 290deg,
              var(--brand-3) 330deg,
              transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: orbit 2.4s linear infinite;
  pointer-events: none;
}
.cta-glow:hover{ transform: translateY(-2px); }
@keyframes orbit{ to{ --a: 360deg; } }
@keyframes glow-breathe{
  0%, 100%{ box-shadow: 0 0 0 1.5px rgba(91,71,217,.45), 0 0 22px -2px rgba(91,71,217,.4); }
  50%     { box-shadow: 0 0 0 2px rgba(91,71,217,.65), 0 0 30px 0 rgba(91,71,217,.5); }
}

/* ============================================================
   hero — full-screen, brain centerpiece, overlapping headline
   (Pioneer "CORN. REVOLUTIONIZED." composition)
============================================================ */
.hero{
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(96px, 13vh, 140px) 20px clamp(70px, 11vh, 120px);
  overflow: hidden;
}

/* soft ambient halo behind the brain */
.hero-glow{
  position: absolute;
  top: 46%; left: 50%;
  width: min(140vh, 1320px); height: min(140vh, 1320px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(146,134,239,.20), rgba(146,134,239,.07) 55%, transparent 72%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

/* the brain gif: large, centralised, behind the text */
.hero-brain{
  position: absolute;
  top: 47%; left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(560px, 100vh, 1060px);
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: .92;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  animation: heroBrainFloat 9s var(--ease) infinite alternate;
}
@keyframes heroBrainFloat{
  0%   { transform: translate(-50%, -50%); }
  100% { transform: translate(-50%, calc(-50% - 14px)); }
}

/* content sits above the brain; its own scrim lifts the text off the dark gyri */
.hero-content{
  position: relative;
  z-index: 3;
  width: min(1180px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content::before{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 320%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
              rgba(255,255,255,.82) 0%,
              rgba(255,255,255,.55) 42%,
              rgba(255,255,255,0) 74%);
  z-index: -1;
  pointer-events: none;
}

.hero-title-wrap{ position: relative; display: inline-block; }
.hero-canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; opacity: 0;
  transition: opacity .5s var(--ease);
}
.hero-title-wrap.particles .hero-canvas{ opacity: 1; }
.hero-title-wrap.particles .hero-title{ opacity: 0; }
.hero-title{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(52px, 12.5vw, 168px);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 0;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(255,255,255,.7), 0 1px 0 rgba(255,255,255,.5);
}
.hero-dot{ color: var(--brand); }

.hero-sub{
  margin: clamp(18px, 2.6vh, 30px) auto 0;
  font-size: clamp(15px, 1.9vw, 20px);
  font-weight: 500;
  color: var(--ink);
  max-width: 46ch;
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(255,255,255,.8);
}
.hero-cta{
  position: absolute;
  left: 50%;
  bottom: clamp(82px, 13vh, 150px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 16px;
  flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: 94vw;
}
.hero-cta::before{
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 170%; height: 340%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(255,255,255,0) 72%);
  z-index: -1; pointer-events: none;
}

/* scroll cue, anchored to the bottom of the screen */
.hero-scroll{
  position: absolute;
  left: 50%; bottom: clamp(22px, 4vh, 40px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--ink-3);
  font: 600 11px/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase;
  transition: color .25s var(--ease);
}
.hero-scroll:hover{ color: var(--brand); }
.hero-scroll-line{
  width: 1.5px; height: 40px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ink-4), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after{
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 45%;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: heroScroll 1.8s var(--ease) infinite;
}
@keyframes heroScroll{
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

/* ============================================================
   product preview (live assessment card)
============================================================ */
.preview-wrap{ display: flex; justify-content: center; margin: 14px auto 8px; }
.preview-wrap .assess-card{ width: min(560px, 100%); }
.assess-card{ border-radius: var(--r-5); padding: 26px; }
.assess-head{ display: flex; align-items: center; justify-content: space-between; }
.assess-head .tag{
  font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--brand-wash); padding: 5px 11px; border-radius: var(--r-pill);
}
.assess-head .when{ font-size: 12px; color: var(--ink-4); }
.gauge-wrap{ position: relative; height: 150px; margin: 8px 0 4px; }
.gauge-svg{ width: 100%; height: 100%; overflow: visible; }
.gauge-num{ position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; }
.gauge-num b{
  font-family: var(--font-display); font-size: 42px; font-weight: 800; color: var(--warn);
  letter-spacing: -.02em;
}
.gauge-num small{ display: block; font-size: 12.5px; color: var(--ink-3); margin-top: -4px; letter-spacing: .04em; }
.metric-rows{ margin-top: 6px; display: grid; gap: 12px; }
.metric{ display: grid; grid-template-columns: 116px 1fr 30px; align-items: center; gap: 12px; }
.metric span:first-child{ font-size: 12.5px; color: var(--ink-3); }
.metric .track{ height: 7px; border-radius: var(--r-pill); background: var(--line-2); overflow: hidden; }
.metric .fill{
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  border-radius: inherit;
  transition: width 1.1s var(--ease);
}
.metric .val{ font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); text-align: right; }

/* ============================================================
   features grid
============================================================ */
.features{ padding: 40px 0 80px; }
.section-head{ text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 42px); }
.section-head p{ color: var(--ink-3); margin-top: 12px; font-size: 17px; }
.demo-head{ padding-top: 72px; margin-bottom: 0; }

.grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.feature{
  border-radius: var(--r-5);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  /* mouse glow */
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
  /* 3D tilt */
  --rx: 0deg;
  --ry: 0deg;
  transform-style: preserve-3d;
  perspective: 800px;
  /* top row: each card spans 2 of 6 cols */
  grid-column: span 2;
}
/* mouse-following glow layer */
.feature>.glow-layer{
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(340px circle at var(--glow-x) var(--glow-y),
              rgba(91,71,217,.18), transparent 60%);
  opacity: var(--glow-opacity);
  transition: opacity .4s var(--ease);
}
.feature:hover{
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px) scale(1.012);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 30px 60px -24px rgba(91,71,217,.35),
    0 8px 20px -8px rgba(20,18,10,.07);
}

/* bottom row: each card spans 3 of 6 cols = perfect 50/50 */
@media (min-width: 901px){
  .feature.bottom-a{ grid-column: span 3; }
  .feature.bottom-b{ grid-column: span 3; }
}

.f-icon{
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand-wash), var(--brand-tint));
  border: 1px solid rgba(255,255,255,.7);
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  position: relative; z-index: 2;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.f-icon svg{ width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 1.8; transition: transform .35s var(--ease); }
/* icon comes alive on card hover */
.feature:hover .f-icon{
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  box-shadow: 0 8px 20px -8px rgba(91,71,217,.5), inset 0 1px 0 rgba(255,255,255,.25);
  transform: scale(1.08);
}
.feature:hover .f-icon svg{
  stroke: #fff;
  transform: rotate(-6deg) scale(1.1);
}
.feature h3{ font-size: 22px; margin: 18px 0 0; position: relative; z-index: 2; }
.feature p{ color: var(--ink-3); margin: 10px 0 0; font-size: 15px; position: relative; z-index: 2; }
.f-live{ margin-top: auto; padding-top: 22px; position: relative; z-index: 2; }

/* ---- live: terminal ---- */
.term{
  background: var(--surface-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 16px 18px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8;
  color: var(--ink-2); min-height: 96px;
}
.term .k{ color: var(--brand); }
.term .ok{ color: var(--ok); }
.caret{ display: inline-block; width: 8px; height: 15px; background: var(--brand); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity: 0; } }

/* ---- live: triage routing ---- */
.route{ display: grid; gap: 10px; }
.route-row{
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 13px 15px; font-size: 14px; color: var(--ink-2);
  opacity: 0; transform: translateY(8px);
}
.route-row.in{ opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.route-row .pip{ width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pip-high{ background: var(--danger); box-shadow: 0 0 0 4px var(--danger-tint); animation: pip-pulse-high 2.4s var(--ease) infinite; }
.pip-mod { background: var(--warn);   box-shadow: 0 0 0 4px var(--warn-tint); animation: pip-pulse-mod 2.4s var(--ease) infinite .4s; }
.pip-low { background: var(--ok);     box-shadow: 0 0 0 4px var(--ok-tint); animation: pip-pulse-low 2.4s var(--ease) infinite .8s; }
@keyframes pip-pulse-high{
  0%, 100%{ box-shadow: 0 0 0 4px var(--danger-tint); }
  50%{ box-shadow: 0 0 0 7px var(--danger-tint), 0 0 12px 2px rgba(180,92,83,.3); }
}
@keyframes pip-pulse-mod{
  0%, 100%{ box-shadow: 0 0 0 4px var(--warn-tint); }
  50%{ box-shadow: 0 0 0 7px var(--warn-tint), 0 0 12px 2px rgba(200,146,58,.3); }
}
@keyframes pip-pulse-low{
  0%, 100%{ box-shadow: 0 0 0 4px var(--ok-tint); }
  50%{ box-shadow: 0 0 0 7px var(--ok-tint), 0 0 12px 2px rgba(79,122,61,.3); }
}
.route-row b{ font-weight: 600; color: var(--ink); }

/* ---- live: bar chart ---- */
.bars{
  display: flex; align-items: flex-end; gap: 10px; height: 130px;
  padding: 14px 16px;
  background: var(--surface-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-3);
}
.bar{
  flex: 1; border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--brand-3), var(--brand));
  height: 8%; transition: height 1s var(--ease);
  align-self: flex-end;
}

/* ---- live: model layer selector ---- */
.layers{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.layer{
  background: var(--surface-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 14px; font-size: 13.5px; color: var(--ink-3); font-weight: 600;
  display: flex; align-items: center; gap: 9px;
  transition: all .3s var(--ease);
}
.layer .n{ font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); }
.layer.active{
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 24px -14px rgba(91,71,217,.8);
}
.layer.active .n{ color: rgba(255,255,255,.7); }

/* ---- live: health plan timeline ---- */
.hp-timeline{ display: grid; gap: 10px; }
.hp-row{
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-warm); border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  padding: 13px 15px; font-size: 13.5px; color: var(--ink-2);
  opacity: 0; transform: translateX(14px);
}
.hp-row.in{ opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hp-row .hp-icon{
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; flex: none;
}
.hp-icon.cbt{ background: var(--brand-wash); color: var(--brand); animation: hp-icon-pulse 3s var(--ease) infinite; }
.hp-icon.sleep{ background: #E0E7F2; color: #4369A4; animation: hp-icon-pulse 3s var(--ease) infinite .6s; }
.hp-icon.follow{ background: var(--ok-tint); color: var(--ok); animation: hp-icon-pulse 3s var(--ease) infinite 1.2s; }
@keyframes hp-icon-pulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.12); }
}
.hp-row b{ font-weight: 600; color: var(--ink); }
.hp-row small{ color: var(--ink-4); font-size: 12px; margin-left: auto; white-space: nowrap; }

/* ============================================================
   parallax sections
============================================================ */
.parallax-section{
  will-change: transform;
}

/* ============================================================
   reveal on scroll
============================================================ */
.reveal{ opacity: 0; transform: translateY(28px); }
.reveal.in{ opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ============================================================
   CTA band — deep purple gradient with animated light blobs
============================================================ */
.cta-band{
  border-radius: var(--r-5);
  padding: 68px 44px;
  text-align: center;
  margin: 0 0 60px;
  position: relative;
  overflow: hidden;
  /* darker gradient */
  background: linear-gradient(145deg, #1A1040 0%, #2A1D6B 25%, #3B2A8A 50%, #2A1D6B 75%, #140C30 100%);
  box-shadow:
    0 32px 70px -28px rgba(20,12,48,.7),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  /* mouse glow vars */
  --cta-glow-x: 50%;
  --cta-glow-y: 50%;
  --cta-glow-opacity: 0;
}
/* mouse-following glow inside CTA band */
.cta-glow-layer{
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--cta-glow-x) var(--cta-glow-y),
              rgba(146,134,239,.28), transparent 55%);
  opacity: var(--cta-glow-opacity);
  transition: opacity .5s var(--ease);
}
/* gold sweep: a warm light traveling right to left */
.gold-sweep{
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background: linear-gradient(105deg,
              transparent 0%,
              transparent 30%,
              rgba(218,180,80,.22) 42%,
              rgba(255,215,100,.18) 50%,
              rgba(218,180,80,.22) 58%,
              transparent 70%,
              transparent 100%);
  background-size: 250% 100%;
  animation: gold-sweep-move 4.5s var(--ease) infinite;
}
@keyframes gold-sweep-move{
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
.cta-band::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(24vmax 24vmax at 22% 40%, rgba(146,134,239,.35), transparent 60%),
    radial-gradient(20vmax 20vmax at 78% 60%, rgba(91,71,217,.45), transparent 55%),
    radial-gradient(16vmax 16vmax at 88% 28%, rgba(200,146,58,.28), transparent 55%);
  animation: cta-blobs 12s var(--ease) infinite alternate;
  z-index: 0;
}
.cta-band::after{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(18vmax 18vmax at 12% 70%, rgba(200,146,58,.22), transparent 55%),
    radial-gradient(22vmax 22vmax at 60% 10%, rgba(218,210,245,.15), transparent 60%);
  animation: cta-blobs2 16s var(--ease) infinite alternate;
  z-index: 0;
}
@keyframes cta-blobs{
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-6%, 4%, 0) scale(1.12); }
}
@keyframes cta-blobs2{
  0%   { transform: translate3d(0,0,0) scale(1.08); }
  100% { transform: translate3d(5%, -3%, 0) scale(1); }
}
.cta-band h2{
  font-size: clamp(28px, 4vw, 48px);
  color: #fff; position: relative; z-index: 1;
}
.cta-band h2 .serif{ color: var(--brand-tint); }
.cta-band .cta-sub{
  color: rgba(255,255,255,.62);
  margin: 14px auto 30px; max-width: 48ch;
  font-size: 17px;
  position: relative; z-index: 1;
}
.cta-band .btn{ position: relative; z-index: 1; }

/* ============================================================
   footer
============================================================ */
.foot{
  border-top: 1px solid var(--line);
  padding: 34px 0 56px; color: var(--ink-3); font-size: 14px;
}
.foot-row{
  display: flex; justify-content: space-between; gap: 24px;
  align-items: center;
}
.foot-row-2{ margin-top: 16px; align-items: center; }
.foot-left{
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; color: var(--ink-2); letter-spacing: -.01em;
}
.foot-right{
  font-size: 13px; color: var(--ink-4); text-align: right;
}
.foot-socials{
  display: flex; gap: 12px; flex-shrink: 0;
}
.social-link{
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--ink-3);
  background: rgba(91,71,217,.06);
  border: 1px solid rgba(91,71,217,.1);
  transition: all .25s var(--ease);
}
.social-link:hover{
  color: var(--brand);
  background: var(--brand-wash);
  border-color: var(--brand-tint);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(91,71,217,.35);
}
.disclaimer{
  margin: 0; font-size: 12.5px; color: var(--ink-4);
  max-width: 84ch; line-height: 1.6;
}

/* ============================================================
   responsive
============================================================ */
@media (max-width: 900px){
  .hero-sub{ max-width: 38ch; }
  .hero-brain{ height: clamp(440px, 70vh, 680px); opacity: .88; }
  .grid{ grid-template-columns: 1fr; }
  .feature{ min-height: 0; grid-column: span 1; }
  .nav-links{ display: none; }
  .nav-text{ display: none; }
  .metric{ grid-template-columns: 100px 1fr 30px; }

  /* below this width the nav switches from a 3-col grid to a simple row;
     allow wrapping so content can never silently overflow the viewport
     (which otherwise requires the user to pinch-zoom out to reach it) */
  .nav{
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center;
    row-gap: 8px;
    max-width: 100vw; box-sizing: border-box;
  }
  .brand-mark{ min-width: 0; flex-shrink: 1; }
  .nav-cta{ flex-shrink: 0; }
}

@media (max-width: 560px){
  .nav{ padding: 13px 16px; }
  .nav-cta{ gap: 0; }
  .nav .btn--dark{ padding: 9px 15px; font-size: 13.5px; }
  .brand-mark{ font-size: 18px; }

  /* keep the hero a fixed viewport-height box so the gif and the text
     that sits on top of it always share the same centre point */
  .hero{
    height: 100vh;
    min-height: 600px;
    padding: 0 18px;
  }
  .hero-brain{ height: clamp(320px, 52vh, 480px); }

  /* text is centred on the same point as the brain gif, so it always
     lays directly over it instead of drifting apart */
  .hero-content{
    position: absolute;
    top: 47%; left: 50%;
    transform: translate(-50%, -50%);
    width: 97vw;
    align-items: center; text-align: center;
  }
  .hero-title{
    white-space: nowrap;
    font-size: clamp(34px, 11.8vw, 60px);
    text-shadow: 0 1px 14px rgba(255,255,255,.8), 0 1px 0 rgba(255,255,255,.5);
  }
  .hero-sub{
    max-width: 30ch; margin-left: auto; margin-right: auto;
    text-shadow: 0 1px 8px rgba(255,255,255,.9);
  }

  /* CTAs sit side by side, anchored well clear of the bottom edge */
  .hero-cta{
    left: 50%; bottom: clamp(112px, 24vh, 164px);
    transform: translateX(-50%);
    width: 100%; max-width: 380px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .hero-cta .btn{
    flex: 1 1 0; width: auto; max-width: none;
    padding: 12px 10px;
    font-size: 12.5px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
  }

  /* scroll disclaimer/animation stays visible, below the CTAs, well clear of the bottom edge */
  .hero-scroll{
    display: flex;
    left: 50%; bottom: clamp(58px, 12vh, 86px);
    transform: translateX(-50%);
  }

  .preview-wrap .assess-card{ padding: 20px; }
  .cta-band{ padding: 48px 22px; }
  .foot-row{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-right{ text-align: left; }
}

@media (prefers-reduced-motion: reduce){
  .bg-mesh, .bg-mesh::after{ animation: none; }
  .caret{ animation: none; }
  .cta-glow, .cta-glow::before, .cta-glow::after{ animation: none; }
  .cta-band::before, .cta-band::after{ animation: none; }
  .gold-sweep{ animation: none; }
  .pip-high, .pip-mod, .pip-low{ animation: none; }
  .hp-icon.cbt, .hp-icon.sleep, .hp-icon.follow{ animation: none; }
  .hero-brain{ animation: none; }
  .hero-scroll-line::after{ animation: none; }
  .ob-seg.current{ animation: none; }
  *{ transition: none !important; }
}

/* ============================================================
   MacBook Air 15" — fully CSS-built (sky blue, notch, menu bar,
   dashboard window, dock) in the style of Apple's product pages
============================================================ */
.macbook-section{
  padding: 26px 0 70px;
  margin-top: 0;
  display: flex; justify-content: center;
}
.macbook-wrap{
  width: min(880px, 92vw);
  position: relative;
}

/* ---- chassis ---- */
.mba{
  position: relative;
  width: 100%;
  filter: drop-shadow(0 40px 50px rgba(30, 40, 80, 0.20));
  /* scroll progress 0 -> 1 */
  --open: 0;
}

/* lid: the display assembly — black bezel like the real machine */
.mba__lid{
  position: relative;
  width: 88%;
  margin: 0 auto;
  background: linear-gradient(180deg, #161618 0%, #0A0A0C 100%);
  border-radius: 16px 16px 0 0;
  padding: 8px 8px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 0 0 1px rgba(0,0,0,.65),
    0 0 0 1px rgba(120,150,175,.25);
}
.mba__screen{
  position: relative;
  background: #000;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 10.2;
}

/* notch */
.mba__notch{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 17%;
  height: 16px;
  background: #000;
  border-radius: 0 0 9px 9px;
  z-index: 30;
  display: flex; align-items: center; justify-content: center;
}
.mba__cam{
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #1c2733;
  box-shadow: inset 0 0 2px #000, 0 0 1px rgba(90,140,255,.6);
}

/* ---- macOS desktop ---- */
.mba__desktop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 75% 0%, #C9E4F5 0%, transparent 55%),
    radial-gradient(110% 100% at 15% 100%, #7FB4D6 0%, transparent 60%),
    linear-gradient(160deg, #AFD3EA 0%, #8FBEDC 45%, #6FA8CC 100%);
  display: flex;
  flex-direction: column;
  opacity: calc(var(--open, 0) * 1);
  transition: opacity .6s var(--ease);
}

/* menu bar */
.mba__menubar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 17px;
  padding: 0 10px 0 12px;
  background: rgba(250, 252, 255, .68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 7.5px;
  color: #1c1c1e;
  flex: none;
  position: relative;
  z-index: 10;
}
.mba__menubar-left{
  display: flex; align-items: center; gap: 9px;
}
.mba__menubar-left b{ font-weight: 700; }
.mba__menubar-left span{ font-weight: 500; color: #3a3a3c; }
.mba__apple{ width: 9px; height: 9px; color: #1c1c1e; }
.mba__appicon{ width: 12px; height: 12px; object-fit: contain; margin-right: -3px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.mba__menubar-right{
  display: flex; align-items: center; gap: 7px;
  font-weight: 500; color: #1c1c1e;
}
.mba__menubar-right svg{ width: 10px; height: 10px; }
/* battery indicator */
.mba__battery{
  display: inline-flex; align-items: center; gap: 1.5px;
}
.mba__battery-body{
  width: 14px; height: 7px;
  border: 1px solid rgba(28,28,30,.55);
  border-radius: 2px;
  position: relative;
  padding: 1px;
}
.mba__battery-fill{
  position: absolute; inset: 1px;
  right: 30%;
  background: #1c1c1e;
  border-radius: 1px;
}
.mba__battery-tip{
  width: 1.5px; height: 3.5px;
  background: rgba(28,28,30,.55);
  border-radius: 0 1px 1px 0;
}
/* control centre toggle pill icon */
.mba__cc{
  width: 10px; height: 10px;
}

/* ---- dashboard window ---- */
.mba__window{
  width: 94%;
  margin: 7px auto 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #FBFAF7;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.18),
    0 18px 40px -12px rgba(10, 25, 45, .45),
    0 4px 12px -4px rgba(10, 25, 45, .3);
  /* window pops in slightly after the desktop */
  opacity: calc(var(--open, 0) * 1);
  transform: translateY(calc((1 - var(--open, 0)) * 14px)) scale(calc(.96 + var(--open, 0) * .04));
  transition: opacity .55s var(--ease) .15s, transform .55s var(--ease) .15s;
}
.mba__window-bar{
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: linear-gradient(180deg, #F2EFE9, #E9E5DD);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mba__traffic{ display: flex; gap: 5px; }
.mba__traffic span{ width: 8px; height: 8px; border-radius: 50%; }
.mba__traffic span:nth-child(1){ background: #ff5f57; box-shadow: inset 0 0 1px rgba(0,0,0,.2); }
.mba__traffic span:nth-child(2){ background: #febc2e; box-shadow: inset 0 0 1px rgba(0,0,0,.2); }
.mba__traffic span:nth-child(3){ background: #28c840; box-shadow: inset 0 0 1px rgba(0,0,0,.2); }
.mba__window-title{
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #5c5a55;
  letter-spacing: .01em;
}
.mba__window-title b{ color: var(--brand); }
.mba__window-spacer{ width: 34px; }
.mba__window-body{
  position: relative;
  flex: 1; min-height: 0;
  padding: 0;
  background: #FBFAF7;
  overflow: hidden;
}
.mba__demo{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}

/* gauge + sliders inside the window */
.dp-gauge-wrap{ position: relative; }
.dp-gauge{ width: 100%; }
.dp-val{
  position: absolute; bottom: 2px; left: 0; right: 0;
  text-align: center;
}
.dp-val b{ font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--warn); }
.dp-val small{ display: block; font-size: 8.5px; color: var(--ink-3); letter-spacing: .05em; margin-top: -1px; }
.dp-sliders{ display: grid; gap: 9px; }
.dp-slider{ display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--ink-3); }
.dp-slider span{ min-width: 64px; }
.dp-track{ flex: 1; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.dp-fill{ height: 100%; background: linear-gradient(90deg, var(--brand-3), var(--brand)); border-radius: inherit; transition: width 1.4s var(--ease); }

/* ============================================================
   LIVE DEMO — Anna Ward mini dashboard inside the MacBook
============================================================ */
.dm{ font-size: 8px; color: var(--ink); line-height: 1.2; }
.dm-top{ display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.dm-brand{ display: flex; align-items: center; gap: 5px; }
.dm-brand img{ width: 14px; height: 14px; object-fit: contain; }
.dm-brand span{ font-family: var(--font-display); font-weight: 800; font-size: 10px; letter-spacing: .03em; }
.dm-nav{ display: flex; gap: 11px; font-size: 8px; font-weight: 600; color: var(--ink-3); }
.dm-nav b.on{ color: var(--brand); }
.dm-user{ display: flex; align-items: center; gap: 6px; }
.dm-u-meta{ text-align: right; line-height: 1.05; }
.dm-u-meta b{ display: block; font-size: 8px; font-weight: 700; }
.dm-u-meta i{ font-style: normal; font-size: 7px; color: var(--ink-4); }
.dm-ava{ width: 17px; height: 17px; border-radius: 50%; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 700; font-size: 8.5px; display: grid; place-items: center; }
.dm-welcome{ flex: none; }
.dm-welcome h4{ margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; }
.dm-welcome em{ font-style: normal; color: var(--brand); }
.dm-welcome p{ margin: 2px 0 0; font-size: 8px; color: var(--ink-3); }

.dm-grid{ display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 8px; flex: none; }
.dm-card{ background: #fff; border: 1px solid rgba(40,30,90,.10); border-radius: 9px; padding: 8px 10px; box-shadow: 0 8px 18px -14px rgba(20,18,40,.5); }
.dm-ct{ display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 8px; color: var(--ink-2); margin-bottom: 5px; }
.dm-ct .dm-dot{ width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--brand-2), var(--brand)); }
.dm-ct-r{ margin-left: auto; font-style: normal; font-weight: 600; font-size: 7px; color: var(--ink-4); }

/* gauge card */
.dm-gauge-card .dp-gauge-wrap{ max-width: 150px; margin: 2px auto 0; }
.dm-gauge-card .dp-val b{ font-size: 22px; }
.dm-gauge-card .dp-val small{ font-size: 7.5px; }

/* radar card */
.dm-radar-wrap{ position: relative; display: grid; place-items: center; }
.dm-radar{ width: 100%; max-width: 150px; display: block; }
.dm-ring{ fill: none; stroke: rgba(91,71,217,.16); stroke-width: 1; }
.dm-axes line{ stroke: rgba(91,71,217,.14); stroke-width: 1; }
.dm-value{ fill: rgba(217,154,31,.22); stroke: #d99a1f; stroke-width: 2.4; stroke-linejoin: round; transform-origin: 100px 100px; animation: dmRadarPulse 4.5s var(--ease) infinite; }
@keyframes dmRadarPulse{ 0%,100%{ transform: scale(.95); } 50%{ transform: scale(1); } }
.dm-vdot{ fill: #d99a1f; stroke: #fff; stroke-width: 1.5; animation: dmDotPulse 4.5s var(--ease) infinite; }
@keyframes dmDotPulse{ 0%,100%{ opacity: .55; } 50%{ opacity: 1; } }
.dm-rtip{ position: absolute; top: 6%; right: -2%; display: flex; align-items: center; gap: 5px; background: #0f0d18; color: #ece9f6; border: 1px solid #d99a1f; border-radius: 6px; padding: 3px 6px; font-size: 7px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); animation: dmTipFade 4.5s var(--ease) infinite; }
.dm-rtip i{ font-style: normal; }
.dm-rtip b{ color: #f0b84a; font-weight: 700; }
@keyframes dmTipFade{ 0%,18%{ opacity: 0; transform: translateY(3px); } 32%,72%{ opacity: 1; transform: translateY(0); } 88%,100%{ opacity: 0; } }

/* globe card */
.dm-globe{ display: grid; place-items: center; }
.dm-globe-svg{ width: 100%; max-width: 92px; display: block; filter: drop-shadow(0 5px 10px rgba(40,30,90,.25)); }
.dm-sphere{ fill: url(#dmSph); }
.dm-wire ellipse{ fill: none; stroke: rgba(91,71,217,.30); stroke-width: .8; }
.dm-mer{ animation: dmMer 6s linear infinite; }
.dm-mer.m1{ animation-delay: 0s; }
.dm-mer.m2{ animation-delay: -1.5s; }
.dm-mer.m3{ animation-delay: -3s; }
.dm-mer.m4{ animation-delay: -4.5s; }
@keyframes dmMer{ 0%{ rx: 52; opacity: .06; } 25%{ rx: 26; opacity: .55; } 50%{ rx: 0; opacity: .06; } 75%{ rx: 26; opacity: .55; } 100%{ rx: 52; opacity: .06; } }
.dm-rim{ fill: none; stroke: rgba(91,71,217,.38); stroke-width: 1.4; }
.dm-uk{ fill: var(--brand); }
.dm-uk-pulse{ fill: var(--brand); opacity: .45; transform-origin: 74px 42px; animation: dmPing 2.6s var(--ease) infinite; }
@keyframes dmPing{ 0%{ transform: scale(.5); opacity: .55; } 100%{ transform: scale(2.6); opacity: 0; } }
.dm-bars{ margin-top: 7px; display: grid; gap: 4px; }
.dm-bar{ display: flex; align-items: center; gap: 5px; font-size: 7px; color: var(--ink-3); }
.dm-bar i{ font-style: normal; min-width: 40px; }
.dm-bar span{ flex: 1; height: 5px; background: #ece8de; border-radius: 99px; overflow: hidden; }
.dm-bar b{ display: block; height: 100%; border-radius: 99px; }
.dm-bar b.amber{ background: linear-gradient(90deg, #e6b13e, #cf8f1f); animation: dmBarA 1.4s var(--ease) forwards .4s; }
.dm-bar b.amber.lo{ animation: dmBarB 1.4s var(--ease) forwards .55s; }
.dm-bar u{ text-decoration: none; font-weight: 700; font-size: 7px; color: var(--ink-2); min-width: 18px; text-align: right; }
@keyframes dmBarA{ from{ width: 0; } to{ width: 50%; } }
@keyframes dmBarB{ from{ width: 0; } to{ width: 45%; } }

/* health plan timeline */
.dm-plan{ flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-tl{ position: relative; flex: 1; min-height: 48px; overflow: hidden; border-radius: 7px; margin-top: 3px; }
.dm-tl-track{ position: absolute; inset: 0; width: 820px; animation: dmScroll 11s var(--ease) infinite alternate; }
@keyframes dmScroll{ 0%,7%{ transform: translateX(0); } 93%,100%{ transform: translateX(-285px); } }
.dm-grid-l{ position: absolute; top: 4px; bottom: 17px; width: 0; border-left: 1px dashed rgba(40,30,90,.18); }
.dm-chip{ position: absolute; top: 36%; transform: translateY(-50%); white-space: nowrap; font-size: 7.5px; font-weight: 700; color: #fff; padding: 5px 8px; border-radius: 7px; box-shadow: 0 6px 14px -8px rgba(20,18,10,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.dm-chip.blue{ background: linear-gradient(150deg, #6f7bff, #4f5bdb); }
.dm-chip.mod{ background: linear-gradient(150deg, #e6b13e, #cf8f1f); color: #3a2a08; }
.dm-chip.low{ background: linear-gradient(150deg, #39b98a, #268a66); }
.dm-chip.brand{ background: linear-gradient(150deg, #8d6bff, #6b4bd6); }
.dm-tl-labels{ position: absolute; inset: 0; }
.dm-tl-labels span{ position: absolute; bottom: 0; transform: translateX(-50%); font-size: 7px; font-family: var(--font-mono); color: var(--ink-4); }
.dm-tl-labels span:first-child{ transform: translateX(0); }

/* roaming cursor */
.dm-cursor{ position: absolute; width: 15px; height: 15px; left: 40%; top: 38%; fill: #16151c; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); pointer-events: none; z-index: 25; animation: dmCursor 12s var(--ease) infinite; }
@keyframes dmCursor{
  0%   { left: 40%; top: 38%; transform: scale(1); }
  10%  { left: 42%; top: 50%; transform: scale(1); }
  14%  { transform: scale(.82); } 18%{ transform: scale(1); }
  38%  { left: 76%; top: 52%; transform: scale(1); }
  43%  { transform: scale(.82); } 47%{ transform: scale(1); }
  70%  { left: 28%; top: 86%; transform: scale(1); }
  75%  { transform: scale(.82); } 79%{ transform: scale(1); }
  100% { left: 40%; top: 38%; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .dm-value,.dm-vdot,.dm-rtip,.dm-mer,.dm-uk-pulse,.dm-tl-track,.dm-cursor{ animation: none !important; }
  .dm-bar b.amber{ width: 50%; } .dm-bar b.amber.lo{ width: 45%; }
}

/* ---- dock ---- */
.mba__dock{
  margin: 6px auto 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: .5px solid rgba(255,255,255,.55);
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgba(10,25,45,.35);
  /* dock slides up after the window */
  opacity: calc(var(--open, 0) * 1);
  transform: translateY(calc((1 - var(--open, 0)) * 10px));
  transition: opacity .5s var(--ease) .3s, transform .5s var(--ease) .3s;
}
.dk{
  width: 19px; height: 19px;
  border-radius: 5px;
  flex: none;
  position: relative;
  box-shadow: 0 1px 2.5px rgba(0,0,0,.22);
  transition: transform .25s var(--ease);
}
.mba__dock:hover .dk:hover{ transform: scale(1.3) translateY(-4px); }

/* Finder — two-tone blue face */
.dk-finder{
  background: linear-gradient(90deg, #8EDBFC 0 50%, #2D9BF0 50% 100%);
  overflow: hidden;
}
.dk-finder::before{
  /* eyes */
  content: "";
  position: absolute;
  top: 27%; left: 31%;
  width: 1.7px; height: 4.2px;
  background: #14365C;
  border-radius: 2px;
  box-shadow: 6.5px 0 0 #14365C;
}
.dk-finder::after{
  /* smile: a wide shallow arc */
  content: "";
  position: absolute;
  left: 20%; right: 20%;
  bottom: 30%;
  height: 22%;
  border-bottom: 1.5px solid #14365C;
  border-radius: 50%;
}

/* Safari — blue dial w/ tick ring + red/white needle */
.dk-safari{
  background:
    radial-gradient(circle at 50% 38%, #CFE9FF 0%, #59A7F2 38%, #1668D9 100%);
  overflow: hidden;
}
.dk-safari::before{
  /* tick ring */
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(255,255,255,.85) 0deg 2deg, transparent 2deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
          mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.dk-safari::after{
  /* needle */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 3px;
  background: linear-gradient(90deg, #fff 0 50%, #FF3B30 50% 100%);
  transform: translate(-50%, -50%) rotate(-45deg);
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}

/* Mail — blue gradient + white envelope */
.dk-mail{ background: linear-gradient(180deg, #1D9BF6, #0A60C8); }
.dk-mail::before{
  content: "";
  position: absolute;
  inset: 27% 18%;
  background: #fff;
  border-radius: 1.5px;
}
.dk-mail::after{
  content: "";
  position: absolute;
  top: 27%; left: 18%; right: 18%;
  height: 46%;
  background: linear-gradient(135deg, transparent 46%, #cfe4f7 47% 53%, transparent 54%),
              linear-gradient(225deg, transparent 46%, #cfe4f7 47% 53%, transparent 54%);
}

/* Photos — colour flower */
.dk-photos{
  background: #fff;
  overflow: hidden;
}
.dk-photos::before{
  content: "";
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: conic-gradient(
    #FFB300 0 45deg, #F4D03F 45deg 90deg, #9CCC2E 90deg 135deg,
    #34B96F 135deg 180deg, #2BA8C4 180deg 225deg, #7E6BC4 225deg 270deg,
    #C45BA0 270deg 315deg, #F26B5E 315deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 13%);
          mask: radial-gradient(circle, transparent 12%, #000 13%);
  filter: saturate(115%);
}

/* App Store — blue, white A */
.dk-appstore{
  background: linear-gradient(180deg, #31AAFE, #146BF1);
  display: grid; place-items: center;
}
.dk-appstore::before{
  content: "A";
  font: 800 11px/1 var(--font-body);
  color: #fff;
  transform: translateY(.5px);
}

/* Claridian — purple, running */
.dk-claridian{
  background: linear-gradient(180deg, #ffffff, #eceefb);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 0 9px rgba(91,71,217,.5), inset 0 1px 0 rgba(255,255,255,.6);
}
.dk-claridian img{ width: 82%; height: 82%; object-fit: contain; }
.dk-claridian::after{
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 2.5px; height: 2.5px;
  border-radius: 50%;
  background: #3a3a3c;
}

/* Music — red w/ white note */
.dk-music{
  background: linear-gradient(180deg, #FC5C7D, #FA233B);
  display: grid; place-items: center;
}
.dk-music::before{
  content: "♪";
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

/* Podcasts — purple rings + person */
.dk-podcasts{
  background: linear-gradient(180deg, #9B5DE0, #7E3FD1);
  display: grid; place-items: center;
  overflow: hidden;
}
.dk-podcasts::before{
  content: "";
  position: absolute; inset: 18%;
  border-radius: 50%;
  border: 1.4px solid rgba(255,255,255,.55);
}
.dk-podcasts::after{
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4.5px 0 -0.5px #fff;
  transform: translateY(-2.5px);
}

/* Settings — grey gear */
.dk-settings{
  background: linear-gradient(180deg, #C9CDD3, #9AA0A9);
  display: grid; place-items: center;
}
.dk-settings::before{
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #5b6066 26%, transparent 27%),
    repeating-conic-gradient(#3F4348 0deg 18deg, transparent 18deg 36deg);
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%);
          mask: radial-gradient(circle, #000 70%, transparent 71%);
}

/* Notes — yellow strip + lines */
.dk-notes{
  background: #fff;
  overflow: hidden;
}
.dk-notes::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, #FFD52E, #FCC512);
}
.dk-notes::after{
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 48%;
  height: 1px;
  background: #D8D8D8;
  box-shadow: 0 4px 0 #D8D8D8, 0 8px 0 #D8D8D8;
}

/* Trash — translucent bin */
.dk-trash{
  background: linear-gradient(180deg, #EDF1F5, #C2CBD4);
}
.dk-trash::before{
  content: "";
  position: absolute;
  inset: 25% 32% 18%;
  background: linear-gradient(180deg, #AEB8C2, #8E99A4);
  clip-path: polygon(8% 0, 92% 0, 80% 100%, 20% 100%);
  border-radius: 1px;
}
.dk-trash::after{
  content: "";
  position: absolute;
  top: 18%; left: 28%; right: 28%;
  height: 1.6px;
  background: #8E99A4;
  border-radius: 2px;
}

/* ---- base: keyboard deck ---- */
.mba__base{
  position: relative;
  width: 100%;
  height: 13px;
  background: linear-gradient(180deg, #CBE0EF 0%, #ADCCE0 70%, #8FB4CC 100%);
  border-radius: 2px 2px 11px 11px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -2px 3px rgba(90,120,145,.35),
    0 1px 0 rgba(120,150,175,.4);
}
/* thumb-scoop notch on the front lip */
.mba__lip{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 11%;
  height: 4.5px;
  background: linear-gradient(180deg, #8FB4CC, #A8C9DE);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 -1px 1px rgba(90,120,145,.4);
}
.mba__feet{
  width: 96%;
  height: 2.5px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(110,140,165,.5), transparent);
  border-radius: 0 0 50% 50%;
  filter: blur(1px);
}

@media (max-width: 900px){
  /* Below this width .macbook-wrap is vw-bound (width: min(880px, 92vw)),
     so the mockup itself shrinks — but all the chrome details below were
     fixed px sizes tuned for the ~880px desktop mockup, making the bezel,
     notch, menu bar and window bar look oversized/chunky once the whole
     laptop shrinks. Switch them to vw units scaled to match, so every
     detail shrinks in proportion with the mockup at any width. */
  .mba__notch{ height: 1.7vw; }
  .mba__cam{ width: .55vw; height: .55vw; }

  .mba__menubar{ height: 1.8vw; padding: 0 1.05vw 0 1.25vw; font-size: .8vw; }
  .mba__menubar-left{ gap: .95vw; }
  .mba__menubar-left span{ display: none; }
  .mba__apple{ width: .95vw; height: .95vw; }
  .mba__appicon{ width: 1.25vw; height: 1.25vw; margin-right: -.3vw; }
  .mba__menubar-right{ gap: .75vw; }
  .mba__menubar-right svg{ width: 1.05vw; height: 1.05vw; }
  .mba__battery-body{ width: 1.5vw; height: .75vw; }
  .mba__battery-tip{ width: .17vw; height: .38vw; }
  .mba__cc{ width: 1.05vw; height: 1.05vw; }

  .mba__window{ width: 92%; margin-top: .75vw; }
  .mba__window-bar{ height: 2.5vw; padding: 0 1.05vw; }
  .mba__traffic{ gap: .55vw; }
  .mba__traffic span{ width: .85vw; height: .85vw; }
  .mba__window-title{ font-size: 1vw; }
  .mba__window-spacer{ width: 3.6vw; }

  .mba__window-body{ gap: 5px; padding: 7px 8px 8px; }
  .dm-welcome h4{ font-size: 12px; }
  .dm-grid{ gap: 5px; }
  .dm-nav{ display: none; }
  .dm-card{ padding: 6px 7px; }
  .dk{ width: 13px; height: 13px; }
  .mba__dock{ margin: 5px auto 5px; }
}

@media (max-width: 560px){
  /* one more pass: on phones the vw-scaled chrome from the block above is
     still a touch large — tune it down further with clamps so the menu
     bar, app icons and battery read as neat and proportionate rather
     than chunky, across the narrow 320–560px phone range */
  .mba__notch{ height: clamp(9px, 2.6vw, 11px); }
  .mba__cam{ width: clamp(3px, .9vw, 3.6px); height: clamp(3px, .9vw, 3.6px); }

  .mba__menubar{
    height: clamp(11px, 3.2vw, 14px);
    padding: 0 clamp(6px, 1.8vw, 8px) 0 clamp(7px, 2vw, 9px);
    font-size: clamp(5px, 1.4vw, 6.5px);
  }
  .mba__menubar-left{ gap: clamp(4px, 1.2vw, 6px); }
  .mba__apple{ width: clamp(5px, 1.4vw, 6.5px); height: clamp(5px, 1.4vw, 6.5px); }
  .mba__appicon{ width: clamp(7px, 2vw, 9px); height: clamp(7px, 2vw, 9px); margin-right: -2px; }
  .mba__menubar-right{ gap: clamp(4px, 1.1vw, 5.5px); }
  .mba__menubar-right svg{ width: clamp(6px, 1.6vw, 7.5px); height: clamp(6px, 1.6vw, 7.5px); }
  .mba__cc{ width: clamp(6px, 1.6vw, 7.5px); height: clamp(6px, 1.6vw, 7.5px); }

  /* battery — thinner hairline body so it reads crisp at this size */
  .mba__battery{ gap: 1px; }
  .mba__battery-body{
    width: clamp(9px, 2.6vw, 11px); height: clamp(4.5px, 1.3vw, 5.5px);
    border-width: .75px; padding: .75px;
  }
  .mba__battery-tip{ width: clamp(.8px, .3vw, 1.1px); height: clamp(2.2px, .7vw, 2.8px); }

  .mba__window-bar{ height: clamp(16px, 4.5vw, 20px); padding: 0 clamp(6px, 1.8vw, 8px); }
  .mba__traffic{ gap: clamp(3px, 1vw, 4px); }
  .mba__traffic span{ width: clamp(5px, 1.5vw, 6.5px); height: clamp(5px, 1.5vw, 6.5px); }
  .mba__window-title{ font-size: clamp(6.5px, 1.8vw, 8px); }
  .mba__window-spacer{ width: clamp(20px, 6vw, 26px); }
}

/* ============================================================
   golden text glow on the time word
============================================================ */
.time-glow{
  position: relative;
  background: linear-gradient(90deg, var(--brand-tint), #daa520, #f0c850, #daa520, var(--brand-tint));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-text-sweep 3.5s linear infinite;
}
@keyframes gold-text-sweep{
  0%  { background-position: 100% 0; }
  100%{ background-position: -100% 0; }
}

/* ============================================================
   onboarding overlay
============================================================ */
.onboard-overlay{
  position: fixed; inset: 0;
  z-index: 200;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
  padding: 110px 20px 40px;
  overflow-y: auto;
}
.onboard-overlay.active{ opacity: 1; pointer-events: all; }
body.onboard-open{ overflow: hidden; }

/* ---- top progress line bar ---- */
.ob-progress{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #EFECE5;
  z-index: 210;
}
.ob-progress-fill{
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  border-radius: 0 4px 4px 0;
  transition: width .55s var(--ease);
  box-shadow: 0 0 12px rgba(91,71,217,.5);
}

/* ---- persistent chrome (logo + steps + back) ---- */
.ob-chrome{
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 60px) 0;
  z-index: 209;
  pointer-events: none;
}
.ob-chrome > *{ pointer-events: auto; }
.ob-logo{
  font-family: var(--font-display);
  font-weight: 800; font-size: 21px;
  letter-spacing: -.02em; color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
}
.ob-logo .brand-logo{ width: 28px; height: 28px; }
.ob-logo span.serif{ color: var(--brand); font-size: 23px; margin-left: 1px; }
.ob-chrome-right{
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.ob-steps{ display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.ob-step-label{
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-4);
}
.ob-segs{ display: flex; gap: 6px; }
.ob-seg{
  width: 26px; height: 5px; border-radius: 999px;
  background: #D4D0C6;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
.ob-seg.on{
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  box-shadow: 0 0 8px rgba(91,71,217,.4);
}
.ob-seg.current{
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  opacity: .42;
  animation: obSegPulse 1.8s var(--ease) infinite;
}
@keyframes obSegPulse{
  0%, 100%{ opacity: .35; }
  50%     { opacity: .7; }
}
/* text back button (replaces the circular X) */
.ob-back{
  appearance: none; border: 0; background: none; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 2px;
  transition: color .25s var(--ease), gap .25s var(--ease);
  position: relative;
}
.ob-back-arrow{ transition: transform .25s var(--ease); display: inline-block; }
.ob-back:hover{ color: var(--brand); gap: 9px; }
.ob-back:hover .ob-back-arrow{ transform: translateX(-3px); }
.ob-back::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.ob-back:hover::after{ transform: scaleX(1); }

.onboard-container{
  width: min(760px, 100%);
  position: relative;
}
.onboard-step{
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: stepIn .5s var(--ease);
  position: relative;
  width: 100%;
}
.onboard-step.active{ display: flex; }
@keyframes stepIn{
  from{ opacity: 0; transform: translateY(20px) scale(.97); }
  to{ opacity: 1; transform: none; }
}

.onboard-step h2{
  font-size: clamp(24px, 4vw, 36px);
  color: var(--ink);
}
.onboard-sub{
  color: var(--ink-3);
  margin: 10px 0 30px;
  font-size: 16px;
}

.onboard-cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.onboard-cards.three-col{
  grid-template-columns: repeat(3, 1fr);
}

.onboard-card{
  position: relative;
  border-radius: var(--r-5);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  --glow-x: 50%; --glow-y: 50%; --glow-opacity: 0;
  --rx: 0deg; --ry: 0deg;
  transform-style: preserve-3d;
  perspective: 800px;
  overflow: hidden;
}
.onboard-card > .glow-layer{
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(340px circle at var(--glow-x) var(--glow-y),
              rgba(91,71,217,.22), transparent 60%);
  opacity: var(--glow-opacity);
  transition: opacity .4s var(--ease);
}
.onboard-card:hover{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 30px 60px -24px rgba(91,71,217,.4),
    0 8px 20px -8px rgba(20,18,10,.08);
}
.onboard-card h3{ font-size: 20px; margin: 14px 0 0; position: relative; z-index: 2; }
.onboard-card p{ color: var(--ink-3); font-size: 14px; margin: 8px 0 0; position: relative; z-index: 2; }
.oc-icon{
  font-size: 36px;
  position: relative; z-index: 2;
  display: inline-block;
  transition: transform .4s var(--ease);
  animation: oc-float 3.5s var(--ease) infinite;
}
.onboard-card:hover .oc-icon{
  transform: scale(1.18) rotate(-6deg);
}
@keyframes oc-float{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}


/* transition message card */
/* transition message — plain centered text, no card */
.onboard-trans{
  text-align: center;
  max-width: 520px;
  padding: 40px 20px;
}
.onboard-trans h2{
  color: var(--ink);
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -.02em;
}
.onboard-trans p{
  color: var(--ink-3);
  margin-top: 14px;
  font-size: 17px;
}
.msg-icon{
  font-size: 56px;
  margin-bottom: 18px;
  display: inline-block;
  animation: msg-pulse 2.6s var(--ease) infinite;
}
@keyframes msg-pulse{
  0%, 100%{ transform: scale(1) rotate(0); }
  50%     { transform: scale(1.14) rotate(-4deg); }
}

/* form card */
.onboard-form-card{
  position: relative;
  border-radius: var(--r-5);
  padding: 36px 32px;
  width: min(440px, 100%);
  text-align: left;
  --glow-x: 50%; --glow-y: 50%; --glow-opacity: 0;
  overflow: hidden;
}
.onboard-form-card > .glow-layer{
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; z-index: 1;
  background: radial-gradient(380px circle at var(--glow-x) var(--glow-y),
              rgba(91,71,217,.20), transparent 60%);
  opacity: var(--glow-opacity);
  transition: opacity .4s var(--ease);
}
.onboard-form-card h3{ font-size: 22px; margin-bottom: 20px; text-align: center; position: relative; z-index: 2; }
.onboard-form-card .form-fields{ position: relative; z-index: 2; }
.onboard-form-card #formSubmit{ position: relative; z-index: 2; }
.form-field{
  margin-bottom: 16px;
}
.form-field label{
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 6px;
}
.form-field input,
.form-field select{
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  font: inherit; font-size: 15px;
  background: var(--surface-warm);
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus,
.form-field select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91,71,217,.12);
}
.form-field select{
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236F6C61' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

@media (max-width: 640px){
  .onboard-cards{ grid-template-columns: 1fr; gap: 12px; }
  .onboard-cards.three-col{ grid-template-columns: 1fr; }
  .ob-chrome{ padding: 20px 20px 0; }
  .ob-logo{ font-size: 17px; }
  .ob-logo span.serif{ font-size: 19px; }
  .ob-step-label{ font-size: 10px; }
  .ob-seg{ width: 18px; height: 4px; }
  .onboard-overlay{ padding: 96px 18px 32px; }
  .onboard-step h2{ margin-top: clamp(16px, 4vh, 30px); }
  .onboard-sub{ margin: 8px 0 20px; font-size: 14.5px; }

  /* compact the step-3 input-method cards so all three fit comfortably */
  .method-card{ padding: 14px 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
  .method-card .oc-icon{ font-size: 26px; margin: 0; flex-shrink: 0; }
  .method-card .mc-text h3{ font-size: 16px; margin: 0; }
  .method-card .mc-text p{ font-size: 12.5px; margin: 3px 0 0; }
}
@media (max-width: 420px){
  .onboard-overlay{ padding-top: 112px; }
}

/* ============================================================
   Onboarding — Terms & Privacy consent + modal
============================================================ */
.form-consent{
  display: flex; align-items: flex-start; gap: 11px;
  margin: 2px 0 2px; position: relative; z-index: 2;
}
.consent-check{
  flex: none; width: 22px; height: 22px; margin-top: 1px;
  border: 1.6px solid var(--line); border-radius: 7px;
  background: var(--surface-warm); cursor: pointer; padding: 0;
  display: grid; place-items: center; color: #fff;
  transition: background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.consent-check .cc-box{ display: grid; place-items: center; line-height: 0; }
.consent-check .cc-box svg{ opacity: 0; transition: opacity .15s var(--ease); }
.consent-check.on{ background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-color: var(--brand); }
.consent-check.on .cc-box svg{ opacity: 1; }
.consent-check:hover{ border-color: var(--brand-tint); }
.consent-check:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(91,71,217,.22); }
.consent-text{ font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.consent-link{
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.consent-link:hover{ color: var(--brand-2); }

/* terms modal */
.terms-veil[hidden]{ display: none !important; }
.terms-veil{
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px;
  background: rgba(34,28,52,.34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: termsIn .26s var(--ease);
}
@keyframes termsIn{ from{ opacity: 0; } to{ opacity: 1; } }
.terms-card{
  position: relative; width: min(560px, 100%); max-height: min(82vh, 700px);
  display: flex; flex-direction: column; text-align: left;
  background: linear-gradient(180deg, #ffffff, #FAF8F3);
  border: 1px solid var(--line); border-radius: 24px; padding: 28px 28px 20px;
  box-shadow: 0 50px 100px -34px rgba(40,30,90,.5), inset 0 1px 0 rgba(255,255,255,.9);
  animation: termsCard .4s var(--ease) both;
}
@keyframes termsCard{ from{ opacity: 0; transform: translateY(16px) scale(.97); } to{ opacity: 1; transform: none; } }
.terms-x{ position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 25px; line-height: 1; color: var(--ink-4); cursor: pointer; transition: color .2s var(--ease); }
.terms-x:hover{ color: var(--ink); }
.terms-ico{ width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--brand-wash); border: 1px solid var(--brand-tint); margin-bottom: 14px; }
.terms-card h3{ margin: 0 0 3px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.terms-updated{ font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); margin: 0 0 14px; }
.terms-body{
  overflow-y: auto; padding-right: 10px; margin-right: -6px;
  font-size: 13.5px; line-height: 1.62; color: var(--ink-3);
}
.terms-body h4{ margin: 16px 0 5px; font-family: var(--font-display); font-weight: 800; font-size: 13.5px; color: var(--ink); }
.terms-body h4:first-child{ margin-top: 0; }
.terms-body p{ margin: 0 0 9px; }
.terms-body ul{ margin: 0 0 9px; padding-left: 18px; }
.terms-body li{ margin: 0 0 5px; }
.terms-body a{ color: var(--brand); }
.terms-body::-webkit-scrollbar{ width: 8px; }
.terms-body::-webkit-scrollbar-thumb{ background: var(--brand-tint); border-radius: 8px; }
.terms-body::-webkit-scrollbar-track{ background: transparent; }
.terms-actions{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.terms-btn{
  border: 0; cursor: pointer; padding: 11px 22px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: 0 12px 24px -12px rgba(91,71,217,.6); transition: transform .15s var(--ease);
}
.terms-btn:hover{ transform: translateY(-2px); }
.terms-btn--ghost{ background: none; color: var(--ink-2); box-shadow: none; border: 1px solid var(--line); }
.terms-btn--ghost:hover{ transform: none; border-color: var(--ink-4); color: var(--ink); }
@media (max-width: 640px){
  .terms-card{ padding: 24px 20px 16px; max-height: 86vh; }
}

/* ── open-answer fallback button (voice session, open-ended mode) ── */
.vx-done-btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 20px; border-radius:999px; cursor:pointer;
  font-family:var(--font-body, inherit); font-weight:600; font-size:14px;
  color:var(--brand, #5B47D9);
  background:var(--brand-wash, #EEEAFB);
  border:1px solid var(--brand-tint, #DAD2F5);
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.vx-done-btn:hover{ background:var(--brand, #5B47D9); color:#fff; transform:translateY(-1px); box-shadow:0 10px 22px -12px rgba(91,71,217,.7); }
.vx-done-btn:active{ transform:translateY(0); }
.vx-done-btn i{ font-size:12px; }
