/* Synora marketing site. scrollcraft.css is the mechanism (tokens, devices, reset);
   this file themes it and styles the page's own markup. Never restyle .sc-stage,
   .sc-copy or any [data-sc-*] selector here.

   Design language: black canvas, warm white ink, one typeface at two weights, no accent
   on the page itself. Colour lives in two places only: the dusk sky behind the hero and
   the close, and the product inside its frames. */

:root {
  --sc-canvas: #000000;
  --sc-surface: #0c0c0c;
  --sc-ink: #fff3f0;
  --sc-ink-soft: rgba(255, 255, 255, 0.65);
  --sc-accent: #fff3f0;
  --sc-accent-ink: #000000;
  --sc-font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-font-mono: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sc-shadow-color: 0 0% 0%;

  --bg: #000000;
  --ink: #fff3f0;
  --ink-2: #ffffff;
  --body: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.45);
  --card: #0b0b0b;
  --card-2: #101010;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --pill: rgba(23, 23, 23, 0.85);
  --sky: radial-gradient(200% 83% at 50% 0, #1b2228 0%, #353f44 42%, #d39794 100%);
  --r-card: 24px;
  --r-inner: 18px;
  --container: 1080px;
  --gutter: 24px;
  --section: 120px;
  --nav-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* the product's own palette, used only inside .app and .panel */
  --app-bg: #0e0e10;
  --app-side: #0a0a0c;
  --app-line: rgba(255, 255, 255, 0.07);
  --app-ink: #ecebe9;
  --app-muted: #8b8b90;
  --app-faint: #5d5d63;
  --app-accent: #f2b544;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sc-font-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
svg.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Without JavaScript the engine never runs, so nothing may stay hidden. */
/* keyed on the engine having mounted, not on JavaScript existing: if scrollcraft.js fails to load,
   nothing may stay hidden */
html:not(.sc-ready) [data-sc-in],
html:not(.sc-ready) [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
html:not(.js) .faq-list details[hidden] { display: block; }
html:not(.js) .intro-copy p { color: var(--ink-2); }
html:not(.js) .nav-toggle { display: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(38px, 4.4vw, 56px); line-height: 1.28; letter-spacing: -0.04em; font-weight: 400;
  color: var(--ink); text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 3.1vw, 40px); line-height: 1.32; letter-spacing: -0.04em; font-weight: 500;
  color: var(--ink-2); text-wrap: balance;
}
h2 .m { display: block; color: var(--muted); }
h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 400; color: var(--ink); text-wrap: balance; }
h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }

.tag {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--pill); border: 1px solid var(--line);
  color: var(--body); font-size: 14px; letter-spacing: -0.01em; white-space: nowrap;
}
.tag-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap; transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn-sm { height: 40px; padding: 0 22px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 36px; font-size: 16px; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-primary { background: rgba(255, 255, 255, 0.86); color: #000; }
.btn-primary:hover { background: #fff; }
.btn:active { transform: scale(0.985); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--body); font-size: 13px;
}
.chip.soon { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background-color 260ms var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 260ms var(--ease); pointer-events: none; }
.nav.scrolled::before, .nav.open::before { opacity: 1; }
.nav-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.brand .mark { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .nav-text {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--body); font-size: 15px; transition: color 160ms var(--ease);
}
.nav-links a:hover, .nav-text:hover { color: #fff; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; top: 18px; transition: transform 200ms var(--ease); }
.nav-toggle span + span { top: 25px; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span + span { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--nav-h) + 88px); min-height: 1120px; }
.hero-sky { position: absolute; left: 0; right: 0; top: 0; height: 1200px; background: var(--sky); z-index: -3; overflow: hidden; }
/* the aurora: a slow WebGL sky drawn behind the dunes. The CSS gradient under it is the fallback. */
.aurora { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aurora[hidden] { display: none; }
.cta-aurora { z-index: -2; }
.hero-dunes { position: absolute; left: 0; right: 0; top: 620px; height: 580px; width: 100%; z-index: -2; }
.hero-fade { position: absolute; left: 0; right: 0; top: 900px; height: 300px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 78%); z-index: -1; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-copy h1 { max-width: none; }
.hero-lede { font-size: 18px; line-height: 1.5; color: var(--body); max-width: 34em; text-wrap: pretty; }
.hero-copy .btn { margin-top: 12px; }
.magnet { display: inline-block; }
.hero-frame { margin-top: 72px; position: relative; z-index: 1; }

/* the glass device frame the product sits in */
.frame {
  border-radius: var(--r-card); padding: 7px;
  background: rgba(8, 8, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-frame .app { height: 640px; }

/* ---------- the product, as real markup ---------- */
.app {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--r-inner); overflow: hidden;
  background: var(--app-bg); color: var(--app-ink); font-size: 13.5px; line-height: 1.45; letter-spacing: -0.005em;
  text-align: left;
}
.app-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--app-line); color: var(--app-muted); font-size: 12px; flex: none; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.app-title { color: var(--app-ink); }
.app-note { margin-left: auto; color: var(--app-faint); }
.app-body { display: flex; flex: 1; min-height: 0; }
.app-side { width: 224px; flex: none; background: var(--app-side); border-right: 1px solid var(--app-line); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--app-ink); }
.ws-mark { width: 24px; height: 24px; border-radius: 7px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 500; font-size: 12px; }
.ws-name { flex: 1; font-weight: 500; }
.ws .ic { color: var(--app-faint); }
.side-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--app-line); color: var(--app-faint); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--app-muted); }
.side-nav a.on { background: rgba(255, 255, 255, 0.07); color: var(--app-ink); }
.side-nav a .ic { font-size: 16px; }
.side-nav a b { margin-left: auto; font-weight: 500; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--app-accent); color: #1a1200; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--app-ink); }
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who small { color: var(--app-faint); font-size: 11px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: #2a2a2e; color: var(--app-ink); display: grid; place-items: center; font-size: 11px; font-weight: 500; flex: none; }
.av.ai { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.av.ai img { width: 20px; height: 20px; display: block; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main.pad { padding: 22px 26px; gap: 16px; overflow: hidden; }
.thread { flex: 1; padding: 26px 30px 12px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; }
.m { display: flex; gap: 12px; align-items: flex-start; max-width: 620px; }
.m.user { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: var(--app-ink); }
.m.user .bubble { background: rgba(255, 255, 255, 0.1); }
.m.ai .bubble { background: transparent; padding: 3px 0 0; }
.recall { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(242, 181, 68, 0.12); color: var(--app-accent); font-size: 11.5px; }
.src { margin-top: 10px; display: flex; align-items: center; gap: 6px; color: var(--app-faint); font-size: 12px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 12px 0 0; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-faint); animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.composer { margin: 0 30px 22px; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--app-line); color: var(--app-faint); flex: none; }
.composer-r { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.composer .ic { font-size: 16px; }
.send { width: 32px; height: 32px; border-radius: 9px; background: #fff; color: #000; display: grid; place-items: center; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.main-head h4 { color: var(--app-ink); font-size: 15px; }
.hint { color: var(--app-faint); font-size: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.seg span { padding: 4px 12px; border-radius: 999px; color: var(--app-muted); font-size: 12px; }
.seg span.on { background: rgba(255, 255, 255, 0.1); color: var(--app-ink); }
.mem li { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--app-line); }
.mem li:first-child { border-top: 0; }
.mem .t { color: var(--app-ink); }
.mem .meta, .qc-meta, .usage .meta { color: var(--app-faint); font-size: 12px; }
.mem li.locked .t { color: var(--app-muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.scope { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; width: fit-content; white-space: nowrap; }
.scope.g { background: rgba(255, 255, 255, 0.08); color: var(--app-ink); }
.scope.t { background: rgba(242, 181, 68, 0.14); color: var(--app-accent); }
.scope.u { background: rgba(255, 255, 255, 0.05); color: var(--app-muted); border: 1px solid var(--app-line); }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.agent { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--app-line); }
.agent .aic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; margin-bottom: 4px; }
.agent .aic .ic { font-size: 16px; }
.agent b { font-weight: 500; color: var(--app-ink); }
.agent span:not(.aic):not(.pill-on):not(.pill-off) { color: var(--app-muted); font-size: 12.5px; }
.agent em { font-style: normal; color: var(--app-faint); font-size: 11.5px; }
.agent.new { border-style: dashed; background: transparent; }
.pill-on, .pill-off { margin-top: 6px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; width: fit-content; }
.pill-on { background: rgba(255, 255, 255, 0.1); color: var(--app-ink); }
.pill-off { border: 1px solid var(--app-line); color: var(--app-muted); }
.qcard { display: grid; gap: 8px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--app-line); }
.qcard + .qcard { margin-top: 10px; }
.qc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qc-top b { font-weight: 500; color: var(--app-ink); display: inline-flex; align-items: center; gap: 8px; }
.qcard p { color: var(--app-muted); }
.qc-actions { display: flex; gap: 8px; margin-top: 4px; }
.b-primary, .b-ghost { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; }
.b-primary { background: #fff; color: #000; }
.b-ghost { border: 1px solid var(--app-line); color: var(--app-muted); }
.qcard.off { background: transparent; border-style: dashed; }
.qcard.off b { color: var(--app-muted); }
.qcard.approved { border-color: rgba(242, 181, 68, 0.35); }
.qc-meta.ok { color: var(--app-accent); display: inline-flex; align-items: center; gap: 6px; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--app-ink); font-size: 12px; }
.foot-note { margin-top: auto; color: var(--app-faint); font-size: 12px; }
.usage li { display: grid; grid-template-columns: 26px 80px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--app-line); }
.usage li:first-child { border-top: 0; }
.usage .t { color: var(--app-ink); }
.usage .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.usage .bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), var(--app-accent)); }
.kv { display: flex; gap: 28px; padding-top: 14px; border-top: 1px solid var(--app-line); color: var(--app-faint); font-size: 12px; }
.kv b { display: block; font-weight: 400; font-size: 22px; color: var(--app-ink); letter-spacing: -0.02em; }
.sens-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--app-line); }
.sens-row .t { color: var(--app-ink); }
.sens-row .meta { color: var(--app-faint); font-size: 12px; }
.sens-toggle { width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; }
.sens-toggle.on { background: var(--app-accent); }
.sens-toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.sens-toggle.on i { left: 19px; background: #1a1200; }
.thread.small { padding: 10px 0 0; gap: 14px; }

/* the cover: the reference's flowing gradient lives inside the product, where colour is allowed.
   The CSS gradient is the fallback when WebGL is missing; the canvas.flow paints over it. */
.app-main.home { padding: 10px; }
.cover {
  position: relative; flex: 1; min-height: 0; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(90% 80% at 28% 22%, #b8801c, #3a2608 55%, #000 100%);
}
.cover .flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover .flow[hidden] { display: none; }
.cover-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; width: min(440px, calc(100% - 48px)); padding: 24px 0; }
.cover-mark { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 500; font-size: 17px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); margin-bottom: 4px; }
.cover-name { font-weight: 500; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 24px rgba(0, 0, 0, 0.5); }
.cover-meta { font-size: 12px; color: rgba(255, 255, 255, 0.88); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 24px rgba(0, 0, 0, 0.5); }
.cover .composer {
  margin: 14px 0 0; width: 100%; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.34); color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.cover .composer .ic { color: rgba(255, 255, 255, 0.85); }
.cover .composer .send .ic { color: #000; }
.cover-card {
  width: 100%; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: rgba(8, 8, 10, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--app-ink);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cover-card .q { color: rgba(255, 255, 255, 0.62); font-size: 12px; }
.cover-card .recall { margin-bottom: 0; width: fit-content; background: rgba(242, 181, 68, 0.18); }
.cover-card p { font-size: 13px; line-height: 1.45; }
.cover-card .src { margin-top: 0; }

/* panels: a product fragment on a lit ground, used in the stacked cards */
.panel {
  position: absolute; left: 56px; top: 56px; right: -24px; bottom: -40px;
  display: flex; flex-direction: column; border-radius: var(--r-inner); overflow: hidden;
  background: rgba(12, 12, 14, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--app-ink); font-size: 13.5px; line-height: 1.45; text-align: left;
}
.panel-body { padding: 22px 48px 22px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.sec-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; margin-top: 28px; }
.sec-head p { max-width: 380px; justify-self: end; color: var(--body); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

/* intro */
.intro .container { display: grid; gap: 40px; }
.intro-copy { margin-left: clamp(0px, 22%, 240px); max-width: 690px; display: grid; gap: 40px; }
.intro-copy p {
  font-size: clamp(26px, 2.9vw, 40px); line-height: 1.3; letter-spacing: -0.03em; font-weight: 400;
  color: rgba(255, 255, 255, var(--hl, 0.28)); text-wrap: pretty; transition: color 200ms linear;
}

/* core features */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 64px; }
.tab { position: relative; height: 56px; border-radius: 999px; color: var(--body); font-size: 17px; letter-spacing: -0.01em; overflow: hidden; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.tab:hover { color: #fff; }
.tab.on { background: var(--pill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.tab .bar { position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: rgba(255, 255, 255, 0.55); transform: scaleX(var(--tp, 0)); transform-origin: left; opacity: 0; }
.tab.on .bar { opacity: 1; }
.showcase { position: relative; margin-top: 24px; height: 660px; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; background: #050505; }
.showcase-bg { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 120%, rgba(211, 151, 148, 0.45), rgba(0, 0, 0, 0) 60%), radial-gradient(60% 60% at 90% 0%, rgba(53, 63, 68, 0.9), rgba(0, 0, 0, 0) 60%), #0a0a0b; }
.showcase-bg .dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.showcase .view { position: absolute; left: 56px; right: 56px; top: 56px; bottom: -24px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 0s linear 420ms; }
.showcase .view.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.showcase .frame, .showcase .app { height: 100%; }

/* stacked cards */
.stack-list { margin-top: 64px; display: grid; gap: 32px; }
.scard {
  position: sticky; top: 112px; height: 620px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.7); transform-origin: 50% 0;
}
.scard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px at 0 0, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.scard-text { position: relative; padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.scard-text p { color: var(--body); font-size: 15px; line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.scard:nth-child(even) .scard-text { order: 2; }
.scard-visual { position: relative; overflow: hidden; background: radial-gradient(80% 70% at 50% 110%, rgba(211, 151, 148, 0.35), rgba(0, 0, 0, 0) 60%), #0a0a0b; }
.scard-visual .dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }
.scard:nth-child(even) .scard-visual .panel { left: -24px; right: 56px; }
.scard:nth-child(even) .panel-body { padding: 22px 24px 22px 48px; }
.panel .mem li { grid-template-columns: 1fr auto; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; align-items: end; }
.plan { position: relative; padding: 48px 48px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.plan:first-child { border-right: 0; border-radius: var(--r-card) 0 0 var(--r-card); }
.plan:last-child { border-left: 0; border-radius: 0 var(--r-card) var(--r-card) 0; }
.plan.featured { background: var(--card-2); border-color: var(--line-2); transform: translateY(-20px); padding-bottom: 48px; z-index: 1; }
.plan .name { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan hr { margin: 24px 0 36px; }
.plan .amount { font-size: 36px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.plan .amount small { font-size: 16px; color: var(--muted); margin-left: 8px; letter-spacing: -0.01em; }
.plan .desc { margin-top: 16px; min-height: 42px; font-size: 14px; line-height: 1.5; color: var(--body); }
.plan .btn { margin-top: 28px; }
.plan ul { margin-top: 36px; }
.plan li { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--body); }
.plan li .ic { font-size: 20px; color: var(--muted); stroke-width: 1.5; }
.plans-note { margin-top: 32px; text-align: center; color: var(--faint); font-size: 14px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-top: 64px; align-items: start; }
.faq-side { position: sticky; top: 112px; display: grid; gap: 24px; }
.faq-cats { display: grid; gap: 10px; }
.cat { height: 56px; border-radius: 999px; color: var(--body); font-size: 17px; letter-spacing: -0.01em; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.cat:hover { color: #fff; }
.cat.on { background: var(--pill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.got { padding: 36px 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.got p { color: var(--muted); font-size: 15px; }
.got .btn { margin-top: 10px; }
.faq-list { display: grid; gap: 16px; }
.faq-list details { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 0 40px; }
.faq-list details[hidden] { display: none; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding: 24px 0; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.chev { width: 36px; height: 36px; border-radius: 50%; background: var(--pill); border: 1px solid var(--line); display: grid; place-items: center; color: var(--body); flex: none; transition: transform 300ms var(--ease); }
.chev .ic { font-size: 16px; }
details[open] .chev { transform: rotate(180deg); }
.answer { padding: 0 0 36px; margin-top: -8px; max-width: 60ch; color: var(--body); font-size: 16px; line-height: 1.6; }
.answer a { color: var(--ink); border-bottom: 1px solid var(--line-2); }

/* close */
.cta { position: relative; isolation: isolate; overflow: clip; padding: 160px 0 0; min-height: 760px; background: linear-gradient(#000 0%, #1b2228 100%); }
.cta-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 360px; z-index: -1; }
.cta-grid { display: grid; grid-template-columns: 440px 1fr; gap: 72px; align-items: start; }
.cta h2 { font-size: clamp(34px, 3.6vw, 48px); font-weight: 400; color: var(--ink); }
.cta-copy > p:not(.form-msg) { margin-top: 28px; font-size: 18px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.form { margin-top: 40px; display: flex; gap: 8px; }
.form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); outline: none; transition: border-color 160ms var(--ease);
}
.form input::placeholder { color: var(--faint); }
.form input:focus { border-color: rgba(255, 255, 255, 0.4); }
.form-msg { margin-top: 14px; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form-msg.ok { color: #fff; }
.form-msg.err { color: #ffb4b4; }
.cta-frame { position: relative; width: 880px; margin-top: -24px; }
.cta-frame .app { height: 560px; }

/* footer */
.footer { background: #000; padding: 112px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand p { max-width: 32ch; color: var(--muted); font-size: 15px; line-height: 1.55; }
.footer-brand p a { color: var(--body); border-bottom: 1px solid var(--line-2); }
.footer h4 { font-weight: 400; margin-bottom: 20px; }
.footer-grid div > a:not(.brand) { display: block; color: var(--body); font-size: 16px; padding: 10px 0; transition: color 160ms var(--ease); }
.footer-grid div > a:not(.brand):hover { color: #fff; }
.footer-grid a[aria-disabled="true"] { color: var(--faint); cursor: default; }
.footer-legal { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bubble.typing i { animation: none; opacity: 0.6; }
  .showcase .view { transition: none; }
  .tab .bar { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .cta-grid { grid-template-columns: 400px 1fr; gap: 48px; }
  .cta-frame { width: 760px; }
}

@media (max-width: 900px) {
  :root { --section: 88px; --nav-h: 68px; }
  .nav-links, .nav-text { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 8px 24px 24px; display: grid; gap: 4px; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; }
  .nav.open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mobile-menu a { display: flex; align-items: center; min-height: 48px; font-size: 18px; color: var(--body); }
  .mobile-menu .btn { margin-top: 12px; }
  .brand { font-size: 20px; }

  .hero { padding-top: calc(var(--nav-h) + 72px); min-height: 0; padding-bottom: 40px; }
  .hero-sky { height: 100%; }
  .hero-dunes { top: auto; bottom: 0; height: 46%; }
  .hero-fade { top: auto; bottom: 0; height: 260px; }
  .hero-copy { gap: 22px; }
  .hero-copy h1 { max-width: none; }
  .hero-lede { font-size: 17px; }
  .hero-frame { margin-top: 56px; }
  .hero-frame .app { height: 440px; }
  .app { font-size: 13px; }
  .app-side { display: none; }
  .thread { padding: 18px 16px 8px; }
  .composer { margin: 0 16px 16px; }
  .app-main.pad { padding: 16px; }
  .app-note { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-title { white-space: nowrap; }

  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-head p { justify-self: start; }
  .intro-copy { margin-left: 0; }

  .tabs { grid-template-columns: repeat(4, auto); gap: 4px; margin-top: 44px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
  .tab .bar { left: 16px; right: 16px; }
  .showcase { height: 540px; }
  .showcase .view { left: 16px; right: 16px; top: 24px; bottom: -40px; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .agent:nth-child(n+5) { display: none; }
  .mem li { grid-template-columns: 1fr auto; }
  .mem li .meta { display: none; }

  .stack-list { margin-top: 40px; gap: 24px; }
  .scard { position: static; height: auto; grid-template-columns: 1fr; box-shadow: none; transform: none !important; opacity: 1 !important; }
  .scard-text { padding: 32px 24px 28px; order: 0 !important; gap: 16px; }
  .scard-visual { min-height: 360px; order: 1; }
  .panel, .scard:nth-child(even) .scard-visual .panel { left: 20px; right: -24px; top: 28px; bottom: -40px; }
  .usage li { grid-template-columns: 26px 64px 1fr auto; }

  .plans { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .plan, .plan:first-child, .plan:last-child { border: 1px solid var(--line); border-radius: var(--r-card); padding: 36px 28px 20px; }
  .plan.featured { transform: none; padding-bottom: 36px; }
  .plan hr { margin: 20px 0 28px; }

  .faq-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .faq-side { position: static; }
  .faq-cats { grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; justify-content: start; gap: 6px; scrollbar-width: none; }
  .faq-cats::-webkit-scrollbar { display: none; }
  .cat { height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
  .got { display: none; }
  .faq-list details { padding: 0 22px; }
  .faq-list summary { min-height: 0; padding: 22px 0; font-size: 16px; }
  .answer { padding-bottom: 24px; font-size: 15px; }

  .cta { padding: 96px 0 0; min-height: 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-copy > p:not(.form-msg) { font-size: 17px; }
  .form { flex-direction: column; }
  .cta-frame { width: 100%; margin-top: 0; }
  .cta-frame .app { height: 380px; }
  .cta-dunes { height: 260px; }

  .footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { margin-top: 48px; flex-direction: column; gap: 8px; }

  /* the cover in a 400px-tall frame: tighter stack, and the lines a phone does not need go */
  .app-main.home { padding: 8px; }
  .cover-in { gap: 8px; padding: 16px 0; width: calc(100% - 32px); }
  .cover-mark { width: 38px; height: 38px; font-size: 15px; margin-bottom: 0; }
  .cover-meta, .cover-card .q, .cover-card .src { display: none; }
  .cover .composer { margin-top: 8px; height: 44px; }
  .cover-card { padding: 12px 14px; }
  .cover-card p { font-size: 12.5px; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 32px; }
  .tag { font-size: 13px; height: 36px; padding: 0 14px; }
  .hero-frame .app { height: 400px; }
  .m { max-width: 100%; }
  .showcase { height: 480px; }
  .scard-visual { min-height: 320px; }
}
