/* ============================================================
   Superset Files — supersetfiles.com
   Site layer: materials, components, layout.

   Everything here derives from the product tokens in tokens.css.
   House rules, inherited from the product:
   - No glow. Depth comes from borders, inset highlights, bevels,
     and cast shadows only.
   - Glass is for chrome. Matte is for reading. Gel is for the one
     primary action on a screen. Jewel is for the icon.
   - Serif for reading, system sans for chrome, mono for metadata.
   - Motion is short, functional feedback — never ambient.
   ============================================================ */

/* --- Webfonts (self-hosted) ---------------------------------
   Serif reading/display lane: Ancizar Serif, subsetted to latin +
   latin-ext (normal + italic), matching the app's own stack. Newsreader
   stays loaded as a full-coverage fallback for glyphs outside those
   ranges. Mono code/metadata lane: Commit Mono (Regular/Bold, full glyph
   set), with JetBrains Mono as fallback. */
@font-face {
  font-family: "Ancizar Serif";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/ancizar-serif-italic-latin-ext.woff2") format("woff2");
  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: "Ancizar Serif";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/ancizar-serif-italic-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Ancizar Serif";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/ancizar-serif-normal-latin-ext.woff2") format("woff2");
  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: "Ancizar Serif";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/ancizar-serif-normal-latin.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-var.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/commit-mono-400-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/commit-mono-700-regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
}

/* --- Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The [hidden] attribute must win over component display rules
   (e.g. .btn is inline-flex). Used by the dev-gated checkout button. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-soft); color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-lg);
  z-index: 100;
  padding: var(--space-sm) var(--space-lg);
  background: var(--surface);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: var(--text-ui);
  font-weight: var(--weight-ui);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Typography --------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h2 { font-size: clamp(27px, 3.2vw, 36px); }
h3 { font-size: 21px; }

p { margin: 0; }
p + p { margin-top: var(--space-lg); }

.kicker {
  display: block;
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
}

.lede {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--text-body);
  text-wrap: pretty;
}

.mono, code, kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.mono-note {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-ui-sm);
  letter-spacing: var(--tracking-kind);
}

.brace { font-family: var(--font-brand); }

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  background: var(--control-bg);
  border: var(--border-w) solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  box-shadow: var(--control-inset);
  color: var(--fg);
  font-size: var(--text-ui-sm);
  text-align: center;
}

code {
  padding: 1px 5px;
  background: var(--code-bg);
  border-radius: var(--radius-xs);
  color: var(--fg);
}

hr.rule {
  margin: 0;
  border: 0;
  border-top: var(--border-w) solid var(--hairline);
}

/* --- Layout -------------------------------------------------- */
.wrap {
  width: min(1120px, 100% - clamp(32px, 6vw, 96px));
  margin-inline: auto;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

.band { border-top: var(--border-w) solid var(--hairline); }
.band--canvas { background: var(--canvas); }
.band--sunken { background: var(--surface-sunken); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: var(--space-lg); }
.section-head .lede { font-size: 17px; }

.grid-2 { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { display: grid; gap: var(--space-xl); grid-template-columns: repeat(3, 1fr); }

/* --- Header (glass titlebar) --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-w) solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--highlight-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  min-height: 60px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: var(--weight-ui);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-tight);
}
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { width: 30px; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.site-nav a {
  color: var(--text-body);
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
}
.site-nav a:hover { color: var(--fg); text-decoration: none; }
.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: var(--weight-ui);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: var(--control-h-lg);
  height: var(--control-h-lg);
  padding: 0;
  background: var(--control-bg);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--control-inset);
  color: var(--fg);
  line-height: 1;
  cursor: pointer;
}
.nav-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Theme picker -------------------------------------------- */
.theme-picker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.theme-picker label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-label);
}
.theme-picker select {
  height: var(--control-h-sm);
  padding-inline: var(--space-sm);
  background: var(--control-bg);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--control-inset);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  cursor: pointer;
}

/* --- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: var(--control-h-lg);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-ui);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-normal);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Gel — the one primary action on a screen. */
.btn--gel {
  position: relative;
  background: var(--gel-face);
  border: var(--border-w) solid var(--gel-border);
  box-shadow: var(--gel-shadow);
  color: var(--gel-ink);
  overflow: hidden;
}
.btn--gel::before {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: var(--radius-pill) var(--radius-pill) 40% 40%;
  background: var(--gel-sheen);
  pointer-events: none;
}
.btn--gel:hover { filter: brightness(1.04); }
.btn--gel:active { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22), var(--button-shadow); }

/* Glass — secondary actions. */
.btn--glass {
  background: var(--control-bg);
  border: var(--border-w) solid var(--line-strong);
  box-shadow: var(--control-inset), 0 1px 3px rgb(var(--shadow-rgb) / 0.08);
  color: var(--fg);
}
.btn--glass:hover { background: var(--control-hover); }

.btn--sm { min-height: var(--control-h); padding: 0 16px; font-size: var(--text-ui-sm); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-accent);
  font-size: var(--text-ui);
  font-weight: var(--weight-ui);
}
.link-arrow::after { content: "→"; font-family: var(--font-mono); }

/* --- Cards & receipts ----------------------------------------- */
.card {
  background: var(--surface-raised);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.06);
  padding: var(--space-xl);
}

.card h3 { margin: var(--space-sm) 0; font-size: 19px; }
.card > p { color: var(--text-body); font-size: 14px; }

.receipt-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
}
.receipt-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 var(--highlight-soft);
}
.receipt-figure {
  display: block;
  margin-top: var(--space-md);
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

/* --- Window mock (faithful app recreation) --------------------- */
.window {
  background: var(--canvas);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.window__titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-lg);
  background: var(--chrome);
  border-bottom: var(--border-w) solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--highlight-soft);
}

.traffic { display: flex; gap: 7px; }
.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: var(--border-w) solid rgb(var(--shadow-rgb) / 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.traffic span:nth-child(1) { background: #f6605c; }
.traffic span:nth-child(2) { background: #fabd2f; }
.traffic span:nth-child(3) { background: #38c149; }

.window__title {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-kind);
}

.window__body {
  display: grid;
  grid-template-columns: 176px 1fr;
  min-height: 380px;
}

.window__sidebar {
  padding: var(--space-md) var(--space-sm);
  background: color-mix(in oklch, var(--chrome) 55%, var(--canvas));
  border-right: var(--border-w) solid var(--hairline);
}

.window__root {
  display: block;
  padding: 6px 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-kind);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: var(--text-ui-sm);
  text-align: left;
  cursor: pointer;
}
.file-row:hover { background: var(--control-bg); }
.file-row[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
}
.file-row .kind {
  margin-left: auto;
  color: var(--text-muted);
  font-size: var(--text-kind);
  letter-spacing: var(--tracking-kind);
  text-transform: uppercase;
}

.window__doc {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);          /* matte: flat, opaque, quiet */
  overflow: hidden;
}

.doc-pane { display: none; }
.doc-pane.is-open { display: block; }

.doc-pane h4 {
  font-size: 24px;
  margin-bottom: var(--space-md);
}
.doc-pane p {
  max-width: 52ch;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 15.5px;
  line-height: var(--leading-read);
  color: var(--text-body);
}
.doc-pane p + p { margin-top: var(--space-md); }

.doc-meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
}

.doc-code {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--code-bg);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-ui-sm);
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}

.doc-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  height: 120px;
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--code-bg);
  border-radius: var(--radius-md);
}
.doc-chart span {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 var(--highlight-soft);
  min-height: 12%;
}

.doc-img {
  margin-top: var(--space-lg);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Trust banner — glass, calm, names the risk and the action. */
.trust-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.trust-banner p {
  flex: 1;
  min-width: 180px;
  font-size: var(--text-ui);
  color: var(--text-body);
}
.trust-banner .mono-note { display: block; margin-bottom: 2px; }

/* --- Theme chips ------------------------------------------------ */
.theme-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 0 14px;
  background: var(--control-bg);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--control-inset);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-ui-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.theme-chip:hover { background: var(--control-hover); }
.theme-chip[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-bright);
  font-weight: var(--weight-ui);
}
.theme-chip .dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: var(--border-w) solid rgb(var(--shadow-rgb) / 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Swatch dots per theme (backgrounds sampled from tokens.css). */
.dot--porcelain { background: linear-gradient(135deg, #f8fbfc 50%, #4978a0 50%); }
.dot--noir-light { background: linear-gradient(135deg, #fbfbfc 50%, #4b505a 50%); }
.dot--slate-air { background: linear-gradient(135deg, #f6fafc 50%, #4a6e8c 50%); }
.dot--moss-paper { background: linear-gradient(135deg, #f6faf5 50%, #3d6a51 50%); }
.dot--violet-ash { background: linear-gradient(135deg, #f8f8fc 50%, #5b5587 50%); }
.dot--anodized { background: linear-gradient(135deg, #323437 50%, #9eb8cd 50%); }
.dot--anodized-cobalt { background: linear-gradient(135deg, #30343a 50%, #9cbbdd 50%); }
.dot--anodized-umbra { background: linear-gradient(135deg, #27292b 50%, #9cb5c9 50%); }

/* --- FAQ --------------------------------------------------------- */
.faq details {
  border-top: var(--border-w) solid var(--hairline);
}
.faq details:last-child { border-bottom: var(--border-w) solid var(--hairline); }

.faq summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-2xs);
  color: var(--text-strong);
  font-size: var(--text-base);
  font-weight: var(--weight-ui);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "{";
  color: var(--text-muted);
  font-family: var(--font-brand);
  font-size: 18px;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::before { transform: rotate(90deg); }

.faq details > p {
  max-width: 68ch;
  padding: 0 var(--space-2xs) var(--space-xl) 30px;
  color: var(--text-body);
  font-size: 14.5px;
}

/* --- Comparison rows ---------------------------------------------- */
.compare-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xs);
  border-top: var(--border-w) solid var(--hairline);
}
.compare-row:last-child { border-bottom: var(--border-w) solid var(--hairline); }
.compare-row--head {
  padding-block: var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
}
.compare-row h3 { font-family: var(--font-body); font-size: 15px; font-weight: var(--weight-ui); }
.compare-row p { font-size: 14px; color: var(--text-body); }

/* --- Pricing -------------------------------------------------------- */
.price-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  background: var(--surface-raised);
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
}

.price-panel__main { padding: clamp(28px, 4vw, 48px); }
.price-panel__aside {
  padding: clamp(28px, 4vw, 48px);
  background: var(--soft-fill);
  border-left: var(--border-w) solid var(--hairline);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.price-figure strong {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1;
}

.check-list { margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14px;
  color: var(--text-body);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--success);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
}
.check-list--plain li::before { content: "—"; color: var(--text-muted); }

/* --- Download "get it" panel ----------------------------------------
   Reuses .price-panel (main + soft-fill aside). The left main holds the
   download lockup (styled in download.html's page-local block); the aside
   carries the price ladder, so the panel's right side is meaningful
   instead of dead space. --vcenter centers the lockup against the taller
   ladder column. */
.price-panel__main--vcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Price ladder ---------------------------------------------------
   $24 founding (now) -> $29 -> $39. The current tier is inked and
   marked; future tiers are muted, so the rise reads at a glance. */
.price-ladder { margin-top: var(--space-lg); }
.price-ladder--lead { margin-top: var(--space-xl); }
.price-ladder__list { list-style: none; margin: 0; padding: 0; }
.price-ladder__step {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-top: var(--border-w) solid var(--hairline);
}
.price-ladder__list > .price-ladder__step:first-child { border-top: 0; padding-top: 0; }
.price-ladder__amt {
  flex-shrink: 0;
  min-width: 2.5em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(27px, 3.2vw, 34px);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--text-muted);
}
.price-ladder__label { display: flex; flex-direction: column; gap: 1px; }
.price-ladder__label strong {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: var(--text-body);
}
.price-ladder__label .mono-note { margin: 0; }
.price-ladder__step--now .price-ladder__amt { color: var(--text-strong); }
.price-ladder__step--now .price-ladder__label strong {
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.price-ladder__step--now .price-ladder__label strong::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 var(--highlight-soft);
}
.price-ladder__foot { margin-top: var(--space-lg); }

/* --- Hero trial reassurance (replaces the demo button) --------------- */
.hero-trial {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.hero-trial__lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.hero-trial__lead::before {
  content: "✓";
  color: var(--success);
  font-weight: var(--weight-semibold);
}
.hero-trial__sub {
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
}

/* --- Placeholder convention ------------------------------------------
   Anything wearing .placeholder is not launch content. Keep the flag
   visible and calm: dashed hairline, warm tint, mono tag. */
.placeholder {
  position: relative;
  border: var(--border-w) dashed color-mix(in oklch, var(--warn) 55%, var(--border));
  background: color-mix(in oklch, var(--warn) 6%, var(--surface));
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.placeholder-tag {
  display: inline-flex;
  margin-bottom: var(--space-sm);
  padding: 2px 8px;
  background: color-mix(in oklch, var(--warn) 16%, var(--surface));
  border: var(--border-w) solid color-mix(in oklch, var(--warn) 45%, var(--border));
  border-radius: var(--radius-xs);
  color: color-mix(in oklch, var(--warn) 80%, var(--fg));
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
}
.placeholder p { font-size: var(--text-ui); color: var(--text-body); }

/* --- Demo frame -------------------------------------------------------- */
.demo-frame {
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
/* HTML width/height attrs pin these to a fixed 1500x1000 box; without an
   explicit height:auto the intrinsic 3:2 ratio never gets derived and the
   image stretches vertically. Constrain to a consistent 3:2 (comment #3). */
.demo-frame img { width: 100%; height: auto; aspect-ratio: 3420 / 2144; object-fit: cover; }
/* The demo video is a 16:9 screen capture — fill the frame edge to edge. */
.demo-frame--video { background: #000; }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.demo-video__fallback { padding: var(--space-lg); color: var(--text-body); font-size: var(--text-ui); }
.demo-frame__caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-w) solid var(--hairline);
  background: var(--chrome);
}
.demo-frame__caption p { flex: 1; min-width: 220px; font-size: var(--text-ui); color: var(--text-body); }

/* --- Screenshot figures -------------------------------------------------- */
.shot {
  margin: 0;
  border: var(--border-w) solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--surface);
}
/* Same fix as .demo-frame img: constrain the loop-section screenshots to a
   consistent 3:2 instead of the fixed 1500x1000 the HTML attrs impose. */
.shot img { width: 100%; height: auto; aspect-ratio: 3420 / 2144; object-fit: cover; }
.shot figcaption {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-w) solid var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: var(--tracking-kind);
}

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(48px, 6vw, 72px) 0 var(--space-2xl);
  background: var(--surface-sunken);
  border-top: var(--border-w) solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: var(--space-3xl);
}

.footer-brand p { max-width: 40ch; margin-top: var(--space-md); font-size: var(--text-ui); color: var(--text-muted); }

.footer-col h4 {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-body); font-size: var(--text-ui); }
.footer-col a:hover { color: var(--fg); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: var(--border-w) solid var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
}
.footer-meta .spacer { flex: 1; }

/* ==========================================================================
   Page: home
   ========================================================================== */

.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-icon { width: clamp(72px, 8vw, 96px); height: auto; margin-bottom: var(--space-xl); }

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.hero-name {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-ui);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
}
.hero-tagline {
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
}
/* First line reads uniformly — no emphasis on "Your" (comment #22).
   Second line ("Superset is the workspace.") — a lighter weight in the
   same text-color family. Not italic, not recolored to an accent. */
.hero-tagline__soft {
  font-weight: var(--weight-regular);
}

.hero .lede { margin-top: var(--space-xl); max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.hero-foot { margin-top: var(--space-xl); }

/* Hero entrance — one short, functional stagger; nothing ambient. */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-rise] {
    animation: rise 0.5s var(--ease-out) both;
    animation-delay: calc(var(--rise, 0) * 70ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Loop cards — a horizontal, scroll-snapping carousel so each card (and the
   screenshot inside it) reads large. The cards overflow the wrap and scroll
   sideways rather than shrinking into three narrow columns (comment #28). */
.loop-grid {
  counter-reset: loop;
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 2px;
  padding-bottom: var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.loop-grid .card {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(280px, 78vw, 540px);
  scroll-snap-align: start;
}
.loop-grid .card .shot { margin-top: auto; box-shadow: none; border-radius: var(--radius-md); }
.loop-grid .card .shot img { border-radius: 0; }
.loop-grid::-webkit-scrollbar { height: 8px; }
.loop-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
.loop-grid::-webkit-scrollbar-track { background: transparent; }

.loop-hint {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--text-muted);
}
.loop-hint span { transition: transform var(--dur-fast, 160ms) ease; }
.loop-grid:hover + .loop-hint span { transform: translateX(3px); }

/* Theme showcase band */
.showcase-note { margin-top: var(--space-lg); }

/* ==========================================================================
   Page: themes gallery
   ========================================================================== */
/* Re-derive the material/alias layer for any element that carries a
   skin, not just <html>. tokens.css declares these derived tokens only
   on :root, so a nested [data-theme] card overrides the six role tokens
   but keeps inheriting the porcelain-resolved --canvas/--chrome/--text-*
   /--glass-bg. Re-declaring them here (same expressions as tokens.css)
   makes them recompute against the card's own role tokens. Roles are
   untouched; only the derived layer is re-scoped. */
[data-theme] {
  --text-strong:  var(--fg);
  --text-body:    color-mix(in oklch, var(--fg) 86%, var(--muted));
  --text-muted:   var(--muted);
  --text-accent:  color-mix(in oklch, var(--accent) 78%, var(--fg));

  --surface-page:   var(--bg);
  --surface-raised: var(--surface);
  --surface-sunken: color-mix(in oklch, var(--bg) 70%, var(--border));

  --line-hairline: color-mix(in oklch, var(--fg) 16%, transparent);
  --line-strong:   var(--border);
  --focus-ring:    color-mix(in oklch, var(--accent) 72%, var(--fg));
  --hairline:      var(--line-hairline);

  --chrome:      color-mix(in oklch, var(--accent-soft) 40%, var(--surface));
  --chrome-deep: color-mix(in oklch, var(--border) 60%, var(--accent-soft));
  --canvas:      color-mix(in oklch, var(--surface) 80%, var(--bg));
  --code-bg:     color-mix(in oklch, var(--border) 38%, var(--surface));
  --soft-fill:   color-mix(in oklch, var(--accent-soft) 58%, var(--surface));
  --accent-ink:  var(--text-accent);

  --glass-bg: color-mix(in oklch, var(--surface) 78%, transparent);
  --jewel-bg: linear-gradient(180deg,
                color-mix(in oklch, var(--surface) 96%, white),
                color-mix(in oklch, var(--surface) 72%, var(--border)) 52%,
                color-mix(in oklch, var(--chrome-deep) 74%, var(--border)));
  --gel-face: linear-gradient(180deg,
                color-mix(in oklch, var(--accent) 82%, white 18%),
                var(--accent) 52%,
                color-mix(in oklch, var(--accent) 82%, black 14%));
  --gel-border: color-mix(in oklch, var(--accent) 80%, black 12%);
}

.theme-card { padding: 0; overflow: hidden; }
/* Ease the card previews and material swatches between skins when the site
   theme changes, instead of snapping. Short, functional — no ambient motion. */
.window, .window__titlebar, .window__sidebar, .window__doc,
.swatch-face {
  transition: background-color var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              color var(--dur-slow) var(--ease);
}
.theme-card .window { border: 0; border-radius: 0; box-shadow: none; border-bottom: var(--border-w) solid var(--hairline); }
.theme-card .window__body { min-height: 190px; grid-template-columns: 120px 1fr; }
.theme-card__meta { padding: var(--space-lg) var(--space-xl) var(--space-xl); }
.theme-card__meta h3 { display: flex; align-items: baseline; gap: var(--space-md); font-size: 18px; }
.theme-card__meta .mono-note { text-transform: lowercase; }
.theme-card__meta p { margin-top: var(--space-sm); font-size: 14px; color: var(--text-body); }

/* ==========================================================================
   Page: workspace tour
   ========================================================================== */
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.tour-row + .tour-row { border-top: var(--border-w) solid var(--hairline); }
/* Keep the media in the wide (3fr) column on flipped rows too, so the
   zigzag screenshots all render at the same size regardless of side. */
.tour-row--flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.tour-row--flip .tour-copy { order: 2; }
.tour-copy h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: var(--space-md); }
.tour-copy p { font-size: 15px; }
.tour-copy .mono-note { display: block; margin-top: var(--space-lg); }

.shortcut-table { width: 100%; border-collapse: collapse; }
.shortcut-table td {
  padding: 9px var(--space-2xs);
  border-top: var(--border-w) solid var(--hairline);
  font-size: var(--text-ui);
  color: var(--text-body);
}
.shortcut-table td:first-child { width: 130px; }
.shortcut-table tr:last-child td { border-bottom: var(--border-w) solid var(--hairline); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .tour-row { grid-template-columns: 1fr; }
  .tour-row--flip .tour-copy { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-panel { grid-template-columns: 1fr; }
  .price-panel__aside { border-left: 0; border-top: var(--border-w) solid var(--hairline); }
  .compare-row { grid-template-columns: 1fr; gap: var(--space-sm); }
  .compare-row--head { display: none; }
  .compare-row h3 { font-family: var(--font-mono); font-size: var(--text-meta); letter-spacing: var(--tracking-label); color: var(--text-muted); text-transform: lowercase; font-weight: var(--weight-medium); }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-md) clamp(16px, 3vw, 48px) var(--space-xl);
    background: var(--surface);
    border-bottom: var(--border-w) solid var(--line-strong);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-md) 0; font-size: var(--text-base); width: 100%; }
  .site-nav .btn { margin-top: var(--space-md); }
  .site-nav .theme-picker { margin-top: var(--space-lg); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .window__body,
  .theme-card .window__body { grid-template-columns: 1fr; }
  .window__sidebar {
    display: flex;
    gap: var(--space-2xs);
    overflow-x: auto;
    border-right: 0;
    border-bottom: var(--border-w) solid var(--hairline);
  }
  .window__root { flex-shrink: 0; }
  .file-row { width: auto; flex-shrink: 0; }
  .file-row .kind { display: none; }
}

/* ============================================================
   Page: legal documents — long-form policy prose.
   Shared by legal/privacy, legal/eula, legal/refund, legal/security.
   Reading lane (serif) for body; sans for tabular data. No color of
   its own — everything resolves through the vendored tokens.
   ============================================================ */
.legal-head { padding-block: clamp(48px, 7vw, 80px) clamp(20px, 3vw, 32px); }
.legal-head .kicker { margin-bottom: var(--space-md); }
.legal-effective { margin-top: var(--space-lg); color: var(--text-muted); }

.legal-prose { max-width: 68ch; }
.legal-prose > * + * { margin-top: var(--space-lg); }
.legal-prose h2 {
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: var(--border-w) solid var(--hairline);
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-prose h3 {
  margin-top: var(--space-xl);
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  color: var(--text-strong);
}
.legal-prose p,
.legal-prose li {
  font-family: var(--font-serif);
  font-size: var(--text-read);
  line-height: var(--leading-read);
  color: var(--text-body);
}
.legal-prose ul,
.legal-prose ol { margin-top: var(--space-md); padding-left: 1.35em; display: grid; gap: var(--space-sm); }
.legal-prose li { padding-left: var(--space-2xs); }
.legal-prose li::marker { color: var(--text-muted); }
.legal-prose strong { color: var(--text-strong); font-weight: var(--weight-semibold); }
.legal-prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
}
.legal-prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-xs);
  word-break: break-word;
}
.legal-prose .doc-scroll { overflow-x: auto; }
.legal-prose table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); }
.legal-prose thead th {
  font-family: var(--font-body);
  font-size: var(--text-ui-sm);
  font-weight: var(--weight-ui);
  letter-spacing: var(--tracking-normal);
  color: var(--text-strong);
}
.legal-prose th,
.legal-prose td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-md);
  border: var(--border-w) solid var(--hairline);
}
.legal-prose td {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--text-body);
}

.legal-meta-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-lg); }
