/* Stepeo — site styles. Cobalt-night hero and closing band, light body. */

@font-face { font-family: "Outfit"; src: url(/fonts/Outfit-2.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/DMSans-0.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono-1.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* dark */
  --night: #0A1230;
  --night-2: #101C4A;
  --fg: #F3F5FF;
  --sub: #A9B4D6;
  --dim: rgba(169, 180, 214, .55);
  --line-d: rgba(255, 255, 255, .10);
  /* light */
  --paper: #F7F8FB;
  --white: #FFFFFF;
  --ink: #0E1430;
  --ink-2: #4A5468;
  --ink-3: #7A8399;
  --line: #E3E7EF;
  /* brand */
  --cobalt: #2962FF;
  --cobalt-hover: #3D72FF;
  --sky: #7EA2FF;
  --gold: #F2B441;

  --f-display: "Outfit", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 48px);
  --wrap: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 400 17px/1.6 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--white); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Type ---------- */
.h2 { font: 600 clamp(1.9rem, 3.2vw, 2.75rem)/1.12 var(--f-display); letter-spacing: -.025em; }
.h3 { font: 600 clamp(1.3rem, 1.8vw, 1.55rem)/1.2 var(--f-display); letter-spacing: -.015em; }
.body { color: var(--ink-2); font-size: 1.0625rem; }
.body + .body { margin-top: .9em; }
.body strong { color: var(--ink); font-weight: 600; }
.eyebrow { font: 500 .9rem/1.3 var(--f-body); color: var(--ink-3); margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled { background: rgba(10, 18, 48, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-d); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--f-display); letter-spacing: -.01em; color: var(--fg); }

/* ---------- Hero (3D scene mounts into #stage) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  overflow: hidden; isolation: isolate; z-index: 5; color: var(--fg);
  background:
    radial-gradient(120% 80% at 50% 108%, #1B3394 0, rgba(27,51,148,0) 62%),
    radial-gradient(60% 50% at 82% 0, rgba(41,98,255,.30), rgba(41,98,255,0) 70%),
    linear-gradient(#0A1230, #0B1436);
}
/* static poster: shown until the 3D scene is ready, and when it never loads */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(/assets/hero-poster.jpg) center / cover no-repeat;
  opacity: 1; transition: opacity 1.2s;
}
.hero.has-3d:has(#stage.ready)::before { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(rgba(10,18,48,0), var(--night)); pointer-events: none; }   /* melt into the dark section below */
#stage { position: fixed; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.2s; pointer-events: none; }   /* fixed: the cards drift over the next section as you scroll */
#stage.ready { opacity: 1; }
#stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: var(--sf, 1); }
#trail { pointer-events: none; z-index: 2; }
.copy { position: relative; z-index: 3; text-align: center; padding: clamp(104px, 16vh, 160px) 20px 0; pointer-events: none; }
.copy a, .copy button { pointer-events: auto; }
.hero h1 { font: 600 clamp(2.6rem, 6vw, 5.25rem)/1.02 var(--f-display); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--sky); }
.copy p { color: var(--sub); max-width: 540px; margin: 20px auto 0; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero-cta { margin-top: 28px; display: flex; justify-content: center; }
#hint {
  position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s;
  display: flex; gap: 14px; align-items: center; white-space: nowrap; padding: 9px 14px; border-radius: 999px;
  background: rgba(8,14,40,.72); box-shadow: inset 0 0 0 1px var(--line-d); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 13px/1 var(--f-body); color: var(--fg);
}
#hint.on { opacity: 1; }
#hint i { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--gold); }
@media (hover: none) { #hint { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* One capture, four outputs (dark, continues the hero) */
.formats { background: var(--night); color: var(--fg); }
.section.formats { border-top: 0; }
.lede { font: 500 clamp(1.8rem, 3.4vw, 3.1rem)/1.12 var(--f-display); letter-spacing: -.025em; max-width: 20ch; }
.lede span { color: var(--sub); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.cell { padding: 24px; border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-d); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.cell small { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--gold); }
.cell h3 { font: 500 1.25rem/1.2 var(--f-display); }
.cell p { color: var(--sub); font-size: .92rem; margin-top: 6px; line-height: 1.5; }
.real { margin-top: clamp(56px, 8vw, 96px); }
.real .eyebrow { color: var(--sub); }
.real-title { font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 12px; }
.real-title span { color: var(--sub); }
.formats-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--sub); font: 500 1rem/1.4 var(--f-body); }
.formats-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); flex: none; }
.player { border-radius: 14px; overflow: hidden; background: var(--white); padding: clamp(12px, 2vw, 24px); box-shadow: 0 0 0 1px var(--line-d), 0 40px 80px -40px rgba(0,0,0,.6); }
.player showpath-player { display: block; width: 100%; }
.real-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.real-head .real-title { margin-bottom: 0; }
.voice { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d); }
.voice-label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sub); padding: 0 8px 0 10px; }
.voice button { font: 500 .88rem/1 var(--f-body); color: var(--sub); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background-color .15s, color .15s; }
.voice button:hover { color: var(--fg); }
.voice button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.voice button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .voice button { min-height: 40px; padding: 0 18px; } }

/* AI support bot */
.bot { background: var(--paper); }
.bot-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.bot-copy .h2 { margin-bottom: 16px; }
.chat { background: var(--white); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(10,18,48,.35); overflow: hidden; max-width: 440px; width: 100%; justify-self: end; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--night); color: var(--fg); }
.chat-bar b { display: block; font: 600 .95rem/1.2 var(--f-body); }
.chat-bar small { font: 400 .78rem/1 var(--f-body); color: var(--sub); }
.chat-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--cobalt); position: relative; flex: none; }
.chat-dot::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 2px var(--night); }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.msg { max-width: 88%; font-size: .93rem; line-height: 1.5; border-radius: 14px; padding: 10px 14px; }
.msg-user { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--paper); color: var(--ink); border-bottom-left-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.msg-bot ol { padding-left: 1.2em; margin: 6px 0 12px; display: grid; gap: 4px; }
.msg-bot b { font-weight: 600; }
.msg-typing { align-self: flex-start; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 4px; padding: 14px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dot 1s infinite ease-in-out; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-video { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: var(--night); color: var(--fg); text-decoration: none; }
.chat-video b { display: block; font-size: .88rem; }
.chat-video small { font: 400 .76rem/1 var(--f-body); color: var(--sub); }
.chat-play { flex: none; width: 44px; height: 30px; border-radius: 6px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(157,182,255,.4); position: relative; }
.chat-play::after { content: ""; position: absolute; left: 18px; top: 9px; border-left: 10px solid var(--fg); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.chat-source { margin-top: 10px; display: flex; align-items: center; gap: 8px; font: 400 .78rem/1.3 var(--f-body); color: var(--ink-3); }
.chat-source span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.chat-input { margin: 0 18px 18px; padding: 12px 14px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: .9rem; }
/* chat plays in when scrolled into view (JS adds .play); without JS it shows the final state */
.js .chat:not(.done) [data-step] { display: none; }
.js .chat [data-step].in { display: block; animation: msgIn .45s var(--ease) both; }
.js .chat .msg-typing.in { display: flex; }
.js .chat.done .msg-typing { display: none; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Founder card (unused; "Done with you" section removed 2026-11-22, restore from git 9fc68ab) */
.founder { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.founder-photo { flex: none; width: 88px; height: 88px; border-radius: 12px; background: repeating-linear-gradient(135deg, #E9ECF3 0 8px, #F2F4F8 8px 16px); display: grid; place-items: center; font: 500 .65rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.founder-name { font: 600 1.1rem/1.2 var(--f-display); }
.founder-role { font: 400 .9rem/1 var(--f-body); color: var(--ink-3); margin: 6px 0 12px; }
.founder-line { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.founder-mail { font-weight: 600; color: var(--cobalt); text-decoration: none; }
.founder-mail:hover { text-decoration: underline; }

/* CTA + footer (dark close) */
.cta { background: radial-gradient(80% 120% at 50% -20%, rgba(41,98,255,.35), rgba(41,98,255,0) 60%), var(--night); color: var(--fg); padding: clamp(80px, 11vw, 130px) 0; }
.cta .body { color: var(--sub); margin: 16px auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--night); color: var(--sub); border-top: 1px solid var(--line-d); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: var(--fg); }
.copyright { font-size: .85rem; color: var(--dim); }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 28, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: 18px; padding: clamp(24px, 5vw, 40px); box-shadow: 0 40px 80px -20px rgba(6,10,28,.5); transform: translateY(12px) scale(.98); transition: transform .35s var(--ease); }
.modal-overlay.active .modal-card { transform: none; }
.modal-card .h3 { margin-bottom: 10px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.modal-close:hover { background: var(--paper); color: var(--ink); }
.optin-form { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 6px; font: 600 .85rem/1 var(--f-body); color: var(--ink); }
.field input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: 400 1rem var(--f-body); color: var(--ink); }
.field .opt { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--cobalt); background: var(--white); box-shadow: 0 0 0 3px rgba(41,98,255,.15); }
.form-error { margin: 4px 0 0; font-size: .9rem; color: #C2362B; }
.form-error a { color: inherit; text-decoration: underline; }
.optin-form .btn { margin-top: 6px; }

/* ---------- Reveal (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bot-grid { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .chat { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav .btn { padding: 0 12px; font-size: 13px; height: 36px; }
  .founder { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .hero { min-height: 600px; }
  .player { padding: 8px; }
  .grid4 { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
