/* ════════════════════════════════════════════════════════════════════════════
   Portage — website
   The extension's design system, scaled up to a page. Two themes, one structure:
   light is paper and ink; dark is true black with graphite surfaces. The primary
   action is solid ink; the single accent (indigo) is rationed to the brand tile,
   links, focus rings and a few small highlights.

   Contrast (WCAG 2.1, body text):
     light  ink #111 on #f6f6f3 17.4 · muted #66666b on #f6f6f3 5.3 / on #fff 5.7 / on inset 5.1
            accent #3b38d9 on #fff 7.6 / on paper 7.0 · ok on ok-soft 4.7 · warn on warn-soft 5.8
     dark   ink #f4f4f5 on #000 19.1 · muted #919198 on #000 6.6 / on #0f0f11 6.1
            accent #8f8cff on #000 7.4 / on #0f0f11 6.7
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --gutter: 24px;
  --wrap: 1160px;
  --hdr-h: 60px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ── light (paper) ────────────────────────────────────────────────────────── */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --inset: #f2f2ee;
  --hover: #ededE8;
  --line: #e7e6e1;
  --line-strong: #d6d5ce;
  --ink: #111111;
  --ink-2: #3c3c3f;
  --muted: #66666b;
  --faint: #8e8e93;            /* icons and rules only — never body text */
  --accent: #3b38d9;
  --accent-hover: #2e2bc2;
  --accent-soft: #eeedfc;
  --accent-line: #cfcdf7;
  --mark-bg: #6e2bff;
  --primary: #111111;
  --primary-hover: #2c2c2f;
  --on-primary: #ffffff;
  --ok: #0e7a46;
  --ok-soft: #e4f3ea;
  --warn: #8a5000;
  --warn-soft: #fbf0dc;
  --warn-line: #efd9ad;
  --shadow-card: 0 1px 2px rgba(17, 17, 17, .04);
  --shadow-shot: 0 1px 2px rgba(17, 17, 17, .05), 0 18px 48px -12px rgba(17, 17, 17, .16);
  --shadow-window: 0 1px 2px rgba(17, 17, 17, .05), 0 30px 80px -20px rgba(17, 17, 17, .22);
  --glass: rgba(246, 246, 243, .86);
  --dot: #d6d5ce;
}

/* ── dark (black) ─────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0f0f11;
  --inset: #18181b;
  --hover: #1e1e22;
  --line: #222226;
  --line-strong: #313136;
  --ink: #f4f4f5;
  --ink-2: #c8c8cd;
  --muted: #919198;
  --faint: #6b6b72;
  --accent: #8f8cff;
  --accent-hover: #a7a5ff;
  --accent-soft: rgba(143, 140, 255, .13);
  --accent-line: rgba(143, 140, 255, .4);
  --mark-bg: #6e2bff;
  --primary: #f4f4f5;
  --primary-hover: #ffffff;
  --on-primary: #000000;
  --ok: #3ccb7f;
  --ok-soft: rgba(60, 203, 127, .12);
  --warn: #ffc35c;
  --warn-soft: rgba(255, 195, 92, .10);
  --warn-line: rgba(255, 195, 92, .28);
  --shadow-card: none;
  --shadow-shot: 0 0 0 1px rgba(255, 255, 255, .02), 0 24px 60px -16px rgba(0, 0, 0, .9);
  --shadow-window: 0 0 0 1px rgba(255, 255, 255, .02), 0 40px 100px -20px rgba(0, 0, 0, .9);
  --glass: rgba(0, 0, 0, .8);
  --dot: #313136;
}

/* No explicit choice (or no JS): follow the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #000000; --surface: #0f0f11; --inset: #18181b; --hover: #1e1e22;
    --line: #222226; --line-strong: #313136; --ink: #f4f4f5; --ink-2: #c8c8cd; --muted: #919198; --faint: #6b6b72;
    --accent: #8f8cff; --accent-hover: #a7a5ff; --accent-soft: rgba(143, 140, 255, .13); --accent-line: rgba(143, 140, 255, .4);
    --mark-bg: #6e2bff; --primary: #f4f4f5; --primary-hover: #fff; --on-primary: #000;
    --ok: #3ccb7f; --ok-soft: rgba(60, 203, 127, .12); --warn: #ffc35c; --warn-soft: rgba(255, 195, 92, .10); --warn-line: rgba(255, 195, 92, .28);
    --shadow-card: none;
    --shadow-shot: 0 0 0 1px rgba(255, 255, 255, .02), 0 24px 60px -16px rgba(0, 0, 0, .9);
    --shadow-window: 0 0 0 1px rgba(255, 255, 255, .02), 0 40px 100px -20px rgba(0, 0, 0, .9);
    --glass: rgba(0, 0, 0, .8); --dot: #313136;
  }
}

/* ── base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
b, strong { font-weight: 650; }
code { font-family: var(--mono); font-size: .92em; }

a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--accent-soft); color: var(--ink); }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; color: var(--on-primary); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.ic { flex: none; }

/* ── brand mark ───────────────────────────────────────────────────────────── */
.mark {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: var(--mark-bg);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.mark svg { width: 16px; height: 16px; }
.mark-sm { width: 18px; height: 18px; border-radius: 5px; }
.mark-sm svg { width: 11px; height: 11px; }
.mark-xl { width: 56px; height: 56px; border-radius: 16px; }
.mark-xl svg { width: 30px; height: 30px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  border-radius: 8px;
}
.brand:hover { color: var(--ink); }
.wordmark {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; letter-spacing: -.02em;
}

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn .ic { width: 18px; height: 18px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; gap: 7px; }
.btn-sm .ic { width: 16px; height: 16px; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-quiet { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--hover); color: var(--ink); }

/* Chrome Web Store button, "not published yet" state (the markup default; site.js upgrades it to a
   real link once config.js has a URL). Drawn as a status pill, not a button, so it doesn't invite a click. */
.btn.is-soon {
  background: transparent;
  color: var(--ink-2);
  border: 1px dashed var(--faint);
  border-radius: var(--r-pill);
  cursor: default;
  white-space: normal;
  text-align: left;
  font-weight: 550;
}
.btn.is-soon:hover { background: transparent; color: var(--ink-2); }
.btn-lg.is-soon { padding: 0 22px; }
@media (max-width: 420px) {
  .hero-cta .btn-lg.is-soon { width: 100%; justify-content: center; font-size: 15px; padding: 0 16px; }
}
.btn.is-soon .ic { color: var(--muted); }
.store-ic-live { display: none; }
.btn:not(.is-soon) .store-ic-soon { display: none; }
.btn:not(.is-soon) .store-ic-live { display: block; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15.5px;
  color: var(--ink); text-decoration: none;
  border-radius: 6px;
}
.text-link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link:hover .ic { transform: translateX(2px); }

/* ── header ───────────────────────────────────────────────────────────────── */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 24px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 6px 10px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--ink); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.theme-toggle:hover { background: var(--hover); color: var(--ink); }
.theme-toggle .ic { width: 20px; height: 20px; }
.no-js .theme-toggle { display: none; }
/* Show the icon for the theme you'd switch TO. */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

@media (max-width: 760px) {
  .nav { display: none; }
}
@media (max-width: 520px) {
  .hdr-store.is-soon { display: none; }
}
@media (max-width: 400px) {
  .hdr-in { gap: 12px; }
  .hdr-actions { gap: 4px; }
  .hdr-store { padding: 0 12px; }
  .hdr-store .ic { display: none !important; }
}
@media (max-width: 349px) {
  .hdr-store { display: none; }
}

/* ── section scaffolding ──────────────────────────────────────────────────── */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
@media (max-width: 760px) { .section-head { margin-bottom: 44px; } }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.028em; }
h3 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
p { text-wrap: pretty; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero-lede {
  margin-top: 22px;
  max-width: 520px;
  font-size: 19px; line-height: 1.55;
  color: var(--muted);
}
.hero-lede b { color: var(--ink); font-weight: 600; }
.hero-cta {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
}
.hero-meta {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  list-style: none;
  font-size: 14px; color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .ic { width: 16px; height: 16px; color: var(--faint); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { justify-self: center; width: 100%; max-width: 620px; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 0 72px; }
  .hero-lede { font-size: 17.5px; }
}

/* the browser window with Portage docked in the side panel */
.browser {
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-window);
  outline: 1px solid var(--line-strong);
  overflow: hidden;
}
.browser-bar {
  height: 42px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.omnibox {
  flex: 1; height: 26px; border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
}
.omnibox i { display: block; height: 6px; width: 38%; border-radius: 3px; background: var(--line); }
.omnibox .ic { width: 12px; height: 12px; color: var(--faint); }
.bar-ext {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}
.browser-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}
.faux-page {
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
}
.faux-page i { display: block; height: 9px; border-radius: 5px; background: var(--inset); }
.faux-page .fp-title { height: 16px; width: 78%; background: var(--line); margin-bottom: 6px; }
.faux-page .fp-title.short { width: 52%; margin-top: -6px; }
.faux-page .fp-img { height: 120px; border-radius: 10px; margin: 10px 0; }
.faux-page .w90 { width: 92%; } .faux-page .w80 { width: 80%; } .faux-page .w60 { width: 60%; } .faux-page .w70 { width: 70%; }

.sidepanel {
  border-left: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
}
.sp-hdr {
  height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.sp-hdr .sp-tools { margin-left: auto; display: flex; gap: 10px; color: var(--faint); }
.sp-hdr .sp-tools .ic { width: 14px; height: 14px; }
.sidepanel img { width: 100%; }
.hero-caption { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }

@media (max-width: 640px) {
  .browser { max-width: 400px; margin: 0 auto; border-radius: 20px; }
  .browser-bar, .faux-page { display: none; }
  .browser-body { grid-template-columns: minmax(0, 1fr); }
  .sidepanel { border-left: 0; }
}

/* theme-matched screenshots: both are in the markup, one is shown */
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .shot-light { display: none; }
  :root:not([data-theme]) .shot-dark { display: block; }
}

/* ── facts strip ──────────────────────────────────────────────────────────── */
.facts {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
}
.facts li { padding: 26px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
  color: var(--ink);
}
.facts li > span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { margin-top: 8px; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts b { font-size: 22px; }
  .facts li, .facts li + li { padding: 20px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .facts li:nth-child(n+3) { margin-top: 0; }
  .facts li:last-child { padding-bottom: 0; }
}

/* ── feature rows ─────────────────────────────────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 128px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.feature-copy { max-width: 500px; }
.feature:nth-child(even) .feature-copy { order: 2; }
.feature:nth-child(even) .feature-copy { justify-self: start; }
.feature-copy .eyebrow { color: var(--accent); }
.feature-copy h3 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.feature-copy > p:not([class]) { margin-top: 16px; font-size: 17px; color: var(--muted); }
.feature-copy > p:not([class]) b { color: var(--ink); font-weight: 600; }

.checks { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
.checks .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }

.note {
  margin-top: 24px;
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.note b { color: var(--ink); }

.chips { list-style: none; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  line-height: 1.4;
}
.chips-label { margin-top: 24px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chips-label + .chips { margin-top: 10px; }

.shot {
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
.shot-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg);
  outline: 1px solid var(--line-strong);
  box-shadow: var(--shadow-shot);
}
.shot-frame img { width: 100%; }
.shot figcaption {
  margin-top: 16px;
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .features { gap: 96px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature-copy { max-width: 600px; }
}

/* "also included" mini-grid */
.also {
  margin-top: 128px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.also li {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.also h4 { margin-top: 14px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.also p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tile {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--inset);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
}
.tile .ic { width: 20px; height: 20px; }
@media (max-width: 1000px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .also { margin-top: 96px; } }
@media (max-width: 520px) {
  .also { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .also li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .also .tile { grid-row: span 2; }
  .also h4 { margin-top: 0; }
  .also p { margin-top: 2px; }
}

/* ── security ─────────────────────────────────────────────────────────────── */
.beta-callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--warn-soft);
  box-shadow: inset 0 0 0 1px var(--warn-line);
  margin-bottom: 20px;
}
.beta-callout .ic { width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }
.beta-callout p { font-size: 16px; color: var(--ink-2); }
.beta-callout b { color: var(--ink); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 20px;
  list-style: none;
}
.facts-grid > li {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.facts-grid h3 { margin-top: 18px; font-size: 18.5px; line-height: 1.3; letter-spacing: -.015em; }
.facts-grid p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.facts-grid p + p { margin-top: 10px; }
.facts-grid p b { color: var(--ink-2); font-weight: 600; }
.facts-grid .wide { grid-column: span 2; }
.inline-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.inline-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.inline-list li b { color: var(--ink); font-weight: 600; }
.inline-list .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--faint); }
@media (max-width: 1000px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-grid .wide { grid-column: auto; }
  .facts-grid > li { padding: 22px; }
}

/* ── fees ─────────────────────────────────────────────────────────────────── */
.fees-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}
.fees-grid .section-head { margin-bottom: 0; }
.fee-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  font-size: 16px;
}
.fee-table caption { text-align: left; }
.fee-table th, .fee-table td {
  padding: 18px 22px;
  text-align: left; vertical-align: top;
  border-top: 1px solid var(--line);
}
.fee-table tr:first-child > * { border-top: 0; }
.fee-table thead th {
  font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px; padding-bottom: 14px;
}
.fee-table tbody th { font-weight: 600; color: var(--ink); }
.fee-table tbody th span { display: block; margin-top: 2px; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.fee-table td { color: var(--ink-2); text-align: right; }
.fee-table thead th:last-child { text-align: right; }
.fee-table .portage-row th, .fee-table .portage-row td { background: var(--ok-soft); }
.fee-table .portage-row td { color: var(--ok); font-weight: 650; }
.fee-table tbody tr:first-child th { border-top-left-radius: 0; }
.fee-table tbody tr:last-child th { border-bottom-left-radius: var(--r-lg); }
.fee-table tbody tr:last-child td { border-bottom-right-radius: var(--r-lg); }
.fee-foot { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) {
  .fees-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 520px) {
  .fee-table th, .fee-table td { padding: 16px; }
  .fee-table { font-size: 15px; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 72px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--hdr-h) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18.5px; font-weight: 650; letter-spacing: -.012em; line-height: 1.35;
  color: var(--ink);
  border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover .ic { color: var(--ink); }
.faq .answer { padding: 0 40px 24px 0; font-size: 16.5px; color: var(--muted); }
.faq .answer p + p { margin-top: 12px; }
.faq .answer b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-grid .section-head { position: static; }
  .faq .answer { padding-right: 0; }
}

/* ── closing CTA ──────────────────────────────────────────────────────────── */
.closing { text-align: center; }
.closing .mark-xl { margin: 0 auto; }
.closing h2 { margin-top: 28px; }
.closing p { margin: 16px auto 0; max-width: 520px; font-size: 18px; color: var(--muted); }
.closing .hero-cta { justify-content: center; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.site-ftr {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  font-size: 14.5px;
}
.ftr-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.ftr-top .brand .wordmark { font-size: 16px; }
.ftr-top .mark { width: 24px; height: 24px; border-radius: 7px; }
.ftr-top .mark svg { width: 14px; height: 14px; }
.ftr-tag { margin-top: 10px; color: var(--muted); max-width: 400px; }
.ftr-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ftr-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; border-radius: 4px; }
.ftr-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.ftr-fine { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ── legal pages ──────────────────────────────────────────────────────────── */
.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 {
  font-size: clamp(36px, 4.6vw, 48px);
  line-height: 1.08; font-weight: 700; letter-spacing: -.032em;
}
.doc-meta { margin-top: 14px; font-size: 15px; color: var(--muted); }
.doc .summary {
  margin-top: 40px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.doc .summary h2 { font-size: 17px; letter-spacing: -.01em; }
.doc .summary ul { margin-top: 12px; }
.doc .toc { margin-top: 32px; }
.doc .toc h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--font); }
.doc .toc ol { margin-top: 10px; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15.5px; }
.doc .toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.doc .toc a { color: var(--ink-2); text-decoration-color: var(--line-strong); }
.doc .toc a:hover { color: var(--ink); }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }

.prose { margin-top: 48px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 {
  margin-top: 56px;
  font-size: 24px; line-height: 1.25; letter-spacing: -.02em;
  padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 18px; letter-spacing: -.01em; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose strong, .prose b { color: var(--ink); }
.placeholder {
  font-family: var(--mono); font-size: .9em;
  padding: 1px 6px; border-radius: 6px;
  background: var(--warn-soft); color: var(--warn);
  box-shadow: inset 0 0 0 1px var(--warn-line);
  white-space: nowrap;
}

.svc-list { list-style: none; padding: 0 !important; margin-top: 20px !important; display: flex; flex-direction: column; gap: 12px; }
.svc-list > li {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.svc-list h3 { margin: 0; font-size: 17px; }
.svc-list dl { margin-top: 8px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 16px; font-size: 15.5px; line-height: 1.55; }
.svc-list dt { color: var(--muted); }
.svc-list dd { color: var(--ink-2); }
@media (max-width: 520px) {
  .svc-list dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-list dd + dt { margin-top: 8px; }
}

.caps { font-weight: 600; color: var(--ink); }
