:root {
  --paper: #ffffff;
  --paper-muted: #fbfbfa;
  --ink: #1c1b1a;
  --ink-2: #5c5a57;
  --ink-3: #94918c;
  --hair: #e7e5e1;
  --sage: #5e7c63;   /* steady / positive */
  --clay: #b5603f;   /* low */
  --warm: #b07a36;   /* accent */
  --maxw: 720px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* Motion echoing the app: smooth 0.40s, gentle 0.55s with a hair of overshoot */
  --smooth: cubic-bezier(.32,.72,0,1);
  --gentle: cubic-bezier(.34,1.28,.44,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 0; position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 16px; margin-left: 22px; transition: color .25s var(--smooth); }
.nav a:hover { color: var(--ink); }

/* Hero: the one lit, moving region */
.hero { position: relative; padding: 84px 0 60px; }
.hero::before {   /* a single, faint dawn wash: warm light on white, never a gradient band */
  content: ""; position: absolute; inset: -60px -25vw 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 20% 4%, rgba(250,219,199,.36), transparent 70%),
    radial-gradient(46% 44% at 88% 10%, rgba(214,230,252,.30), transparent 72%),
    radial-gradient(50% 50% at 62% 96%, rgba(240,214,240,.22), transparent 74%);
  filter: blur(10px);
}

/* The living energy trace behind the hero copy */
.hero-trace {
  position: absolute; left: 0; right: 0; top: 48%; transform: translateY(-50%);
  width: 100%; height: 240px; z-index: 0; pointer-events: none;
  transition: transform .5s var(--smooth);
}
.hero-trace svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Parallax: each layer drifts one wavelength (480) at its own pace, so the field
   shimmers with depth rather than sliding as one flat band. */
.drift { animation: trace-drift var(--d, 40s) linear infinite; }
.drift.d1 { --d: 58s; } .drift.d2 { --d: 74s; } .drift.d3 { --d: 50s; } .drift.d4 { --d: 40s; }
.trace-breathe { animation: trace-breathe 12s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.trace-faint { fill: none; stroke: rgba(148,145,140,.12); stroke-width: 2; }
.trace-accent { fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; transition: stroke .8s ease; }
/* Two segments of light flowing along the accent curve, in the current state hue,
   with a soft glow. pathLength=1 makes the sweep seamless at any width. */
.trace-pulse {
  fill: none; stroke: var(--sage); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: .06 .44; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px var(--pc, rgba(94,124,99,.7)));
  animation: pulse-run 4.4s linear infinite; transition: stroke .8s ease;
}
@keyframes trace-drift { to { transform: translateX(-480px); } }
@keyframes trace-breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.06); } }
@keyframes pulse-run { to { stroke-dashoffset: -0.5; } }
@keyframes trace-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
h1 {
  font-size: clamp(40px, 7.4vw, 66px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
  margin: 20px 0 0;
}
/* The resolving couplet: "You were ___" cycling in state colors */
.answer {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
  color: var(--ink-2); margin: 14px 0 0;
}
.cycle { position: relative; display: inline-block; min-width: 7ch; height: 1.05em; vertical-align: bottom; }
.cycle-word {
  position: absolute; left: 0; bottom: 0; white-space: nowrap; font-weight: 700;
  opacity: 0; transform: translateY(.16em);
  transition: opacity .55s var(--smooth), transform .55s var(--smooth);
}
.cycle-word.is-active { opacity: 1; transform: none; }
.cycle-word[data-state="sage"] { color: var(--sage); }
.cycle-word[data-state="warm"] { color: var(--warm); }
.cycle-word[data-state="clay"] { color: var(--clay); }
/* Read by assistive tech always; shown visibly only under reduced motion. */
.cycle-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.lede { font-size: 22px; color: var(--ink-2); margin: 24px 0 0; max-width: 600px; }

/* Sections */
section { position: relative; padding: 56px 0; border-top: 1px solid var(--hair); }
.hero + section { border-top: 0; }
h2 {
  position: relative; font-size: clamp(28px, 3.6vw, 34px);
  letter-spacing: -0.025em; font-weight: 700; margin: 0 0 22px;
}
h2::after {   /* a crisp warm rule that draws itself in on scroll */
  content: ""; position: absolute; left: 0; bottom: -12px; width: 52px; height: 2px;
  background: var(--warm); transform: scaleX(0); transform-origin: left center;
  transition: transform .55s var(--gentle);
}
h2.drawn::after { transform: scaleX(1); }
p { margin: 16px 0; }
p:first-child { margin-top: 0; }
strong { font-weight: 600; }
.kicker { font-weight: 600; }
.kicker.sage { color: var(--sage); } .kicker.warm { color: var(--warm); } .kicker.clay { color: var(--clay); }

/* Findings: an editorial three-up grid, quiet hairline gutters */
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.finding { padding: 4px 26px; border-left: 1px solid var(--hair); }
.finding:first-child { border-left: 0; padding-left: 0; }
.finding .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.finding .name {
  display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; margin-top: 10px;
}
.finding .name .swatch { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.finding p { margin: 8px 0 0; font-size: 17px; color: var(--ink-2); }
.finding b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 0.94em; }

/* Split: copy + a phone shot lit from within */
.split { display: grid; grid-template-columns: 1fr 0.82fr; gap: 44px; align-items: center; }
.hero-split { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.shot { position: relative; display: flex; justify-content: center; }
.shot::before {   /* a soft state-colored pool of light, not a hard shadow */
  content: ""; position: absolute; inset: 2% 6%; z-index: 0; border-radius: 50%;
  filter: blur(30px); background: radial-gradient(closest-side, var(--glow, rgba(94,124,99,.20)), transparent 78%);
}
.shot img {
  position: relative; z-index: 1; width: 100%; max-width: 300px; display: block;
  border: 1px solid var(--hair); border-radius: 34px;
  box-shadow: 0 24px 60px rgba(28,27,26,.10), 0 2px 8px rgba(28,27,26,.05);
}
.phone-float { animation: float 7s ease-in-out infinite alternate; will-change: transform; }
@keyframes float { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
.shot.glow-sage { --glow: rgba(94,124,99,.20); }
.shot.glow-blue { --glow: rgba(120,160,220,.22); }

/* Honest-numbers spec sheet: deliberately the calmest block, no flourish */
.spec { background: var(--paper-muted); border: 1px solid var(--hair); border-radius: 16px; padding: 4px 26px; margin: 4px 0 0; }
.spec ul { margin: 0; padding: 0; }
.spec li { list-style: none; padding: 16px 0; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 17px; }
.spec li:first-child { border-top: 0; }
.spec .no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); margin-right: 12px; }

/* Free / Pro */
.plan-price { font-family: var(--mono); font-weight: 600; color: var(--ink); }

/* CTA */
a.cta {
  display: inline-block; margin-top: 28px; background: var(--ink); color: var(--paper);
  text-decoration: none; padding: 14px 24px; border-radius: 100px; font-weight: 600; font-size: 17px;
  transition: transform .40s var(--smooth), box-shadow .40s var(--smooth);
  box-shadow: 0 6px 20px rgba(28,27,26,.14);
}
a.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(28,27,26,.20); }
a.cta:active { transform: scale(.98); }
.muted { color: var(--ink-3); font-size: 16px; margin-top: 14px; }
.muted.mono { font-family: var(--mono); }

a.textlink { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); transition: border-color .25s var(--smooth), color .25s var(--smooth); }
a.textlink:hover { color: var(--ink); border-color: var(--ink-3); }

/* Footer */
footer { position: relative; padding: 48px 0 64px; color: var(--ink-3); font-size: 15px; border-top: 1px solid var(--hair); }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-note { margin-top: 10px; }

/* Hero entrance: an orchestrated wake-up on load. The trace draws itself, the
   copy rises line by line, the phone lifts in. */
.js .hero-copy > *, .js .hero-shot { opacity: 0; animation: rise .7s var(--smooth) forwards; }
.js .hero-copy > * { transform: translateY(16px); }
.js .hero-copy > .eyebrow { animation-delay: .10s; }
.js .hero-copy > h1 { animation-delay: .18s; }
.js .hero-copy > .answer { animation-delay: .30s; }
.js .hero-copy > .lede { animation-delay: .42s; }
.js .hero-copy > .cta { animation-delay: .52s; }
.js .hero-copy > .muted { animation-delay: .60s; }
.js .hero-shot { transform: translateY(24px) scale(.985); animation-duration: .9s; animation-delay: .30s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .trace-accent { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace-draw 1.3s var(--smooth) .1s forwards; }

/* Scroll reveal (only active once JS confirms support) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .5s var(--smooth), transform .5s var(--smooth); }

/* Focus visibility */
a:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 720px) {
  .hero-split, .split { grid-template-columns: 1fr; }
  .hero-split .shot, .split .shot { order: 2; margin-top: 34px; }
  .findings { grid-template-columns: 1fr; }
  .finding { border-left: 0; border-top: 1px solid var(--hair); padding: 20px 0 0; }
  .finding:first-child { padding-top: 4px; }
  h1 { font-size: clamp(38px, 9vw, 52px); }
}

/* Reduced motion: the resting state IS the design. Everything holds still, lit. */
@media (prefers-reduced-motion: reduce) {
  .drift, .trace-breathe, .trace-pulse, .phone-float { animation: none; }
  .trace-pulse { display: none; }
  .trace-accent { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .hero-copy > *, .js .hero-shot { opacity: 1; transform: none; animation: none; }
  .cycle { display: none; }
  .cycle-static { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; font-weight: 700; color: var(--ink); }
  h2::after { transition: none; transform: scaleX(1); }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  a.cta:hover { transform: none; }
}
