:root {
  --bg: #000;
  --text: #f5f5f7;
  --muted: #86868b;
  --soft: #a1a1a6;
  --line: rgba(255, 255, 255, 0.12);
  --card: #101012;
  --amber: #ff9f0a;
  --blue: #2997ff;
  --max: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 10; height: 52px;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
/* The brand: on the home page it starts as the cassette alone and opens into the wordmark as the page scrolls
   (site.js sets --p from 0 to 1). Everywhere else --p is 1, the full wordmark. */
nav .brand { display: block; width: 117px; height: 28px; color: var(--text); overflow: hidden; }
nav .brand:hover { text-decoration: none; }
.mark { display: block; width: 117px; height: 28px; overflow: visible;
  transform: translateX(calc((1 - var(--p, 1)) * -66px)); }
.mark-l, .mark-r { opacity: calc((var(--p, 1) - 0.25) / 0.75); }
.mark-l { transform: translateX(calc((1 - var(--p, 1)) * 560px)); }
.mark-r { transform: translateX(calc((1 - var(--p, 1)) * -520px)); }
.mark-c { transform-box: fill-box; transform-origin: center; transform: scale(calc(1 + (1 - var(--p, 1)) * 0.3)); }
.morph { --p: 0; }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav ul a { color: var(--text); opacity: 0.8; font-size: 12px; letter-spacing: -0.01em; }
nav ul a:hover { opacity: 1; text-decoration: none; }
nav .pill { background: var(--amber); color: #1a1a1a; opacity: 1; font-weight: 600; padding: 4px 12px; border-radius: 980px; }

/* Hero */
.hero { text-align: center; padding-top: 96px; padding-bottom: 40px; }
.brandmark { margin: 0 0 20px; }
.brandmark img { height: clamp(60px, 11vw, 128px); width: auto; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.08; }
.hero .icon { width: 128px; margin: 0 auto 26px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); }
.eyebrow { color: var(--amber); font-size: 21px; font-weight: 600; letter-spacing: 0.004em; margin: 0 0 6px; }
h1 {
  font-size: clamp(48px, 9vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.015em; margin: 0;
}
.lede {
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.38; color: var(--soft); font-weight: 500;
  max-width: 720px; margin: 22px auto 0; letter-spacing: 0.009em;
}
.lede strong { color: var(--text); font-weight: 600; }
.ctas { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--amber); color: #1a1a1a; font-weight: 600; font-size: 17px;
  padding: 12px 24px; border-radius: 980px; letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.link { font-size: 17px; }
.link::after { content: " ›"; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; letter-spacing: -0.01em; }

/* Product shot: a menu bar with the popover hanging from the cassette */
.stage { position: relative; margin: 56px auto 0; max-width: 820px; }
.menubar {
  height: 30px; border-radius: 12px 12px 0 0; background: #1c1c1e;
  border: 1px solid var(--line); border-bottom: none; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 14px; font-size: 13px; color: rgba(245, 245, 247, 0.88); letter-spacing: -0.01em; white-space: nowrap;
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 17px; }
.mb-right { gap: 15px; }
.mb-left b { font-weight: 700; }
.apple { font-size: 15px; line-height: 1; margin: -1px 2px 0 2px; }
.mb-icon { height: 13px; width: auto; display: block; }
.menubar .tape { width: 24px; height: 17px; }
.desk {
  border: 1px solid var(--line); border-top: none; border-radius: 0 0 12px 12px; padding: 14px 40px 56px;
  background: radial-gradient(120% 90% at 70% 0%, #1b1407 0%, #050505 55%, #000 100%);
  display: flex; justify-content: flex-end;
}
.popover {
  width: 380px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(0, 0, 0, 0.8); margin-right: 26px;
}

/* Sections */
section { padding: 120px 0 0; }
.center { text-align: center; }
h2 { font-size: clamp(36px, 6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.005em; margin: 0; }
.sub { font-size: clamp(19px, 2.2vw, 21px); color: var(--soft); max-width: 640px; margin: 18px auto 0; line-height: 1.43; letter-spacing: 0.011em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { background: var(--card); border-radius: 18px; padding: 32px 28px; border: 1px solid rgba(255, 255, 255, 0.06); }
.card .glyph { width: 30px; height: 30px; color: var(--amber); margin-bottom: 18px; }
.card h3 { font-size: 21px; line-height: 1.2; margin: 0 0 8px; font-weight: 600; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.feature .text h2 { font-size: clamp(32px, 4.6vw, 48px); }
.feature .text .sub { margin: 16px 0 0; }
.feature .shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.feature.flip .text { order: 2; }
.wide { margin: 56px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; text-align: center; }
.stat .n { font-size: clamp(36px, 5vw, 48px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.stat .n small { font-size: 0.5em; font-weight: 600; color: var(--soft); margin-left: 2px; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; letter-spacing: -0.01em; }

kbd {
  font-family: var(--font); font-size: 15px; font-weight: 600; background: #1d1d1f; border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; color: var(--text); letter-spacing: 0.02em;
}
.keys { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.keys div { display: flex; gap: 14px; align-items: center; color: var(--soft); font-size: 17px; }
.keys kbd { min-width: 64px; text-align: center; }

.final { padding-top: 140px; padding-bottom: 120px; text-align: center; }
.final .icon { width: 96px; margin: 0 auto 22px; }

footer { border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 12px; letter-spacing: -0.01em; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--soft); }

@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  nav ul li.hide-s { display: none; }
  .hide-m { display: none; }
  .desk { padding: 12px 12px 36px; justify-content: center; }
  .popover { margin-right: 0; }
}
@media (max-width: 480px) {
  section { padding-top: 88px; }
  .hero { padding-top: 64px; }
  .hero .icon { width: 104px; }
  .menubar .clock-date { display: none; }
  nav ul { gap: 18px; }
}

/* ---------- Docs and report pages ---------- */
nav ul a.current { opacity: 1; font-weight: 600; }
.page-head { padding-top: 72px; padding-bottom: 8px; }
.page-head.wrap { max-width: 1100px; }
.page-head .eyebrow { font-size: 17px; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head .lede { margin: 16px 0 0; max-width: 760px; font-size: clamp(18px, 2vw, 21px); }
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; max-width: 1100px; margin: 0 auto;
  padding: 40px 22px 96px; }
.toc { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; font-size: 13px; }
.toc p { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--soft); }
.toc a:hover { color: var(--text); text-decoration: none; }
.prose { max-width: 720px; min-width: 0; }
.prose > section { padding: 0; margin: 0 0 64px; scroll-margin-top: 72px; }
.prose h2 { font-size: 32px; line-height: 1.15; margin: 0 0 14px; letter-spacing: 0.002em; }
.prose h3 { font-size: 21px; line-height: 1.25; margin: 32px 0 8px; font-weight: 600; letter-spacing: 0.01em; scroll-margin-top: 72px; }
.prose p, .prose li { color: #d2d2d7; font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; background: #1d1d1f;
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--text); }
.prose pre { background: #0d0d0f; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto;
  font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose kbd { font-size: 13px; padding: 1px 6px; }
.prose figure { margin: 22px 0 26px; }
.prose figure img { border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.prose figure.narrow img { width: 100%; max-width: 400px; }
.prose figure.mid img { width: 100%; max-width: 520px; }
.prose figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.table { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; background: #0b0b0d; }
.prose td { color: #d2d2d7; }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; }
.prose td strong { color: var(--text); }
.note { border-left: 3px solid var(--amber); background: #120d05; border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 18px; }
.note p { margin: 0; font-size: 15px; }
.qa { margin: 0 0 18px; }
.qa dt { color: var(--text); font-weight: 600; margin: 0 0 4px; }
.qa dd { margin: 0 0 18px; color: #d2d2d7; line-height: 1.6; }
.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 28px; }
.bigstats div { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 18px 16px; }
.bigstats b { display: block; font-size: 30px; letter-spacing: -0.01em; color: var(--text); }
.bigstats span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .bigstats { grid-template-columns: repeat(2, 1fr); }
  .prose td.num, .prose th.num { white-space: normal; }
  .prose th, .prose td { padding: 10px 10px; font-size: 14px; }
}
