/* Unmissd landing page. Self-contained (the app uses tokens.css + components.css); same Inter font.
   Motion: CSS handles the hero entrance and the demo; static/js/landing.js lazy-loads GSAP/ScrollTrigger/Lenis
   for scroll-driven moments. Everything is visible and usable without JS and under prefers-reduced-motion. */

@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0B1220; --ink-2: #111A2E; --ink-3: #1A2540;
  --paper: #F7F6F2; --surface: #FFFFFF;
  --text: #0B1220; --text-2: #3A4457; --muted: #5B6474;
  --on-dark: #EEF2F7; --on-dark-2: #A9B4C4;
  --line: #E4E1D8; --line-dark: rgba(255, 255, 255, .09);
  --signal: #2EE6A0; --signal-deep: #0A7A52; --signal-soft: rgba(46, 230, 160, .14);
  --red: #B42318; --red-soft: #FDECEA;
  --radius: 14px; --radius-lg: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);       /* expo-like ease-out used everywhere */
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-ui: 260ms; --t-reveal: 800ms;
  --wrap: 1180px;
  --gutter: clamp(16px, 5vw, 40px);
  --fs-body: clamp(16px, .95rem + .2vw, 18px);
  --fs-lede: clamp(17px, 1rem + .45vw, 21px);
  --fs-h2: clamp(30px, 1.2rem + 2.6vw, 52px);
  --fs-hero: clamp(42px, 1.2rem + 6.2vw, 96px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--fs-body); line-height: 1.55;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 650; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--signal-deep); }
.dark { background: var(--ink); color: var(--on-dark); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.eyebrow.ink { color: var(--signal-deep); }
.h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.035em; font-weight: 720; max-width: 18ch; text-wrap: balance; }
.lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 46ch; margin-top: 16px; text-wrap: pretty; }
.dark .lede { color: var(--on-dark-2); }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }

/* ---------- Buttons: subtle shine on hover, satisfying press ---------- */
.btn { --bg: var(--signal); --fg: var(--ink); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px -10px rgba(46, 230, 160, .55);
  transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease); pointer-events: none; }
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } .btn:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 30px -10px rgba(46, 230, 160, .7); } }
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ink { --bg: var(--ink); --fg: #fff; box-shadow: 0 8px 20px -12px rgba(11, 18, 32, .6); }
.btn-ink::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); text-wrap: balance; }
.light .cta-note { color: var(--muted); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), backdrop-filter var(--t-ui); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 18, 32, .96); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line-dark); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo { display: block; flex: none; }
.nav-logo .wordmark { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(6px, 2vw, 24px); }
.nav-link { color: var(--on-dark-2); text-decoration: none; font-weight: 550; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; transition: color var(--t-ui); }
.nav-link:hover { color: #fff; }
@media (max-width: 420px) { .hide-xs { display: none; } .nav .btn-sm { padding: 0 12px; font-size: 14px; } }

/* ---------- Ambient depth: grid + glow + grain ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%); }
.grid-bg::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.glow { position: absolute; width: 900px; height: 900px; left: 50%; top: 45%; margin: -450px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 160, .20), rgba(46, 230, 160, .05) 40%, transparent 65%); will-change: transform; transform: translate3d(22vw, 0, 0); }
.glow-center { transform: none; top: 60%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) 0 clamp(48px, 7vh, 88px); }
.hero-in { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { max-width: 640px; }
.hero-title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -.05em; font-weight: 730; color: #fff; text-wrap: balance; }
.hero-title .w { display: inline-block; }
.hero-sub { margin-top: clamp(18px, 2.4vw, 26px); font-size: var(--fs-lede); color: var(--on-dark-2); max-width: 36ch; }
.hero-cta { margin-top: clamp(24px, 3vw, 34px); }
.facts { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.facts li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--on-dark-2); }
.facts strong { color: #fff; font-size: clamp(14px, .8rem + .3vw, 16px); font-weight: 650; letter-spacing: -.01em; }
.hero-stage { position: relative; display: flex; justify-content: center; }
@media (min-width: 960px) {
  .hero { min-height: 100dvh; display: flex; align-items: center; }
  .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
@media (max-width: 599px) {
  .hero-copy { min-height: min(calc(100dvh - var(--nav-h) - 190px), 600px); display: flex; flex-direction: column; justify-content: center; }
}
@media (max-width: 380px) { .facts { grid-template-columns: 1fr; gap: 10px; } .facts li { flex-direction: row; gap: 6px; flex-wrap: wrap; } }

/* Entrance: words go from blurred to sharp, then subline, CTA and phone. CSS only, done in under 1.5s. */
.js .hero-title .w { opacity: 0; filter: blur(10px); transform: translateY(14px); animation: word 700ms var(--ease) forwards; animation-delay: calc(80ms + var(--i) * 70ms); }
.js .enter { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease) forwards; animation-delay: var(--d); }
.js .enter-rise { opacity: 0; transform: translateY(40px) scale(.97); animation: rise-spring 900ms var(--ease-spring) forwards; animation-delay: var(--d); }
@keyframes word { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-spring { to { opacity: 1; transform: none; } }

/* ---------- Demo: phone + calendar ---------- */
.demo { --pw: clamp(268px, 76vw, 330px); position: relative; width: var(--pw); padding: 30px 0 116px; margin: 0 auto; }
.phone { position: relative; width: 100%; height: calc(var(--pw) * 1.72); max-height: 600px; border-radius: 44px; background: #0E1628; padding: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 10px #161F33, 0 0 0 11px rgba(255,255,255,.06), 0 40px 80px -20px rgba(0,0,0,.6), 0 0 120px -30px rgba(46,230,160,.35);
  display: flex; flex-direction: column; overflow: hidden; }
.phone-notch { position: absolute; top: 14px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #05080F; border-radius: 20px; z-index: 3; }
.phone-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 44px 14px 12px; background: #1F2C34; color: #E9EDEF; border-radius: 34px 34px 0 0; }
.phone-back svg { width: 20px; height: 20px; }
.phone-av { width: 36px; height: 36px; border-radius: 50%; background: var(--signal); color: var(--ink); font-weight: 750; font-size: 14px; display: grid; place-items: center; flex: none; letter-spacing: -.02em; }
.phone-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.phone-who b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-who span { font-size: 12.5px; color: #9FB0B9; }
.phone-chat { flex: 1; min-height: 0; overflow: hidden; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 6px;
  background: #0B141A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' opacity='.04'/%3E%3C/svg%3E"); }
.phone-chat .day { align-self: center; font-size: 11.5px; color: #9FB0B9; background: #1D2A32; padding: 3px 10px; border-radius: 8px; margin-bottom: 4px; }
.b { max-width: 84%; padding: 7px 10px 8px; font-size: 14px; line-height: 1.38; border-radius: 12px; color: #E9EDEF; position: relative; word-wrap: break-word; }
.b.in { align-self: flex-start; background: #202C33; border-top-left-radius: 4px; }
.b.out { align-self: flex-end; background: #005C4B; border-top-right-radius: 4px; }
.b.typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.b.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9FB0B9; animation: blink 1.1s infinite; }
.b.typing i:nth-child(2) { animation-delay: .15s; } .b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.b.pop { animation: pop 320ms var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-end; justify-content: flex-end; margin-top: 2px; }
.chip-slot { font-size: 13px; font-weight: 600; color: var(--signal); border: 1px solid rgba(46,230,160,.45); border-radius: 999px; padding: 5px 11px; background: rgba(46,230,160,.06);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease); }
.chip-slot.picked { background: var(--signal); color: var(--ink); transform: scale(1.04); }
.bookcard { align-self: flex-end; width: 84%; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.bookcard .bc-i { width: 30px; height: 30px; border-radius: 8px; background: var(--signal); display: grid; place-items: center; flex: none; }
.bookcard b { display: block; font-size: 13.5px; }
.bookcard .bc-s { display: block; color: var(--muted); font-size: 12px; }
.phone-input { flex: none; margin: 6px 4px 4px; height: 38px; border-radius: 20px; background: #1F2C34; color: #8696A0; font-size: 14px; display: flex; align-items: center; padding: 0 16px; }
.timer { position: absolute; z-index: 4; top: 0; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(11,18,32,.88); border: 1px solid rgba(46,230,160,.4); color: var(--signal); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.timer .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(46,230,160,.6); }
.timer.live .dot { animation: ping 1.2s var(--ease) infinite; }
.timer.hide { opacity: 0; transform: translateY(6px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,230,160,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,230,160,0); } }
.cal { position: absolute; z-index: 4; right: -40px; bottom: 30px; width: min(262px, 82%); background: #fff; color: var(--ink); border-radius: 16px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(11,18,32,.06); }
.cal-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cal-h svg { width: 16px; height: 16px; }
.cal-h b { color: var(--ink); }
.cal-rows { display: grid; gap: 5px; }
.slot { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-size: 12.5px; }
.slot .st { color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .sv { min-height: 28px; border-radius: 7px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.busy .sv { background: #EEF0F4; color: #5B6474; }
.slot.target .sv { border: 1.5px dashed #CBD2DC; color: transparent; }
.slot.target.filled .sv { border: 1.5px solid var(--signal-deep); background: #E4FBF1; color: var(--signal-deep); font-weight: 650; }
.slot.target.lock .sv { animation: lockin 1.2s var(--ease); }
@keyframes lockin { 0% { box-shadow: 0 0 0 0 rgba(46,230,160,.7); } 60% { box-shadow: 0 0 0 10px rgba(46,230,160,0); } 100% { box-shadow: none; } }
.demo-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12.5px; color: var(--on-dark-2); letter-spacing: .02em; }
.flyer { position: fixed; z-index: 60; pointer-events: none; margin: 0; }
.demo.fade .phone-chat > * { opacity: 0; transition: opacity 300ms var(--ease); }
/* With JS the finished conversation stays hidden until the demo takes over (no flash of the end state). */
.js .demo:not(.ready) .phone-chat > .b, .js .demo:not(.ready) .slot.target .sv { visibility: hidden; }
.phone-chat .hint { margin: auto 12px; text-align: center; color: #9FB0B9; font-size: 14px; line-height: 1.5; border: 1px dashed rgba(159,176,185,.35); border-radius: 14px; padding: 18px 16px; }
.phone-chat .hint b { color: var(--signal); }
@media (max-width: 959px) {
  .demo { padding-bottom: 164px; }
  .phone { height: calc(var(--pw) * 1.52); }
  .cal { right: 50%; translate: 50% 0; bottom: 28px; width: min(270px, 92%); }
}
@media (max-width: 520px) { .timer { font-size: 13px; } }
@media (min-width: 1200px) { .demo { --pw: 330px; } }
@media (max-height: 820px) and (min-width: 960px) { .demo { --pw: 290px; } }

/* ---------- Try it ---------- */
.try { border-top: 1px solid var(--line-dark); overflow: hidden; }
.try-in { display: grid; gap: 48px; align-items: center; }
.try-form { margin-top: 28px; display: grid; gap: 14px; max-width: 460px; }
.tfield { display: grid; gap: 6px; }
.tfield label { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.tfield input, .tfield select { min-height: 52px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: var(--ink-2); color: #fff; padding: 0 14px; font-size: 16px; width: 100%;
  transition: border-color var(--t-ui), box-shadow var(--t-ui); appearance: none; -webkit-appearance: none; }
.tfield select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23A9B4C4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.tfield input::placeholder { color: #6B778A; }
.tfield input:focus, .tfield select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(46,230,160,.25); }
.try-after { margin-top: 28px; }
.try-done { font-size: 16px; color: var(--on-dark); margin-bottom: 14px; }
.try-done b { color: var(--signal); }
@media (min-width: 900px) { .try-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Problem story ---------- */
.story { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 1000px; display: grid; gap: 16px; }
.story-row { display: grid; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.story-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.won .story-label { color: var(--signal-deep); }
.story-step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.story-step .t { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sb { font-size: 15px; padding: 9px 13px; border-radius: 14px; max-width: 30ch; }
.sb.in { background: #EEF0F4; color: var(--text); border-top-left-radius: 4px; }
.sb.out { background: var(--signal-deep); color: #fff; font-weight: 600; border-top-right-radius: 4px; }
.sb.none { background: transparent; border: 1.5px dashed #C7CCD5; color: var(--muted); font-style: italic; }
.story-line { display: none; }
.job-chip { font-size: 14px; font-weight: 650; padding: 8px 12px; border-radius: 10px; }
.job-chip.gone { background: var(--red-soft); color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; }
.job-chip.booked { background: #E4FBF1; color: var(--signal-deep); border: 1px solid rgba(10,122,82,.25); }
@media (min-width: 860px) {
  .story-row { grid-template-columns: 150px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); padding: 22px 26px; }
  .story-line { display: block; height: 2px; background: var(--line); border-radius: 2px; transform-origin: left center; }
  .won .story-line { background: rgba(10,122,82,.35); }
}

/* ---------- Calculator ---------- */
.calc-sec { padding-top: 0; }
.calc { display: grid; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 60px -40px rgba(11,18,32,.35); }
.calc-inputs { padding: clamp(24px, 4vw, 48px); display: grid; gap: 26px; align-content: start; }
.calc-inputs .h2 { font-size: clamp(28px, 1rem + 2vw, 42px); }
.slider { display: grid; gap: 10px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider label { font-weight: 600; font-size: 16px; }
.slider output { font-weight: 720; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--signal-deep) var(--p), #E6E3DB var(--p)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: #E6E3DB; }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--signal-deep); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--signal-deep); box-shadow: 0 4px 12px rgba(11,18,32,.2); transition: transform 150ms var(--ease); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--signal-deep); box-shadow: 0 4px 12px rgba(11,18,32,.2); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-result { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -220px; background: radial-gradient(circle, rgba(46,230,160,.18), transparent 65%); pointer-events: none; }
.calc-k { color: var(--on-dark-2); font-size: 16px; position: relative; }
.calc-v { font-size: clamp(44px, 1.4rem + 5vw, 80px); font-weight: 740; letter-spacing: -.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; position: relative; }
.calc-u { font-size: .3em; letter-spacing: -.01em; color: var(--on-dark-2); font-weight: 550; }
.calc-note { font-size: 13.5px; color: var(--on-dark-2); position: relative; margin-bottom: 14px; }
.calc-result .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 12px 20px; position: relative; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* ---------- How it works (pinned + progress line on desktop) ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-in { display: grid; gap: 40px; }
.how-progress { display: none; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.how-step { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.how-n { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--signal); font-weight: 750; display: grid; place-items: center; }
.how-text h3 { font-size: clamp(20px, 1rem + .6vw, 24px); letter-spacing: -.02em; font-weight: 700; }
.how-text p { color: var(--text-2); margin-top: 8px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; font-size: 13.5px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; }
.mini-row span { color: var(--muted); }
.mini-row b { font-weight: 600; text-align: right; }
.mini-row .ok { color: var(--signal-deep); }
.chatmini .sb { font-size: 13.5px; }
.chatmini .sb.out { justify-self: end; font-weight: 500; }
.mini-tag { justify-self: end; font-size: 12px; font-weight: 650; color: var(--signal-deep); }
.evt { display: grid; gap: 12px; grid-template-columns: 6px 1fr; align-items: stretch; }

.evt-bar { background: var(--signal-deep); border-radius: 4px; }
.evt b { display: block; } .evt span { color: var(--muted); }
.evts { display: grid; gap: 10px; }
.mail { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; font-size: 13.5px; }
.mail i { width: 28px; height: 28px; border-radius: 8px; background: #EEF0F4; display: grid; place-items: center; font-style: normal; }
.mail b { display: block; } .mail span { color: var(--muted); }
@media (min-width: 960px) {
  .how-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .how-step { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: center; padding: 28px; }
  /* Pinned sequence (JS adds .pinning): steps on the left, one visual stage on the right that changes per step. */
  .how.pinning { padding: 40px 0 48px; }
  .how.pinning .how-in { grid-template-columns: 1fr; gap: 0; }
  .how.pinning .how-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end; column-gap: 40px; }
  .how.pinning .how-head > :not(.how-progress) { grid-column: 1; }
  .how.pinning .how-head .how-progress { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .how.pinning .how-head .h2 { max-width: none; }
  .how.pinning .how-progress { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
  .how-progress span { display: block; height: 100%; width: 100%; background: var(--signal-deep); transform: scaleX(0); transform-origin: left; }
  .how.pinning .how-steps { position: relative; margin-top: 32px; gap: 0; min-height: 360px; }
  .how.pinning .how-step { width: 46%; grid-template-columns: 44px minmax(0, 1fr); align-items: start; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none;
    transition: color 400ms var(--ease); }
  /* Upcoming steps are dimmed by colour, not opacity, so text keeps 4.5:1 contrast. */
  .how.pinning .how-step h3, .how.pinning .how-step p { color: var(--muted); transition: color 400ms var(--ease); }
  .how.pinning .how-step .how-n { background: #E6E3DB; color: var(--muted); transition: background-color 400ms var(--ease), color 400ms var(--ease); }
  .how.pinning .how-step.on h3 { color: var(--text); }
  .how.pinning .how-step.on p { color: var(--text-2); }
  .how.pinning .how-step.on .how-n { background: var(--ink); color: var(--signal); }
  .how.pinning .how-vis { position: absolute; right: 0; top: 0; width: 48%; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity 450ms var(--ease), transform 450ms var(--ease); pointer-events: none; }
  .how.pinning .how-step.cur .how-vis { opacity: 1; transform: none; }
  .how.pinning .how-vis .mini { font-size: 15.5px; padding: 26px; gap: 14px; border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(11,18,32,.45); min-height: 240px; align-content: center; }
  .how.pinning .how-vis .sb { font-size: 15.5px; }
}
@media (min-width: 960px) and (max-height: 860px) {
  .how.pinning .how-head .h2 { font-size: clamp(30px, 5.4vh, 46px); }
  .how.pinning .how-step { padding: 14px 0; }
  .how.pinning .how-text p { font-size: 16px; margin-top: 4px; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 56px); align-items: stretch; }
.plan { position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease); }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(11,18,32,.45); } }
.plan-in { padding: 26px; display: flex; flex-direction: column; height: 100%; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 20px; letter-spacing: -.02em; }
.badge { font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--signal); padding: 4px 10px; border-radius: 999px; }
.plan-sum { color: var(--muted); margin-top: 6px; font-size: 15px; min-height: 2.8em; }
.plan-price { margin: 18px 0 18px; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amt { font-size: clamp(44px, 2rem + 1.6vw, 56px); font-weight: 740; letter-spacing: -.05em; line-height: 1; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-trial { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.plan-intro { font-size: 14px; font-weight: 650; margin-top: 22px; }
.plan-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; font-size: 15px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan-list svg { width: 20px; height: 20px; color: var(--signal-deep); margin-top: 2px; }
.plan-trial + .plan-list { margin-top: 22px; }
/* Highlighted plan: slow rotating gradient border */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan-hi { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box,
  conic-gradient(from var(--ang), #0A7A52, #2EE6A0, #9AF5D0, #0A7A52 40%, #D9F7EA 60%, #0A7A52) border-box; border: 2px solid transparent; animation: spin 7s linear infinite;
  box-shadow: 0 30px 60px -36px rgba(10,122,82,.55); }
@keyframes spin { to { --ang: 360deg; } }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan-hi { transform: translateY(-8px); } @media (hover: hover) { .plan-hi:hover { transform: translateY(-12px); } } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 650; font-size: clamp(17px, 1rem + .3vw, 19px); letter-spacing: -.01em; padding: 10px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/14px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 14px no-repeat; transition: transform var(--t-ui) var(--ease); color: var(--muted); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-2); padding: 0 0 22px; max-width: 64ch; }
.faq-list details[open] p { animation: rise 360ms var(--ease) both; }
.faq-list a { color: var(--signal-deep); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 160px) 0; text-align: center; }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final .h2 { color: #fff; max-width: 16ch; }
.final .lede { margin-bottom: 30px; }

/* ---------- Footer ---------- */
.foot { background: #070C16; color: var(--on-dark-2); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-in { display: grid; gap: 22px; }
.foot-brand .wordmark { height: 22px; width: auto; }
.foot-trust { margin-top: 12px; color: var(--on-dark); font-weight: 550; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--on-dark-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: #fff; }
.foot-legal { font-size: 13px; line-height: 1.7; color: #8391A6; border-top: 1px solid var(--line-dark); padding-top: 20px; }
.foot-legal a { color: var(--on-dark-2); }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } .foot-legal { grid-column: 1 / -1; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(11,18,32,.92); color: var(--on-dark); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5), 0 0 0 1px var(--line-dark); font-size: 14px; font-weight: 550;
  transform: translateY(140%); transition: transform 360ms var(--ease); }
.sticky.show { transform: none; }
.sticky .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- Scroll reveals (only after GSAP has loaded and set them up) ---------- */
.reveal { will-change: auto; }

/* ---------- Reduced motion: static, instant, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .hero-title .w, .js .enter, .js .enter-rise { opacity: 1; filter: none; transform: none; }
  .plan-hi { animation: none; }
  .btn::after { display: none; }
}
.no-js .sticky { display: none; }
