/* ==========================================================================
   Short Budgets — design system
   Tokens → base → layout → components → page patterns → utilities.
   Every app page sets <body data-app="…"> to pick up its own accent colour.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Neutrals */
  --bg: #F7F8F6;
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-muted: #F1F3EF;
  --surface-sunken: #ECEFE9;
  --text: #15201A;
  --text-muted: #56635A;
  --text-subtle: #7A867E;
  --line: #E1E6DE;
  --line-strong: #C9D1C5;

  /* Brand (Short Budgets meadow green) */
  --brand: #2F7D4F;
  --brand-strong: #236340;
  --on-brand: #FFFFFF;

  /* Accent defaults to the brand; app pages override these */
  --accent: var(--brand);
  --accent-strong: var(--brand-strong);
  --on-accent: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 28%, var(--line));

  /* Status */
  --ok: #1F7A4A;
  --ok-soft: #E6F4EC;
  --warn: #9A5B00;
  --warn-soft: #FFF4E0;
  --danger: #B42318;
  --danger-soft: #FDECEA;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .06);
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 4px 16px rgba(16, 24, 20, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 20, .04), 0 12px 32px rgba(16, 24, 20, .10);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);

  --wrap: 1120px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1411;
    --bg-elevated: #141B17;
    --surface: #161E19;
    --surface-muted: #1B241F;
    --surface-sunken: #111814;
    --text: #E8EFE9;
    --text-muted: #A6B4AA;
    --text-subtle: #7F8D84;
    --line: #26322B;
    --line-strong: #34433A;
    --brand: #5CC28A;
    --brand-strong: #7FD3A4;
    --on-brand: #06140C;
    --on-accent: #0A110D;
    --ok: #6FD39C;
    --ok-soft: #13291D;
    --warn: #F2B65A;
    --warn-soft: #2B2112;
    --danger: #F28B82;
    --danger-soft: #2E1715;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* Per-app accents (light) */
[data-app="peepdoku"] { --accent: #A15C07; --accent-strong: #864B04; }
[data-app="birdoku"]  { --accent: #C2410C; --accent-strong: #9A3412; }
[data-app="arrowz"]   { --accent: #4F46E5; --accent-strong: #3F37C9; }
[data-app="rollbook"] { --accent: #1E40AF; --accent-strong: #1E3A8A; }
[data-app="laraib"]   { --accent: #0F6B4E; --accent-strong: #0B5540; --accent-2: #B8902E; }

/* Per-app accents (dark) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-app="peepdoku"] { --accent: #F5C04A; --accent-strong: #FAD47A; }
  :root:not([data-theme="light"]) [data-app="birdoku"]  { --accent: #FB8F5A; --accent-strong: #FDAC82; }
  :root:not([data-theme="light"]) [data-app="arrowz"]   { --accent: #A5A8FF; --accent-strong: #C3C5FF; }
  :root:not([data-theme="light"]) [data-app="rollbook"] { --accent: #8DB4FF; --accent-strong: #B1CBFF; }
  :root:not([data-theme="light"]) [data-app="laraib"]   { --accent: #5ED3A6; --accent-strong: #8AE2C0; --accent-2: #E3C46E; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 650; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

h1, h2, h3, h4 { color: var(--text); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.25em; margin: 0 0 14px; }
li + li { margin-top: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

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

/* ---------- Global header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #3E9A63, #23603E); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0; box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
}
.global-nav { display: flex; align-items: center; gap: 4px; }
.global-nav a {
  color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 550;
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.global-nav a:hover { color: var(--text); background: var(--surface-muted); }
.global-nav a[aria-current] { color: var(--text); }
.global-nav .nav-cta { color: var(--on-brand); background: var(--brand); margin-left: 6px; }
.global-nav .nav-cta:hover { color: var(--on-brand); background: var(--brand-strong); }
@media (max-width: 560px) {
  .global-nav .nav-hide-sm { display: none; }
  .global-nav a { padding: 8px 9px; }
}

/* ---------- App sub-navigation ---------- */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.subnav-app {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font-weight: 650; color: var(--text); text-decoration: none; font-size: 15px;
  padding-right: 18px; border-right: 1px solid var(--line);
}
.subnav-app:hover { color: var(--text); }
.subnav-app img { width: 26px; height: 26px; border-radius: 7px; }
.subnav nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 24px; }
.subnav nav::-webkit-scrollbar { display: none; }
.subnav nav a {
  position: relative; white-space: nowrap; text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 550; padding: 15px 10px;
}
.subnav nav a:hover { color: var(--text); }
.subnav nav a[aria-current="page"] { color: var(--accent); }
.subnav nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent);
}
@media (max-width: 560px) { .subnav-app span { display: none; } .subnav-app { padding-right: 12px; } .subnav .wrap { gap: 8px; } }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--text-subtle); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 550; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-subtle); background: var(--surface-muted); }
.btn-ghost { color: var(--accent); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--accent-strong); text-decoration: underline; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Badges & pills ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.badge-neutral { background: var(--surface-muted); color: var(--text-muted); border-color: var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li { margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; color: var(--text-muted);
  padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-bottom: 10px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-title h2 { font-size: 20px; margin: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.card-icon svg { width: 18px; height: 18px; }
@media (min-width: 720px) { .card { padding: 28px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head p { margin: 6px 0 0; color: var(--text-muted); max-width: 60ch; }
@media (min-width: 900px) { .section { padding: 80px 0; } }

/* ---------- Home: hero ---------- */
.home-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, #4F46E5 8%, transparent), transparent 70%),
    var(--bg-elevated);
}
.home-hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.home-hero h1 { max-width: 15ch; }
.home-hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-muted); max-width: 54ch; margin: 18px 0 28px; }
@media (min-width: 900px) {
  .home-hero .wrap { grid-template-columns: 1.15fr .85fr; padding-top: 88px; padding-bottom: 88px; }
}
.icon-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 400px; margin: 0 auto; }
.icon-mosaic a {
  grid-column: span 2; display: block; border-radius: 24%; overflow: hidden; box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease; aspect-ratio: 1;
}
.icon-mosaic a:nth-child(4) { grid-column: 2 / span 2; }
.icon-mosaic a:nth-child(2) { transform: translateY(-14px); }
.icon-mosaic a:hover { transform: translateY(-4px); }
.icon-mosaic a:nth-child(2):hover { transform: translateY(-18px); }
.icon-mosaic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Home: stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-top: -1px; }
.stats > div { padding: 20px 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; }
.stats > div:nth-child(-n+2) { border-top: 0; }
.stats > div:nth-child(2n+1) { border-left: 0; }
.stats dt { font-size: 13px; color: var(--text-muted); font-weight: 550; order: 2; }
.stats dd { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stats > div { display: flex; flex-direction: column-reverse; }
@media (min-width: 820px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { border-top: 0; }
  .stats > div:nth-child(2n+1) { border-left: 1px solid var(--line); }
  .stats > div:first-child { border-left: 0; }
}
.stats-band { padding-top: 32px; }

/* ---------- App cards (home) ---------- */
.app-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .app-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.app-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.app-card:focus-within { box-shadow: var(--ring), var(--shadow); }
.app-card-head { display: flex; align-items: center; gap: 14px; }
.app-card-head img { width: 60px; height: 60px; border-radius: 15px; flex: none; box-shadow: var(--shadow-sm); }
.app-card h3 { font-size: 19px; margin: 0 0 4px; }
.app-card h3 a { color: var(--text); text-decoration: none; }
.app-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole card clickable */
.app-card h3 a:focus-visible { outline: none; }
.app-card p { color: var(--text-muted); margin: 0; font-size: 15px; }
.app-card .tagline { font-size: 13.5px; color: var(--text-subtle); }
.app-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.app-card-foot .more { color: var(--accent); font-weight: 600; }
.app-card-foot .more::after { content: " →"; }
.app-card-foot .sub { position: relative; z-index: 1; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.app-card-foot .sub:hover { color: var(--accent); text-decoration: underline; }
.app-card.app-card-lg { padding: 26px; }
@media (min-width: 900px) {
  .app-card.app-card-lg .app-card-head img { width: 72px; height: 72px; border-radius: 18px; }
  .app-card.app-card-lg h3 { font-size: 21px; }
}

/* ---------- Data table (privacy centre) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); font-weight: 650; background: var(--surface-muted); }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-muted); }
table.data .app-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
table.data .app-cell img { width: 32px; height: 32px; border-radius: 8px; }
table.data .na { color: var(--text-subtle); }

/* ---------- Contact panel ---------- */
.contact-panel {
  display: grid; gap: 24px; align-items: center;
  border-radius: var(--radius-xl); padding: 32px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.contact-panel h2 { margin-bottom: 8px; }
.contact-panel p { color: var(--text-muted); margin: 0; }
@media (min-width: 820px) { .contact-panel { grid-template-columns: 1fr auto; padding: 40px 44px; } }

/* ---------- App page hero ---------- */
.app-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 360px at 90% -20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--bg-elevated)), var(--bg-elevated));
}
.app-hero .wrap { padding-top: 28px; padding-bottom: 48px; }
.app-hero-grid { display: grid; gap: 24px; align-items: start; }
.app-hero-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.app-hero h1 { margin-bottom: 6px; }
.app-hero .tagline { font-size: 18px; color: var(--text-muted); margin: 0 0 16px; font-weight: 500; }
.app-hero .lead { font-size: 17px; max-width: 66ch; color: var(--text); margin: 0 0 22px; }
.app-hero .pills { margin-bottom: 26px; }
@media (min-width: 720px) {
  .app-hero .wrap { padding-bottom: 64px; }
  .app-hero-grid { grid-template-columns: auto 1fr; gap: 32px; }
  .app-hero-icon { width: 128px; height: 128px; border-radius: 30px; }
}

/* ---------- Two-column page body ---------- */
.page-body { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 72px; }
.page-body > * { min-width: 0; }
.stack { display: grid; gap: 20px; align-content: start; }
@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 56px; }
  .page-body aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* Rules list (how to play) */
.rules { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: rule; display: grid; gap: 10px; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; margin: 0; }
.rules li::before {
  content: counter(rule); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); font-weight: 700; font-size: 14px;
}
.rules li span { padding-top: 3px; }

/* Callouts */
.callout {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--accent-line);
  background: var(--accent-soft); color: var(--text); font-size: 15px; margin: 0 0 14px;
}
.callout:last-child { margin-bottom: 0; }
.callout svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.callout p { margin: 0; }
.callout-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.callout-warn svg { color: var(--warn); }
.callout-neutral { background: var(--surface-muted); border-color: var(--line); color: var(--text-muted); }
.callout-neutral svg { color: var(--text-subtle); }

/* Feature grid */
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 4px 0 18px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature {
  padding: 18px; border-radius: var(--radius); background: var(--surface-muted); border: 1px solid var(--line);
}
.feature h3 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex: none; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* Sidebar resource list */
.side-card { padding: 22px; }
.side-card h2 { font-size: 15px; letter-spacing: 0; text-transform: none; margin-bottom: 4px; }
.side-card > p { color: var(--text-muted); font-size: 14.5px; }
.resource-list { list-style: none; padding: 0; margin: 8px -10px 0; }
.resource-list li { margin: 0; }
.resource-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 550; font-size: 15px;
}
.resource-list a::after { content: "→"; color: var(--text-subtle); transition: transform .15s, color .15s; }
.resource-list a:hover { background: var(--surface-muted); color: var(--accent); }
.resource-list a:hover::after { transform: translateX(3px); color: var(--accent); }
.resource-list li + li a { border-top: 1px solid var(--line); border-radius: 0; }
.resource-list li + li a:hover { border-radius: var(--radius-sm); }
.side-card .btn { width: 100%; margin-top: 6px; }
.fineprint { font-size: 13.5px; color: var(--text-subtle); margin-top: 14px; }

/* ---------- Document pages (privacy, deletion) ---------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--bg-elevated); }
.page-head .wrap { padding-top: 28px; padding-bottom: 36px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); max-width: 24ch; }
.page-head .subtitle { color: var(--text-muted); margin: 10px 0 0; font-size: 17px; max-width: 64ch; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; padding: 0; }
.meta div { margin: 0; }
.meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-subtle); font-weight: 650; }
.meta dd { margin: 2px 0 0; font-size: 14.5px; color: var(--text); font-weight: 500; }

.doc-layout { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 80px; }
.doc-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
}
.toc { font-size: 14px; }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 4px 8px 10px; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 10px; border-left: 2px solid var(--line); color: var(--text-muted); text-decoration: none; line-height: 1.4;
}
.toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-title { display: none; }
@media (min-width: 960px) {
  .toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; }
  .toc details { border: 0; background: none; }
  .toc summary { display: none; }
  .toc-title { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); font-weight: 650; margin: 0 0 10px 12px; }
  .toc ol { padding: 0; }
}

.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; padding-top: 4px; }
.prose > h2:first-child, .prose > section:first-child h2 { margin-top: 0; }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 a.anchor { color: var(--text-subtle); text-decoration: none; margin-left: 8px; opacity: 0; font-weight: 500; transition: opacity .15s; }
.prose h2:hover a.anchor, .prose h2 a.anchor:focus { opacity: 1; }
.prose ul li::marker { color: var(--accent); }
.prose .summary {
  padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.prose .summary h2 { margin-top: 0; font-size: 18px; }
.prose .summary p:last-child { margin-bottom: 0; }
.doc-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14.5px; color: var(--text-muted); }

/* Deletion page */
.option-grid { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 820px) { .option-grid { grid-template-columns: 1.2fr 1fr; } }
.option { position: relative; }
.option.recommended { border-color: var(--accent-line); box-shadow: var(--shadow); }
.option .badge { position: absolute; top: 22px; right: 22px; }
.option h2 { font-size: 20px; margin: 0 0 6px; padding-right: 110px; }
.option > p { color: var(--text-muted); }
.steps { list-style: none; padding: 0; margin: 18px 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 44px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 30px; bottom: 2px; width: 1px; background: var(--accent-line); }
.steps li:last-child { padding-bottom: 0; }

.ledger { display: grid; gap: 16px; }
@media (min-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger .card h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); margin: 0; font-size: 15px; color: var(--text-muted); }
.ledger li:first-child { border-top: 0; padding-top: 2px; }
.ledger li::before { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ledger li:first-child::before { top: 2px; }
.ledger .deleted li::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.ledger .kept li::before { content: "–"; background: var(--surface-sunken); color: var(--text-muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.status-dot.muted { background: var(--text-subtle); box-shadow: 0 0 0 4px var(--surface-sunken); }
.closing { margin-top: 24px; font-weight: 550; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .code { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.notfound h1 { margin: 10px auto 12px; }
.notfound p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elevated); font-size: 14.5px; color: var(--text-muted); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); padding-top: 48px; padding-bottom: 40px; }
.footer-brand { grid-column: 1 / -1; max-width: 34ch; }
.footer-brand p { margin: 12px 0 0; }
.site-footer h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); font-weight: 650; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; font-size: 13.5px; color: var(--text-subtle); }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- Utilities ---------- */
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media print {
  .site-header, .subnav, .site-footer, .toc, .skip, .btn-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc-layout { display: block; padding: 0; }
  .card, .prose .summary { box-shadow: none; border-color: #ccc; }
  a { color: #000; }
}
