/* Casama — casama.ai (and its privacy, terms and pair pages).
   Same look as casama.link (link-site/link.css), which every Casama page now follows: plain white
   or dark grey, Casama's purple for text and buttons only. Google Sans for text and the hero h1,
   Libre Baskerville for the wordmark and h2s. */

@font-face { font-family: "Google Sans"; src: url("/assets/fonts/GoogleSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("/assets/fonts/GoogleSans-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("/assets/fonts/GoogleSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("/assets/fonts/LibreBaskerville-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --card: #f7f7f9;
  --ink: #1d1b20;
  --ink-2: #5d5a63;
  --line: #e3e2e7;
  --accent: #7a3fa8;
  --on-accent: #ffffff;
  --accent-soft: #f1e2fc;
  --good: #1f7a4d;
  --warn: #a2361f;

  --font-sans: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(36px, 6vw, 84px);
  --fs-h2: clamp(28px, 3.4vw, 48px);
  --fs-h3: 20px;
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  --gutter: clamp(16px, 3.9vw, 56px);
  --radius: 22px;
  --section: clamp(88px, 10vw, 152px);
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Names the privacy and terms pages read. */
  --pc: var(--accent-soft);
  --on-pc: var(--ink);
  --muted: var(--ink-2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1c1e; --bg-2: #2a2a2d; --card: #242427; --ink: #f2f1f4; --ink-2: #b4b1b9; --line: #38383c;
    --accent: #d9b6f7; --on-accent: #25102f; --accent-soft: #3a2a47; --good: #7fd6a6; --warn: #ffab96;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1c1e; --bg-2: #2a2a2d; --card: #242427; --ink: #f2f1f4; --ink-2: #b4b1b9; --line: #38383c;
  --accent: #d9b6f7; --on-accent: #25102f; --accent-soft: #3a2a47; --good: #7fd6a6; --warn: #ffab96;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-2); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- buttons, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--bg-2); color: var(--ink);
  font: 700 var(--fs-body)/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease-out), filter .2s ease;
}
.btn.sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.08); } }
.text-link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .24em;
  text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent);
}
.text-link::after { content: " →"; }
@media (hover: hover) { .text-link:hover { text-decoration-color: currentColor; } }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--font-serif); letter-spacing: -0.03em; }
.brand-word { font: 700 22px/1 var(--font-serif); letter-spacing: -0.03em; }
.brand-tag { display: inline-block; font: 700 13px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 999px; vertical-align: middle; }
[data-casama-mark] { display: block; flex: none; contain: layout paint style; opacity: 0; transition: opacity .4s ease; }
[data-casama-mark].is-ready { opacity: 1; }
[data-casama-mark] svg { display: block; }
.brand-mark { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: var(--fs-small); font-weight: 700; text-decoration: none; padding: 8px 0; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (hover: hover) { .site-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); } }
/* Header actions: a quiet Sign in link beside the Join the waitlist button. */
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-signin { font-size: var(--fs-small); font-weight: 700; text-decoration: none; padding: 8px 0; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (hover: hover) { .header-signin:hover { text-decoration: underline; text-decoration-color: var(--accent); } }
.header-cta .btn { white-space: nowrap; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-inner > .btn, .header-inner > .header-cta { margin-left: auto; }
}
@media (max-width: 480px) { .header-signin { display: none; } .header-inner { gap: 12px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(56px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.eyebrow { font: 500 var(--fs-small)/1.4 var(--font-mono); color: var(--accent); margin-bottom: 22px; }
.hero h1 { font: 700 var(--fs-display)/1 var(--font-sans); letter-spacing: -0.05em; max-width: 14ch; text-wrap: balance; }
.hero h1 { font-size: min(var(--fs-display), 78px); } /* the widest phrase still fits the text column on wide screens */
.hero h1 .ph { display: inline-block; } /* a phrase stays on one line, so the headline breaks between phrases */
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.hero-note { margin-top: 28px; color: var(--ink-2); font-size: var(--fs-small); max-width: 56ch; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
/* One column from here down, so the headline takes the whole width instead of 14ch. */
@media (max-width: 960px) { .hero h1 { max-width: none; font-size: min(8vw, 72px); } }
/* Phones: the headline fills the column (the widest phrase, "that do the work", takes about 92% of
   it), less air above it, and the buttons stack full width under the thumb. */
@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: calc(12.4vw - 2px); }
  .hero .lead { margin-top: 20px; }
  .hero .hero-actions { margin-top: 28px; gap: 10px; }
  .hero .hero-actions .btn { flex: 1 1 100%; }
  .hero .hero-actions .text-link { margin-top: 8px; }
  .hero-note { margin-top: 18px; }
}

/* the example chat */
.chat { padding: 18px; border-radius: calc(var(--radius) + 4px); background: var(--card); border: 1px solid var(--line); font-size: var(--fs-small); }
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chat-top img { width: 40px; height: 40px; }
.chat-who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.chat-who strong { font-size: var(--fs-body); }
.chat-who span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.chat-cost { font: 400 12px/1 var(--font-mono); color: var(--ink-2); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; }
.bubble.you { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.run-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.run-card-title { font-weight: 700; }
.run-ok { color: var(--good); }
.run-meta { font: 400 12px/1.4 var(--font-mono); color: var(--ink-2); }
.ask-card { padding: 14px; border-radius: 16px; background: var(--bg); border: 1.5px solid color-mix(in oklab, var(--accent) 45%, var(--line)); }
.ask-title { font-weight: 700; color: var(--accent); }
.ask-what { margin-top: 4px; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-card[data-state="done"] .ask-actions { display: none; }
/* the hero chat plays itself (site.js): it fills in, the bot works on its computer, asks, gets an OK, then starts over.
   Without JavaScript, or with reduced motion, it stays the finished still above. */
.run-screen { display: none; }
.chat.is-live .chat-body { position: relative; }
.chat.is-live .run-screen { display: grid; gap: 6px; margin: 8px 0 6px; padding: 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.run-screen-bar { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--font-mono); color: var(--ink-2); }
.run-screen-dots { width: 26px; height: 6px; background: radial-gradient(circle, var(--line) 3px, transparent 3.5px) 0 0 / 10px 6px repeat-x; }
.run-screen-url { flex: 1; min-width: 0; padding: 4px 8px; border-radius: 6px; background: var(--bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-rows { position: relative; height: 84px; overflow: hidden; }
.run-row { position: absolute; left: 0; right: 0; height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; border-radius: 6px; font-size: 12px;
  background: var(--bg); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, background-color .3s, color .3s; }
.run-row b { font: 500 12px/1 var(--font-mono); }
.run-row.best { background: color-mix(in oklab, var(--good) 18%, var(--bg)); color: var(--ink); }
.run-row.best b { color: var(--good); }
.run-row.best::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: -2px; }
.run-row.best span { margin-right: auto; }
.run-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.run-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s linear; }
.chat.is-live [data-step] { transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.chat.is-live [data-step].off { opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; }
.chat.is-live .bubble.you { transform-origin: 100% 100%; }
.chat.is-live .chat-body.fading > * { opacity: 0; transition: opacity .5s ease; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: typing-dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat.is-live .ask-card.asking { animation: ask-glow 1.8s ease-in-out infinite; }
@keyframes ask-glow { 50% { box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 22%, transparent); } }
.chat.is-live .live-dot { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--good) 25%, transparent); } }
.chat.is-live .live-dot.idle { animation: none; background: var(--ink-2); }
.tap-cursor { position: absolute; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: none;
  background: color-mix(in oklab, var(--ink) 22%, transparent); border: 2px solid color-mix(in oklab, var(--ink) 55%, transparent);
  transition: left .9s cubic-bezier(.4,0,.2,1), top .9s cubic-bezier(.4,0,.2,1), opacity .3s, transform .15s; }
.tap-cursor.press { transform: scale(.7); }
.btn.tapped { filter: brightness(1.15); transform: scale(.96); }

/* ---------------------------------------------------------------- sections */
.section { padding-top: var(--section); }
.section h2, .report h2 { font: 400 var(--fs-h2)/1.12 var(--font-serif); letter-spacing: -0.022em; max-width: 22ch; text-wrap: balance; }
.section-lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; margin-top: 20px; }
.fine { margin-top: 24px; color: var(--ink-2); font-size: var(--fs-small); max-width: 90ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card h3 { font-size: var(--fs-h3); line-height: 1.25; }
.card p { color: var(--ink-2); }
.node-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 2px; }
.node-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards, .cards-4 { grid-template-columns: 1fr; } }

/* teammates */
.mate-face { width: 64px; height: 64px; }
.mate .mate-run { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-small); }
.mate-run span { display: block; font: 400 12px/1.6 var(--font-mono); color: var(--accent); }

/* every starter bot (D-382): a row on the home page, the full list on /bots */
.starter-bots { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bot-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bot-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: var(--fs-small); text-decoration: none; }
.bot-chip img { width: 28px; height: 28px; }
.bot-chip span { font-weight: 400; color: var(--ink-2); }
.bot-chip span::before { content: "· "; }
@media (hover: hover) { .bot-chip:hover { border-color: var(--accent); } }
.bot-tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bot-tiles li { margin: 0; scroll-margin-top: 96px; }
.bot-tile { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
/* pages.css loads after this and styles every list and link in .prose: these win on specificity. */
.prose ul.bot-tiles { padding: 0; list-style: none; margin-top: 16px; }
.prose .bot-tiles li + li { margin-top: 0; }
.prose .bot-tiles li a.bot-tile { color: inherit; font-weight: 400; text-decoration: none; }
.bot-tile img { width: 44px; height: 44px; flex: none; }
.bot-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bot-tile-name { font-weight: 700; color: var(--ink); }
.bot-tile-job { font-weight: 400; color: var(--ink-2); }
.bot-tile-job::before { content: "· "; }
.bot-tile-desc { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }
@media (hover: hover) { .bot-tile:hover { border-color: var(--accent); } }
.bot-tile:focus-visible, .bot-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bot-tiles li:target .bot-tile { border-color: var(--accent); }
@media (max-width: 640px) { .bot-tiles { grid-template-columns: 1fr; } }

/* how a task goes */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--font-sans); }
.step .step-eg { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font: 400 13px/1.55 var(--font-mono); color: var(--ink-2); }
@media (max-width: 1080px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

/* apps */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 48px; }
.logos li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: var(--fs-small); }
.logos .mark { width: 24px; height: 24px; flex: none; background: var(--ink); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); } }

/* trust */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.col { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.col h3 { font-size: var(--fs-h3); margin-bottom: 18px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li b { color: var(--ink); }
.ticks li + li { margin-top: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font-sans); background: var(--accent-soft); color: var(--accent); }
.box { font-size: var(--fs-small); }
.box-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.box-top img { width: 32px; height: 32px; }
.box-top strong { flex: 1; font-size: var(--fs-body); }
.box-state { font: 400 12px/1 var(--font-mono); color: var(--ink-2); background: var(--bg-2); padding: 6px 10px; border-radius: 999px; }
.box-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.box-rows dt { color: var(--ink-2); }
.box-rows dd { text-align: right; font-weight: 600; }
.box-label { margin-top: 18px; font-weight: 700; }
.box-checks { margin-top: 10px; display: grid; gap: 8px; }
.box-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.box-checks span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font: 700 12px/1 var(--font-sans); }
.box-checks time { margin-left: auto; font: 400 12px/1 var(--font-mono); color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.compare-title { font-size: var(--fs-h3); margin-top: 56px; }
.table-scroll { margin-top: 18px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 720px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 700; color: var(--ink-2); }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); background: color-mix(in oklab, var(--accent-soft) 45%, transparent); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.plan h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .price { font: 700 44px/1 var(--font-sans); letter-spacing: -0.04em; color: var(--ink); }
.plan .price small { display: block; margin-top: 8px; font: 400 var(--fs-small)/1.3 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.plan p:not(.price) { flex: 1; font-size: var(--fs-small); }
.plan .btn { align-self: stretch; margin-top: 6px; }
.plan-pick { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent); }
.selfhost { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 16px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.selfhost h3 { font-size: var(--fs-h3); }
.selfhost p { color: var(--ink-2); margin-top: 8px; max-width: 72ch; }
.price-inline { margin-left: 8px; font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .selfhost { flex-direction: column; align-items: stretch; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* questions */
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); max-width: 880px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: var(--fs-h3); font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font: 400 22px/1 var(--font-sans); transition: transform .2s var(--ease-out); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 72ch; }
.faq-more { margin-top: 28px; }

/* last call */
.report { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); }
.start-actions { min-width: 0; }
.install { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--line); }
.install code { flex: 1; min-width: 0; background: none; padding: 0; font-size: 14px; line-height: 1.5; }
.start-actions .hero-actions { margin-top: 22px; }
.start-art { display: block; width: 100%; height: auto; margin-top: clamp(32px, 5vw, 56px); border-radius: var(--radius); }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--section); padding: 48px 0 44px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 36ch; }
.footer-mail { display: flex; flex-direction: column; gap: 4px; }
/* The monthly email (D-404): one field and a button; the note under it says what happened. */
.footer-social { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 16px; margin-left: -8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; color: var(--ink-2); }
.footer-social a:hover { color: var(--ink); background: var(--line); }
.footer-social a:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.footer-news { margin-top: 22px; max-width: 420px; }
.footer-news label { display: block; margin-bottom: 10px; color: var(--ink-2); }
.footer-news-row { display: flex; gap: 8px; }
.footer-news input[type="email"] { flex: 1; min-width: 0; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--fs-small); }
.footer-news input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.footer-news .btn { flex: none; border: 0; cursor: pointer; }
.footer-news .btn[disabled] { opacity: .6; cursor: default; }
.footer-news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer-news-note { margin-top: 8px; min-height: 1.5em; }
.footer-news-note.is-good { color: var(--good); }
.footer-news-note.is-bad { color: var(--warn); }
@media (max-width: 420px) { .footer-news-row { flex-direction: column; } .footer-news .btn { width: 100%; } }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav h2 { font: 700 13px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.site-footer a:not(.brand) { color: var(--ink); font-weight: 700; text-decoration: none; }
@media (hover: hover) { .site-footer a:not(.brand):hover { text-decoration: underline; } }
.footer-bottom { margin-top: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Screenshots (light and dark versions, switched like the colour tokens) */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot-hero { margin-top: 40px; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.shot figcaption { margin-top: 8px; color: var(--ink-2); max-width: 46ch; }
.shot figcaption strong { color: var(--ink); font-weight: 600; }
.shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
@media (max-width: 760px) { .shot-pair { grid-template-columns: 1fr; } }

/* The film (D-390): "Watch the film" in the hero opens the 86-second film in a dialog (16:9 on
   every screen); "See it at work" plays the same film, muted, while it's on screen. */
.film-btn { padding-left: 8px; gap: 12px; }
.film-btn-play { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.film-btn-play::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--on-accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film-btn-time { font: 400 13px/1 var(--font-mono); color: var(--ink-2); }

.reel { margin: 40px 0 0; }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #1b1022; box-shadow: 0 34px 90px -40px rgba(40, 14, 60, .55); }
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-sound {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(20, 10, 28, .62); color: #fff; font: 700 var(--fs-small)/1 var(--font-sans);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .14s var(--ease-out), background .2s ease;
}
.reel-sound[hidden] { display: none; }
@media (max-width: 600px) {
  .reel-frame { border-radius: 14px; }
  .reel-sound { right: 8px; bottom: 8px; min-height: 30px; padding: 0 11px 0 8px; gap: 5px; font-size: 12px; }
  .reel-sound-icon { width: 15px; height: 15px; }
}
.reel-sound:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .reel-sound:hover { background: rgba(20, 10, 28, .78); } }
.reel-sound-icon { width: 20px; height: 20px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='white'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6'/%3E%3C/svg%3E"); }
.reel-sound[aria-pressed="true"] .reel-sound-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='white'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
.reel figcaption { margin-top: 14px; color: var(--ink-2); max-width: 72ch; }
.reel figcaption strong { color: var(--ink); font-weight: 600; }
.reel figcaption .text-link { color: var(--ink); white-space: nowrap; }
.reel-note { display: block; margin-top: 8px; font-size: 13px; }

.film { width: min(92vw, 1280px, calc(82vh * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; background: transparent; color: #fff; }
.film::backdrop { background: rgba(14, 6, 20, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film[open] { animation: film-in .32s var(--ease-out); }
@keyframes film-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.film-video { display: block; width: 100%; max-height: 82vh; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.film-close { position: absolute; top: -54px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .film-close:hover { background: rgba(255, 255, 255, .24); } }
.film-note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); text-align: center; }
@media (max-width: 600px) { .film-video { border-radius: 12px; } }
/* A phone held upright plays the 9:16 film (site.js adds .film--tall when it opens the dialog). */
.film--tall { width: min(92vw, calc(74vh * 9 / 16)); }
.film--tall .film-video { aspect-ratio: 9 / 16; max-height: 74vh; }
/* A phone on its side has no room above the video, so the close button sits on it. */
@media (max-height: 500px) { .film-close { top: 8px; right: 8px; z-index: 1; background: rgba(0, 0, 0, .5); } .film-note { margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { .film[open] { animation: none; } }

/* ---------------------------------------------------------------- download (D-377)
   Store badges, the platform cards on /download and the phone QR code, which always sits on white
   so every camera reads it, in light and dark. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 54px; padding: 0 20px 0 15px; border-radius: 14px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .14s var(--ease-out), filter .2s ease;
}
.store:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .store:hover { filter: brightness(1.25); } }
.store .glyph { width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.store-text { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.store-text small { font: 400 11.5px/1.15 var(--font-sans); letter-spacing: .01em; opacity: .8; }
.store-text b { font: 700 17px/1.15 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap; }

.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }
.dl h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-req { font: 400 13px/1.5 var(--font-mono); color: var(--ink-2); }
.card .dl-req { color: var(--ink-2); }
.dl-get { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-alt { font-size: var(--fs-small); }
.card .dl-alt { color: var(--ink-2); }
.dl-alt a:not(.text-link) { color: var(--ink); font-weight: 700; text-underline-offset: .2em; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.dl-code { margin-top: auto; display: flex; padding: 12px 16px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line); }
.dl-code code { background: none; padding: 0; font-size: 14px; }
.dl.is-yours { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent); }

/* the phone QR code */
.qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.qr { position: relative; padding: 14px; border-radius: 18px; background: #ffffff; box-shadow: 0 0 0 1px var(--line); }
.qr img { display: block; }
.qr > img:first-child { width: 176px; height: 176px; image-rendering: pixelated; }
.qr-face { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -21px 0 0 -21px; box-sizing: content-box; padding: 4px; border-radius: 10px; background: #ffffff; }
.qr-copy { display: flex; flex-direction: column; align-items: inherit; gap: 6px; margin-top: 8px; }
.qr-title { font-weight: 700; font-size: var(--fs-body); }
.qr-text { color: var(--ink-2); font-size: var(--fs-small); max-width: 30ch; }
/* Phones and tablets get the store buttons instead: scanning your own screen doesn't work. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) { .qr-card { display: none; } }

.dl-hero { grid-template-columns: minmax(0, 1fr) auto; }
.dl-hero .qr-card { width: 300px; }
@media (max-width: 960px) { .dl-hero { grid-template-columns: 1fr; } .dl-hero .qr-card { width: auto; flex-direction: row; text-align: left; justify-self: start; gap: 22px; } .dl-hero .qr-copy { margin-top: 0; } }

/* the homepage's download section */
.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 48px; align-items: stretch; }
.get-groups { display: flex; flex-direction: column; padding: 8px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.get-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.get-group h3 { font-size: var(--fs-h3); }
.get-groups > p { padding: 20px 0 14px; }
.get .qr-card { width: 280px; justify-content: center; }
@media (max-width: 960px) { .get { grid-template-columns: 1fr; } .get .qr-card { width: auto; flex-direction: row; text-align: left; justify-content: flex-start; gap: 22px; } .get .qr-copy { margin-top: 0; } }
@media (max-width: 760px) { .get-group { grid-template-columns: 1fr; } .get-groups { padding: 4px 20px; } }
/* "While it downloads" on /download (D-404), shown after a desktop download starts. */
.dl-news { margin-top: 32px; }
.dl-news-card { max-width: 640px; margin: 0 auto; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.dl-news-card h2 { font: 700 var(--fs-h3)/1.2 var(--font-sans); letter-spacing: -0.01em; }
.dl-news-card p { margin-top: 8px; color: var(--ink-2); }
.dl-news-card .footer-news, .dl-news-card .wl-inline { margin-top: 14px; max-width: none; }

/* The small join form (home page, blog posts, changelog, download): email and button on one row,
   one line of status under it. site/assets/waitlist.js wires it. */
.wl-inline { max-width: 460px; margin-top: 28px; }
.wl-inline-row { display: flex; gap: 8px; }
.wl-inline input[type="email"] { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-small); }
.wl-inline input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.wl-inline .btn { flex: none; border: 0; cursor: pointer; white-space: nowrap; }
.wl-inline .btn[disabled] { opacity: .6; cursor: default; }
.wl-inline .wl-status { margin: 8px 0 0; min-height: 1.5em; font-size: var(--fs-small); color: var(--ink-2); }
.wl-inline .wl-status.is-bad { color: var(--warn); }
.wl-inline-done { max-width: 460px; margin-top: 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.wl-inline-done:focus { outline: none; }
@media (max-width: 420px) { .wl-inline-row { flex-direction: column; } .wl-inline .btn { width: 100%; min-height: 48px; } }
