/* BlinkF site. Tokens follow the BlinkF design system (tokens.json). */

/* Body: Nunito. Headings: Satoshi Black. */
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --olive-900: #273e06;
  --olive-700: #3c5c0f;
  --olive-500: #608c21;
  --olive-300: #96c653;
  --olive-200: #b9d590;
  --olive-100: #e9f0e0;
  --ink: #141414;
  --paper: #f5f4f0;

  /* Dark is the default theme. */
  /* Neutral grey rather than olive-tinted, so the olive accents carry the brand. */
  --surface: #1f1f1e;
  /* Every other section sits on this, so neighbouring sections read apart. */
  --surface-alt: #191918;
  --surface-raised: #282827;
  --surface-tint: #303030;
  --text: var(--paper);
  --text-muted: #a3a39c;
  --hairline: #393937;
  --primary: var(--olive-300);
  --on-primary: var(--ink);
  --accent: var(--olive-300);
  --glow: rgba(96, 140, 33, 0.18);
  --olive-line: rgba(150, 198, 83, 0.38);
  --olive-haze: rgba(150, 198, 83, 0.16);
  --art-line: rgba(245, 244, 240, 0.62);
  --art-soft: rgba(245, 244, 240, 0.14);
  --dash: rgba(245, 244, 240, 0.16);
  /* Window controls in the mock apps: close, minimise, maximise. */
  --dot-close: #ff5f57;
  --dot-min: #febc2e;
  --dot-max: #28c840;
  /* Hero demo: the window's title bar sits a step darker than its body,
     and the sparkles that close the animation are a single gold. */
  --window-bar: #1f1f1e;
  --spark: #f5c542;

  --sans: "Nunito", system-ui, sans-serif;
  --display: "Satoshi", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --gutter: 24px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --surface: #ffffff;
    --surface-alt: #f9f8f5;
    --window-bar: #ebeae5;
    --surface-raised: #f5f4f0;
    --surface-tint: var(--olive-100);
    --text: var(--ink);
    --text-muted: #6b6965;
    --hairline: #e2e0da;
    --primary: var(--olive-900);
    --on-primary: var(--paper);
    --accent: var(--olive-500);
    --glow: rgba(150, 198, 83, 0.28);
    --olive-line: rgba(96, 140, 33, 0.45);
    --olive-haze: rgba(96, 140, 33, 0.14);
    --art-line: rgba(20, 20, 20, 0.7);
    --art-soft: rgba(20, 20, 20, 0.1);
    --dash: rgba(20, 20, 20, 0.16);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Room for the fixed nav. On the content, not body: ScrollSmoother fixes the wrapper to the viewport. */
#smooth-content { padding-top: 64px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font: 400 12px/18px var(--mono);
  color: var(--text);
  white-space: nowrap;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  /* Fixed, and outside #smooth-wrapper: ScrollSmoother moves everything inside it. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav .container { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav-logo { display: flex; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  color: var(--text);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:hover { border-color: var(--text-muted); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--olive-200); border-color: var(--olive-200); }
@media (prefers-color-scheme: light) {
  .btn-primary:hover { background: var(--olive-700); border-color: var(--olive-700); }
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  /* The first screen: at least the whole window under the nav, content
     centred in it. */
  display: flex;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px 0 auto;
  height: 640px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; width: 100%; }
.hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 68px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.hero h1 .accent-line {
  background: linear-gradient(92deg, var(--olive-300), var(--olive-200) 60%, var(--paper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The gradient only paints inside the box; room for g, y and p tails. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
@media (prefers-color-scheme: light) {
  .hero h1 .accent-line { background-image: linear-gradient(92deg, var(--olive-900), var(--olive-500)); }
}
.hero-sub {
  max-width: 560px;
  margin: 32px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero-sub .kbd { font-size: 13px; vertical-align: 1px; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.badge {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface-tint);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.badges .badge { background: var(--olive-haze); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta-meta { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* The four default hotkeys, as keycaps in one strip below the call to action. */
.hotkeys[hidden] { display: none; }
.hotkeys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.hotkeys li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 12px 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.hotkeys li + li { border-left: 1px solid var(--hairline); }
.hotkeys .hk-keys { display: flex; gap: 4px; }
.hotkeys b {
  min-width: 28px;
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: var(--surface);
  font: 500 12px/1.4 var(--mono);
  color: var(--text);
}
.hotkeys li:first-child b:last-child { border-color: var(--olive-line); color: var(--accent); }
@media (max-width: 640px) {
  .hotkeys { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .hotkeys li:nth-child(3) { border-left: 0; }
  .hotkeys li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ── Product mockup ──────────────────────────────────── */
.demo { position: relative; max-width: 880px; margin: 72px auto 0; text-align: left; }
.window {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--window-bar);
  /* Above the chat, so a message dropping in slides out from under the bar. */
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-muted);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-close); }
.window-bar i:nth-child(2), .mw-bar i:nth-child(2) { background: var(--dot-min); }
.window-bar i:nth-child(3), .mw-bar i:nth-child(3) { background: var(--dot-max); }
.window-bar span { margin-left: 8px; }
.window-body { display: flex; flex-direction: column; font-size: 15px; line-height: 1.55; }

/* Chat log: one incoming message, and the user's reply once it is sent. */
.dm-chat-log { display: flex; flex-direction: column; gap: 14px; min-height: 290px; padding: 28px 28px 20px; }
.dm-msg { display: flex; align-items: flex-end; gap: 10px; }
.dm-msg-out { justify-content: flex-end; }
.dm-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--olive-700);
}
.dm-avatar svg { width: 100%; height: 100%; fill: var(--olive-200); }
.dm-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface-tint);
  color: var(--text);
}
.dm-msg-in .dm-bubble { border-bottom-left-radius: 6px; }
.dm-msg-out .dm-bubble { border-bottom-right-radius: 6px; background: var(--olive-haze); border: 1px solid var(--olive-line); }
/* The sent reply only exists in the animation. */
.dm-msg-out { display: none; }
.demo.is-animated .dm-msg-out { display: flex; }

/* Composer: the message field and a send button. */
.dm-composer { display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--hairline); }
.dm-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.dm-field-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Selection: a highlight drawn as a background so it can grow from the
   right edge, the way a right-to-left drag selects. */
.dm-field-run {
  border-radius: 3px;
  background-image: linear-gradient(color-mix(in srgb, var(--olive-500) 45%, transparent), color-mix(in srgb, var(--olive-500) 45%, transparent));
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 100%;
}
.dm-field-hint { position: absolute; left: 16px; color: var(--text-muted); opacity: 0; pointer-events: none; }
.dm-caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); opacity: 0; }
.dm-caret.is-blink { opacity: 1; animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.dm-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}
.dm-send svg { width: 19px; height: 19px; margin: 1px 1px 0 0; }

/* Pointer and sparkles: only shown by the animation. */
.dm-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  /* Solid white; the same-colour stroke only rounds the corners. */
  fill: #fff;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.dm-sparkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dm-sparkles i {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0;
  background: var(--spark);
  /* Four-point star. */
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--spark) 60%, transparent));
}
.dm-sparkles i:nth-child(1) { top: -46px; left: 6%; width: 36px; height: 36px; }
.dm-sparkles i:nth-child(2) { top: 16%; left: -58px; width: 22px; height: 22px; }
.dm-sparkles i:nth-child(3) { top: -60px; right: 20%; width: 44px; height: 44px; }
.dm-sparkles i:nth-child(4) { top: 30%; right: -62px; width: 34px; height: 34px; }
.dm-sparkles i:nth-child(5) { bottom: 18%; left: -52px; width: 40px; height: 40px; }
.dm-sparkles i:nth-child(6) { bottom: -54px; left: 34%; width: 24px; height: 24px; }
.dm-sparkles i:nth-child(7) { bottom: -44px; right: 8%; width: 38px; height: 38px; }

.press {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 276px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup {
  position: absolute;
  z-index: 3;
  left: 46%;
  bottom: 70px;
  width: 400px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.popup-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; }
.mode {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface-raised);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}
.popup-time { font: 400 11px/1 var(--mono); color: var(--text-muted); }
.popup-body { padding: 0 16px; }
.popup-source { font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.popup-rule { height: 1px; margin: 10px 0; background: var(--hairline); }
.popup-result { font-size: 14px; line-height: 1.55; color: var(--text); }
.popup-foot { display: flex; align-items: center; gap: 6px; padding: 12px; }
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.pbtn .kbd { padding: 1px 5px; font-size: 10px; line-height: 14px; }
.pbtn-primary { background: var(--primary); color: var(--on-primary); }
.pbtn-primary .kbd { background: transparent; border-color: color-mix(in srgb, var(--on-primary) 30%, transparent); color: inherit; }
.spacer { flex: 1; }
.demo-caption { margin-top: 64px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ── Sections ────────────────────────────────────────── */
section.block { padding: 96px 0; border-top: 1px solid var(--hairline); }
/* Alternating backgrounds: the hero and the odd sections use the page
   colour, the even ones (How it works, Privacy, Updates) the alternate. */
#how, #privacy, #updates { background: var(--surface-alt); }
.block-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.block-head h2 { font-size: 36px; letter-spacing: -0.025em; }
.block-head p { margin-top: 12px; font-size: 17px; color: var(--text-muted); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.feature, .point, .art { transition: border-color 180ms ease, box-shadow 180ms ease; }
.feature:hover, .point:hover, .art:hover { border-color: var(--olive-line); box-shadow: 0 0 24px var(--olive-haze); }
.feature h3 { font-size: 22px; }
.feature p { color: var(--text-muted); font-size: 15px; }
.feature .kbd { align-self: flex-start; margin-top: auto; }
.feature-note { margin-top: 24px; text-align: center; font-size: 15px; color: var(--text-muted); }

.rows { display: grid; gap: 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row.flip .art { order: -1; }
.row h3 { margin-top: 10px; font-size: 28px; letter-spacing: -0.025em; }
.row p { margin-top: 12px; font-size: 16px; color: var(--text-muted); max-width: 440px; }
.row .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.art {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, var(--art-soft) 1px, transparent 0) 0 0 / 18px 18px,
    var(--surface-raised);
  overflow: hidden;
}
.art::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, var(--olive-haze), transparent 70%);
  pointer-events: none;
}

/* Product scenes: a real-looking app window with BlinkF's own UI on top. */
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; z-index: 1; }
.mw {
  position: relative;
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
}
.mw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 12px;
}
.mw-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-close); }
.mw-bar span { margin-left: 6px; }

/* Chat */
.chat { display: grid; grid-template-columns: 92px 1fr; min-height: 220px; }
.chat-side { padding: 12px 10px; border-right: 1px solid var(--hairline); display: grid; gap: 10px; align-content: start; }
.chat-side div { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-muted); }
.chat-side b { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-tint); font: 600 10px/20px var(--sans); text-align: center; color: var(--text); }
.chat-side .on { color: var(--text); }
.chat-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.msg { max-width: 84%; padding: 8px 11px; border-radius: 12px; background: var(--surface-raised); color: var(--text); }
.msg small { display: block; margin-bottom: 2px; font-size: 10px; color: var(--text-muted); }
.msg.me { align-self: flex-end; background: var(--surface-tint); }
.compose { margin-top: auto; padding: 8px 11px; border: 1px solid var(--hairline); border-radius: 10px; color: var(--text); }

/* Terminal */
.term { padding: 14px 16px 18px; font: 400 12.5px/1.75 var(--mono); color: var(--text-muted); background: #161616; }
@media (prefers-color-scheme: light) { .term { background: #1b1b1a; color: #a8a8a2; } }
.term .p { color: #d7d7d2; }
.term .old { text-decoration: line-through; opacity: 0.5; }
.term .new { color: var(--olive-300); }
.term .cur { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--olive-300); }
.mw.dark-bar .mw-bar { background: #1f1f1e; border-color: #2e2e2c; color: #a3a39c; }
.mw.dark-bar { border-color: #2e2e2c; }

/* Email */
.mail { padding: 4px 16px 18px; min-height: 220px; }
.mail-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--text-muted); }
.mail-row b { font-weight: 500; color: var(--text); }
.mail-body { padding-top: 12px; color: var(--text); }
/* Scene text keeps the mock window's own size, not the section paragraph style. */
.mw p { margin: 0; max-width: none; font-size: inherit; color: inherit; }
.mail-body p + p { margin-top: 8px; }
.mark { background: color-mix(in srgb, var(--olive-500) 32%, transparent); border-radius: 3px; padding: 0 2px; }
.chg { text-decoration: underline; text-decoration-color: var(--olive-300); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* BlinkF status overlay: the 44px pill from the app. */
.ov {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  min-width: 168px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--olive-line);
  box-shadow: 0 0 0 4px var(--olive-haze), 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.ov .ring { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--olive-300); border-right-color: var(--olive-300); }
.ov .t { margin-left: auto; font: 400 11px var(--mono); color: var(--text-muted); }
.ov.done { color: var(--olive-300); }
.ov.done .check { width: 15px; height: 15px; }

/* Floating hotkey */
.keys {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 6px;
  filter: drop-shadow(0 0 12px rgba(150, 198, 83, 0.35));
}
.keys span {
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--olive-300);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: var(--surface);
  font: 500 12px var(--mono);
  color: var(--olive-300);
}

/* Popup review card, smaller than the hero one. */
.pop {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 250px;
  border: 1px solid var(--olive-line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--olive-haze), 0 18px 40px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  overflow: hidden;
}
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px 6px; }
.pop-h .mode { height: 19px; font-size: 10px; }
.pop-h em { font: normal 400 10px var(--mono); color: var(--text-muted); }
.pop-b { padding: 0 12px 4px; color: var(--text); line-height: 1.5; }
.pop-f { display: flex; gap: 4px; padding: 8px 9px 9px; }
.pop-f .pbtn { height: 24px; font-size: 10.5px; padding: 0 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.point { padding: 28px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.point h3 { font-size: 19px; margin-top: 10px; }
.point p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }
.providers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--text-muted); font-size: 15px; }

/* Updates */
.updates { max-width: 760px; margin: 0 auto; display: grid; gap: 0; }
.update { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.update-meta { font: 400 13px/1.6 var(--mono); color: var(--text-muted); }
.update-meta b { display: block; font-weight: 400; color: var(--accent); }
.update h3 { font-size: 17px; letter-spacing: -0.01em; }
.update p { margin-top: 6px; font-size: 15px; color: var(--text-muted); }

/* Final CTA */
.final { text-align: center; }
.final-card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 32px;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, var(--glow), transparent 70%), var(--surface-raised);
}
.final-card img { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 22.5%; }
.final-card h2 { font-size: 40px; letter-spacing: -0.02em; }
.final-card p { max-width: 520px; margin: 14px auto 0; font-size: 17px; color: var(--text-muted); }

footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-muted); }
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer img { height: 20px; width: auto; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Small screens ───────────────────────────────────── */
/* ── Works everywhere: horizontal scroll ─────────────────
   Applied by motion.js only on wide screens without reduced motion; otherwise
   the rows stay stacked.

   The section keeps the same 96px padding as every other block, so it is
   only as tall as its content. While the panels slide, the screen holds
   still around it (motion.js pins .works-freeze, the sections around it).
   Eyebrow, title, lead and panels stack as one block. Each slide is one screen wide
   (--pw, measured in JS) and slides across the whole screen; its content is
   inset to line up with the page container, and only the screen edges fade. */
.works-progress { display: none; }
/* Focus while the panels slide: the content of the sections around Works
   everywhere (text, cards, the demo) blurs and fades, while their
   backgrounds and borders stay crisp, and comes back when the page moves on. */
.works-freeze > .block:not(.works) > .container > * { transition: opacity 400ms ease, filter 400ms ease; }
.works-freeze.is-focus > .block:not(.works) > .container > * { opacity: 0.3; filter: blur(3px); }
.works.is-horizontal {
  --side: max(64px, calc((var(--pw, 100vw) - var(--container)) / 2 + var(--gutter)));
  overflow: hidden;
}
.works.is-horizontal > .container {
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0;
}
.works.is-horizontal .block-head { flex: none; margin: 0 auto; padding: 0 var(--gutter); }
/* Eyebrow, title and lead stack tightly as one heading. */
.works .block-head { margin-bottom: 8px; }
.works-title {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 36px;
  letter-spacing: -0.025em;
}
.works-lead {
  max-width: 720px;
  margin: 12px auto 48px;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: 17px;
  color: var(--text-muted);
}
.works.is-horizontal .works-lead { margin: 12px auto 48px; }
@media (max-width: 880px) { .works-title { font-size: 30px; } }
.works.is-horizontal .works-stage {
  flex: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.works.is-horizontal .rows {
  display: flex;
  gap: 0;
  width: max-content;
  padding-top: 28px;
  /* Its own compositor layer: sliding it then needs no repaint per frame. */
  will-change: transform;
}
.works.is-horizontal .row {
  position: relative;
  flex: 0 0 auto;
  width: var(--pw, 100vw);
  padding: 0 var(--side);
}
.works.is-horizontal .row.flip .art { order: 0; }
.works.is-horizontal .row { grid-template-columns: 1fr 1.25fr; }
/* Wider and capped lower than the stacked layout's 4:3, so the panel stays
   short instead of filling the screen's height. */
.works.is-horizontal .art { width: min(100%, 520px); aspect-ratio: 16 / 10; justify-self: end; will-change: transform, opacity; }
/* Less padding inside the shorter panel so the mock windows keep their room. */
.works.is-horizontal .scene { padding: 16px 28px; }
.works.is-horizontal .chat { min-height: 196px; }
.works.is-horizontal .row::before {
  content: attr(data-step) " / 03";
  position: absolute;
  top: -28px;
  left: var(--side);
  font: 400 12px var(--mono);
  color: var(--text-muted);
}
/* Dashed guides: a frame around each panel's content, and on wide screens
   placeholder blocks in the side space so it never reads as empty. */
.guide { display: none; }
.works.is-horizontal .row::after {
  content: "";
  position: absolute;
  inset: -44px calc(var(--side) - 36px) -28px;
  border: 1.5px dashed var(--dash);
  border-radius: 28px;
  pointer-events: none;
}
@media (min-width: 1440px) {
  .works.is-horizontal .guide {
    position: absolute;
    top: -44px;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: clamp(120px, calc(var(--side) - 150px), 300px);
    pointer-events: none;
  }
  .works.is-horizontal .guide-l { right: calc(100% - var(--side) + 60px); }
  .works.is-horizontal .guide-r { left: calc(100% - var(--side) + 60px); }
  .works.is-horizontal .guide span {
    flex: 1;
    border: 1.5px dashed var(--dash);
    border-radius: 24px;
  }
  .works.is-horizontal .guide-l span:nth-child(1) { flex: 0.7; }
  .works.is-horizontal .guide-l span:nth-child(3) { flex: 0.5; border-radius: 999px; }
  .works.is-horizontal .guide-r span:nth-child(1) { flex: 1.4; }
}
/* Guide contents: hints of the panel beside them, kept faint and fading
   toward the screen edge so they read as background, not as copy. */
@media (min-width: 1440px) {
  .works.is-horizontal .guide { opacity: 0.55; }
  .works.is-horizontal .guide-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); }
  .works.is-horizontal .guide-r { -webkit-mask-image: linear-gradient(270deg, transparent, #000 75%); mask-image: linear-gradient(270deg, transparent, #000 75%); }
  .works.is-horizontal .guide span {
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
    color: var(--text-muted);
  }
  .guide em { font-style: normal; }
  .g-chip {
    padding: 6px 12px;
    border: 1px solid var(--olive-line);
    border-radius: 999px;
    font: 500 13px var(--mono);
    color: var(--accent);
  }
  .g-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--olive-line);
    border-radius: 999px;
    background: var(--surface-raised);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
  }
  .g-done { color: var(--accent); }
  .g-ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--hairline); border-top-color: var(--accent); border-right-color: var(--accent); }
  .g-keys { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .g-keys b {
    padding: 6px 10px;
    border: 1px solid var(--dash);
    border-bottom-width: 3px;
    border-radius: 8px;
    font: 500 12px var(--mono);
    color: var(--text);
  }
  .g-big { font-size: clamp(32px, 3vw, 56px); font-weight: 600; letter-spacing: -0.03em; color: var(--text); opacity: 0.6; white-space: nowrap; }
  .g-mono-big { font-family: var(--mono); color: var(--accent); opacity: 0.8; }
  .g-small-big { font-size: 40px; }
  .g-quote { font-size: 72px; line-height: 0.6; color: var(--accent); opacity: 0.7; }
  .g-num { display: grid; justify-items: center; font-size: 56px; font-weight: 300; line-height: 1; color: var(--text); }
  .g-num small { margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
  .works.is-horizontal .guide span.g-lines,
  .works.is-horizontal .guide .g-lines { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; border: 0; }
  .g-line { display: block; height: 8px; border-radius: 4px; background: var(--dash); }
  .g-mono { height: 7px; border-radius: 2px; }
  .g-mark { background: var(--olive-line); box-shadow: 0 0 10px var(--olive-haze); }
  .g-chat { gap: 12px; }
  .g-bub { display: block; height: 22px; border-radius: 11px; background: var(--dash); }
  .g-me { align-self: flex-end; background: var(--olive-haze); border: 1px solid var(--olive-line); }
}
.works.is-horizontal .works-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  /* Clear of the dashed frame's bottom edge. */
  margin-top: 52px;
}
.works-progress span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--hairline);
  transition: background 200ms ease, width 200ms ease;
}
.works-progress span.on { width: 44px; background: var(--accent); box-shadow: 0 0 10px var(--olive-line); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .container { justify-content: space-between; }
  .hero { min-height: 0; padding: 56px 0 72px; }
  .hero-sub { font-size: 17px; }
  .features, .split, .row { grid-template-columns: 1fr; }
  .row { gap: 24px; }
  .row .art { order: -1; }
  /* Narrow screens: the scene sets the height instead of a fixed 4:3, with
     room under the window for the status pill so it never covers text. */
  .art { aspect-ratio: auto; }
  .scene { position: relative; inset: auto; padding: 24px 16px 76px; }
  .row h3 { font-size: 24px; }
  .hero h1 { font-size: 44px; }
  .press { right: 8px; bottom: 268px; }
  .popup { left: 12px; right: 12px; width: auto; }
  .dm-chat-log { min-height: 350px; padding: 20px 16px 16px; }
  .dm-composer { padding: 12px; }
  .dm-bubble { max-width: 80%; }
  .demo-caption { margin-top: 24px; }
  section.block { padding: 72px 0; }
  .block-head h2, .final-card h2 { font-size: 30px; }
  .update { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .hero h1 { font-size: 36px; }
  .cta .btn { width: 100%; }
  .final-card { padding: 48px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
