/* Refynd public site v2.
   Concept: a dark, glowing "stage" for the hero (like a cinema before the
   film starts) where the one bright thing is volt lime, the colour of
   something being found. Calm grey sections below carry the detail. */
:root {
  --surface: #F4F5F7;
  --raised: #FFFFFF;
  --line: #E3E5EA;
  --ink: #0E0F13;
  --muted: #5B5F6B;
  --brand: #1C1F26;
  --on-brand: #FFFFFF;
  --brand-soft: #E8EAEE;
  --lime: #C8F24B;
  --lime-soft: #EFFCC8;
  --on-lime: #0E0F13;
  --stage: #0B0C10;
  --stage-2: #15171E;
  --stage-line: rgba(255, 255, 255, 0.07);
  --stage-ink: #F2F3F5;
  --stage-muted: #A3A8B4;
  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0B0C10; --raised: #16181F; --line: #262935; --ink: #F2F3F5; --muted: #9EA3B0;
    --brand: #E6E8EC; --on-brand: #0B0C10; --brand-soft: #232631; --lime: #D4F75E; --lime-soft: #26300C;
    --stage: #07080B; --stage-2: #111319;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0B0C10; --raised: #16181F; --line: #262935; --ink: #F2F3F5; --muted: #9EA3B0;
  --brand: #E6E8EC; --on-brand: #0B0C10; --brand-soft: #232631; --lime: #D4F75E; --lime-soft: #26300C;
  --stage: #07080B; --stage-2: #111319;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 120px); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 0.95; }
h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 46em; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.hl { background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 92%, transparent 92%); padding-inline: 4px; margin-inline: -4px; }
.text-link { font-weight: 650; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; color: var(--stage-ink); }
.site-header.scrolled { background: color-mix(in srgb, var(--stage) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--stage-line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--stage-muted); transition: color 0.2s; }
.nav a:hover { color: var(--stage-ink); }
.pill-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--lime); color: var(--on-lime); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.pill-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-lime); animation: beacon 1.6s ease-in-out infinite; }
@media (max-width: 860px) { .nav { display: none; } .site-header .pill-cta { margin-left: auto; } }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge-store { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 176px; height: 58px; padding: 0 18px 0 14px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.badge-store:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(200, 242, 75, 0.55); }
.badge-store svg { width: 28px; height: 28px; flex: none; }
.badge-store span { display: flex; flex-direction: column; line-height: 1.05; }
.badge-store small { font-size: 11px; letter-spacing: 0.02em; opacity: 0.85; }
.badge-store b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.badge-store .soon { position: absolute; top: -9px; right: -8px; background: var(--lime); color: var(--on-lime); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; box-shadow: 0 0 0 0 rgba(200, 242, 75, 0.7); animation: ring 2s ease-out infinite; }

/* ---------- Hero stage ---------- */
.hero { position: relative; isolation: isolate; background: var(--stage); color: var(--stage-ink); padding-top: calc(72px + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 72px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); }
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.glow.g1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(200, 242, 75, 0.55), transparent 65%); top: -120px; right: -80px; animation: drift 14s ease-in-out infinite alternate; }
.glow.g2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(120, 140, 255, 0.35), transparent 65%); bottom: -140px; left: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.spark { position: absolute; z-index: -1; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px 2px rgba(200, 242, 75, 0.8); animation: twinkle 2.8s ease-in-out infinite; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; position: relative; z-index: 2; }
.tagline { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--stage-line); font-size: 14px; color: var(--stage-muted); }
.tagline b { background: var(--lime); color: var(--on-lime); border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: 0.04em; }
.hero h1 { color: #fff; font-size: clamp(42px, 5.6vw, 84px); }
.hero h1 .line { display: block; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--lime); position: relative; }
.rotator > span { grid-area: 1 / 1; transition: transform 0.55s cubic-bezier(.2,.8,.2,1), opacity 0.4s; white-space: nowrap; }
.rotator > span.out { transform: translateY(-0.6em); opacity: 0; }
.rotator > span.in { transform: translateY(0.6em); opacity: 0; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.08em; border-radius: 99px; background: var(--lime); transform-origin: left; animation: underline 2.6s ease-in-out infinite; }
.hero .lede { color: var(--stage-muted); }
.hero .lede strong { color: var(--stage-ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--stage-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--lime); }

/* Phone stage with floating cards */
.stage { position: relative; min-height: 640px; display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.phone { position: relative; z-index: 3; width: min(310px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 48px; background: #050507; padding: 11px; box-shadow: 0 0 0 1.5px #2C2F38, 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 120px -20px rgba(200, 242, 75, 0.35); transform: rotate(-2deg); animation: hover 7s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 10; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #F4F5F7; color: #0E0F13; font-family: var(--font-body); }
.status { position: absolute; top: 0; left: 0; right: 0; height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font-size: 13px; font-weight: 650; z-index: 8; }
.status i { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.status i::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; border-radius: 1px; }

/* Scene 1: a social feed with share sheet */
.feed { position: absolute; inset: 0; background: #000; color: #fff; transition: opacity 0.5s; }
.feed img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-in-out infinite alternate; }
.feed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 55%, rgba(0,0,0,.75)); }
.feed-ui { position: absolute; left: 14px; right: 60px; bottom: 26px; z-index: 2; font-size: 12.5px; line-height: 1.35; }
.feed-ui b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.feed-rail { position: absolute; right: 12px; bottom: 30px; z-index: 2; display: flex; flex-direction: column; gap: 16px; align-items: center; font-size: 10px; }
.feed-rail span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.feed-rail svg { width: 26px; height: 26px; }
.feed-rail .share { animation: none; }
.scene-share .feed-rail .share svg { animation: tap 0.9s ease-out 1; color: var(--lime); }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6; background: rgba(245, 246, 248, 0.97); color: #0E0F13; border-radius: 22px; padding: 14px 12px 16px; transform: translateY(115%); transition: transform 0.5s cubic-bezier(.2,.9,.25,1); }
.sheet-title { font-size: 12px; font-weight: 650; color: #5B5F6B; text-align: center; margin-bottom: 12px; }
.sheet-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: 10px; }
.sheet-apps span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sheet-apps i { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; position: relative; }
.sheet-apps i svg { width: 26px; height: 26px; }
.app-msg { background: #34C759; } .app-mail { background: #2E7CF6; } .app-notes { background: #F7C948; }
.app-refynd { background: #16181F; }
.app-refynd svg { width: 30px !important; height: 30px !important; }
.app-refynd::after { content: ""; position: absolute; inset: -5px; border-radius: 17px; border: 2.5px solid var(--lime); opacity: 0; }
.scene-tap .app-refynd::after { animation: ping 0.9s ease-out 2; }
.scene-tap .app-refynd { animation: press 0.4s ease 0.5s 1; }
.toast { position: absolute; left: 50%; top: 56px; z-index: 9; translate: -50% -60px; opacity: 0; display: flex; align-items: center; gap: 8px; background: #0E0F13; color: #fff; font-size: 12.5px; font-weight: 650; padding: 9px 14px 9px 10px; border-radius: 999px; white-space: nowrap; transition: translate 0.45s cubic-bezier(.2,.9,.25,1), opacity 0.3s; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.toast i { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: #0E0F13; display: inline-flex; align-items: center; justify-content: center; }
.toast svg { width: 12px; height: 12px; }

/* Scene 2/3: library */
.lib { position: absolute; inset: 0; padding: 50px 12px 12px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.5s; background: #F4F5F7; }
.lib-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; padding: 2px 2px 0; }
.lib-search { display: flex; align-items: center; gap: 7px; border-radius: 11px; padding: 8px 10px; background: #fff; border: 1.5px solid #E3E5EA; font-size: 13px; transition: border-color 0.3s, box-shadow 0.3s; }
.lib-search svg { width: 15px; height: 15px; flex: none; }
.lib-search .typed { font-family: var(--font-mono); font-size: 12.5px; min-height: 1em; }
.lib-search .ph { color: #8A8F9B; }
.lib-search .caret { width: 2px; height: 15px; background: #0E0F13; animation: blink 1s steps(1) infinite; }
.lib-meta { display: flex; justify-content: space-between; font-size: 11px; color: #5B5F6B; padding: 0 2px; font-variant-numeric: tabular-nums; }
.lib-meta b { color: #0E0F13; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.lt { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #DDE0E6; transform: scale(0.6); opacity: 0; transition: transform 0.45s cubic-bezier(.2,1.3,.4,1), opacity 0.35s, filter 0.35s; }
.lt img { width: 100%; height: 100%; object-fit: cover; }
.lt .pb { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; background: rgba(14,15,19,.82); color: #fff; border-radius: 999px; padding: 1px 6px 1px 2px; font-size: 7.5px; font-weight: 650; }
.lt .pb i { font-style: normal; width: 10px; height: 10px; border-radius: 3px; background: #fff; color: #0E0F13; font-size: 6px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.found-tag { position: absolute; z-index: 7; display: none; }

.scene-lib .feed, .scene-search .feed, .scene-found .feed { opacity: 0; }
.scene-lib .lib, .scene-search .lib, .scene-found .lib { opacity: 1; }
.scene-share .sheet, .scene-tap .sheet { transform: translateY(0); }
.scene-saved .toast { translate: -50% 0; opacity: 1; }
.scene-lib .lt, .scene-search .lt, .scene-found .lt { transform: scale(1); opacity: 1; }
.scene-search .lib-search { border-color: #0E0F13; box-shadow: 0 0 0 4px rgba(200, 242, 75, 0.45); }
.scene-found .lt:not(.match) { opacity: 0.18; transform: scale(0.92); filter: grayscale(1); }
.scene-found .lt.match { transform: scale(1.08); z-index: 2; box-shadow: 0 0 0 3px var(--lime), 0 12px 30px -8px rgba(200, 242, 75, 0.9); }
.scene-found .lt.match::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: flash 0.5s ease-out 3; }
.found-bubble { position: absolute; z-index: 7; left: 50%; bottom: 22px; translate: -50% 20px; opacity: 0; display: flex; align-items: center; gap: 8px; background: var(--lime); color: #0E0F13; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; transition: translate 0.4s cubic-bezier(.2,1.4,.4,1), opacity 0.3s; white-space: nowrap; }
.scene-found .found-bubble { translate: -50% 0; opacity: 1; }

/* Steps under the phone */
.demo-steps { position: absolute; z-index: 4; bottom: -6px; left: 50%; translate: -50% 0; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stage-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.demo-steps span { padding: 6px 12px; border-radius: 999px; color: var(--stage-muted); transition: background 0.3s, color 0.3s; }
.demo-steps span.on { background: var(--lime); color: var(--on-lime); }

/* Floating cards */
.float { position: absolute; z-index: 2; width: 132px; border-radius: 16px; overflow: hidden; background: #fff; color: #0E0F13; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); animation: bob 6s ease-in-out infinite; }
.float img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.float p { font-size: 11px; font-weight: 650; line-height: 1.25; padding: 7px 9px 9px; }
.float .pb { position: absolute; left: 7px; top: 7px; background: rgba(14,15,19,.85); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.float.f1 { top: 20px; left: -2%; rotate: -9deg; animation-delay: -1s; }
.float.f2 { top: 70px; right: -2%; rotate: 8deg; animation-delay: -3s; width: 122px; }
.float.f3 { bottom: 80px; left: 2%; rotate: 6deg; animation-delay: -2s; width: 118px; }
.float.f4 { bottom: 40px; right: 0; rotate: -7deg; animation-delay: -4s; }
.chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(22, 24, 31, 0.9); border: 1px solid var(--stage-line); color: var(--stage-ink); font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: beacon 1.4s ease-in-out infinite; }
.chip.c1 { top: 44%; left: -4%; animation-delay: -2.5s; }
.chip.c2 { top: 30%; right: -6%; animation-delay: -1.2s; }

@media (max-width: 1100px) { .float.f1, .float.f3 { left: -6%; } .float.f2, .float.f4 { right: -6%; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { align-items: flex-start; }
  .stage { min-height: 600px; margin-top: 8px; }
  .float.f1, .float.f3 { left: 4%; } .float.f2, .float.f4 { right: 4%; }
}
@media (max-width: 640px) {
  .float { width: 96px !important; }
  .float p { display: none; }
  .float.f1 { left: -14px; top: 30px; } .float.f2 { right: -14px; top: 120px; }
  .float.f3 { left: -10px; bottom: 140px; } .float.f4 { right: -12px; bottom: 70px; }
  .chip.c1 { left: 0; top: 52%; } .chip.c2 { display: none; }
  .stage { min-height: 560px; }
  .phone { width: min(270px, 70vw); transform: none; }
}
@media (max-width: 380px) { .float.f3, .float.f4 { display: none; } .demo-steps { font-size: 11.5px; } .demo-steps span { padding: 5px 9px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .stage { min-height: 460px; }
  .phone { width: 210px; }
  .float, .chip { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--lime); color: var(--on-lime); padding-block: 18px; overflow: hidden; border-block: 2px solid var(--on-lime); }
.marquee.dark { background: var(--stage); color: var(--stage-ink); border: 0; padding-block: 0 26px; }
.track { display: flex; width: max-content; gap: 0; animation: scroll 32s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.01em; white-space: nowrap; }
.track span::after { content: "✦"; font-size: 0.7em; }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- What is / Problem ---------- */
.whatis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.whatis .answer { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 500; }
.whatis .answer strong { background: var(--lime-soft); padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) { .whatis { grid-template-columns: minmax(0, 1fr); } }

.problem { background: var(--stage); color: var(--stage-ink); position: relative; overflow: hidden; isolation: isolate; }
.problem .eyebrow, .problem .lede { color: var(--stage-muted); }
.problem h2 { color: #fff; }
.chaos { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.scatter { position: relative; min-height: 440px; }
.scatter .sc { position: absolute; width: 150px; padding: 10px; border-radius: 18px; background: var(--stage-2); border: 1px solid var(--stage-line); box-shadow: 0 20px 40px -20px #000; animation: jitter 5s ease-in-out infinite; }
.scatter .sc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; filter: saturate(0.7); }
.scatter .sc b { display: block; margin-top: 8px; font-size: 12px; color: var(--stage-muted); font-weight: 600; }
.scatter .sc b em { font-style: normal; color: var(--stage-ink); }
.sc.s1 { left: 0; top: 10px; rotate: -8deg; } .sc.s2 { left: 30%; top: 0; rotate: 5deg; animation-delay: -1s; }
.sc.s3 { right: 0; top: 40px; rotate: -4deg; animation-delay: -2s; } .sc.s4 { left: 10%; bottom: 0; rotate: 7deg; animation-delay: -3s; }
.sc.s5 { right: 8%; bottom: 10px; rotate: -10deg; animation-delay: -1.5s; }
.thought { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; background: #fff; color: #0E0F13; padding: 14px 18px; border-radius: 20px; font-weight: 700; font-size: 16px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); white-space: nowrap; }
.thought::after { content: ""; position: absolute; left: 22px; bottom: -10px; width: 18px; height: 18px; background: #fff; border-radius: 50%; }
.thought .q { color: #9EA3B0; animation: dots 1.4s steps(4) infinite; display: inline-block; width: 1.3em; overflow: hidden; vertical-align: bottom; }
.pains { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pains li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 17px; color: var(--stage-muted); }
.pains li b { color: var(--stage-ink); font-weight: 650; }
.pains li > i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 90, 90, 0.12); color: #FF7A7A; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.stat { border-radius: var(--radius); padding: 22px; background: var(--stage-2); border: 1px solid var(--stage-line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 56px); line-height: 1; color: var(--lime); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--stage-muted); }
@media (max-width: 900px) { .chaos { grid-template-columns: minmax(0, 1fr); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .scatter { min-height: 380px; } .scatter .sc { width: 118px; } .thought { font-size: 14px; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--raised); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); transition: transform 0.3s, box-shadow 0.3s; }
.steps li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(14, 15, 19, 0.45); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-family: var(--font-display); font-weight: 700; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--raised); }
.step-vis { height: 150px; border-radius: 16px; background: var(--surface); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.steps li p { color: var(--muted); }
.mini-sheet { display: flex; gap: 10px; }
.mini-sheet i { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.mini-sheet i svg { width: 24px; height: 24px; }
.mini-sheet .app-refynd { animation: press 2.4s ease-in-out infinite; box-shadow: 0 0 0 3px var(--lime); }
.mini-ai { display: flex; gap: 12px; align-items: center; }
.mini-ai img { width: 78px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.mini-ai ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-ai li { font-size: 12px; font-weight: 700; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; opacity: 0; animation: chipin 4s ease infinite; }
.mini-ai li:nth-child(2) { animation-delay: 0.4s; } .mini-ai li:nth-child(3) { animation-delay: 0.8s; }
.mini-search { width: 82%; display: flex; flex-direction: column; gap: 10px; }
.mini-search .bar { display: flex; align-items: center; gap: 8px; background: var(--raised); border: 2px solid var(--brand); border-radius: 12px; padding: 9px 12px; font-family: var(--font-mono); font-size: 13px; }
.mini-search .bar span { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--ink); width: 0; animation: typing 4s steps(16) infinite; }
.mini-search .hit { display: flex; gap: 8px; align-items: center; background: var(--raised); border-radius: 10px; padding: 6px; font-size: 12px; font-weight: 650; box-shadow: 0 0 0 2px var(--lime); animation: hitin 4s ease infinite; }
.mini-search .hit img { width: 30px; height: 40px; object-fit: cover; border-radius: 6px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps::before { display: none; } }

/* ---------- Search demo ---------- */
.demo { background: var(--raised); }
.demo .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; }
.tries button { font: 650 14px/1 var(--font-mono); border: 0; border-radius: 999px; padding: 11px 15px; background: var(--brand-soft); color: var(--ink); cursor: pointer; transition: transform 0.2s, background 0.2s; }
.tries button:hover { transform: translateY(-2px); }
.tries button[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.searchbox { display: flex; align-items: center; gap: 10px; border: 2px solid var(--brand); border-radius: 16px; padding: 14px 18px; background: var(--surface); transition: box-shadow 0.25s; }
.searchbox:focus-within { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lime) 55%, transparent); }
.searchbox svg { width: 22px; height: 22px; flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: 18px var(--font-body); color: var(--ink); outline: none; }
.demo-count { font-size: 14px; color: var(--muted); margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.result { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); animation: pop 0.45s cubic-bezier(.2,1.3,.4,1) both; }
.result img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.result .pb { position: absolute; left: 8px; top: 8px; background: rgba(14,15,19,.85); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.result .body { padding: 10px 12px 12px; }
.result h3 { font-family: var(--font-body); font-size: 14.5px; letter-spacing: 0; font-weight: 650; line-height: 1.3; }
.result p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.result mark { background: var(--lime); color: var(--on-lime); border-radius: 4px; padding: 0 2px; }
.result.top { box-shadow: 0 0 0 3px var(--lime); }
.why { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
.empty-result { grid-column: 1 / -1; color: var(--muted); padding: 18px; background: var(--surface); border-radius: 14px; }
@media (max-width: 900px) { .demo .wrap { grid-template-columns: minmax(0, 1fr); } .demo-copy { position: static; } }
@media (max-width: 420px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- Thumbnail wall ---------- */
.wall { position: relative; overflow: hidden; background: var(--stage); color: var(--stage-ink); padding-block: clamp(70px, 9vw, 120px); isolation: isolate; }
.wall-cols { position: absolute; inset: -20% -10%; z-index: -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; rotate: -12deg; opacity: 0.55; }
.wall-col { display: flex; flex-direction: column; gap: 16px; animation: rise 40s linear infinite; }
.wall-col:nth-child(even) { animation-direction: reverse; animation-duration: 48s; }
.wall-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.wall::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(11,12,16,.92), rgba(11,12,16,.55) 70%, rgba(11,12,16,.35)); }
.wall .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.wall h2 { color: #fff; max-width: 14em; }
.wall p { color: var(--stage-muted); max-width: 34em; font-size: 19px; }
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cats span { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--stage-line); font-weight: 650; font-size: 15px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cats span:nth-child(3n+1) { background: var(--lime); color: var(--on-lime); border-color: transparent; }
@media (max-width: 700px) { .wall-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Feature showcase ---------- */
.showcase { display: flex; flex-direction: column; gap: clamp(60px, 8vw, 110px); }
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sc-row:nth-child(even) .sc-vis { order: 2; }
.sc-vis { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.sc-vis::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 40px; background: var(--lime); rotate: -4deg; z-index: 0; }
.sc-row:nth-child(even) .sc-vis::before { rotate: 4deg; background: var(--brand); }
.mphone { position: relative; z-index: 1; width: min(280px, 72vw); border-radius: 40px; background: #050507; padding: 9px; box-shadow: 0 40px 70px -30px rgba(14,15,19,.6); transform: rotate(-3deg); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.sc-row:nth-child(even) .mphone { transform: rotate(3deg); }
.sc-row.inview .mphone { transform: rotate(0); }
.mscreen { border-radius: 32px; overflow: hidden; background: #F4F5F7; color: #0E0F13; padding: 40px 12px 14px; display: flex; flex-direction: column; gap: 9px; min-height: 520px; }
.mscreen h4 { margin: 0; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.folder { border-radius: 14px; overflow: hidden; background: #fff; }
.folder .fimgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.folder .fimgs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.folder b { display: block; font-size: 12px; padding: 7px 9px 1px; }
.folder small { display: block; font-size: 10.5px; color: #5B5F6B; padding: 0 9px 8px; }
.detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.detail h5 { margin: 6px 0 0; font-size: 14px; line-height: 1.3; }
.detail .row { display: flex; flex-wrap: wrap; gap: 5px; }
.detail .tag { font-size: 10.5px; font-weight: 700; background: #E8EAEE; border-radius: 999px; padding: 3px 9px; }
.detail .tag.lime { background: #C8F24B; }
.detail .note { font-size: 11.5px; background: #fff; border-radius: 12px; padding: 9px 10px; border-left: 3px solid #C8F24B; }
.detail .open { margin-top: auto; text-align: center; background: #0E0F13; color: #fff; font-weight: 700; font-size: 13px; border-radius: 12px; padding: 10px; }
.filters { display: flex; gap: 5px; overflow: hidden; }
.filters span { font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 4px 9px; background: #fff; border: 1px solid #E3E5EA; white-space: nowrap; }
.filters span.on { background: #0E0F13; color: #fff; border-color: #0E0F13; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mgrid div { position: relative; }
.mgrid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 9px; }
.mgrid .gone img { filter: grayscale(1) brightness(1.15); opacity: 0.55; }
.mgrid .gone::after { content: "Unavailable"; position: absolute; inset: auto 4px 4px 4px; text-align: center; font-size: 8px; font-weight: 800; background: rgba(14,15,19,.85); color: #fff; border-radius: 999px; padding: 2px 0; }
.sc-copy { display: flex; flex-direction: column; gap: 18px; }
.sc-copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sc-copy li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.sc-copy li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }
@media (max-width: 860px) { .sc-row { grid-template-columns: minmax(0, 1fr); } .sc-row:nth-child(even) .sc-vis { order: 0; } }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform 0.3s, border-color 0.3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--ink); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Privacy ---------- */
.privacy-band { background: var(--lime); color: var(--on-lime); }
.privacy-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.privacy-band .eyebrow { color: inherit; opacity: 0.7; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.privacy-band li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: 18px; }
.privacy-band li svg { width: 24px; height: 24px; margin-top: 2px; }
@media (max-width: 800px) { .privacy-band .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.plan { position: relative; border-radius: 26px; padding: 34px; display: flex; flex-direction: column; gap: 16px; background: var(--raised); border: 1px solid var(--line); }
.plan.featured { background: var(--stage); color: var(--stage-ink); border-color: transparent; overflow: hidden; isolation: isolate; }
.plan.featured::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(200,242,75,.45), transparent 65%); animation: drift 10s ease-in-out infinite alternate; }
.plan .price { font-family: var(--font-display); font-size: clamp(46px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.plan .price small { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; opacity: 0.7; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; }
.plan.featured li svg { color: var(--lime); }
.plan .tag { align-self: flex-start; background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.plan .fine { font-size: 13.5px; opacity: 0.7; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 46em; }

/* ---------- Final CTA ---------- */
.final { background: var(--stage); color: var(--stage-ink); position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final h2 { color: #fff; font-size: clamp(40px, 6.4vw, 84px); max-width: 12em; }
.final p { color: var(--stage-muted); font-size: 19px; }
.final .badges { justify-content: center; }
.ring { position: absolute; z-index: -1; left: 50%; top: 50%; border-radius: 50%; border: 1.5px solid rgba(200, 242, 75, 0.35); translate: -50% -50%; animation: ripple 6s linear infinite; }
.ring.r2 { animation-delay: -2s; } .ring.r3 { animation-delay: -4s; }

/* ---------- Footer ---------- */
.site-footer { background: var(--stage); color: var(--stage-muted); border-top: 1px solid var(--stage-line); padding-block: 44px calc(44px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer .logo { color: var(--stage-ink); font-size: 21px; }
.site-footer .logo svg { width: 26px; height: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--stage-ink); text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.inview { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes beacon { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(200, 242, 75, 0.7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(200, 242, 75, 0); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes underline { 0% { transform: scaleX(0); } 45%, 75% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(0.75); } 100% { transform: scale(1); } }
@keyframes ping { 0% { opacity: 1; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes press { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.86); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flash { 0% { background: rgba(200, 242, 75, 0.7); } 100% { background: transparent; } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes jitter { 0%, 100% { translate: 0 0; } 33% { translate: 4px -6px; } 66% { translate: -5px 4px; } }
@keyframes dots { from { width: 0; } to { width: 1.3em; } }
@keyframes chipin { 0%, 10% { opacity: 0; transform: translateX(-8px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes typing { 0% { width: 0; } 45%, 90% { width: 16ch; } 100% { width: 0; } }
@keyframes hitin { 0%, 50% { opacity: 0; transform: translateY(8px); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: translateY(-50%); } }
@keyframes ripple { 0% { width: 120px; height: 120px; opacity: 1; } 100% { width: 1400px; height: 1400px; opacity: 0; } }

/* Respect reduced motion: everything settles to a still, readable state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mini-ai li, .mini-search .hit { opacity: 1; }
  .mini-search .bar span { width: 16ch; border: 0; }
}

/* ---------- Legal and support pages ---------- */
.page-top { padding-top: calc(72px + env(safe-area-inset-top, 0px)); background: var(--stage); }
.doc { padding-block: 56px 96px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc h2 { font-size: clamp(24px, 3vw, 28px); margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; font-family: var(--font-body); letter-spacing: 0; }
.doc p, .doc li { max-width: 42em; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.doc .draft { background: var(--lime-soft); border-radius: 14px; padding: 14px 18px; margin: 20px 0 8px; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.contact-card { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.contact-card code { font-family: var(--font-mono); font-size: 16px; word-break: break-all; }
.muted { color: var(--muted); }

/* Utility classes (no inline styles, for the strict CSP) */
.mt { margin-top: 20px; }
.h-feature { font-size: clamp(28px, 3.4vw, 42px); }
.section-head.flush { margin: 0; }
section.no-top { padding-top: 0; }
.wall .eyebrow { color: var(--stage-muted); }
.spark.sp1 { top: 18%; left: 8%; } .spark.sp2 { top: 70%; left: 46%; animation-delay: -1s; } .spark.sp3 { top: 12%; left: 62%; animation-delay: -2s; }
.subpage .site-header { background: var(--stage); }
.subpage .doc { padding-top: calc(72px + env(safe-area-inset-top, 0px) + 48px); }

/* ---------- Notify-me form ---------- */
.notify-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; }
.notify-label { font-size: 15px; font-weight: 600; color: var(--stage-ink); }
.notify { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stage-line); width: 100%; max-width: 520px; transition: border-color 0.2s, box-shadow 0.2s; }
.notify:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 242, 75, 0.25); }
.notify input[type="email"] { min-width: 0; border: 0; background: transparent; color: #fff; font: 16px var(--font-body); padding: 10px 14px; outline: none; }
.notify input[type="email"]::placeholder { color: var(--stage-muted); }
.notify button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 15px var(--font-body); padding: 11px 18px; cursor: pointer; white-space: nowrap; transition: transform 0.2s; }
.notify button:hover { transform: translateY(-1px); }
.notify button[disabled] { opacity: 0.6; cursor: progress; }
.notify button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-lime); animation: beacon 1.6s ease-in-out infinite; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-msg { font-size: 14px; color: var(--stage-muted); padding: 2px 20px 0; margin: 0; max-width: 520px; }
.final .notify-msg { margin-inline: auto; text-align: center; }
.notify.done { grid-template-columns: minmax(0, 1fr); border-color: rgba(200, 242, 75, 0.55); background: rgba(200, 242, 75, 0.08); }
.notify.done > input[type="email"], .notify.done > button[type="submit"] { display: none; }
.notify-done { display: flex; align-items: center; gap: 12px; padding: 5px 6px 5px 6px; min-height: 44px; color: #fff; font-size: 15px; line-height: 1.35; animation: notify-in 0.35s ease-out; }
.notify-done .tick { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.notify-done .tick svg { width: 18px; height: 18px; }
.notify-done .txt { flex: 1; min-width: 0; text-align: left; }
.notify-done .txt b { color: var(--lime); font-weight: 700; }
.notify-done .again { flex: none; border: 0; background: transparent; color: var(--stage-muted); font: 600 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 12px; border-radius: 999px; }
.notify-done .again:hover { color: #fff; }
@keyframes notify-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notify-done { animation: none; } }
.notify-msg:empty { display: none; }
@media (max-width: 560px) { .notify-done { flex-wrap: wrap; row-gap: 2px; } .notify-done .txt { flex-basis: calc(100% - 46px); } .notify-done .again { margin-left: 46px; padding: 0 0 6px; } }
.notify-msg.ok { color: var(--lime); }
.notify-msg.err { color: #FF8A8A; }
.final .notify { margin-inline: auto; }
@media (max-width: 480px) {
  .notify { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .notify button { justify-content: center; }
}

/* ---------- Notify status page ---------- */
.status-card { background: var(--raised); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 560px; }
.status-card button { border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 16px var(--font-body); padding: 13px 22px; cursor: pointer; }
.status-card button.secondary { background: var(--brand-soft); color: var(--ink); }
.status-card button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- "You're on the list" stage ---------- */
.list-stage { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; background: var(--stage); color: var(--stage-ink); padding: calc(72px + env(safe-area-inset-top, 0px) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); }
.list-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.list-floats { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lf { position: absolute; width: clamp(70px, 9vw, 120px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; opacity: 0.22; filter: saturate(0.8); animation: bob 9s ease-in-out infinite; box-shadow: 0 20px 40px -20px #000; }
.lf1 { top: 14%; left: 4%; rotate: -10deg; } .lf2 { top: 8%; right: 6%; rotate: 8deg; animation-delay: -2s; }
.lf3 { top: 46%; left: -1%; rotate: 6deg; animation-delay: -4s; } .lf4 { top: 40%; right: 2%; rotate: -7deg; animation-delay: -1s; }
.lf5 { bottom: 12%; left: 8%; rotate: -4deg; animation-delay: -3s; } .lf6 { bottom: 6%; right: 9%; rotate: 9deg; animation-delay: -5s; }
.lf7 { top: 70%; left: 24%; rotate: 12deg; animation-delay: -6s; opacity: 0.12; } .lf8 { top: 22%; right: 26%; rotate: -12deg; animation-delay: -7s; opacity: 0.12; }
.list-wrap { position: relative; max-width: 720px; text-align: center; }
.list-stage .view { display: none; flex-direction: column; align-items: center; gap: 20px; }
.list-stage[data-state="loading"] .view-loading,
.list-stage[data-state="prompt"] .view-prompt,
.list-stage[data-state="success"] .view-success,
.list-stage[data-state="neutral"] .view-neutral { display: flex; animation: rise-in 0.6s cubic-bezier(.2,.8,.2,1) both; }
.list-stage h1 { color: #fff; font-size: clamp(42px, 7vw, 80px); line-height: 0.98; }
.list-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.list-lede { color: var(--stage-muted); font-size: clamp(17px, 2vw, 20px); max-width: 32em; }
.list-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 17px var(--font-body); padding: 16px 28px; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 40px -10px rgba(200, 242, 75, 0.6); }
.list-btn:hover { transform: translateY(-2px); }
.list-btn[disabled] { opacity: 0.6; cursor: progress; }
.list-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-lime); animation: beacon 1.6s ease-in-out infinite; }
.list-btn.small { font-size: 15px; padding: 11px 20px; box-shadow: none; }
.list-btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--stage-ink); border: 1px solid var(--stage-line); }
.list-err { color: #FF8A8A; font-size: 15px; min-height: 1em; }

/* Animated tick */
.burst { width: 116px; height: 116px; filter: drop-shadow(0 0 30px rgba(200, 242, 75, 0.55)); }
.burst svg { width: 100%; height: 100%; }
.burst-ring { fill: var(--lime); transform-origin: center; animation: pop-ring 0.6s cubic-bezier(.2,1.6,.4,1) both; }
.burst-tick { fill: none; stroke: var(--on-lime); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.5s 0.35s ease-out forwards; }

/* Ticket */
.ticket { position: relative; width: min(560px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 92px; margin-top: 12px; text-align: left; border-radius: 22px; color: #0E0F13; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); animation: ticket-in 0.9s 0.3s cubic-bezier(.2,1.2,.3,1) both; transform-style: preserve-3d; }
.ticket-main { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 22px 0 0 22px; background: linear-gradient(135deg, #F7FBE8 0%, #FFFFFF 45%, #EEF8C8 100%); -webkit-mask: radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 14px at 100% 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat; }
.ticket-main::after { content: ""; position: absolute; inset: -50% -20%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%); transform: translateX(-60%); animation: shine 3.6s 1.4s ease-in-out infinite; pointer-events: none; }
.ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 0; border-radius: 0 22px 22px 0; background: var(--lime); border-left: 2px dashed rgba(14, 15, 19, 0.35); -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 14px at 0 0, transparent 13px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13px, #000 14px) bottom / 100% 51% no-repeat; }
.ticket-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 12px; letter-spacing: 0.3em; }
.ticket-stub .bars { width: 44px; height: 70px; background: repeating-linear-gradient(0deg, #0E0F13 0 2px, transparent 2px 4px, #0E0F13 4px 7px, transparent 7px 9px, #0E0F13 9px 10px, transparent 10px 13px); opacity: 0.85; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ticket-brand svg { width: 26px; height: 26px; }
.ticket-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: #0E0F13; color: #C8F24B; padding: 4px 10px; border-radius: 999px; }
.ticket-spot { margin: 14px 0 10px; }
.ticket-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5B5F6B; }
.ticket-spot b { display: block; font-family: var(--font-display); font-size: clamp(56px, 11vw, 84px); line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ticket-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding-top: 12px; border-top: 1px dashed rgba(14, 15, 19, 0.2); }
.ticket-meta dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5B5F6B; }
.ticket-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
@media (max-width: 480px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 58px; }
  .ticket-main { padding: 18px; }
  .ticket-stub .bars { width: 30px; }
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .ticket-meta div:last-child { grid-column: 1 / -1; }
}

/* Next steps */
.next-steps { list-style: none; margin: 18px 0 0; padding: 0; width: min(560px, 100%); display: grid; gap: 0; text-align: left; counter-reset: ns; }
.next-steps li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 44px; counter-increment: ns; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--stage-muted); border: 1px solid var(--stage-line); }
.next-steps li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--stage-line); }
.next-steps li:last-child::after { display: none; }
.next-steps li.done::before { content: "✓"; background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.next-steps li.now::before { border-color: var(--lime); color: var(--lime); animation: ring 2s ease-out infinite; }
.next-steps b { color: var(--stage-ink); }
.next-steps span { color: var(--stage-muted); font-size: 15px; }
.next-steps li { opacity: 0; animation: rise-in 0.5s ease forwards; }
.next-steps li:nth-child(1) { animation-delay: 0.9s; } .next-steps li:nth-child(2) { animation-delay: 1.05s; }
.next-steps li:nth-child(3) { animation-delay: 1.2s; } .next-steps li:nth-child(4) { animation-delay: 1.35s; }

.share-box { width: min(560px, 100%); padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stage-line); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.share-box b { color: var(--stage-ink); font-weight: 650; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-msg { color: var(--lime); font-size: 14px; min-height: 1em; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-ring { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ticket-in { from { opacity: 0; transform: perspective(900px) rotateX(35deg) translateY(40px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) {
  .list-stage .view, .next-steps li, .ticket { opacity: 1 !important; transform: none !important; }
  .burst-tick { stroke-dashoffset: 0; }
}
.ticket-brand, .ticket-tag { white-space: nowrap; }
@media (max-width: 480px) { .ticket-brand { font-size: 15px; } .ticket-brand svg { width: 22px; height: 22px; } .ticket-tag { font-size: 9.5px; padding: 3px 8px; } }
