/* BoxDroid website. Plain CSS, no build step.
   System: Geist throughout, with Geist Mono for code (set as Vercel sets
   them: regular-weight headlines with tight tracking; chosen by the owner on
   2026-11-24), black/#1D1D1F and #F5F5F7/white grounds, one accent #1F3BFF,
   28 px cards. */

:root {
  --ink: #1D1D1F;
  --g1: #6E6E73;
  --g2: #86868B;
  --bg: #FFFFFF;
  --bg2: #F5F5F7;
  --line: #E8E8ED;
  --line2: #D2D2D7;
  --acc: #1F3BFF;
  --night: #020713;
  --fleet: #071A33;
  --on-dark: #F5F5F7;
  --on-dark-2: #C7CBD6;
  --on-dark-3: #A1A6B4;
  --ok-bg: #E6F3EA;
  --ok: #116B3A;
  --ok-dot: #178A4C;
  --warn-bg: #FDEDE4;
  --warn: #A23A06;
  --warn-line: #EE5615;

  --r-card: 28px;
  --r-ui: 16px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-ui: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .07);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 32px rgba(0, 0, 0, .10);

  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --wrap: 1200px;
  --gutter: 40px;
  --section: 128px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, pre { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.list-reset { padding: 0; margin: 0; list-style: none; }
.pre-wrap { white-space: pre-wrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Frame ----------
   After browserbase.com: hairline rails at the edges of the content column run
   down the light sections, a hairline closes each one, and the hero art sits
   inside the rails. Below the wrap width the rails fall off screen. */
:root { --rail: var(--line); }
.section--gray { --rail: var(--line2); }
.section, .band {
  background-image:
    linear-gradient(var(--rail), var(--rail)),
    linear-gradient(var(--rail), var(--rail)),
    linear-gradient(var(--rail), var(--rail));
  background-size: 1px 100%, 1px 100%, min(100%, var(--wrap)) 1px;
  background-repeat: no-repeat;
  background-position: calc(50% - var(--wrap) / 2) 0, calc(50% + var(--wrap) / 2 - 1px) 0, 50% 100%;
}

/* Section labels: Geist Mono caps, as the footer's column labels. */
.eyebrow { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--g1); }
[data-theme="dark"] .eyebrow { color: var(--on-dark-3); }
.section--gray { background-color: var(--bg2); }
.section-in { display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }

/* ---------- Type ---------- */
/* Headlines: Geist at regular weight with tight tracking. */
.t-hero { font-size: clamp(44px, 5.56vw, 80px); line-height: 1.05; font-weight: 400; letter-spacing: -0.05em; }
.t-h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.07; font-weight: 400; letter-spacing: -0.045em; }
.t-h3 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.t-h4 { font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -0.02em; }
.lead { font-size: clamp(19px, 1.46vw, 21px); line-height: 30px; }
.body { font-size: 17px; line-height: 26px; }
.small { font-size: 14px; line-height: 20px; }
.label { font-size: 12px; line-height: 16px; font-weight: 500; }
.label--regular { font-weight: 400; }
.mono { font-family: var(--mono); font-size: 14px; line-height: 22px; }
.mono-s { font-family: var(--mono); font-size: 12px; line-height: 18px; }
.muted { color: var(--g1); }
.muted-2 { color: var(--g2); }
.accent { color: var(--acc); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
/* A phone silhouette made of phone-shaped tiles: ink frame, accent screen. */
.brand-mark { flex: none; fill: currentColor; }
.brand-mark .lit { fill: var(--acc); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px;
  padding: 6px 6px 6px 24px; border: 0; border-radius: var(--r-pill);
  background: var(--acc); color: #FFFFFF; font-size: 17px; line-height: 26px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #1832E0; box-shadow: 0 6px 18px rgba(31, 59, 255, .28); }
.btn:active { transform: translateY(1px); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-pill); background: #FFFFFF; color: var(--acc);
  transition: transform .25s var(--ease);
}
.btn:hover .btn-icon--arrow { transform: translateX(2px); }
.btn--sm { min-height: 36px; gap: 10px; padding: 4px 4px 4px 16px; font-size: 12px; line-height: 16px; }
.btn--sm .btn-icon { width: 28px; height: 28px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 22px;
  border: 1px solid var(--line2); border-radius: var(--r-pill); background: #FFFFFF; color: var(--ink);
  font-size: 17px; line-height: 26px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none;
  color: var(--acc); font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer;
}
.btn-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Copy buttons swap their label for "Copied". */
[data-copy] .copied { display: none; }
[data-copy].is-copied .copy-label { display: none; }
[data-copy].is-copied .copied { display: inline; }
[data-copy] .icon-check { display: none; }
[data-copy].is-copied .icon-copy { display: none; }
[data-copy].is-copied .icon-check { display: block; }

/* ---------- Nav: a floating glass capsule ----------
   References: Apple's iPhone local nav (floating rounded bar), Airform (centered
   segmented links, pill CTA), M13 (white glass with blur). Over sections marked
   data-theme="dark" it switches to dark glass (main.js adds .is-dark). */
.nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none;
  --nav-fg: var(--ink); --nav-fg2: #424245; --nav-hover: #F0F0F2; --nav-seg: rgba(0, 0, 0, .035);
  --nav-pill: #FFFFFF; --nav-pill-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .06); --nav-ring: var(--acc);
}
.nav.is-dark {
  --nav-fg: #FFFFFF; --nav-fg2: rgba(255, 255, 255, .84); --nav-hover: rgba(255, 255, 255, .1); --nav-seg: rgba(255, 255, 255, .06);
  --nav-pill: rgba(255, 255, 255, .16); --nav-pill-shadow: none; --nav-ring: #FFFFFF;
}
.nav-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  max-width: 1120px; height: 58px; margin: 0 auto; padding: 0 9px 0 20px; pointer-events: auto;
  border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72); color: var(--nav-fg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), transform .35s var(--ease);
}
.nav.is-dark .nav-bar { background: rgba(20, 20, 24, .6); border-color: rgba(255, 255, 255, .1); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .24); }
.nav.is-hidden .nav-bar { transform: translateY(calc(-100% - 48px)); }
.nav .brand { justify-self: start; color: var(--nav-fg); transition: color .2s var(--ease); }
.nav a:focus-visible, .nav button:focus-visible { outline: 2px solid var(--nav-ring); outline-offset: 2px; border-radius: var(--r-pill); }
.nav-links {
  position: relative; display: flex; padding: 4px; border-radius: var(--r-pill); background: var(--nav-seg);
  font-size: 14px; line-height: 20px; font-weight: 500; transition: background-color .2s var(--ease);
}
.nav-links a { position: relative; z-index: 1; padding: 8px 13px; border-radius: var(--r-pill); color: var(--nav-fg2); white-space: nowrap; transition: background-color .15s, color .2s; }
.nav-links a:hover { background: var(--nav-hover); color: var(--nav-fg); }
.nav-links a[aria-current] { color: var(--nav-fg); }
.nav-links a[aria-current]:hover { background: none; }
/* The scrollspy pill slides under the current section's link. */
.nav-pill {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: var(--r-pill);
  background: var(--nav-pill); box-shadow: var(--nav-pill-shadow); opacity: 0;
  transition: transform .25s ease, width .25s ease, opacity .2s, background-color .2s;
}
.nav-pill.is-on { opacity: 1; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-signin { padding: 8px 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nav-fg2); transition: color .2s; }
.nav-signin:hover { color: var(--nav-fg); }
.navcta { min-height: 40px; gap: 10px; padding: 4px 4px 4px 16px; font-size: 14px; line-height: 20px; }
.navcta .btn-icon { width: 32px; height: 32px; }
.menu-btn {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: var(--nav-hover); color: var(--nav-fg); cursor: pointer;
}
.menu-btn .bars { display: flex; flex-direction: column; gap: 5px; }
.menu-btn .bar { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .2s var(--ease); }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.menu-sheet {
  display: none; position: fixed; top: 78px; left: 12px; right: 12px; max-height: calc(100vh - 92px); overflow: auto;
  padding: 8px 20px 20px; pointer-events: auto; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--r-card);
  background: rgba(255, 255, 255, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px rgba(0, 0, 0, .12);
}
.menu-sheet.is-open { display: block; }
.menu-sheet nav { display: flex; flex-direction: column; }
.menu-sheet a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 28px; line-height: 34px; font-weight: 400; letter-spacing: -0.04em; }
.menu-sheet a:last-child { border-bottom: 0; }
.menu-sheet a:focus-visible, .menu-sheet button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.menu-copy { width: 100%; justify-content: center; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet.is-open { animation: sheet-in .22s var(--ease); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .nav-bar, .nav-pill { transition: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #FFFFFF; min-height: calc(760px + var(--nav-h)); padding-top: var(--nav-h); }
.hero-frame {
  position: absolute; top: 0; bottom: 0;
  left: max(0px, calc(50% - var(--wrap) / 2)); right: max(0px, calc(50% - var(--wrap) / 2));
  overflow: hidden; border: 1px solid var(--rail); border-block: 0;
}
/* The art fades into the page below instead of ending on a line. */
.hero-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 55%, #FFFFFF 100%); pointer-events: none; }
/* Positioned against the frame, which shares the hero's center line. */
.hero-art {
  position: absolute; left: calc(50% - 758px); top: 0; padding-top: calc(var(--nav-h) - 24px); width: 1680px;
  transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform;
}
.hero-art img { width: 100%; height: auto; }
/* The art runs under the text column too. The scrim is only as strong as the
   text needs: with the darker body color below, the headline, body and labels
   stay at WCAG AA over the lightest and darkest tiles. */
.hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .62) 36%, rgba(255, 255, 255, .34) 47%, rgba(255, 255, 255, 0) 58%); }
.hero .muted, .hero .eyebrow { color: #424245; }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 640px; padding-block: 112px; }

/* Live tile art (tiles.js). Each canvas sits over its PNG, which is the first
   paint and the fallback. The hero boots from blank, so its PNG waits under
   the canvas and only shows if the engine hasn't started after 2.5 s. */
.tiles { position: absolute; left: 0; top: 0; display: block; max-width: none; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.tiles.is-on { opacity: 1; }
.tiles--boot { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-art img { opacity: 0; animation: art-fallback .4s 2.5s forwards; }
}
@keyframes art-fallback { to { opacity: 1; } }

/* Agent logos */
.made-for { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.agents { display: flex; flex-wrap: wrap; gap: 18px 22px; padding: 0; margin: 0; list-style: none; }
.agent-tile {
  --s: 52px;
  position: relative; display: flex; align-items: center; justify-content: center; flex: none;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .27); overflow: hidden; background: #FFFFFF;
}
.agent-tile--light { border: 1px solid var(--line); }
.agent-tile--dark { background: #000000; }
.agent-tile--graphite { background: var(--ink); }
.agent-tile img { flex: none; }
.agent-tile--muse img { width: 65%; height: 65%; }
.agent-tile--duet img { width: 127%; height: 127%; max-width: none; }
.agent-tile--chatgpt img { width: 72%; height: 72%; }
.agent-tile--grok img { width: 100%; height: 100%; }
.agent-tile--openclaw img { width: 77%; height: 77%; }
.agent-tile--hermes img { width: 38%; height: 77%; }
.agents--small { gap: 12px; }
.agents--small .agent-tile { --s: 40px; }

/* ---------- App icon tiles (brand glyphs from Simple Icons, masked in white) ---------- */
.app {
  --s: 48px; --c: #000000; --glyph: none; --gs: 56%;
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 28%; background: var(--c); overflow: hidden;
}
.app::after {
  content: ''; width: var(--gs); height: var(--gs); background: #FFFFFF;
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.app--img::after { display: none; }
.app--xs { --s: 20px; }
.app--united { --c: #002244; --glyph: url(assets/apps/unitedairlines.svg); }
.app--delta { --c: #003366; --glyph: url(assets/apps/delta.svg); --gs: 82%; }
.app--uber { --c: #000000; --glyph: url(assets/apps/uber.svg); --gs: 80%; }
.app--lyft { --c: #FF00BF; --glyph: url(assets/apps/lyft.svg); --gs: 62%; }
.app--airbnb { --c: #FF5A5F; --glyph: url(assets/apps/airbnb.svg); }
.app--doordash { --c: #FF3008; --glyph: url(assets/apps/doordash.svg); --gs: 60%; }
.app--instacart { --c: #43B02A; --glyph: url(assets/apps/instacart.svg); }
.app--starbucks { --c: #006241; --glyph: url(assets/apps/starbucks.svg); --gs: 64%; }
.app--whatsapp { --c: #25D366; --glyph: url(assets/apps/whatsapp.svg); }
.app--ups { --c: #150400; --glyph: url(assets/apps/ups.svg); --gs: 62%; }
.app--fedex { --c: #4D148C; --glyph: url(assets/apps/fedex.svg); --gs: 82%; }
.app--venmo { --c: #008CFF; --glyph: url(assets/apps/venmo.svg); --gs: 82%; }
.app--amazon { --c: #131921; }
.app--amazon img { width: 72%; height: auto; margin-top: 8%; }
.app--cvs { --c: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line2); }
.app--cvs img { width: 78%; height: auto; }

/* ---------- Cards and mini UI ---------- */
.card { background: var(--bg2); border-radius: var(--r-card); }
.card--white { background: #FFFFFF; box-shadow: var(--shadow-card); }
.card--dark { background: var(--ink); color: var(--on-dark); }
.ui {
  background: #FFFFFF; border-radius: var(--r-ui); box-shadow: var(--shadow-ui);
  padding: 14px 16px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; width: 100%;
}
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 18px; }
.ui.ui-row { flex-direction: row; }
.ui-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; }
.ok-strong { color: var(--ok); font-weight: 600; }
.ui-sub { font-size: 12px; line-height: 16px; color: var(--g1); }
.app-row { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap;
}
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--acc { background: var(--acc); color: #FFFFFF; }
.pill--neutral { background: var(--bg2); color: var(--ink); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--chip { padding: 8px 14px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); }
.code-block { padding: 16px; border-radius: var(--r-ui); background: var(--ink); color: var(--on-dark); }
.code-block pre { white-space: pre-wrap; }

/* Webhook payload */
.payload { white-space: pre-wrap; }

/* ---------- Statement: tool sequence ---------- */
.statement-text { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.statement-card { grid-column: 6 / span 7; }
/* The sequence floats on a panel of the day scene's clouds, drawn live by
   tiles.js (after browserbase.com's large demo panel beside its text). */
.tool-panel {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 560px; padding: 40px; overflow: hidden; border-radius: var(--r-card); background: #FFFFFF;
}
.tool-panel img { position: absolute; left: 0; top: -220px; width: 1400px; max-width: none; height: auto; }
.tool-panel .seq { position: relative; width: 100%; max-width: 460px; box-shadow: 0 2px 6px rgba(8, 22, 52, .08), 0 24px 48px rgba(8, 22, 52, .16); }
.checks { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; color: var(--acc); }
.seq { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.seq-steps { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.seq-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.seq-foot { display: flex; justify-content: flex-end; }
.seq.is-running .seq-foot button { visibility: hidden; }
.seq [data-status-running] { display: none; }
html.js .seq.is-running [data-status-running] { display: inline-flex; }
html.js .seq.is-running [data-status-done] { display: none; }
.spinner { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
html.js .seq .seq-step,
html.js .seq .code-block { transition: opacity .35s var(--ease), transform .35s var(--ease); }
html.js .seq.is-pending .seq-step,
html.js .seq.is-pending .code-block { opacity: 0; transform: translateY(6px); }
html.js .seq .seq-step.is-shown,
html.js .seq .code-block.is-shown { opacity: 1; transform: none; }

/* ---------- Night: events ---------- */
.night { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); min-height: 820px; }
.night-art { position: absolute; left: calc(50% - 799px); top: -40px; width: 1678px; }
.night-art img { width: 100%; height: auto; }
.night-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 7, 19, .96) 0%, rgba(2, 7, 19, .9) 30%, rgba(2, 7, 19, .35) 44%, rgba(2, 7, 19, 0) 52%, rgba(2, 7, 19, 0) 66%, rgba(2, 7, 19, .55) 76%, rgba(2, 7, 19, .75) 100%); }
.night-in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; min-height: 820px; }
.night-text { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; max-width: 440px; }
.night-feed-col { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 12px; }
.feed { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }
/* New events grow in at the top while the oldest collapses at the bottom, so the list keeps its height. */
.feed-item {
  overflow: hidden; max-height: 180px;
  transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .45s var(--ease), margin .45s var(--ease), padding .45s var(--ease);
}
.feed-item.is-entering,
.feed-item.is-leaving { opacity: 0; max-height: 0; padding-block: 0; margin-top: -12px; }
.feed-item.is-entering { transform: translateY(-10px); }
.feed-item.is-leaving { transform: scale(.98); }
.feed-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--on-dark-2); }
.feed-live .dot { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); }
@media (prefers-reduced-motion: no-preference) {
  html.js .feed-live.is-on .dot { animation: live 1.8s ease-out infinite; }
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }

/* ---------- Use cases ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips .chips-label { margin-right: 6px; }

/* ---------- Setup (dawn cards) ---------- */
.step { display: flex; flex-direction: column; gap: 16px; }
.dawn { position: relative; overflow: hidden; height: 420px; border-radius: var(--r-card); background: #E9DCCF; }
/* One picture across the three cards: each shows the next third of the dawn
   art (the grid gap is 24 px), so the phone lands in the third card. */
.dawn img { position: absolute; top: -150px; left: 0; width: calc((300% + 48px) * 1.25); max-width: none; height: auto; }
.dawn--2 img { left: calc(-100% - 24px); }
.dawn--3 img { left: calc(-200% - 48px); }
.bubble { padding: 6px 10px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.bubble--you { align-self: flex-end; background: var(--ink); color: var(--on-dark); }
.bubble--agent { background: var(--bg2); }

/* ---------- Fleet: numbers ---------- */
.fleet { position: relative; overflow: hidden; background: var(--fleet); color: var(--on-dark); }
.fleet-art { position: absolute; left: calc(50% - 720px); top: -20px; width: 1440px; min-width: 100%; }
.fleet-art img { width: 100%; height: auto; }
.fleet-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 7, 19, .55) 0%, rgba(2, 7, 19, .15) 40%, rgba(2, 7, 19, .6) 72%, rgba(2, 7, 19, .92) 100%); }
.fleet-in { position: relative; display: flex; flex-direction: column; gap: 40px; padding-top: var(--section); padding-bottom: 96px; }
.fleet-gap { height: 220px; }
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; border-radius: var(--r-card);
  background: rgba(2, 7, 19, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.stat-n { font-size: clamp(38px, 3.9vw, 56px); line-height: 1.05; font-weight: 400; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.on-dark-2 { color: var(--on-dark-2); }
.on-dark-3 { color: var(--on-dark-3); }

/* ---------- Final CTA ---------- */
.final { align-items: start; }
.final-text { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.final-prompt { grid-column: 7 / span 6; }
.prompt-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prompt { white-space: pre-wrap; color: var(--on-dark); }
.inline-code { font-family: var(--mono); font-size: 14px; line-height: 22px; color: var(--ink); }

/* ---------- Footer ----------
   After browserbase.com (brand block on the left, link columns under mono
   labels) and granola.ai (a full-width wordmark), on the night ground. */
.footer { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); }
.footer-top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px;
  padding-block: 112px 56px;
}
.footer-brand { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.footer .brand { color: var(--on-dark); font-size: 20px; line-height: 24px; letter-spacing: -0.02em; }
.footer .brand-mark { width: 16px; height: 26px; }
.footer-line {
  max-width: 340px; font-size: 28px; line-height: 32px; font-weight: 400; letter-spacing: -0.04em; color: var(--on-dark);
}
.btn--light { background: #FFFFFF; color: var(--ink); }
.btn--light .btn-icon { background: var(--acc); color: #FFFFFF; }
.btn--light:hover { background: #E8EBFF; box-shadow: none; }
.footer-cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h {
  margin-bottom: 20px; font-family: var(--mono); font-size: 12px; line-height: 16px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-col a { font-size: 15px; line-height: 22px; color: var(--on-dark-2); transition: color .2s var(--ease); }
.footer-col a:hover { color: #FFFFFF; }
/* The wordmark band. footer.js draws it in phone tiles and sets its height;
   the text is the fallback until then. */
.footer-word { position: relative; overflow: hidden; }
.footer-word-text {
  display: block; width: min(100%, var(--wrap)); margin-inline: auto; padding: 40px var(--gutter);
  font-size: min(calc((100vw - 2 * var(--gutter)) * .262), 293px); line-height: .78;
  font-weight: 600; letter-spacing: -0.045em; color: #0B1230; white-space: nowrap; user-select: none;
}
.footer-word canvas { position: absolute; left: 0; top: 0; display: block; }
.footer-word.is-tiled .footer-word-text { visibility: hidden; }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-block: 28px 40px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; line-height: 18px; color: var(--on-dark-3);
}
.footer-mcp { display: inline-flex; align-items: baseline; gap: 10px; }
.footer-mcp .mono-s { color: var(--on-dark-2); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); padding-block: 88px 72px; }
  .footer-brand, .footer-cols { grid-column: auto; }
}
@media (max-width: 600px) {
  .footer-cols { gap: 16px; }
  .footer-line { font-size: 24px; line-height: 28px; }
}

/* ---------- Made for band ----------
   After browserbase.com's logo band under its hero: a label, then one flat
   cell per agent. */
.band { padding-block: 24px 64px; }
.band-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.band-h { grid-column: span 3; max-width: 200px; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--g1); }
.band-logos { grid-column: 4 / span 9; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.band-logo { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.band-logo .agent-tile { --s: 40px; }

/* ---------- Phone ----------
   One drawn phone for the product panel and the use cases. The screen is a
   size container, so its UI is set in em and scales with the phone. */
.phone {
  position: relative; flex: none; aspect-ratio: 70.6 / 147; padding: var(--bezel, 7px);
  border-radius: 13% / 6%; background: #121214;
  box-shadow: inset 0 0 0 1.5px #3A3A3F, 0 2px 6px rgba(8, 22, 52, .10), 0 30px 60px rgba(8, 22, 52, .18);
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 11% / 5.1%; background: #0B1530; container-type: inline-size; }
.phone-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 1.1em;
  font-size: calc(100cqw / 17); line-height: 1.3; font-weight: 450;
}
/* The punch-hole camera. */
.phone-ui::before { content: ''; position: absolute; z-index: 4; top: .95em; left: 50%; width: .8em; height: .8em; margin-left: -.4em; border-radius: 50%; background: #050507; }
.phone-bar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: .95em .5em .3em; font-size: .86em; line-height: 1; font-weight: 500; transition: color .4s var(--ease);
}
.phone-bar svg { width: 2.4em; height: .9em; }
.phone-ui .app { --s: 2em; }
.phone-ui .mono { font-size: .85em; line-height: 1.3; }
.phone-ui .bubble { padding: .55em .8em; border-radius: 1.1em; font-size: .95em; line-height: 1.3; }

.scene--dark { color: #FFFFFF; }
.scene--light { color: var(--ink); background: #FFFFFF; }
/* The wallpaper is the fleet scene's blue hour. */
.scene--home, .scene--lock, .scene--wall {
  background: linear-gradient(180deg, rgba(3, 8, 24, .2), rgba(3, 8, 24, .55)), url(assets/art/fleet.png) 56% 40% / auto 120% no-repeat, #0B1530;
}
.scene--call, .scene--callbg { background: radial-gradient(120% 70% at 50% 0%, #26388A 0%, #0B1330 60%, #05070F 100%); }

/* Clock and home screen */
.home-clock { display: flex; flex-direction: column; align-items: center; margin-top: 1.1em; }
.home-time { font-size: 3.6em; line-height: 1; letter-spacing: -0.04em; }
.home-date { margin-top: .35em; font-size: .86em; opacity: .85; }
.home-clock--lock .home-time { font-size: 4.4em; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1em .3em; margin-top: auto; }
.home-grid li { display: flex; flex-direction: column; align-items: center; gap: .4em; min-width: 0; }
.home-grid li > span:last-child { max-width: 100%; overflow: hidden; font-size: .74em; font-weight: 500; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.home-grid .app { --s: 3.1em; }
.home-dock { display: flex; justify-content: space-between; margin-top: 1.4em; padding: .7em .9em; border-radius: 1.8em; background: rgba(255, 255, 255, .16); }
.home-dock .app { --s: 2.8em; }

/* Notifications on the phone */
.hu { padding: .8em .9em; border-radius: 1.3em; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 .3em 1em rgba(0, 0, 0, .18); }
.hu-head { display: flex; align-items: center; gap: .45em; font-size: .78em; line-height: 1.2; font-weight: 500; color: var(--g1); }
.hu-head .app { --s: 1.7em; }
.hu p { margin-top: .4em; font-size: .95em; line-height: 1.3; }
.hu--quiet { background: rgba(255, 255, 255, .74); }
.hu--light { margin-top: .5em; background: #F2F3F7; box-shadow: none; }
.lock-notes { display: flex; flex-direction: column; gap: .5em; margin-top: auto; margin-bottom: 1.4em; }
.scene--wall .hu { margin-top: .9em; }
.phone--crop .home-clock--lock .home-time { font-size: 3.4em; }

/* Calls */
.call { display: flex; flex-direction: column; align-items: center; margin-top: 2.2em; text-align: center; }
.call-avatar { --s: 4.6em !important; border-radius: 50%; }
.call-name { margin-top: .8em; font-size: 1.5em; line-height: 1.2; letter-spacing: -0.02em; }
.call-sub { margin-top: .25em; font-size: .86em; opacity: .75; }
.call-chip { display: inline-flex; align-items: center; gap: .45em; margin-top: 1.2em; padding: .45em .8em; border-radius: 99em; background: rgba(255, 255, 255, .14); font-size: .8em; }
.call-chip .dot { width: .5em; height: .5em; background: #4ADE80; }
.call-end { display: flex; align-items: center; justify-content: center; width: 3.6em; height: 3.6em; margin: auto auto 1.3em; border-radius: 50%; background: #E5484D; color: #FFFFFF; }
.call-end svg { width: 1.4em; height: 1.4em; transform: rotate(135deg); }
.call--sm { margin-top: 1.4em; }
.call--sm .call-avatar { --s: 3.6em !important; }
.caption { margin-top: 1.2em; padding: .7em .9em; border-radius: 1em; background: rgba(255, 255, 255, .12); font-size: .86em; line-height: 1.35; text-align: center; }

/* Messages */
.chat-head { display: flex; align-items: center; gap: .6em; padding-bottom: .8em; border-bottom: 1px solid var(--line); font-weight: 500; }
.chat-hold { display: flex; align-items: center; gap: .45em; margin-top: .8em; padding: .55em .8em; border-radius: .8em; background: #EEF0FF; color: var(--acc); font-size: .8em; font-weight: 500; }
.chat-hold svg { width: 1.15em; height: 1.15em; flex: none; }
.chat-body { display: flex; flex-direction: column; gap: .5em; margin-top: auto; padding-bottom: .8em; }
.bubble--them { align-self: flex-start; max-width: 82%; background: var(--bg2); }
.bubble--me { align-self: flex-end; max-width: 82%; background: var(--acc); color: #FFFFFF; }
.chat-day { align-self: center; margin-bottom: .3em; font-size: .72em; color: var(--g2); }
.chat-compose { display: flex; align-items: flex-end; gap: .5em; padding: .6em .6em .6em .9em; border: 1.5px solid var(--acc); border-radius: 1.4em; font-size: .92em; line-height: 1.3; }
.chat-send { display: flex; align-items: center; justify-content: center; flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--acc); color: #FFFFFF; }
.chat-send svg, .composer-send svg { transform: rotate(-90deg); }

/* App screens in the use cases */
.app-head { display: flex; align-items: center; gap: .5em; margin-top: .7em; font-weight: 500; }
.app-head .app { --s: 1.8em; }
.app-head--between { justify-content: space-between; }
.order { display: flex; flex-direction: column; align-items: flex-start; gap: .25em; margin-top: 1em; padding: .9em; border-radius: 1em; background: var(--bg2); }
.order .muted { font-size: .86em; }
.order-check { display: flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; margin-bottom: .3em; border-radius: 50%; background: var(--ok-dot); color: #FFFFFF; }
.order-check svg { width: 1.1em; height: 1.1em; }
.result { align-self: flex-start; margin-top: .8em; padding: .45em .7em; border-radius: .6em; background: var(--ink); color: #FFFFFF; font-family: var(--mono); font-size: .8em; }
.otp-label { margin-top: 1.2em; font-weight: 500; }
.otp { display: flex; gap: .4em; margin-top: .6em; }
.otp span { display: flex; flex: 1; align-items: center; justify-content: center; height: 2.6em; border: 1.5px solid var(--line2); border-radius: .6em; font-size: 1.15em; font-weight: 500; }
.otp .is-on { border-color: var(--acc); box-shadow: 0 0 0 .2em rgba(31, 59, 255, .14); }
.big { margin-top: .9em; font-size: 1.35em; line-height: 1.2; letter-spacing: -0.02em; }
.list-row { display: flex; justify-content: space-between; gap: .5em; padding: .7em 0; border-bottom: 1px solid var(--line); font-size: .9em; }
.taken { display: inline-flex; align-self: flex-start; align-items: center; gap: .4em; margin-top: .7em; padding: .35em .7em; border-radius: 99em; background: var(--acc); color: #FFFFFF; font-size: .78em; font-weight: 500; }
.taken svg { width: 1.1em; height: 1.1em; }
.field { margin-top: .8em; padding: .7em .8em; border: 1.5px solid var(--line2); border-radius: .7em; letter-spacing: .15em; }
.field.is-focus { border-color: var(--acc); box-shadow: 0 0 0 .25em rgba(31, 59, 255, .14); }
.fine { margin-top: .6em; font-size: .78em; }
.wire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em; margin-top: 1em; }
.wire i { height: 3.2em; border-radius: .6em; background: var(--bg2); }
.wire i:first-child { grid-column: span 2; height: 4.6em; }
.wire i.flag { background: var(--warn-bg); box-shadow: inset 0 0 0 1.5px var(--warn-line); }
.wire i.btn-wire { grid-column: span 2; height: 2.4em; border-radius: 99em; }
.phone-ui .pill { font-size: .78em; line-height: 1.2; padding: .3em .7em; }

/* ---------- Product: features beside one sticky phone ---------- */
.feats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.feats-list { grid-column: span 4; display: flex; flex-direction: column; }
.feat {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  min-height: clamp(320px, 50vh, 460px); padding-block: 32px; border-top: 1px solid var(--line);
}
.feat:first-child { border-top: 0; }
.feat-n { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--g1); }
.feat-media { display: none; }
@media (min-width: 901px) {
  html.js .feat { opacity: .32; transition: opacity .4s var(--ease); }
  html.js .feat.is-active { opacity: 1; }
}
.feats-stage { grid-column: 5 / span 8; position: sticky; top: calc(50vh - min(640px, 100vh - 128px) / 2 + 28px); }
.stage {
  --stage-h: min(640px, calc(100vh - 128px));
  position: relative; display: flex; align-items: center; justify-content: center;
  height: var(--stage-h); overflow: hidden; border-radius: var(--r-card); background: var(--bg2);
}
.phone--stage { height: calc(100% - 80px); }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2.9em 1.1em 1.1em; opacity: 0; transition: opacity .45s var(--ease); }
.scene.is-active { opacity: 1; }
.stage[data-on="3"] .phone-bar { color: var(--ink); }
.stage:not([data-on="3"]) .phone-bar { color: #FFFFFF; }
.callout {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: 240px; padding: 16px 18px;
  border-radius: var(--r-ui); background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(8, 22, 52, .08), 0 24px 48px rgba(8, 22, 52, .14);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.callout.is-active { opacity: 1; transform: none; }
.callout--r { left: calc(50% + 84px); }
.callout--l { right: calc(50% + 84px); }
.callout--hi { top: 30%; }
.callout--top { top: 12%; }
.callout--mid { top: 40%; }
.callout--lo { bottom: 14%; }
.callout--code { width: 280px; }
.callout .pill { align-self: flex-start; }
.callout-num { font-size: 22px; line-height: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .scene, .callout, .phone-bar { transition: none; }
}

/* ---------- Apps: two rows of tasks ---------- */
.marquee {
  display: flex; flex-direction: column; gap: 16px; width: min(100%, var(--wrap)); margin: 56px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { display: flex; gap: 16px; width: max-content; }
.task { display: flex; align-items: center; gap: 16px; width: 380px; padding: 20px 22px; border-radius: 20px; background: var(--bg2); }
.task h3 { font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: -0.01em; }
.task p { font-size: 15px; line-height: 21px; color: var(--g1); }
.marquee:not(.is-moving) { padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-moving) .marquee-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); width: auto; }
.marquee:not(.is-moving) .task { width: auto; }
.marquee.is-moving .marquee-row { animation: marquee 80s linear infinite; }
.marquee.is-moving .marquee-row--rev { animation-direction: reverse; }
.marquee:hover .marquee-row, .marquee.is-off .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Events: notifications as they reach the agent ---------- */
.note {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; border-radius: 24px;
  background: rgba(14, 20, 42, .74); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.note-head { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--on-dark-2); }
.note-app { font-weight: 500; color: var(--on-dark); }
.note-time::before { content: '·'; margin-right: 8px; }
.note-text { font-size: 15px; line-height: 21px; color: var(--on-dark); }
.note-hook {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 12px; line-height: 16px;
}
.note-type { color: #A9B6FF; }
.note-sent { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); color: var(--on-dark-3); white-space: nowrap; }
.note-sent svg { color: #4ADE80; }

/* ---------- Use cases: the top of a phone screen each ---------- */
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.use { display: flex; flex-direction: column; gap: 8px; }
.use-media { position: relative; display: flex; align-items: flex-start; justify-content: center; height: 260px; margin-bottom: 12px; overflow: hidden; border-radius: 20px; background: var(--bg2); }
.phone--crop { --bezel: 6px; width: 78%; margin-top: 28px; }
.phone--crop .phone-ui { font-size: calc(100cqw / 15); }
.use > h3 { font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.use > p { font-size: 15px; line-height: 22px; color: var(--g1); }
.use-media--fleet { align-items: flex-start; gap: 14px; }
.phone--mini { --bezel: 3px; width: 26%; margin-top: 40px; }
.phone--mini:nth-child(2) { margin-top: 26px; }
.phone--mini .phone-ui { font-size: calc(100cqw / 7); }
.mini-id { align-self: center; margin-top: auto; margin-bottom: 1.4em; padding: .2em .45em; border-radius: .5em; background: rgba(255, 255, 255, .18); font-family: var(--mono); font-size: .62em; white-space: nowrap; }

/* Hover (or, on touch screens, scrolling into view) plays each phone's
   moment: the phone rises and its key element arrives (main.js adds .is-on). */
.use-media { transition: background-color .4s var(--ease); }
.use.is-on .use-media { background: #EDEDF1; }
@media (prefers-reduced-motion: no-preference) {
  .use .phone--crop, .use .phone--mini { transition: transform .55s var(--ease); }
  .use.is-on .phone--crop { transform: translateY(-14px); }
  .use.is-on .hu { animation: u-drop .6s var(--ease) both; }
  .use.is-on .order-check { animation: u-pop .5s .15s var(--ease) both; }
  .use.is-on .result { animation: u-up .45s .4s var(--ease) both; }
  .use.is-on .otp span { animation: u-type .25s var(--ease) both; }
  .use.is-on .otp span:nth-child(1) { animation-delay: .45s; }
  .use.is-on .otp span:nth-child(2) { animation-delay: .6s; }
  .use.is-on .otp span:nth-child(3) { animation-delay: .75s; }
  .use.is-on .otp span:nth-child(4) { animation-delay: .9s; }
  .use.is-on .call-avatar { animation: u-ring 1.1s ease-out 2; }
  .use.is-on .caption { animation: u-up .5s .25s var(--ease) both; }
  .use.is-on .list-row { animation: u-up .4s .1s var(--ease) both; }
  .use.is-on .list-row + .list-row { animation-delay: .25s; }
  .use.is-on .taken { animation: u-pop .45s var(--ease) both; }
  .use.is-on .field span { display: inline-block; animation: u-dots .7s .2s steps(8) both; }
  .use.is-on .wire .flag { animation: u-flag .45s .2s var(--ease) 4 alternate; }
  .use.is-on .phone--mini:nth-child(1) { transform: translateX(-12px) rotate(-6deg); }
  .use.is-on .phone--mini:nth-child(2) { transform: translateY(-12px); }
  .use.is-on .phone--mini:nth-child(3) { transform: translateX(12px) rotate(6deg); }
}
@keyframes u-drop { from { opacity: 0; transform: translateY(-1.2em) scale(.96); } }
@keyframes u-pop { from { transform: scale(0); } 60% { transform: scale(1.15); } }
@keyframes u-up { from { opacity: 0; transform: translateY(.6em); } }
@keyframes u-type { from { color: transparent; border-color: var(--acc); } }
@keyframes u-ring { from { box-shadow: 0 0 0 0 rgba(255, 90, 95, .6); } to { box-shadow: 0 0 0 1.1em rgba(255, 90, 95, 0); } }
@keyframes u-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes u-flag { to { box-shadow: inset 0 0 0 1.5px var(--warn-line), 0 0 0 .35em rgba(238, 86, 21, .2); } }

/* ---------- Setup: one large piece of UI per card ---------- */
.dawn .ui { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); width: auto; }
.setup-ui { gap: 12px; padding: 18px; border-radius: 20px; box-shadow: 0 2px 6px rgba(8, 22, 52, .08), 0 24px 48px rgba(8, 22, 52, .16); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px 10px 10px 14px; border: 1px solid var(--line2); border-radius: 16px; }
.composer .mono-s { flex: 1; min-width: 0; }
.composer-send { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #FFFFFF; }
.boot-time { font-size: 48px; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.boot-bar { display: block; height: 4px; overflow: hidden; border-radius: 4px; background: var(--line); }
.boot-bar i { display: block; width: var(--p, 100%); height: 100%; border-radius: inherit; background: var(--acc); }
[data-boot] [data-boot-ready] { transition: opacity .3s var(--ease); }
[data-boot].is-booting [data-boot-ready] { opacity: 0; }
.setup-ui--chat { gap: 10px; }
.setup-ui--chat .bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 21px; }
.bubble--agent { display: flex; align-items: flex-start; gap: 8px; }
.bubble--agent .app { flex: none; margin-top: 1px; }

/* ---------- Legal pages (privacy.html, terms.html) ----------
   A sticky contents list beside one reading column; open items are marked. */
.legal { padding-block: calc(var(--nav-h) + 88px) 112px; }
.legal-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.legal-head { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; margin-bottom: 72px; }
.legal-toc { grid-column: span 3; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: flex; flex-direction: column; gap: 16px; }
.legal-toc ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.legal-toc a { color: var(--g1); transition: color .2s var(--ease); }
.legal-toc a:hover { color: var(--ink); }
.legal-body { grid-column: 5 / span 8; max-width: 680px; }
.legal-body section + section { margin-top: 56px; }
.legal-body section { scroll-margin-top: calc(var(--nav-h) + 32px); }
.legal-body h2 { margin-bottom: 16px; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.legal-body h3 { margin: 32px 0 8px; font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: -0.01em; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 28px; color: #424245; }
.legal-body strong { font-weight: 500; color: var(--ink); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 16px; }
.legal-body ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.legal-body a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.legal-body code { font-family: var(--mono); font-size: 15px; }
.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.legal-table th, .legal-table td { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: #424245; }
.legal-table th { font-weight: 500; color: var(--ink); }
.legal-table td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.legal-open { padding: 14px 18px; border-radius: var(--r-ui); background: var(--warn-bg); color: var(--warn) !important; font-size: 15px !important; line-height: 22px !important; }
.legal-open strong { color: inherit; }
@media (max-width: 900px) {
  .legal { padding-block: calc(var(--nav-h) + 48px) 88px; }
  .legal-head { margin-bottom: 48px; }
  .legal-toc { display: none; }
  .legal-body { grid-column: 1 / -1; }
}
/* Phones: each provider row stacks (name, what, where) instead of scrolling. */
@media (max-width: 600px) {
  .legal-table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .legal-table td { display: block; padding: 0; border: 0; }
  .legal-table td + td { margin-top: 4px; }
  .legal-table td:last-child { color: var(--g1); }
}

/* ---------- Reveal on scroll (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0; transform: translateY(12px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { top: 10px; padding: 0 12px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-bar { grid-template-columns: minmax(0, 1fr) auto; height: 56px; padding: 0 8px 0 18px; }
  .navcta { min-height: 40px; padding: 4px 16px; }
  .navcta .btn-icon { display: none; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-signin { display: none; }
  .nav-links a { padding: 8px 10px; }
  .hero { min-height: 0; }
  /* Wide enough to reach both edges up to 924 px; the phone stays centered (its screen is at 65% of the art). */
  /* The art fills the hero; the image sits at the bottom and tiles.js
     continues its sky up behind the text. */
  .hero-art { left: calc(50% - 858px); top: 0; bottom: -40px; padding-top: 0; width: 1320px; }
  .hero-art img { position: absolute; left: 0; bottom: 0; }
  .hero-fade { background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .64) 52%, rgba(255, 255, 255, .26) 59%, rgba(255, 255, 255, 0) 65%); }
  .hero-copy { padding-top: 56px; padding-bottom: 690px; }
  .split { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .statement-text, .statement-card, .final-text, .final-prompt { grid-column: auto; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  /* Stacked cards: a smaller picture, so the whole phone fits in the third. */
  .dawn img { top: -40px; width: max(800px, 100%); }
  .dawn--2 img { left: -96px; }
  .dawn--3 img { left: calc(50% - max(540px, 67.5%)); }
  .night { min-height: 0; }
  .night-art { left: calc(50% - 844px); top: auto; bottom: -80px; }
  .night-fade { background: linear-gradient(180deg, rgba(2, 7, 19, .97) 0%, rgba(2, 7, 19, .92) 52%, rgba(2, 7, 19, .3) 66%, rgba(2, 7, 19, 0) 76%); }
  .night-in { grid-template-columns: minmax(0, 1fr); row-gap: 32px; min-height: 0; padding-top: 88px; padding-bottom: 520px; }
  .night-text, .night-feed-col { grid-column: auto; }
  .fleet-fade { background: linear-gradient(180deg, rgba(2, 7, 19, .88) 0%, rgba(2, 7, 19, .7) 26%, rgba(2, 7, 19, .3) 46%, rgba(2, 7, 19, .7) 70%, rgba(2, 7, 19, .92) 100%); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 80px; }
  .hero-art { left: calc(50% - 782px); width: 1200px; }
  .hero-copy { padding-top: 40px; padding-bottom: 620px; }
  .dawn { height: 320px; }
  .mono { font-size: 13px; line-height: 20px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .fleet-gap { height: 120px; }
  .tool-panel { min-height: 0; padding: 48px 12px; }
}

/* Product stage, apps, use cases, band and setup on smaller screens. */
@media (max-width: 1100px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .band-in { row-gap: 20px; }
  .band-h, .band-logos { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 900px) {
  .band-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feats-list { grid-column: auto; }
  .feats-stage { grid-column: auto; position: static; margin-top: 24px; }
  html.js .feats-stage { display: none; }
  .feat { min-height: 0; padding-block: 32px 40px; }
  html.js .feat-media { display: block; margin-top: 16px; }
  .feat-media .stage { flex-direction: column; justify-content: flex-start; height: auto; padding: 32px 16px 24px; }
  .feat-media .phone--stage { height: 440px; }
  .feat-media .callout { display: none; position: relative; inset: auto; width: min(100%, 320px); margin-top: -64px; }
  .feat-media .callout.is-active { display: flex; }
}
@media (max-width: 600px) {
  .band-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task { width: 300px; padding: 16px 18px; }
  .uses { grid-template-columns: minmax(0, 1fr); }
  .phone--crop { width: 62%; }
  .dawn .ui { left: 16px; right: 16px; }
}
