/* =====================================================================
   Slates — marketing site
   Design language mirrors the app: docs/design-tokens.json + DESIGN_SYSTEM.md
   (Urbanist, lime #DBF053 spotlight accent, flat + bordered, both themes).
   Tokens below are the web projection of the semantic token set, so the
   "screenshots" render in the exact same colors as the real product.
   ===================================================================== */

@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/Urbanist-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens: light (default) ---------- */
:root {
  --font-sans: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --background: #f4f4f1;
  --surface: #ffffff;
  --surface-variant: #ecece8;
  --surface-inverse: #0a0a0a;
  --overlay: rgba(10, 10, 10, 0.45);

  --text-primary: #0a0a0a;
  --text-secondary: #565651;
  --text-muted: #74746e;
  --text-inverse: #f4f4f1;
  --text-on-accent: #0a0a0a;

  --border: #dcdcd7;
  --border-strong: #0a0a0a;
  --divider: #ecece8;

  --accent: #dbf053;
  --accent-hover: #b9d42e;
  --accent-subtle: #f4fbc9;

  --secondary: #53b4f0;
  --secondary-subtle: #d7effc;
  --sage: #6f8576;
  --sage-bg: #c9d5cc;

  --success: #3fa63b;
  --warning: #d49216;
  --danger: #d23a22;
  --info: #3098da;

  --pace-on: #3fa63b;
  --pace-ahead: #3098da;
  --pace-behind: #d49216;
  --pace-over: #d23a22;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.12);
  --shadow-xl: 0 30px 80px rgba(10, 10, 10, 0.18);

  --content-max: 1200px;
  --prose: 720px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0, 0, 0, 1);

  --nav-h: 68px;
  color-scheme: light;
}

/* ---------- tokens: dark ---------- */
[data-theme="dark"] {
  --background: #0a0b0a;
  --surface: #17191a;
  --surface-variant: #202325;
  --surface-inverse: #f4f4f1;
  --overlay: rgba(0, 0, 0, 0.6);

  --text-primary: #f4f4f1;
  --text-secondary: #c3c3bd;
  --text-muted: #9c9c96;
  --text-inverse: #0a0a0a;
  --text-on-accent: #0a0a0a;

  --border: #2a2d2f;
  --border-strong: #f4f4f1;
  --divider: #202325;

  --accent-hover: #e4f47c;
  --accent-subtle: #2c3413;
  --secondary-subtle: #13303f;
  --sage-bg: #2c3a33;

  --success: #5fc75b;
  --warning: #f2b33d;
  --danger: #f0533b;
  --info: #53b4f0;

  --pace-on: #5fc75b;
  --pace-ahead: #53b4f0;
  --pace-behind: #f2b33d;
  --pace-over: #f0533b;

  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.eyebrow::before { content: "◗"; color: var(--accent); font-size: 15px; }
.eyebrow.on-dark { color: #c3c3bd; }

h1, h2, h3 { margin: 0; }

.display {
  font-size: clamp(33px, 8.2vw, 92px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.96;
  overflow-wrap: break-word;
}
.h-sect {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.03;
}
.h-card {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: var(--prose);
}
.tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.hl { color: var(--accent); }
.hl-mark {
  background: linear-gradient(transparent 62%, var(--accent) 62% 92%, transparent 92%);
  padding: 0 2px;
}
.ink-block {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: 0 0.28em 0.06em;
  border-radius: 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font: 600 15px var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-standard), background 0.18s var(--ease-standard),
    border-color 0.18s var(--ease-standard), opacity 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-color: var(--surface-inverse);
}
.btn.primary::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.btn.accent {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}
.btn.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-secondary); }
.btn.ghost:hover { background: var(--surface-variant); color: var(--text-primary); transform: none; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 30px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-variant); color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-variant); color: var(--text-primary); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 18px; }
.section-head.center .lede { margin-inline: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-decel), transform 0.6s var(--ease-decel); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; min-width: 0; }
.browser { max-width: 100%; }
.hero .display { margin-bottom: 26px; }
.hero .lede { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }

.hero-visual { position: relative; min-width: 0; }
.hero-visual .browser { transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); box-shadow: var(--shadow-xl); }
.hero-float {
  position: absolute;
  z-index: 5;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}
.hero-float.timer { right: -18px; bottom: 40px; width: 232px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}
.chip svg { width: 15px; height: 15px; color: var(--text-muted); }

/* marquee-ish trust row */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.trust b { color: var(--text-secondary); font-weight: 800; }

/* ============================================================
   Generic device / browser frames  (the "screenshots")
   ============================================================ */
.browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface-variant);
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.dots i:nth-child(1) { background: #f0533b; }
.dots i:nth-child(2) { background: #f2b33d; }
.dots i:nth-child(3) { background: #5fc75b; }
.url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  height: 26px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.url svg { width: 12px; height: 12px; }

/* ============================================================
   APP MOCKUP — web authoring view (matches web/src/styles.css)
   ============================================================ */
.app { background: var(--surface); color: var(--text-primary); font-size: 12px; }

.app-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.app-toolbar .mk { width: 20px; height: 20px; border-radius: 5px; }
.app-toolbar .t-title { font-weight: 700; letter-spacing: -0.01em; font-size: 13px; }
.app-toolbar .grow { flex: 1; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
}
.tb-btn svg { width: 13px; height: 13px; }
.tb-btn.on { background: var(--accent-subtle); border-color: var(--accent); color: var(--text-primary); }
.tb-btn.ink { background: var(--surface-inverse); color: var(--text-inverse); border-color: var(--surface-inverse); }
.tb-count { font-size: 11px; color: var(--text-muted); font-weight: 600; padding: 0 4px; }

.app-body { display: grid; grid-template-columns: 92px minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.82fr); min-height: 300px; }

/* thumbnail rail */
.rail { border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 10px; color: var(--text-muted); font-weight: 700; }
.rail-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.rail-item { border: 2px solid transparent; border-radius: var(--radius-sm); padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.rail-item.active { border-color: var(--accent); background: var(--accent-subtle); }
.rail-item .rn { font-size: 10px; font-weight: 700; display: flex; justify-content: space-between; color: var(--text-secondary); }
.rail-item.active .rn { color: var(--text-primary); }
.rail-item.skipped { opacity: 0.5; }
.rail-item.skipped .rn span:first-child { text-decoration: line-through; }
.mini { width: 100%; aspect-ratio: 16/9; border-radius: 5px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-variant); }
.mini svg, .mini img { width: 100%; height: 100%; object-fit: cover; }

/* pdf preview column */
.col { min-height: 0; overflow: hidden; padding: 14px; }
.col-pdf { border-right: 1px solid var(--border); background: var(--surface-variant); display: flex; align-items: flex-start; justify-content: center; }
.pdf-page { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.pdf-page svg { width: 100%; height: auto; display: block; }

/* notes column */
.col-notes { border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.notes-head { display: flex; align-items: center; justify-content: space-between; }
.pill-target { font-size: 11px; font-weight: 700; background: var(--accent); color: var(--text-on-accent); border-radius: var(--radius-pill); padding: 2px 10px; }
.md h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.md p { margin: 0 0 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.md ul { margin: 0 0 8px; padding-left: 16px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.md li { margin-bottom: 3px; }
.md strong { color: var(--text-primary); }
.md blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-subtle); border-radius: 0 6px 6px 0; color: var(--text-primary); font-size: 12px; }
.editor {
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.editor-bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 9px; background: var(--surface-variant); border-bottom: 1px solid var(--border); font-size: 10px; color: var(--text-muted); font-weight: 600; }
.editor-code { padding: 8px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; line-height: 1.7; color: var(--text-secondary); }
.editor-code .k { color: var(--info); }
.editor-code .a { color: var(--accent-hover); }
.save-ok { color: var(--success); }

/* comments column */
.col-comments { display: flex; flex-direction: column; gap: 10px; }
.thread { border: 1px solid var(--border); border-radius: 10px; padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.cmt { display: flex; gap: 7px; }
.cmt.reply { margin-left: 14px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--text-on-accent); }
.cmt-body .who { font-weight: 700; font-size: 11px; }
.cmt-body .when { color: var(--text-muted); font-size: 10px; font-weight: 500; }
.cmt-body p { margin: 2px 0 0; font-size: 11px; color: var(--text-secondary); line-height: 1.45; }
.mention { color: var(--info); font-weight: 700; }
.chip-role { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; background: var(--surface-variant); color: var(--text-muted); border: 1px solid var(--border); }
.resolved-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--success); }

/* ============================================================
   Sample PDF slide graphics (reused in mockups)
   ============================================================ */
.slide-a { background: #0a0a0a; }
.slide-b { background: #ffffff; }

/* ============================================================
   Feature grid
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s var(--ease-standard), border-color 0.22s, box-shadow 0.22s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feat .fi {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--surface-variant);
  color: var(--text-primary);
}
.feat .fi svg { width: 23px; height: 23px; stroke-width: 1.6; }
.feat h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.feat.spot { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.feat.spot .fi { background: rgba(10,10,10,0.12); color: var(--text-on-accent); }
.feat.spot p { color: #1c2408; }
.feat.spot:hover { border-color: #0a0a0a; }

/* ============================================================
   Platforms
   ============================================================ */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plat {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.plat .picon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-inverse); color: var(--text-inverse); margin-bottom: 8px; }
.plat .picon svg { width: 22px; height: 22px; }
.plat h3 { font-size: 18px; font-weight: 700; }
.plat .role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-hover); }
[data-theme="dark"] .plat .role { color: var(--accent); }
.plat p { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   Split showcase (image + copy)
   ============================================================ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-copy, .split-media { min-width: 0; }
.split.rev .split-media { order: 2; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy .lede { margin-bottom: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); }
.ticks .tk { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--text-on-accent); display: grid; place-items: center; margin-top: 1px; }
.ticks .tk svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ticks b { color: var(--text-primary); }

/* ============================================================
   Dark presenter showcase
   ============================================================ */
.dark-band {
  /* Always-dark feature band — pinned so it stays dark in both themes.
     (--surface-inverse flips to a light tone in dark mode, which made the
     light body text unreadable on a cream background.) */
  background: #0a0a0a;
  color: #f4f4f1;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
}
[data-theme="dark"] .dark-band { border: 1px solid var(--border); }
.dark-band .eyebrow { color: #9c9c96; }
.dark-band h2 { color: #f4f4f1; }
.dark-band .lede { color: #c3c3bd; }

/* presenter dashboard mock */
.presenter {
  background: #17191a;
  border: 1px solid #2a2d2f;
  border-radius: 16px;
  overflow: hidden;
  color: #f4f4f1;
  box-shadow: var(--shadow-xl);
}
.pres-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #2a2d2f; }
.pres-top .mk { width: 18px; height: 18px; border-radius: 4px; }
.pres-top .pt { font-size: 12px; font-weight: 700; }
.pres-top .ext { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: #dbf053; }
.pres-top .ext svg { width: 12px; height: 12px; }
.pres-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; }
.pres-stage { padding: 14px; border-right: 1px solid #2a2d2f; display: flex; flex-direction: column; gap: 10px; }
.pres-slide { border-radius: 8px; overflow: hidden; border: 1px solid #2a2d2f; }
.pres-slide svg { width: 100%; height: auto; }
.pres-controls { display: flex; align-items: center; gap: 8px; }
.pres-controls .cbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a2d2f; background: #202325; color: #f4f4f1; display: grid; place-items: center; }
.pres-controls .cbtn.main { background: #dbf053; color: #0a0a0a; border-color: #dbf053; }
.pres-controls .cbtn svg { width: 15px; height: 15px; }
.pres-controls .pg { margin-left: auto; font-size: 12px; color: #9c9c96; font-weight: 600; }

.pres-side { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.timer-block { text-align: left; }
.timer-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9c9c96; }
.timer-big { font-size: 46px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.pace-row { display: flex; align-items: center; gap: 8px; }
.pace-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
}
.pace-chip.on { background: rgba(95,199,91,0.16); color: #5fc75b; }
.pace-chip .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pres-notes { border-top: 1px solid #2a2d2f; padding-top: 10px; }
.pres-notes h4 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #f4f4f1; }
.pres-notes p, .pres-notes li { color: #c3c3bd; font-size: 12px; line-height: 1.55; margin: 0 0 5px; }
.pres-notes ul { margin: 0; padding-left: 15px; }
.slidebar { display: flex; gap: 5px; }
.slidebar .sb { flex: 1; height: 4px; border-radius: 2px; background: #2a2d2f; }
.slidebar .sb.done { background: #565651; }
.slidebar .sb.now { background: #dbf053; }

/* phone mock */
.phone {
  width: 200px;
  border-radius: 30px;
  border: 8px solid #0a0a0a;
  background: #17191a;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 62px; height: 5px; border-radius: 3px; background: #2a2d2f; z-index: 3; }
.phone-inner { padding: 22px 12px 14px; display: flex; flex-direction: column; gap: 10px; color: #f4f4f1; }
.phone-slide { border-radius: 8px; overflow: hidden; border: 1px solid #2a2d2f; }
.phone-slide svg { width: 100%; height: auto; }
.phone-timer { display: flex; align-items: baseline; justify-content: space-between; }
.phone-timer .big { font-size: 30px; font-weight: 500; font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.phone-note { font-size: 11px; color: #c3c3bd; line-height: 1.5; }
.phone-note b { color: #f4f4f1; }

/* ============================================================
   Steps / how it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  background: var(--surface);
  position: relative;
}
.step .num {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent-hover);
  margin-bottom: 14px;
}
[data-theme="dark"] .step .num { color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); position: relative; }
.stat.spot { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.stat .arrow { position: absolute; top: 16px; right: 16px; color: var(--text-muted); }
.stat.spot .arrow { color: var(--text-on-accent); }
.stat .val { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-feature-settings: "tnum"; }
.stat .cap { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.stat.spot .cap { color: #1c2408; }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta {
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--accent);
  color: var(--text-on-accent);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta h2 { font-size: clamp(32px, 5.5vw, 66px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; margin-bottom: 20px; }
.cta p { max-width: 560px; margin: 0 auto 32px; font-size: 18px; color: #21290a; }
.cta .btn.primary { background: #0a0a0a; color: #f4f4f1; border-color: #0a0a0a; }
.cta .btn.secondary { background: transparent; border-color: rgba(10,10,10,0.35); color: #0a0a0a; }
.cta-cards { position: absolute; opacity: 0.16; }

footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand .lede { font-size: 15px; margin-top: 16px; max-width: 320px; }
.foot-col h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.foot-col a { display: block; padding: 5px 0; color: var(--text-secondary); font-size: 14.5px; }
.foot-col a:hover { color: var(--text-primary); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  /* Stop using grid for hero/split so the text column can't be stretched
     to the mockup's intrinsic width — decouples widths entirely. */
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { max-width: 100%; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .hero-visual .browser { transform: none; }
  .hero-float.timer { right: 0; bottom: -20px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .split { display: flex; flex-direction: column; }
  .split-copy, .split-media { width: 100%; }
  .split.rev .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pres-body { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* Collapse the nav to a hamburger before the links get cramped. */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 12px 14px; }
}
@media (max-width: 640px) {
  .feat-grid, .platforms, .stats { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 64px minmax(0, 1fr); }
  .app-body .col-notes, .app-body .col-comments { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
