/* =========================================================================
   Primal - landing styles (Inter, near-white + grid, uniform background)
   ========================================================================= */
:root {
  --paper:      #FCFCFB;
  --grid:       rgba(27,26,24,.05);
  --dot:        #E2DDD3;
  --ink:        #1B1A18;
  --ink-soft:   #5E5A52;
  --ink-faint:  #948F86;
  --line:       #ECE7DE;
  --line-2:     #DFD9CD;
  --card:       #FFFFFF;
  --green:      #2E7D52;
  --green-2:    #25683F;
  --green-soft: #E8F1EB;
  --green-ring: rgba(46,125,82,.16);
  --gold:       #D9A521;
  --amber:      #D9A521;
  --red:        #C8463B;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius:    14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-card: 0 1px 2px rgba(27,26,24,.04), 0 18px 40px -24px rgba(27,26,24,.18);
  --shadow-phone: 0 30px 60px -30px rgba(27,26,24,.30);
  --shadow-btn: 0 1px 2px rgba(27,26,24,.20), 0 12px 26px -14px rgba(27,26,24,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; max-width: 100%; }
/* clean dotted background, near-white with soft edge fade, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, #000 56%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 78% at 50% 42%, #000 56%, transparent 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.anchor { position: absolute; top: -90px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 3.5vw, 48px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; padding: 0 26px;
  font: 600 1rem/1 var(--sans); color: #fff; background: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: transform .18s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}
.btn:hover { background: #000; border-color:#000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn[disabled] { cursor: default; opacity: .9; transform: none; }
.btn-sm { height: 42px; padding: 0 16px; font-size: .92rem; box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn-outline:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn .spinner { display:none; width:16px; height:16px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* animated "Join Waitlist" button: text fades, chevron box expands */
.btn-anim { position: relative; overflow: hidden; padding-right: 56px; }
.btn-anim .bt { transition: opacity .45s var(--ease); }
.btn-anim:hover .bt { opacity: 0; }
.btn-anim .chev {
  position: absolute; top: 4px; right: 4px; bottom: 4px; width: 40px;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.16);
  transition: width .45s var(--ease), transform .15s var(--ease);
}
.btn-anim:hover .chev { width: calc(100% - 8px); }
.btn-anim:active .chev { transform: scale(.96); }
.btn-anim .chev svg { width: 18px; height: 18px; color: #fff; }
.btn-anim.is-loading .bt, .btn-anim.is-loading .chev { opacity: 0; visibility: hidden; }
.btn-anim.is-loading .spinner { display: inline-block; }
.btn-sm.btn-anim { padding-right: 44px; }
.btn-sm.btn-anim .chev { width: 32px; }
.btn-sm.btn-anim .chev svg { width: 15px; height: 15px; }

/* ---------- nav (transparent at top, grid shows through) ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.nav.scrolled { background: rgba(252,252,251,.8); backdrop-filter: blur(10px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; padding-block: 13px; }
.wordmark img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: .94rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a { position: relative; padding-block: 2px; transition: color .2s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { color: #fff; transition: opacity .28s var(--ease), transform .28s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,0.82fr) minmax(0,1.3fr);
  align-items: start; gap: clamp(20px, 2.6vw, 46px);
  padding-block: clamp(18px, 3.5vh, 52px) clamp(40px, 6vh, 80px);
}
.hero-copy { max-width: 34rem; padding-top: clamp(120px, 18vh, 240px); }
h1 {
  font-weight: 600; font-size: clamp(2.35rem, 4.9vw, 3.6rem); line-height: 1.05;
  letter-spacing: -.026em; margin-bottom: 22px;
}
.h1-line { display: block; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.type { color: var(--green); }
.caret { display: inline-block; width: 3px; height: .92em; margin-left: 3px; background: var(--green); vertical-align: -.08em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ul { position: relative; display: inline-block; }
.ul .uline { position: absolute; left: 0; bottom: -.30em; width: 100%; height: .42em; color: var(--green); overflow: visible; }
.ul .uline path { stroke-dasharray: 320; }
.js [data-r] .ul .uline path { stroke-dashoffset: 320; }
[data-r].in .ul .uline path { animation: udraw 1.1s var(--ease) .25s forwards; }
@keyframes udraw { to { stroke-dashoffset: 0; } }

.trusted { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 8px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; box-shadow: var(--shadow-card); }
.trusted-avatars { display: inline-flex; }
.ta { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; background: var(--line); border: 2px solid var(--card); margin-left: -8px; }
.ta:first-child { margin-left: 0; }
.trusted-text { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.trusted-text strong { font-weight: 800; color: var(--ink); }
.trusted-text strong { font-weight: 800; color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.store-badge { display: inline-block; transition: transform .18s var(--ease), opacity .2s var(--ease); }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-1px); opacity: .92; }
.store-badge:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 12px; }
.sub { font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--ink-soft); max-width: 30rem; margin-bottom: 30px; }

.waitlist { position: relative; }
.field { display: flex; gap: 12px; max-width: 32rem; }
.field input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-ring); }
.field input:disabled { opacity: .6; }
.status { min-height: 1.2rem; margin-top: 12px; font-size: .9rem; color: var(--ink-soft); opacity: 0; transform: translateY(-3px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.status.show { opacity: 1; transform: none; }
.status.ok { color: var(--green); } .status.error { color: var(--red); }
.status .check { display:inline-block; width:16px; height:16px; margin-right:6px; vertical-align:-3px; color: var(--green); }
.microcopy { margin-top: 3px; font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }

/* hero phones */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.stage { position: relative; width: min(102%, 730px); aspect-ratio: 730 / 740; margin-left: auto; transform: translateX(3.5%); }
.phone { position: absolute; height: auto; aspect-ratio: 1086 / 1448; filter: drop-shadow(0 44px 72px rgba(27,26,24,.28)); }
.phone-scan { width: 62%; left: 0; top: 3%; transform: rotate(-5deg); z-index: 1; }
.phone-analysis { width: 67%; right: 0; top: 9%; transform: rotate(2.5deg); z-index: 2; }

/* ---------- bands ---------- */
.band { padding-block: clamp(56px, 9vh, 100px); }
.band-head { max-width: 40rem; margin-bottom: clamp(34px, 5vh, 52px); }
.eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.band h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); font-weight: 700; line-height: 1.12; }
#pricing .band-head { text-align: center; margin-inline: auto; }
#pricing .band-sub { margin-inline: auto; }
.band-sub { margin-top: 14px; font-size: 1.06rem; color: var(--ink-soft); max-width: 36rem; }

/* how it works: coverflow card carousel (--cw width, --side peek, --ss scale, --sy drop) */
#how .band-head { margin-bottom: clamp(48px, 8vh, 84px); }
.cards {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto; height: 540px;
  perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  --cw: 360px; --side: 52%; --ss: .82; --sy: 26px;
}
.qcard {
  position: absolute; top: 0; left: 50%; width: var(--cw);
  transform: translate(-50%, 0) scale(1);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  backface-visibility: hidden; will-change: transform, opacity;
}
.qcard.is-center { transform: translate(-50%, 0) scale(1) rotateY(0deg); opacity: 1; z-index: 3; cursor: default; }
.qcard.is-left   { transform: translate(calc(-50% - var(--side)), var(--sy)) scale(var(--ss)) rotateY(18deg); opacity: .4; z-index: 1; cursor: pointer; }
.qcard.is-right  { transform: translate(calc(-50% + var(--side)), var(--sy)) scale(var(--ss)) rotateY(-18deg); opacity: .4; z-index: 1; cursor: pointer; }
.qcard.is-far    { transform: translate(-50%, var(--sy)) scale(.68); opacity: 0; z-index: 0; pointer-events: none; }
.qphone { display: flex; justify-content: center; }
.qphone img { width: 100%; max-width: 250px; height: auto; filter: drop-shadow(0 26px 44px rgba(27,26,24,.22)); }
.qcap { text-align: center; margin: 12px auto 0; width: 84%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 14px 16px 16px; }
.step-k { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green); }
.step-t { display: block; margin-top: 8px; font-weight: 700; font-size: 1.14rem; letter-spacing: -.012em; }
.qcap p { margin: 8px auto 0; color: var(--ink-soft); font-size: .95rem; max-width: 26ch; line-height: 1.5; }

/* score */
.score-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.02fr); gap: clamp(34px, 5vw, 64px); align-items: center; }
.score-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.14; margin-bottom: 18px; }
.score-info .lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 22px; }
.labels { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; }
.lab { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.lab .d { width: 9px; height: 9px; border-radius: 50%; }
.d1 { background: var(--green); } .d2 { background: #6CA982; } .d3 { background: var(--amber); } .d4 { background: var(--red); }
.disclaimer { font-size: .85rem; color: var(--ink-faint); }
.score-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-card); }
.criteria { list-style: none; margin: 0; padding: 0; }
.criteria li { display: grid; grid-template-columns: 1fr 84px 38px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.criteria li:last-child { border-bottom: 0; }
.cn { font-size: .96rem; font-weight: 500; }
.cw { height: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cw b { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #5B9E78); border-radius: 999px; }
.criteria em { font-style: normal; font-weight: 700; font-size: .9rem; text-align: right; }

/* statement + sparkles */
.statement { padding-block: clamp(70px, 12vh, 140px); text-align: center; }
.sparkle-wrap { position: relative; display: inline-block; }
.sparkle-text { font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
.spk { position: absolute; pointer-events: none; z-index: 2; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin-inline: auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 30px 32px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.plan-feature { border-color: var(--green); box-shadow: 0 1px 2px rgba(27,26,24,.04), 0 26px 50px -26px rgba(46,125,82,.30); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--green); color: #fff; font-size: .76rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; }
.plan-top { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.plan h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .cur { font-size: 1.4rem; font-weight: 700; vertical-align: super; margin-right: 1px; }
.price .per { font-size: 1rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.plan-note { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }
.plan-trial { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--green-2); }
.plan-trial::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.feat { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.feat li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .96rem; color: var(--ink-soft); }
.feat li strong { color: var(--ink); }
.feat li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft); }
.feat li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan-cta { width: 100%; }

/* faq accordion */
.faq-wrap { max-width: 800px; margin-inline: auto; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; background: none; border: 0; font: 600 1.06rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--ink-faint); border-radius: 2px; transition: transform .28s var(--ease), opacity .28s var(--ease); }
.plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc-item.open .plus::before { background: var(--green); }
.acc-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 2px 22px; color: var(--ink-soft); max-width: 64ch; }

/* footer (same light background, hairline top) */
.foot { padding-block: 54px 30px; border-top: 1px solid var(--line); }
.foot a { color: var(--ink-soft); transition: color .2s var(--ease); }
.foot a:hover { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.foot-brand img { height: 18px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--ink-faint); font-size: .94rem; max-width: 22rem; }
.foot-h { color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; font-size: .94rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: var(--ink-faint); }

/* reveal on scroll (only hidden when JS active) */
[data-r] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-r] { opacity: 0; transform: translateY(18px); }
[data-r].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 22px; }
  .hero-copy { max-width: 40rem; padding-top: 4px; }
  .stage { width: min(96%, 600px); margin-inline: auto; margin-left: auto; aspect-ratio: 600 / 640; transform: none; }
  .score-grid { grid-template-columns: 1fr; gap: 30px; }
}
/* mobile step-carousel dots (hidden on desktop) */
.flow-dots { display: flex; justify-content: center; gap: 9px; margin: 0; }
.fdot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.fdot.active { background: var(--green); transform: scale(1.35); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-cta.is-hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; }

  /* hero form: full-width, balanced, equal heights */
  .field { flex-direction: column; gap: 12px; max-width: 100%; }
  .field input { flex: 0 0 auto; width: 100%; height: 56px; font-size: 1.05rem; }
  .field .btn { width: 100%; height: 56px; }
  .btn-anim { padding-right: 26px; }
  .btn-anim .chev { display: none; }
  .microcopy { white-space: normal; }

  /* steps coverflow: bigger center phone, side cards tucked behind */
  .cards { --cw: min(74vw, 320px); --side: 42%; --ss: .72; --sy: 14px; max-width: 100%; height: 660px; }
  .qcap { width: 80%; padding: 13px 14px 15px; }
  .qphone img { max-width: 100%; }
  .step-k { font-size: .68rem; letter-spacing: .2em; }
  .step-t { font-size: 1.02rem; }
  .qcap p { font-size: .9rem; max-width: 26ch; }


  .plans { grid-template-columns: 1fr; gap: 28px; }
  .plan-feature { order: -1; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 20px; }
  .band { padding-block: 56px; }
  h1 { font-size: clamp(2.5rem, 9.4vw, 3.4rem); }
  .sub { font-size: .96rem; margin-bottom: 24px; max-width: 32rem; }
  .hero-grid { gap: 28px; }
  .trusted { margin-bottom: 16px; }
  .band h2 { font-size: clamp(1.74rem, 6.6vw, 2.15rem); }
  .band-head { margin-bottom: 32px; }
  .stores { gap: 10px; margin-top: 22px; }
  .store-badge img { height: 46px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .stage { width: min(110%, 560px); aspect-ratio: 472 / 560; }
  .phone-scan { width: 67%; top: 4%; }
  .phone-analysis { width: 75%; top: 10%; }

  /* Primal Score: centered, carded labels, decluttered breakdown */
  .score-info { text-align: center; }
  .score-info .lead { margin-inline: auto; max-width: 36ch; }
  .labels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
  .lab { justify-content: center; }
  .disclaimer { text-align: center; }
  .score-card { padding: 20px 18px; }
  .criteria li { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; }
  .criteria .cw { display: none; }
  .cn { min-width: 0; }

  /* statement: clip decorative sparkles so the page can't scroll sideways */
  .statement { padding-block: 60px; overflow-x: clip; }

  .plan { padding: 26px 22px 28px; }
}
@media (max-width: 360px) {
  h1 { font-size: 2.0rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-r] { opacity: 1; transform: none; }
  .caret { animation: none; }
  .js [data-r] .ul .uline path { stroke-dashoffset: 0; }
}

/* =========================================================================
   Legal pages (privacy.html, terms.html)
   ========================================================================= */
.legal { padding-bottom: 20px; }
.legal .wrap-legal { width: 100%; max-width: 760px; margin-inline: auto; padding: 8px clamp(20px,5vw,40px) 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.022em; line-height: 1.1; margin: 28px 0 6px; }
.legal .updated { font-size: .8rem; color: var(--ink-faint); margin: 0 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 40px 0 10px; scroll-margin-top: 90px; letter-spacing: -.01em; }
.legal h3 { font-size: 1.02rem; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { font-size: .98rem; line-height: 1.7; color: var(--ink-soft); }
.legal p { margin: 0 0 16px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--green); text-underline-offset: 2px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal address { font-style: normal; color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; margin: 0 0 32px; }
.legal .toc-title { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; font-weight: 600; }
.legal .toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.2em; font-size: .9rem; }
.legal .toc a { color: var(--ink-soft); } .legal .toc a:hover { color: var(--green); }
.legal .disclaimer-block { background: var(--green-soft); border-radius: var(--radius-lg); padding: 22px 26px; margin: 8px 0 24px; }
.legal .disclaimer-block p { color: #2a5e42; margin-bottom: 0; }
.legal .back { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.legal .back:hover { color: var(--ink); }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }

/* sparkle animation */
@keyframes spk {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  45%  { opacity: 1; transform: scale(var(--s,1)) rotate(90deg); }
  100% { opacity: 0; transform: scale(0) rotate(160deg); }
}
.spk { width: 18px; height: 18px; animation: spk var(--dur,2.2s) ease-in-out infinite; animation-delay: var(--delay,0s); }
@media (prefers-reduced-motion: reduce) { .spk { display: none; } }

/* testimonials (auto-scrolling columns) */
#reviews .band-head { text-align: center; margin-inline: auto; }
#reviews .band-sub { margin-inline: auto; }
.tcols { display: flex; justify-content: center; gap: 22px; margin-top: 6px; max-height: 720px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.tcol { display: flex; flex-direction: column; gap: 22px; flex-shrink: 0; animation: tscroll var(--dur, 36s) linear infinite; will-change: transform; }
.tcols:hover .tcol { animation-play-state: paused; }
@keyframes tscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tcard { width: 318px; max-width: 82vw; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px 24px 22px; }
.tcard > p { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--ink); }
.tstars { display: flex; gap: 2px; margin-bottom: 12px; }
.tstars .star { width: 15px; height: 15px; fill: var(--gold); }
.trev { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.tav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.tmeta { display: flex; flex-direction: column; }
.tname { font-weight: 600; font-size: .92rem; line-height: 1.25; letter-spacing: -.01em; }
.trole { font-size: .83rem; color: var(--ink-faint); line-height: 1.3; }
@media (max-width: 900px) { .tcol-lg { display: none; } }
@media (max-width: 640px) { .tcol-md { display: none; } .tcard { width: 300px; } }
@media (prefers-reduced-motion: reduce) { .tcol { animation: none; } }


/* shiny button (header + annual CTA): periodic light sweep */
@property --shine { syntax: "<percentage>"; inherits: false; initial-value: 150%; }
.btn-shiny { position: relative; overflow: hidden; }
.btn-shiny::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.55) 50%, transparent 68%);
  background-size: 220% 100%;
  background-position: var(--shine) 0;
  animation: btnshine 4.2s ease-in-out infinite;
}
@keyframes btnshine { 0% { --shine: 150%; } 38% { --shine: -55%; } 100% { --shine: -55%; } }
.btn-shiny:hover { box-shadow: var(--shadow-btn), 0 0 20px rgba(46,125,82,.28); }
@media (prefers-reduced-motion: reduce) { .btn-shiny::after { animation: none; opacity: 0; } }


/* testimonials carousel */
.tcar { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; max-width: 760px; margin: 10px auto 0; }
.tcar-stage { position: relative; }
.tcar-quote { position: absolute; top: -16px; left: -12px; width: 42px; height: 42px; color: var(--green); opacity: .22; z-index: 3; }
.tcar-track { position: relative; min-height: 248px; }
.tcard2 { position: absolute; inset: 0; opacity: 0; transform: translateX(36px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px 30px; display: flex; flex-direction: column; }
.tcard2.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.tcard2-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tcard2-who { display: flex; align-items: center; gap: 12px; }
.tcard2 .tav { width: 46px; height: 46px; font-size: .95rem; }
.tsep { height: 1px; background: var(--line); margin: 16px 0; }
.tcontent { flex: 1; font-size: 1.05rem; line-height: 1.6; color: var(--ink); font-style: italic; margin: 0; }
.tverified { margin-top: 14px; text-align: right; font-size: .76rem; color: var(--ink-faint); }
.tcar-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tcar-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s var(--ease), transform .15s var(--ease); }
.tcar-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.tcar-btn svg { width: 18px; height: 18px; }
.tcar-dots { display: flex; flex-direction: column; gap: 9px; }
.tdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.tdot.active { background: var(--green); transform: scale(1.3); }
@media (max-width: 760px) {
  .tcar { grid-template-columns: 1fr; gap: 10px; }
  .tcar-nav { flex-direction: row; justify-content: center; }
  .tcar-dots { flex-direction: row; }
  .tcar-track { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .tcard2 { transition: none; } }


/* carousel mobile polish (after base so it overrides) */
@media (max-width: 560px) {
  .tcard2 { padding: 22px 22px 20px; }
  .tcar-track { min-height: 256px; display: flex; align-items: center; }
  .tcontent { font-size: 1rem; line-height: 1.55; }
  .tcar-quote { width: 34px; height: 34px; top: -12px; left: -4px; }
  .tcard2 .tav { width: 42px; height: 42px; }
}

/* legal: in-short callouts + data tables */
.legal .inshort { border-left: 3px solid var(--green); padding: 2px 0 2px 14px; margin: 0 0 16px; color: var(--ink-soft); font-size: .95rem; }
.legal .inshort strong { color: var(--green-2); }
.legal .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal thead th { background: var(--green-soft); color: var(--ink); font-weight: 600; }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal td:last-child, .legal th:last-child { text-align: center; white-space: nowrap; font-weight: 600; }


/* legal tables (US data categories) */
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .9rem; display: block; overflow-x: auto; }
.legal thead th { text-align: left; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); padding: 10px 12px; }
.legal tbody td { text-align: left; vertical-align: top; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding: 10px 12px; }
.legal tbody td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }



/* ---------- mobile promo popup (Cal AI style) ---------- */
.promo { display: none; }
.promo.open { display: block; position: fixed; inset: 0; z-index: 100; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(20, 19, 17, .55); animation: promoFade .25s var(--ease); }
.promo-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92%, 430px); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 26px; padding: 30px 22px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
  animation: promoIn .32s var(--ease);
}
@keyframes promoFade { from { opacity: 0; } }
@keyframes promoIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.promo-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-faint); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.promo-x:hover { background: var(--line); color: var(--ink); }
.promo-x svg { width: 20px; height: 20px; }
.promo-logo { display: block; height: 30px; width: auto; margin: 2px auto 4px; }
.promo-stage { position: relative; width: min(80%, 282px); aspect-ratio: 1 / .78; margin: 8px auto 18px; }
.promo-stage .pp { position: absolute; height: auto; width: 56%; aspect-ratio: 1086 / 1448; top: 4%; filter: drop-shadow(0 16px 28px rgba(27, 26, 24, .22)); }
.promo-stage .pp-scan { left: 0; transform: rotate(-6deg); z-index: 1; }
.promo-stage .pp-analysis { right: 0; transform: rotate(4deg); z-index: 2; }
.promo-title { text-align: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -.022em; line-height: 1.12; margin: 0 0 10px; }
.promo-title .accent { color: var(--green); }
.promo-sub { text-align: center; color: var(--ink-soft); font-size: .96rem; line-height: 1.45; margin: 0 auto 18px; max-width: 30ch; }
.promo-form { display: block; }
.promo-form input {
  width: 100%; height: 54px; padding: 0 20px; font: 400 1.02rem var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; text-align: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.promo-form input::placeholder { color: var(--ink-faint); }
.promo-form input:focus-visible { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-ring); }
.promo-fine { text-align: center; font-size: .8rem; color: var(--ink-faint); margin: 12px auto 0; max-width: 30ch; }
.promo-btn { width: 100%; height: 56px; border-radius: 999px; font-size: 1.05rem; margin-top: 16px; }
.promo-form .status { text-align: center; margin-top: 10px; }
@media (min-width: 761px) { .promo-card { width: min(92%, 446px); padding: 34px 30px 30px; } .promo-stage { width: min(70%, 264px); } }
@media (prefers-reduced-motion: reduce) { .promo-card, .promo-backdrop { animation: none; } }


/* how it works: desktop = big phone + selectable step boxes (Cal AI style) */
.hiw-mobile { display: none; }
.hiw-desktop { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.2vw, 40px); max-width: 980px; margin: 0 auto; }
.hiw-left { flex: none; display: flex; flex-direction: column; align-items: center; }
.hiw-phone { position: relative; width: clamp(262px, 21vw, 328px); aspect-ratio: 663 / 1378; margin: 0 auto; }
.hiw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); filter: drop-shadow(0 30px 56px rgba(27, 26, 24, .22)); }
.hiw-img.is-active { opacity: 1; transform: none; }
.hiw-list { flex: 1 1 auto; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.hiw-box { text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: var(--radius-lg); padding: 20px 24px; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.hiw-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); transition: color .25s var(--ease); }
.hiw-box h3 { font-size: 1.34rem; font-weight: 700; letter-spacing: -.015em; margin: 7px 0 8px; color: var(--ink-soft); transition: color .25s var(--ease); }
.hiw-box p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink-faint); transition: color .25s var(--ease); }
.hiw-box:hover { background: var(--card); border-color: var(--line); }
.hiw-box.is-active { background: var(--card); border-color: var(--line-2); box-shadow: var(--shadow-card); cursor: default; }
.hiw-box.is-active .hiw-k { color: var(--green); }
.hiw-box.is-active h3 { color: var(--ink); }
.hiw-box.is-active p { color: var(--ink-soft); }
.hiw-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.hiw-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: border-color .2s var(--ease), transform .15s var(--ease); }
.hiw-arrow:hover { border-color: var(--ink); transform: translateY(-1px); }
.hiw-arrow svg { width: 18px; height: 18px; }
.hiw-nav--d { margin-top: 22px; gap: 14px; }
.hiw-nav--d .hiw-arrow { width: 34px; height: 34px; }
.hiw-nav--d .hiw-arrow svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .hiw-desktop { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .hiw-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hiw-phone { width: min(62vw, 256px); }
  .hiw-list { width: 100%; max-width: 440px; }
}
