/* iVault site. Tokens are copied from the desktop app's shadcn/ui theme
   (ivault/apps/desktop/src/assets/index.css) so the site and the app are one
   product: zinc neutrals, the brand violet as --primary, radius 0.625rem,
   IBM Plex. `.dark` on <html> switches theme, exactly as in the app. */

:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --primary: oklch(0.54 0.22 290);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.967 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.55 0.21 290);
  --link: oklch(0.5 0.22 290);
  --status-ready: oklch(0.52 0.14 155);
  --status-running: oklch(0.52 0.13 235);
  --status-warn: oklch(0.55 0.13 70);
  --shadow-window: 0 1px 2px oklch(0 0 0 / 0.06), 0 24px 48px -16px oklch(0.3 0.05 290 / 0.28);
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

.dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.21 0.006 285.885);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.58 0.21 290);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.705 0.015 286.067);
  --accent: oklch(0.274 0.006 286.033);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.68 0.18 290);
  --link: oklch(0.78 0.13 290);
  --status-ready: oklch(0.8 0.16 158);
  --status-running: oklch(0.82 0.12 210);
  --status-warn: oklch(0.85 0.14 85);
  --shadow-window: 0 1px 2px oklch(0 0 0 / 0.4), 0 32px 64px -20px oklch(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scrollbar-color: color-mix(in oklch, var(--muted-foreground) 45%, transparent) transparent; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in oklch, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: calc(var(--radius) - 4px); }
a { color: inherit; text-underline-offset: 4px; }
code { font-family: var(--font-mono); font-size: 0.875em; }
p code, li code, td code {
  background: var(--muted); border-radius: calc(var(--radius) - 6px);
  padding: 0.1em 0.35em; font-weight: 500;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.tabular { font-variant-numeric: tabular-nums; }

.icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--muted-foreground); text-decoration: none;
  padding: 6px 10px; border-radius: calc(var(--radius) - 2px);
  transition: color 150ms, background-color 150ms;
}
.nav a:hover { color: var(--foreground); background: var(--accent); }
.nav a[aria-current="page"] { color: var(--foreground); }

/* ---------- shadcn: button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: calc(var(--radius) - 2px);
  font: 500 14px/1 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; color: inherit; background: none;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn-default { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.1); }
.btn-default:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
.btn-outline { background: var(--background); border-color: var(--input); color: var(--foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.05); }
.btn-outline:hover { background: var(--accent); }
.btn-ghost:hover { background: var(--accent); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; gap: 6px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }

/* the toggle shows the theme you would switch to */
.theme-toggle .sun { display: none; }
.dark .theme-toggle .sun { display: block; }
.dark .theme-toggle .moon { display: none; }

/* ---------- shadcn: badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px);
  padding: 2px 8px; font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-ready { color: var(--status-ready); }
.is-running { color: var(--status-running); }
.is-warn { color: var(--status-warn); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .container { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 88px 0 104px; }
  .hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; }
}
.hero h1 {
  margin: 0 0 20px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(40px, 4.6vw, 62px);
}
.hero h1 span { color: var(--muted-foreground); }
.lede { margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: var(--muted-foreground); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The app, drawn: one queue window, the thing iVault actually is. */
.window {
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  background: var(--card); box-shadow: var(--shadow-window); overflow: hidden;
  font-size: 13px;
}
.window-bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 55%, var(--card));
}
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklch, var(--muted-foreground) 35%, transparent); }
.window-title { font-weight: 500; color: var(--muted-foreground); font-size: 12px; }
.window-bar .badge { margin-left: auto; }
.queue { list-style: none; margin: 0; padding: 4px 8px; }
.job {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding: 14px 6px;
}
.job + .job { border-top: 1px solid var(--border); }
.poster {
  grid-row: span 2; width: 40px; height: 56px; border-radius: 6px;
  background: linear-gradient(160deg, oklch(0.46 0.14 290), oklch(0.24 0.06 280));
  display: grid; place-items: end start; padding: 5px;
  color: oklch(1 0 0 / 0.92); font: 600 10px/1 var(--font-mono);
}
.poster.p2 { background: linear-gradient(160deg, oklch(0.55 0.12 45), oklch(0.27 0.05 30)); }
.poster.p3 { background: linear-gradient(160deg, oklch(0.5 0.09 200), oklch(0.23 0.04 230)); }
.job-title { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-title .km { color: var(--muted-foreground); font-weight: 400; margin-left: 6px; }
.job-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 12px; min-width: 0; }
.job-meta .url { flex: 1; min-width: 0; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--foreground); }
.job-meta .grow { flex: 1; min-width: 0; }
.job-side { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.progress { position: relative; height: 6px; border-radius: 999px; background: color-mix(in oklch, var(--primary) 18%, transparent); overflow: hidden; flex: 1; min-width: 60px; }
.progress > i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--primary); border-radius: inherit; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The one authored moment: the running upload keeps moving. */
.progress.live > i { animation: fill 9s var(--ease-out) infinite alternate; }
@keyframes fill { from { width: 48%; } to { width: 71%; } }
@media (prefers-reduced-motion: reduce) {
  .spin, .progress.live > i { animation: none; }
}
@media (max-width: 560px) {
  .job { grid-template-columns: 34px minmax(0, 1fr); }
  .poster { grid-row: span 3; width: 34px; height: 48px; align-self: start; }
  .job-side { grid-column: 2; grid-row: auto; flex-direction: row; align-items: center; }
  .job-meta { grid-column: 2; flex-wrap: wrap; row-gap: 6px; }
  .job-meta .progress { flex-basis: 100%; order: 3; }
  .job-meta .count { display: none; }
  .nav .wide { display: none; }
  .window-bar .badge { display: none; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.section-head p { margin: 0; color: var(--muted-foreground); font-size: 17px; }

/* Pipeline: one strip, with the stage names the app shows. */
.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden;
}
.pipeline li { padding: 22px 20px 24px; }
.pipeline li + li { border-left: 1px solid var(--border); }
.stage { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.stage .icon { color: var(--primary); }
.pipeline p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.55; }
.pipeline li:last-child { background: color-mix(in oklch, var(--primary) 8%, transparent); }
@media (max-width: 900px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li + li { border-left: 0; border-top: 1px solid var(--border); }
}

.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.split .section-head { margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.facts li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; }
.icon-box {
  grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--card);
}
.facts b { font-weight: 600; }
.facts p { margin: 0; color: var(--muted-foreground); font-size: 15px; }
.providers { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }

.cta-band { padding: 64px 0 80px; border-top: 1px solid var(--border); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; font-weight: 600; max-width: 30ch; }

/* ---------- docs layout (privacy, support) ---------- */
.docs { display: grid; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 1024px) { .docs { grid-template-columns: minmax(0, 1fr) 200px; gap: 72px; padding-top: 64px; } }
.prose { max-width: 72ch; min-width: 0; }
.prose h1 { margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.prose .meta { margin: 0 0 32px; color: var(--muted-foreground); font-size: 15px; }
.prose h2 { margin: 56px 0 12px; font-size: 22px; letter-spacing: -0.015em; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 600; }
.prose p, .prose li { color: color-mix(in oklch, var(--foreground) 86%, var(--muted-foreground)); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--muted-foreground); }
.prose a:not(.btn) { color: var(--link); font-weight: 500; }

.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc p { margin: 0 0 10px; font-weight: 500; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted-foreground); text-decoration: none; }
.toc a:hover { color: var(--foreground); }

/* shadcn: alert */
.alert {
  display: grid; grid-template-columns: 16px 1fr; gap: 4px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 16px;
}
.alert .icon { color: var(--primary); margin-top: 4px; }
.alert-title { font-weight: 600; }
.alert-body { grid-column: 2; margin: 0; color: var(--muted-foreground) !important; font-size: 15px; }

/* shadcn: table */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; margin: 16px 0; }
.table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
.table-wrap th {
  text-align: left; font-weight: 500; color: var(--muted-foreground);
  height: 40px; padding: 0 14px; background: color-mix(in oklch, var(--muted) 50%, transparent);
  border-bottom: 1px solid var(--border);
}
.table-wrap td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 500; }
.table-wrap td small { display: block; color: var(--muted-foreground); font-weight: 400; font-size: 13px; }

/* shadcn: card */
.card { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); color: var(--card-foreground); padding: 24px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.contact h2 { margin: 0 0 4px; font-size: 18px; border: 0; padding: 0; letter-spacing: -0.01em; }
.contact p { margin: 0; color: var(--muted-foreground); font-size: 15px; max-width: 52ch; }

/* shadcn: accordion, on native <details> */
.accordion { border-top: 1px solid var(--border); }
.prose h2 + .accordion { border-top: 0; }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-weight: 500; cursor: pointer; list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { text-decoration: underline; }
.accordion summary > .icon { color: var(--muted-foreground); transition: transform 200ms var(--ease-out); }
.accordion details[open] summary > .icon { transform: rotate(180deg); }
.accordion .panel { padding: 0 0 18px; }
.accordion .panel p { margin: 0 0 10px; }
.accordion .panel ol { margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: 14px; color: var(--muted-foreground); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }

/* ---------- privacy policy: trust layout ----------
   Structure after cloudflare.com's privacy pages (a promise first, the
   effective date and version up top, numbered sections you can cite, every
   third party named, a changelog, a person to write to), in iVault's own
   tokens. */
.policy-hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 24rem at 85% -10%, color-mix(in oklch, var(--primary) 12%, transparent), transparent 70%),
    color-mix(in oklch, var(--muted) 45%, var(--background));
}
.policy-hero .container { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1024px) { .policy-hero .container { padding-top: 88px; padding-bottom: 80px; } }
.crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 28px; font-size: 14px; color: var(--muted-foreground); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foreground); }
.policy-hero h1 {
  margin: 0 0 20px; max-width: 17ch;
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
}
.policy-hero .lede { max-width: 58ch; font-size: 19px; margin-bottom: 28px; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 14px; color: var(--muted-foreground); }
.policy-meta li { display: block; }
.policy-meta li .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.policy-meta b { color: var(--foreground); font-weight: 500; }

/* Four commitments, one ruled panel: statements, not cards. */
.promises {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}
.promises li { padding: 28px 24px 28px 0; }
.promises li + li { padding-left: 24px; border-left: 1px solid var(--border); }
.promises .icon { width: 22px; height: 22px; color: var(--primary); stroke-width: 1.75; margin-bottom: 14px; }
.promises b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.promises p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.55; }
@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr 1fr; }
  .promises li:nth-child(3) { border-left: 0; padding-left: 0; }
  .promises li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .promises { grid-template-columns: 1fr; }
  .promises li, .promises li + li { padding: 22px 0; border-left: 0; }
  .promises li + li { border-top: 1px solid var(--border); }
}

/* Where data goes: your computer → services you connect; us, not in the path. */
.flow { margin: 20px 0 8px; }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.flow-node { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 18px 18px 16px; }
.flow-node h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.flow-node h3 .icon { color: var(--primary); }
.flow-node ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.flow-node li { display: flex; gap: 8px; color: var(--muted-foreground); margin: 0; }
.flow-node li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: color-mix(in oklch, var(--primary) 60%, transparent); }
.flow-arrow { display: grid; place-items: center; color: var(--primary); }
.flow-arrow .icon { width: 22px; height: 22px; }
.flow-none {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
  border: 1px dashed color-mix(in oklch, var(--muted-foreground) 45%, transparent); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; color: var(--muted-foreground);
}
.flow-none b { color: var(--foreground); font-weight: 600; }
.flow-none .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { height: 40px; transform: rotate(90deg); }
}

/* Numbered sections with a sticky index on the left. */
.policy { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 96px; }
@media (min-width: 1024px) { .policy { grid-template-columns: 232px minmax(0, 1fr); gap: 80px; padding-top: 72px; } }
.policy .toc { top: 80px; }
.policy .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.policy .toc li { counter-increment: toc; }
.policy .toc a {
  display: flex; gap: 10px; padding: 6px 10px; margin-left: -10px; border-radius: calc(var(--radius) - 4px);
  color: var(--muted-foreground); text-decoration: none; font-size: 14px;
}
.policy .toc a::before { content: counter(toc); min-width: 1.2em; font: 500 12px/22px var(--font-mono); color: color-mix(in oklch, var(--muted-foreground) 75%, transparent); }
.policy .toc a:hover { background: var(--accent); color: var(--foreground); }
.policy .toc a[aria-current="true"] { color: var(--foreground); background: var(--accent); }
.policy .prose { max-width: 740px; counter-reset: sec; }
.policy .prose > section { counter-increment: sec; scroll-margin-top: 80px; }
.policy .prose > section + section { margin-top: 56px; }
.policy .prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; border: 0; padding: 0; font-size: 24px; }
.policy .prose h2::before { content: counter(sec); font: 500 14px/1 var(--font-mono); color: var(--primary); min-width: 1.5em; }
.policy .prose > section > :not(h2) { margin-left: calc(1.5em + 14px); }
@media (max-width: 640px) { .policy .prose > section > :not(h2) { margin-left: 0; } }

.changelog { list-style: none; padding: 0 !important; margin: 0; border-left: 1px solid var(--border); }
.changelog li { position: relative; padding: 0 0 0 20px; margin: 0; }
.changelog li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--background); }
.changelog time { display: block; font: 500 13px/1.6 var(--font-mono); color: var(--muted-foreground); }

.contact-card { display: grid; gap: 16px; grid-template-columns: 1fr auto; align-items: center; }
.contact-card p { margin: 0; }
.contact-card .who { font-weight: 600; color: var(--foreground); }
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- display face, icons, brand marks ---------- */
:root { --font-display: "Bricolage Grotesque", var(--font-sans); }
.hero h1, .section h2, .cta-band h2, .policy-hero h1, .prose h1, .policy .prose h2 {
  font-family: var(--font-display); font-optical-sizing: auto;
}
.hero h1, .policy-hero h1 { font-weight: 700; letter-spacing: -0.035em; }
.section h2, .cta-band h2, .prose h1, .policy .prose h2 { font-weight: 650; letter-spacing: -0.02em; }
.cta-band h2 { line-height: 1.15; }

/* Simple Icons marks (CC0), tinted like every other icon via a mask.
   --logo URLs are written relative to this stylesheet: a url() in a custom
   property resolves where it is used, here, not in the page. */
.brand-logo {
  display: inline-block; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.providers .provider { gap: 7px; padding: 4px 10px; font-size: 13px; }
.providers .provider .icon { width: 14px; height: 14px; }
.providers .provider .brand-logo, .providers .provider .icon { color: var(--muted-foreground); transition: color 150ms; }
.providers .provider:hover .brand-logo, .providers .provider:hover .icon { color: var(--primary); }

.accordion .q { display: inline-flex; align-items: center; gap: 12px; }
.accordion .lead {
  width: 16px; height: 16px; color: var(--primary);
}
.table-wrap td .svc { width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; color: var(--primary); }
.table-wrap td small { margin-left: 23px; }

.site-footer nav { flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer nav .icon, .site-footer nav .brand-logo { width: 14px; height: 14px; }

/* ---------- brand intro (assets/intro.js) ---------- */
html.intro-on, html.intro-on body { background: #0b0d14; }
html.intro-on body > :not(.brand-intro) { visibility: hidden; }
.brand-intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #0b0d14; cursor: pointer;
  transition: opacity 320ms var(--ease-out), filter 320ms var(--ease-out);
}
.brand-intro.leaving { opacity: 0; filter: blur(6px); pointer-events: none; }
.brand-intro .stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.brand-intro svg { position: relative; width: 168px; height: 168px; overflow: visible; }
.brand-intro .ring {
  fill: none; stroke: #6e51f2; stroke-width: 30; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transform: rotate(-90deg); transform-origin: 256px 256px;
  animation: intro-dial 820ms var(--ease-out) forwards;
}
.brand-intro .inner {
  fill: none; stroke: #6e51f2; stroke-width: 10; opacity: 0;
  transform: scale(0.82); transform-origin: 256px 256px;
  animation: intro-settle 520ms var(--ease-out) 380ms forwards;
}
.brand-intro .play {
  fill: #6e51f2; stroke: #6e51f2; stroke-width: 18; stroke-linejoin: round;
  opacity: 0; transform: scale(0.4) rotate(-30deg); transform-origin: 262px 256px;
  animation: intro-pop 560ms cubic-bezier(0.34, 1.56, 0.64, 1) 640ms forwards;
}
.brand-intro .glow {
  position: absolute; left: 50%; top: 84px; width: 520px; height: 520px; margin-left: -260px; margin-top: -260px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(110, 81, 242, 0.5), rgba(110, 81, 242, 0.14) 60%, transparent);
  animation: intro-bloom 800ms var(--ease-out) 760ms forwards;
}
.brand-intro .word {
  position: relative; margin-top: 22px; color: #fafafa;
  font: 700 34px/1 var(--font-display); letter-spacing: -0.02em;
  opacity: 0; transform: translateY(14px);
  animation: intro-rise 420ms var(--ease-out) 1000ms forwards;
}
.brand-intro.reduce .ring { stroke-dashoffset: 0; }
.brand-intro.reduce .inner { opacity: 0.45; transform: none; }
.brand-intro.reduce .play, .brand-intro.reduce .word { opacity: 1; transform: none; }
.brand-intro.reduce * { animation: none !important; }
.brand-intro.reduce .glow { display: none; }
@keyframes intro-dial { to { stroke-dashoffset: 0; transform: rotate(270deg); } }
@keyframes intro-settle { to { opacity: 0.45; transform: scale(1); } }
@keyframes intro-pop { to { opacity: 1; transform: none; } }
@keyframes intro-bloom { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }


/* ---------- help page (support/) ---------- */
.help-hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 24rem at 85% -10%, color-mix(in oklch, var(--primary) 12%, transparent), transparent 70%),
    color-mix(in oklch, var(--muted) 45%, var(--background));
}
.help-hero .container { padding-top: 56px; padding-bottom: 48px; }
@media (min-width: 1024px) { .help-hero .container { padding-top: 80px; padding-bottom: 64px; } }
.help-hero h1 { margin: 0 0 12px; font: 700 clamp(36px, 5.2vw, 60px)/1.04 var(--font-display); letter-spacing: -0.035em; }
.help-hero .lede { margin-bottom: 28px; }
.help-search {
  position: relative; display: flex; align-items: center; max-width: 640px;
  border: 1px solid var(--input); border-radius: var(--radius); background: var(--background);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  transition: border-color 150ms, box-shadow 150ms;
}
.help-search:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 25%, transparent); }
.help-search > .icon { position: absolute; left: 14px; color: var(--muted-foreground); }
.help-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 48px 0 42px; border: 0; background: transparent;
  color: var(--foreground); font: 400 16px var(--font-sans); outline: none;
}
.help-search input::placeholder { color: var(--muted-foreground); }
.help-search input::-webkit-search-cancel-button { display: none; }
.help-search kbd { position: absolute; right: 12px; }
.help-count { min-height: 1.5em; margin: 10px 0 0; font-size: 14px; color: var(--muted-foreground); }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center;
  font: 500 12px/18px var(--font-mono); color: var(--muted-foreground);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--card);
}

/* Help reuses the policy grid, without section numbers. */
.help .prose h2::before { content: none; }
.help .prose > section > :not(h2) { margin-left: 0; }
.help .prose > section > p { color: var(--muted-foreground); margin: 0 0 8px; }
.help .toc a::before { content: none; }
.help .prose h2 + .accordion, .help .prose h2 + p + .accordion { border-top: 0; }
.help details { scroll-margin-top: 80px; }
.help .panel .table-wrap table { min-width: 0; }
.help .panel .alert { margin: 0 0 12px; }
.help-empty { padding: 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted-foreground); }
.copy-link { margin: 6px 0 0 -10px; color: var(--muted-foreground); }
.copy-link:hover { color: var(--foreground); }
.copy-link .icon { width: 14px; height: 14px; }
.contact h3 { margin: 0 0 4px; font-size: 18px; }

/* ---------- download ---------- */
.dl-grid { display: grid; gap: 16px; margin: 8px 0 24px; }
@media (min-width: 768px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.dl-card h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.dl-card p { margin: 0; }
.dl-card .actions { margin-top: auto; }
.dl-card .btn { align-self: flex-start; }
.dl-recommended { border-color: color-mix(in oklch, var(--primary) 45%, var(--border)); }
.dl-tag { position: absolute; top: 20px; right: 20px; color: var(--primary); }
.dl-note { color: var(--muted-foreground) !important; font-size: 14px; }
.dl-size { opacity: 0.7; font-weight: 400; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- changelog ---------- */
.release { padding-top: 8px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 48px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.release-head h2 { margin: 0; padding: 0; border: 0; }
.release-head time { color: var(--muted-foreground); font-size: 15px; }
.release h3 { display: flex; align-items: center; gap: 8px; }
.release h3 .icon { color: var(--primary); }
.dl-one .dl-meta { font-weight: 400; opacity: 0.8; }
.dl-one .dl-meta:empty { display: none; }
.dl-other a { color: var(--link); font-weight: 500; }
.dl-hint { display: block; }

/* The guide: the same numbered layout, lettered A to Z. */
.guide .toc a::before { content: counter(toc, upper-alpha); }
.guide .prose h2::before { content: counter(sec, upper-alpha); }

/* Three header links (Download, Guide, Support) fit a 360px phone. */
@media (max-width: 400px) {
  .site-header .container { gap: 8px; }
  .nav a { padding: 6px 6px; font-size: 13px; }
}
