/* edit.ai website. Design system documented in /DESIGN.md.
   Brand colors only (see CLAUDE.md): black, white, the 3 logo blues; grays are black/white at lower opacity. */
:root {
  --ink: #0E0E10;
  --ink-2: #16161A;          /* raised surface on dark (ink + white 4%) */
  --white: #FFFFFF;
  --blue-light: #3C87FD;     /* accents on dark; never body text on white */
  --blue: #2B76FB;
  --blue-deep: #0442EB;      /* buttons with white text, links on white */
  --gradient: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  --text-2: rgba(0, 0, 0, 0.70);
  --text-3: rgba(0, 0, 0, 0.62);
  --line: rgba(0, 0, 0, 0.09);
  --tint: #F4F6FB;           /* page tint: white with a whisper of blue */
  --blue-tint: rgba(43, 118, 251, 0.10);
  --dark-2: rgba(255, 255, 255, 0.78);
  --dark-3: rgba(255, 255, 255, 0.62);
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-line: rgba(255, 255, 255, 0.12);
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.22);
  --shadow-blue: 0 40px 100px -30px rgba(4, 66, 235, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", sans-serif; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.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: 16px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--r-md); background: var(--white); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* layout */
.wrap { max-width: 1228px; margin: 0 auto; padding-left: 24px; padding-right: 24px; } /* 1180px content */
.section { padding-top: 120px; padding-bottom: 120px; }
.dark { background: var(--ink); color: var(--white); }
.tint { background: var(--tint); }
.light { background: var(--white); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.intro { max-width: 680px; margin-bottom: 56px; }
.intro.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.small { font-size: 14px; color: var(--text-3); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-deep); }
.dark .eyebrow { color: var(--blue-light); }
h2.title { font-size: clamp(34px, 4vw, 54px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.lead { font-size: 18px; color: var(--text-2); }
.dark .lead, .dark .small { color: var(--dark-2); }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .grad { background: linear-gradient(135deg, #FFFFFF 10%, var(--blue-light) 90%); -webkit-background-clip: text; background-clip: text; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 0; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease), background-color 0.18s, box-shadow 0.18s, border-color 0.18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-blue { background: var(--blue-deep); color: var(--white); box-shadow: 0 10px 30px -10px rgba(4, 66, 235, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-blue:hover { background: #0338c9; color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { color: var(--blue-deep); }
.btn-ghost { border: 1px solid var(--dark-line); color: var(--white); background: var(--dark-card); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-line { border: 1px solid rgba(0, 0, 0, 0.18); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 16px; }
.self-start { align-self: flex-start; }

/* header: dark on every page */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 16, 0.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--dark-line); }
.nav { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.logo img { width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--dark-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--dark-line); border-radius: var(--r-md); background: transparent; color: var(--white); cursor: pointer; }
.menu-btn .close { display: none; }
.nav.open .menu-btn .open { display: none; }
.nav.open .menu-btn .close { display: block; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px); background-size: 56px 56px; opacity: 0.45; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.glow-1 { width: 560px; height: 560px; left: -160px; top: -200px; background: var(--blue-deep); animation: drift 14s ease-in-out infinite alternate; }
.glow-2 { width: 480px; height: 480px; right: -140px; top: 120px; background: var(--blue-light); opacity: 0.35; animation: drift 18s ease-in-out infinite alternate-reverse; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-top: 96px; padding-bottom: 72px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--dark-card); border: 1px solid var(--dark-line); color: var(--dark-2); font-size: 14px; font-weight: 500; }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--gradient); color: var(--white); font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; max-width: 980px; }
.hero-sub { max-width: 620px; font-size: 19px; color: var(--dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; color: var(--dark-3); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { color: var(--blue-light); }

/* the product window in the hero */
.app { position: relative; width: 100%; max-width: 1080px; margin: 24px auto 0; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--dark-line); box-shadow: var(--shadow-blue), 0 0 0 1px rgba(60, 135, 253, 0.15); text-align: left; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-3); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-line); }
.app-bar .title { margin-left: 12px; }
.app-bar .live { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); animation: ping 2s ease-out infinite; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.chat { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-right: 1px solid var(--dark-line); }
.prompt { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 116px; }
.prompt small { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-3); }
.prompt-text { font-size: 17px; line-height: 1.45; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--blue-light); animation: blink 1s steps(1) infinite; }
.steps { display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; transition: opacity 0.3s, transform 0.3s var(--ease); }
.steps li svg { flex: none; }
.steps li.wait { opacity: 0; transform: translateX(-8px); }
.steps .spin { animation: spin 1s linear infinite; }
.bar { height: 6px; border-radius: 999px; background: var(--dark-line); overflow: hidden; margin-top: auto; }
.bar div { width: 75%; height: 100%; border-radius: 999px; background: var(--gradient); transition: width 0.6s var(--ease); }
.preview { position: relative; display: grid; place-items: center; min-height: 360px; padding: 16px; background: radial-gradient(circle at 50% 60%, rgba(43, 118, 251, 0.2), transparent 65%); }
.preview svg { width: 100%; max-width: 440px; height: auto; }
.preview-tag { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-2); }
.building .blk { animation: pop 0.5s var(--ease) both; animation-delay: var(--d); }

/* game-mode marquee */
.marquee { overflow: hidden; background: var(--gradient); color: var(--white); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 40px; padding-right: 40px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.marquee li { display: flex; align-items: center; gap: 40px; }
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transform: rotate(45deg); }

/* how it works */
.how-steps { position: relative; }
.how-steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 104px; height: 2px; background: linear-gradient(90deg, var(--blue-light), var(--blue-deep), var(--blue-light)); background-size: 200% 100%; animation: flow 4s linear infinite; opacity: 0.6; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step > :not(.step-visual) { margin: 0 8px; }
.step-visual { display: grid; place-items: center; height: 176px; border-radius: 14px; background: var(--ink); overflow: hidden; margin-bottom: 10px; }
.step-num { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 13px; color: var(--blue-deep); letter-spacing: 0.1em; }
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.step p { color: var(--text-2); }
.bubble { display: flex; flex-direction: column; gap: 10px; width: 80%; }
.bubble span { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--blue-deep); color: var(--white); font-size: 14px; line-height: 1.4; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--dark-card); border: 1px solid var(--dark-line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dark-2); animation: bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.ring { position: relative; width: 108px; height: 108px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--dark-line); }
.ring .fill { stroke: var(--blue-light); stroke-linecap: round; stroke-dasharray: 264; animation: ring 3.2s var(--ease) infinite; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; }
.publish { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--gradient); color: var(--white); font-weight: 700; font-size: 15px; animation: lift 3s var(--ease) infinite; }
.live-pill .dot { background: var(--white); }
.players { display: flex; }
.players i { width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--ink); background: var(--blue); animation: join 3s var(--ease) infinite; }
.players i:nth-child(1) { margin-left: 0; background: var(--blue-light); }
.players i:nth-child(2) { animation-delay: 0.2s; background: var(--white); }
.players i:nth-child(3) { animation-delay: 0.4s; background: var(--blue-deep); }
.players i:nth-child(4) { animation-delay: 0.6s; background: rgba(255, 255, 255, 0.5); }

/* features bento (dark) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--dark-card); border: 1px solid var(--dark-line); overflow: hidden; transition: border-color 0.25s, transform 0.25s var(--ease); }
.tile:hover { border-color: rgba(60, 135, 253, 0.5); transform: translateY(-3px); }
.tile.wide { grid-column: span 2; }
.tile h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.tile p { color: var(--dark-2); }
.tile-visual { height: 148px; margin-bottom: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--dark-line); padding: 18px; overflow: hidden; }
.tile.claude { background: var(--gradient); border-color: transparent; justify-content: flex-end; }
.tile.claude p { color: rgba(255, 255, 255, 0.92); }
.tile.claude .eyebrow { color: var(--white); }
.code { display: flex; flex-direction: column; gap: 11px; }
.code div { display: flex; gap: 8px; }
.code i { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); transform-origin: left; animation: write 4s var(--ease) infinite; animation-delay: var(--d); }
.code i.b { background: var(--blue-light); }
.code i.c { background: var(--blue-deep); }
.log { display: flex; flex-direction: column; gap: 12px; font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.log li { display: flex; align-items: center; gap: 10px; color: var(--dark-2); }
.log b { flex: none; display: grid; min-width: 56px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 600; text-align: center; }
.log b span { grid-area: 1 / 1; padding: 2px 8px; }
.log .err { background: rgba(255, 255, 255, 0.14); color: var(--white); animation: hide 4s steps(1) infinite; animation-delay: var(--d); }
.log .ok { background: var(--blue-deep); color: var(--white); opacity: 0; animation: show 4s steps(1) infinite; animation-delay: var(--d); }
.plan-list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--dark-2); }
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list svg { flex: none; color: var(--blue-light); }
.plan-list path { stroke-dasharray: 24; animation: draw 4s var(--ease) infinite; animation-delay: var(--d); }
.timeline { position: relative; height: 100%; }
.timeline .line { position: absolute; left: 8px; right: 8px; top: 62%; height: 2px; background: var(--dark-line); }
.timeline .snaps { position: absolute; left: 0; right: 0; top: calc(62% - 7px); display: flex; justify-content: space-between; }
.timeline .snaps i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--blue-light); }
.timeline .marker { position: absolute; left: 37%; top: 18%; width: 64px; margin-left: -32px; padding: 3px 0; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; animation: rewind 5s var(--ease) infinite; }
.big-stat { font-family: "Plus Jakarta Sans", sans-serif; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 8px 0 6px; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: rgba(60, 135, 253, 0.15); color: var(--blue-light); margin-bottom: 6px; }

/* modes */
.mode { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease); }
.mode:hover { transform: translateY(-4px); }
.mode > :not(.shot) { margin: 0 10px; }
.shot { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--ink); overflow: hidden; margin-bottom: 6px; }
.shot svg { width: 100%; height: 100%; }
.mode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mode h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.mode p { color: var(--text-2); }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 13px; font-weight: 600; white-space: nowrap; }
.grow { transform-box: fill-box; transform-origin: bottom; animation: grow 3.6s var(--ease) infinite; animation-delay: var(--d); }
.runner { offset-path: path("M58 150 Q 88 110 114 132 T 166 106 T 216 84 T 266 58"); offset-rotate: 0deg; animation: run 3.6s var(--ease) infinite; }
.boxpop { transform-box: fill-box; transform-origin: center; animation: boxpop 3.6s var(--ease) infinite; animation-delay: var(--d); }
.limits { margin-top: 40px; text-align: center; }

/* pricing */
.note { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: var(--blue-tint); color: var(--ink); font-size: 15px; }
.note svg { flex: none; color: var(--blue-deep); }
.plans { align-items: stretch; }
.plan { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan h3 { font-size: 20px; font-weight: 800; }
.price { font-family: "Plus Jakarta Sans", sans-serif; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.plan p:not(.price) { color: var(--text-2); font-size: 15px; }
.ticks { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 3px; color: var(--blue-deep); }
.plan .btn { margin-top: auto; }
.plan.pro { background: var(--ink); color: var(--white); border-color: transparent; box-shadow: var(--shadow-blue); isolation: isolate; }
.plan.pro::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 22px; background: linear-gradient(120deg, var(--blue-light), var(--blue-deep), var(--ink), var(--blue-light)); background-size: 300% 300%; animation: border 6s linear infinite; }
.plan.pro::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-lg); background: var(--ink); }
.plan.pro .price span, .plan.pro p:not(.price) { color: var(--dark-2); }
.plan.pro .ticks { border-color: var(--dark-line); }
.plan.pro .ticks svg { color: var(--blue-light); }
.plan.studio { background: var(--blue-deep); border-color: transparent; color: var(--white); box-shadow: var(--shadow-blue); }
.plan.studio .price span, .plan.studio p:not(.price) { color: rgba(255, 255, 255, 0.85); }
.plan.studio .ticks { border-color: rgba(255, 255, 255, 0.25); }
.plan.studio .ticks svg { color: var(--white); }
.plan.studio :focus-visible { outline-color: var(--white); } /* blue-light ring would vanish on blue */
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--blue-deep); color: var(--white); font-size: 12px; font-weight: 700; }
.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 40px; font-size: 15px; color: var(--text-2); }
.included li { display: flex; align-items: center; gap: 8px; }
.included svg { color: var(--blue-deep); }
.portal-line { margin-top: 12px; text-align: center; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 64px; align-items: start; }
.faq-wrap .intro { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { border-radius: 14px; background: var(--tint); border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s; }
.faq-list details[open] { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-card); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--blue-deep); font-size: 20px; font-weight: 500; transition: transform 0.25s var(--ease), background-color 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--blue-tint); }
.faq-list details p { padding: 0 20px 20px; color: var(--text-2); }

/* final CTA */
.cta-band { padding: 0 24px 120px; }
.cta { position: relative; overflow: hidden; isolation: isolate; max-width: 1180px; margin: 0 auto; background: var(--gradient); color: var(--white); border-radius: var(--r-xl); padding: 96px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); filter: blur(60px); animation: drift 12s ease-in-out infinite alternate; }
.cta::before { left: -120px; top: -160px; }
.cta::after { right: -120px; bottom: -200px; background: rgba(0, 0, 0, 0.25); animation-direction: alternate-reverse; }
.cta h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.cta p { max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, 0.92); }
.cta .float { animation: float 5s ease-in-out infinite; }

/* footer: dark on every page */
.site-footer { background: var(--ink); color: var(--dark-2); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 72px; padding-bottom: 48px; }
.foot p { font-size: 15px; max-width: 300px; margin-top: 14px; }
.foot h2 { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-3); margin-bottom: 8px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dark-2); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--white); text-decoration: underline; }
.legal { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--dark-3); }
.legal::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--dark-line); }
.motion-toggle { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dark-line); background: transparent; color: var(--dark-2); font: inherit; font-size: 13px; cursor: pointer; }
.motion-toggle:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.4); }

/* inner pages (terms, privacy, success, ...): dark band, white sheet on top */
.page-top { height: 240px; background: var(--ink); position: relative; overflow: hidden; }
.page-top::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -420px; transform: translateX(-50%); border-radius: 50%; background: var(--blue-deep); filter: blur(90px); opacity: 0.6; }
.page { position: relative; max-width: 820px; margin: -170px auto 120px; padding: 56px 56px 64px; background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 4px; }
.page h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 24px; }
.page p, .page li { color: var(--text-2); }
.page ul { padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.page ol { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.page ol li { counter-increment: s; position: relative; padding: 16px 20px 16px 62px; border-radius: var(--r-md); background: var(--tint); }
.page ol li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--gradient); color: var(--white); font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 14px; }
.form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.form label { flex-basis: 100%; font-weight: 600; font-size: 15px; color: var(--ink); }
.form input { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 16px; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: var(--r-md); font: inherit; color: var(--ink); background: var(--white); }
.form input:focus { border-color: var(--blue-deep); }
.status { min-height: 1.5em; font-weight: 500; color: var(--ink) !important; }
.fill { background: var(--blue-tint); color: var(--blue-deep); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* entrance + scroll reveal: content is only hidden once JS runs, never under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--rd, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .enter { animation: rise 0.8s var(--ease) both; animation-delay: var(--d, 0s); }
}

/* keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(60, 135, 253, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(60, 135, 253, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-24px); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes flow { to { background-position: -200% 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes ring { 0% { stroke-dashoffset: 264; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes join { 0%, 15% { transform: scale(0); } 30%, 100% { transform: scale(1); } }
@keyframes write { 0% { transform: scaleX(0); } 35%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes hide { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes show { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes draw { 0% { stroke-dashoffset: 24; } 30%, 100% { stroke-dashoffset: 0; } }
@keyframes rewind { 0%, 20% { left: 90%; } 45%, 70% { left: 37%; } 95%, 100% { left: 90%; } }
@keyframes grow { 0% { transform: scaleY(0.15); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0.15); } }
@keyframes run { 0% { offset-distance: 0%; } 80%, 100% { offset-distance: 100%; } }
@keyframes boxpop { 0%, 10% { transform: scale(0); opacity: 0; } 25%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes border { to { background-position: 300% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* reduced motion: everything rests in its finished state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .log .err { opacity: 0; } .log .ok { opacity: 1; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track ul + ul { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 8px; }
}
/* the footer "Pause animations" button */
.still *, .still *::before, .still *::after { animation-play-state: paused !important; }

/* responsive */
@media (max-width: 1024px) {
  .cols-3, .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide, .tile.claude { grid-column: span 2; }
  .how-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .how-steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; width: 100%; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-wrap .intro { position: static; }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 8px 24px 24px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--dark-line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--dark-line); }
  .app-body { grid-template-columns: 1fr; }
  .chat { border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .preview { min-height: 260px; }
}
@media (max-width: 720px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .intro { margin-bottom: 40px; }
  .hero-inner { padding-top: 56px; padding-bottom: 48px; gap: 22px; }
  .hero-sub { font-size: 17px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .app-bar .title { display: none; }
  .chat { padding: 18px; }
  .cols-3, .bento { grid-template-columns: 1fr; }
  .tile.wide, .tile.claude { grid-column: auto; }
  .tile { padding: 22px; }
  .plan { padding: 26px; }
  .marquee ul { font-size: 18px; gap: 28px; padding-right: 28px; }
  .marquee li { gap: 28px; }
  .cta-band { padding: 0 16px 80px; }
  .cta { padding: 64px 22px; }
  .cta .btn { width: 100%; max-width: 360px; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-top { height: 180px; }
  .page { margin: -130px 16px 80px; padding: 36px 22px 44px; }
}
@media (max-width: 359px) {
  .logo img:last-child { display: none; } /* mark alone on very small phones so the CTA and menu fit */
}
