/* Shared by index.html, changelog.html and privacy.html. Quiet neutrals, one
   black primary button, content left-aligned in a 1120px shell. */
/* Inter, self-hosted so the site makes no third-party requests (fonts/OFL.txt) */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #191919;
  --text: #37352f;
  --muted: #6f6f6b;
  --line: #e9e9e7;
  --soft: #f7f7f5;
  --bg: #ffffff;
  --frame: #e9e9e7;
  --btn: #191919;
  --btn-ink: #ffffff;
  --accent: #0a84ff;
  --warn-bg: #fbf3db;
  --warn-ink: #5c4a12;
  --shadow: 0 1px 2px rgba(15,15,15,.04), 0 18px 48px rgba(15,15,15,.08);
  --shell: min(1120px, calc(100% - 64px));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f1ef; --text: #d4d4d1; --muted: #9b9b97; --line: #2f2f2f; --soft: #202020;
    --bg: #191919; --frame: #262626; --btn: #f1f1ef; --btn-ink: #191919; --accent: #4ea1ff;
    --warn-bg: #2a2516; --warn-ink: #ecd9a0;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f1f1ef; --text: #d4d4d1; --muted: #9b9b97; --line: #2f2f2f; --soft: #202020;
  --bg: #191919; --frame: #262626; --btn: #f1f1ef; --btn-ink: #191919; --accent: #4ea1ff;
  --warn-bg: #2a2516; --warn-ink: #ecd9a0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.58 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
kbd {
  background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 0 6px; white-space: nowrap; color: var(--ink);
}
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.022em; }
h2 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.12; margin: 0 0 12px; }
h3 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.shell { width: var(--shell); margin: 0 auto; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0 0 10px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .shell { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav .links { display: flex; gap: 22px; font-size: 15px; margin-right: auto; }
.nav .links a { color: var(--muted); text-decoration: none; }
.nav .links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px;
  font: 560 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--btn); color: var(--btn-ink); border: 1px solid var(--btn);
}
.btn:hover { opacity: .86; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); opacity: 1; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 0; }
.hero h1 { font-size: clamp(44px, 7.8vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; max-width: 760px; }
.hero .sub { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

.frame {
  margin-top: 56px; border-radius: 16px; background: var(--frame); padding: 10px;
  box-shadow: var(--shadow); overflow: hidden;
}
.frame video, .frame img { width: 100%; border-radius: 9px; aspect-ratio: 1200 / 720; object-fit: cover; background: #1c2a4a; }
.film { position: relative; }
.frame .film video { aspect-ratio: 16 / 9; }
.play {
  position: absolute; inset: 0; margin: auto; width: 112px; height: 112px; border: 0; cursor: pointer;
  border-radius: 26px; background: linear-gradient(#6775f1, #4148c6); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 40px rgba(20,24,90,.45);
  display: grid; place-items: center; transition: transform .2s;
}
.play:hover { transform: scale(1.06); }
.play svg { width: 50px; height: 50px; fill: currentColor; }
.play[hidden] { display: none; }
.caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 4px 2px; color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 112px 0 0; }
section.tight { padding-top: 72px; }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0 0 56px; }
.groups p { color: var(--muted); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
.bento .card { grid-column: span 6; }
.bento .w7 { grid-column: span 7; } .bento .w5 { grid-column: span 5; }
.card .media {
  border: 1px solid var(--line); border-radius: 14px; background: var(--soft); padding: 8px; margin-bottom: 18px; overflow: hidden;
}
.card .media video, .card .media img { width: 100%; border-radius: 8px; background: #1c2a4a; }
.card p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.features p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- syntax tables ---------- */
.syntax { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.syntax .panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.syntax .panel > h3 { font-size: 14px; color: var(--muted); font-weight: 500; padding: 14px 18px; margin: 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.syntax table { width: 100%; border-collapse: collapse; font-size: 15px; }
.syntax td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.syntax tr:last-child td { border-bottom: 0; }
.syntax td:first-child { white-space: nowrap; width: 1%; }
.syntax td:last-child { color: var(--muted); }
.syntax .say { padding: 18px; }
.syntax .say q { display: block; font-size: 19px; color: var(--ink); font-weight: 500; quotes: "“" "”"; margin-bottom: 6px; }
.syntax .say .arrow { color: var(--muted); font-size: 15px; }
.syntax .say + .say { border-top: 1px solid var(--line); }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 760px; }

/* ---------- live demo ---------- */
.demo { position: relative; border-radius: 16px; background: var(--frame); padding: 10px; box-shadow: var(--shadow); }
.demo .viewport { position: relative; width: 100%; aspect-ratio: 1200 / 720; overflow: hidden; border-radius: 9px; background: #1c2a4a; }
.demo iframe { position: absolute; left: 0; top: 0; width: 1200px; height: 720px; border: 0; transform-origin: 0 0; }
.demo .fallback { display: none; }
.demo .fallback img { width: 100%; border-radius: 9px; }
@media (max-width: 719px) {
  .demo .viewport { display: none; }
  .demo .fallback { display: block; }
}

/* ---------- everywhere ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--bg); }
.tile .big { font-size: 28px; color: var(--ink); font-weight: 600; letter-spacing: -.02em; margin-bottom: 14px; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; }
.tile ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.tile li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 44px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; display: grid; place-items: center;
}
ol.steps p { margin: 0; color: var(--muted); }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: 18px 20px; font-size: 15px; margin: 0 0 16px; }
.note strong { display: block; margin-bottom: 4px; }
pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 12px 0; }
pre code { background: none; border: 0; padding: 0; }

/* ---------- keys ---------- */
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys td:first-child { width: 160px; white-space: nowrap; padding-right: 16px; }
.keys td:last-child { color: var(--muted); }
.cols2 { columns: 2; column-gap: 48px; }
.cols2 table { break-inside: avoid; }

/* ---------- privacy ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid2 .tile h3 { margin-bottom: 8px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  color: var(--ink); font-weight: 560; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 20px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* ---------- closing band ---------- */
.band { margin-top: 112px; background: var(--soft); border-block: 1px solid var(--line); padding: 88px 0; }
.band h2 { font-size: clamp(32px, 5vw, 48px); max-width: 720px; margin-bottom: 26px; }

/* ---------- footer ---------- */
footer { padding: 56px 0 64px; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--ink); font-size: 14px; font-weight: 600; margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
footer .legal p { margin: 0 0 4px; }

/* ---------- article pages (changelog, privacy) ---------- */
.page { padding: 72px 0 40px; }
.page h1 { font-size: clamp(38px, 6vw, 52px); letter-spacing: -.03em; line-height: 1.06; margin: 0 0 14px; }
.article { max-width: 720px; }
.article h2 { font-size: 26px; margin: 48px 0 12px; }
.article ul { padding-left: 20px; margin: 0 0 16px; }
.article li { margin: 0 0 10px; }
.release { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.release .when { position: sticky; top: 84px; align-self: start; }
.release .when b { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.release .when span { color: var(--muted); font-size: 14px; }
.release h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin: 0 0 10px; }
.release h3:not(:first-child) { margin-top: 22px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 0 0 10px; }
.release li strong { color: var(--ink); font-weight: 600; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .groups, .features, .trio { grid-template-columns: 1fr 1fr; }
  .bento .card, .bento .w7, .bento .w5 { grid-column: span 12; }
  .syntax, .install, .grid2 { grid-template-columns: 1fr; }
  .cols2 { columns: 1; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  .nav .links { display: none; }
  .nav .shell { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .hero .sub { font-size: 18px; }
  .groups, .features, .trio { grid-template-columns: 1fr; }
  section { padding-top: 80px; }
  .frame, .demo { padding: 6px; border-radius: 12px; margin-top: 40px; }
  .caption { flex-wrap: wrap; }
  .keys td:first-child { width: 120px; }
  .syntax td { padding: 10px 14px; }
  .syntax td:first-child { white-space: normal; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  .release .when { position: static; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > :first-child { grid-column: 1 / -1; }
  .band { padding: 64px 0; }
}
