@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2-variations");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: light-dark(#fbf8f3, #151412);
  --surface: light-dark(#ffffff, #1f1d1a);
  --surface-2: light-dark(#f3eee6, #282521);
  --ink: light-dark(#1c1a17, #f3efe8);
  --muted: light-dark(#625c53, #aaa398);
  --line: light-dark(rgba(46, 36, 20, 0.13), rgba(255, 240, 220, 0.13));
  --shadow: light-dark(rgba(60, 45, 20, 0.14), rgba(0, 0, 0, 0.5));
  --on-accent: light-dark(#ffffff, #10131a);
  --warn: light-dark(#a15c00, #f0b45a);
  --stop: light-dark(#b3261e, #ff8a80);
  --ok: light-dark(#23803d, #6fcf87);

  --serif: "Fraunces Variable", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 28px;
  --nav-h: 60px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Accent is re-resolved wherever an app sets its own colours. */
:root,
[style*="--app-light"] {
  --accent: light-dark(var(--app-light, #1d5bd8), var(--app-dark, #7aa7ff));
  --accent-tint: color-mix(in oklab, var(--accent) 9%, var(--surface));
  --accent-line: color-mix(in oklab, var(--accent) 28%, transparent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 480; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h1 em { font-style: italic; font-weight: 380; color: var(--accent); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 23px; line-height: 1.2; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 780px; }
.section { padding-top: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lede { margin-top: 16px; }
.eyebrow {
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
h2 + .lede { margin-top: 16px; }
.fine { font-size: 14px; }
.fine a, .prose a { color: var(--accent); text-underline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-line); }
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn img { border-radius: 6px; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin 0.15s ease; }
a:hover > .link-arrow::after, a.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.theme-toggle, .nav-toggle {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle { margin-left: 8px; }
.theme-toggle svg, .nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.nav-toggle { display: none; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 112px); text-align: center; display: grid; justify-items: center; gap: 24px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 300px at 32% 30%, color-mix(in oklab, #1d5bd8 16%, transparent), transparent 70%),
    radial-gradient(420px 300px at 68% 36%, color-mix(in oklab, #2f9a4a 14%, transparent), transparent 70%);
}
.hero h1 { max-width: 13ch; }
.hero .lede { max-width: 640px; }
.hero .actions { justify-content: center; }
.hero-icons { display: flex; justify-content: center; margin-bottom: 4px; }
.hero-icons img {
  width: clamp(88px, 12vw, 128px); height: auto;
  margin-inline: -10px;
  transform: rotate(calc((var(--i) - 0.5) * 14deg)) translateY(calc(var(--i) * 6px));
  filter: drop-shadow(0 18px 22px var(--shadow));
}

/* ---------- App bands (home) ---------- */
.app-bands { display: grid; gap: 28px; }
.coming-soon { margin-top: 28px; padding: 22px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.app-band {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: var(--accent-tint); border: 1px solid var(--accent-line); border-radius: var(--radius);
  overflow: hidden;
}
.app-band.is-flipped { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.app-band.is-flipped .app-band-copy { order: 2; }
.app-band-copy { display: grid; gap: 14px; justify-items: start; }
.app-band h3 { font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -0.03em; }
.app-band h3 a { text-decoration: none; }
.app-band .eyebrow { margin: 6px 0 -6px; }
.app-band-tagline { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); }
.app-band .actions { margin-top: 8px; }
.app-icon { border-radius: 22%; filter: drop-shadow(0 10px 14px var(--shadow)); }
.app-icon-xl { width: 144px; }
.ticks { display: grid; gap: 6px; margin-top: 2px; }
.ticks li { padding-left: 26px; position: relative; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px;
  border-left: 2.2px solid var(--accent); border-bottom: 2.2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- App window mockups ---------- */
.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px var(--shadow), 0 2px 6px var(--shadow);
  font-size: 13.5px; line-height: 1.4; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-title { font-weight: 600; color: var(--muted); font-size: 13px; }
.window-body { display: grid; grid-template-columns: 1.05fr 1fr; }
.window-body > * { padding: 16px; min-width: 0; }
.window-body > * + * { border-left: 1px solid var(--line); }

.tree { display: grid; gap: 2px; align-content: start; }
.tree li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 7px; }
.tree span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tree .is-folder { font-weight: 650; }
.tree .depth-1 { margin-left: 14px; }
.tree .is-flagged { background: color-mix(in oklab, var(--warn) 12%, transparent); }
.tree .is-flagged em { color: var(--warn); font-weight: 600; }
.tree .is-blocked { background: color-mix(in oklab, var(--stop) 10%, transparent); }
.tree .is-blocked span { text-decoration: line-through; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.tree .is-blocked em { color: var(--stop); font-weight: 600; }

.check { display: grid; gap: 10px; align-content: start; background: color-mix(in oklab, var(--surface-2) 50%, var(--surface)); }
.check-title { font-weight: 700; font-size: 14px; }
.check-row { padding: 9px 11px 9px 13px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--row); display: grid; gap: 2px; }
.check-row b { font-weight: 650; }
.check-row span { color: var(--muted); font-size: 12.5px; }
.check-row.is-warn { --row: var(--warn); }
.check-row.is-stop { --row: var(--stop); }
.check-row.is-ok { --row: var(--ok); }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 13px; }

.tidy-label { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.tidy-figure { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; margin-top: 2px; }
.tidy-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.bars { display: grid; gap: 9px; margin-top: 16px; }
.bars li { display: grid; grid-template-columns: 82px 1fr auto; gap: 8px; align-items: center; }
.bars i { height: 8px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--accent); }
.bars em { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.treemap {
  display: grid; gap: 4px; min-height: 230px;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
}
.treemap i {
  font-style: normal; font-size: 11.5px; font-weight: 600; padding: 7px 8px; border-radius: 7px;
  background: color-mix(in oklab, var(--accent) var(--mix), var(--surface)); color: var(--ink); overflow: hidden;
}
.t1 { grid-area: 1 / 1 / 4 / 4; --mix: 46%; }
.t2 { grid-area: 1 / 4 / 3 / 7; --mix: 30%; }
.t3 { grid-area: 3 / 4 / 5 / 6; --mix: 22%; }
.t4 { grid-area: 4 / 1 / 5 / 3; --mix: 34%; }
.t5 { grid-area: 4 / 3 / 5 / 4; --mix: 15%; }
.t6 { grid-area: 3 / 6 / 4 / 7; --mix: 12%; }
.t7 { grid-area: 4 / 6 / 5 / 7; --mix: 8%; }

/* ---------- Principles / trust ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: p; }
.principles li { padding: 28px 24px 0 0; counter-increment: p; }
.principles li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.principles li::before { content: "0" counter(p); display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); margin-bottom: 14px; }
.principles h3 { font-size: 21px; margin-bottom: 8px; }
.principles p { font-size: 16px; }

.trust-panel, .detail-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius);
}
.trust-panel { background: var(--ink); color: var(--bg); }
.trust-panel .eyebrow { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.trust-panel p { color: color-mix(in oklab, var(--bg) 76%, transparent); font-size: 19px; margin-bottom: 18px; }
.trust-panel .link-arrow { color: var(--bg); }
.detail-panel { background: var(--surface); border: 1px solid var(--line); }
.detail-panel p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-line); font-size: 14px; font-weight: 600; font-family: var(--mono); }

.closing { text-align: center; display: grid; justify-items: center; gap: 24px; }
.closing .actions { justify-content: center; }

/* ---------- Product pages ---------- */
.product-hero { padding-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; position: relative; }
.product-hero::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 480px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 320px at 50% 28%, color-mix(in oklab, var(--accent) 17%, transparent), transparent 70%);
}
.product-hero h1 { font-size: clamp(38px, 5.6vw, 66px); max-width: 16ch; }
.product-hero .eyebrow { margin: 0; }
.product-hero .lede { max-width: 620px; }
.product-hero .actions { justify-content: center; margin-top: 6px; }
.product-visual { width: min(100%, 860px); min-width: 0; margin-top: 32px; }
.product-visual .window { font-size: 14.5px; }
.product-visual video { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px var(--shadow), 0 2px 6px var(--shadow); background: var(--surface); }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; font-size: 15px; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 650; font-size: 13px; }

.page-hero { padding-top: clamp(56px, 8vw, 104px); display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.page-hero .eyebrow { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 16px; }

.tiers { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: start; }
.tier { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; justify-items: start; }
.tier-pro { background: var(--accent-tint); border-color: var(--accent-line); }
.tier-head h3 { font-size: 32px; }
.modules { display: grid; gap: 12px; width: 100%; }
.tier-pro .modules { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.modules li { display: grid; align-content: start; padding-left: 24px; position: relative; }
.modules li::before {
  content: ""; position: absolute; left: 1px; top: 0.5em; width: 12px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.modules b { font-weight: 650; font-size: 16px; }
.modules span { color: var(--muted); font-size: 14.5px; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 36px 22px 0; }

.cta-panel {
  display: grid; justify-items: center; text-align: center; gap: 18px;
  padding: clamp(40px, 7vw, 88px) 24px; border-radius: var(--radius);
  background: var(--accent-tint); border: 1px solid var(--accent-line);
}
.cta-panel .actions { justify-content: center; }

.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.app-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: 22px; text-decoration: none;
  background: var(--accent-tint); border: 1px solid var(--accent-line); transition: transform 0.15s ease;
}
.app-card:hover { transform: translateY(-2px); }
.app-card .app-icon { width: 72px; flex: none; }
.app-card .eyebrow { margin-bottom: 4px; }
.app-card p { margin: 6px 0 12px; font-size: 16px; }

/* ---------- Download / prose ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 24px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; font-size: 18px; }
.steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 700; font-size: 14px;
}
.release { margin-top: 24px; }
.release h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.release h3 span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.release ul, .prose ul, .safety-apps ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; color: var(--muted); }
.oss { margin-top: 20px; border-top: 1px solid var(--line); }
.oss li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oss strong span { font-weight: 400; color: var(--muted); margin-left: 4px; }
.oss p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.oss a { flex: none; font-size: 14px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose > h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose strong, .safety-apps strong { color: var(--ink); }
.prose ul + p { margin-top: 14px; }
.eyebrow a { text-decoration: none; }
.post-meta { font-size: 15px; }
.post-list { display: grid; }
.post-list li { padding: 28px 0; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list time { font-size: 14px; color: var(--muted); }
.post-list h2 { font-size: 28px; margin: 6px 0 8px; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }

.safety-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.safety-apps article { padding: 28px; border-radius: 22px; background: var(--accent-tint); border: 1px solid var(--accent-line); }
.safety-apps h3 { margin-top: 14px; }
.safety-apps h3 a { text-decoration: none; }
.safety-apps li { font-size: 16px; }
.callout { display: flex; gap: 20px; align-items: center; margin-top: 48px; padding: 28px; border-radius: 22px; background: var(--accent-tint); border: 1px solid var(--accent-line); }
.callout .app-icon { flex: none; width: 56px; }
.callout p { color: var(--ink); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(80px, 11vw, 144px); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; font-size: 15px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer li + li { margin-top: 9px; }
.site-footer li a { text-decoration: none; font-size: 15px; }
.site-footer li a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .app-band, .app-band.is-flipped, .trust-panel, .detail-panel, .tiers { grid-template-columns: 1fr; }
  .app-band.is-flipped .app-band-copy { order: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li { padding: 28px 24px 28px 0; }
  .principles li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .principles li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .nav-toggle { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 17px; }
  .theme-toggle { margin: 8px 0 0 6px; }
  .feature-grid, .safety-apps, .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 24px 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--line); }
  .window-body { grid-template-columns: 1fr; }
  .window-body > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .treemap { min-height: 180px; }
  .tier-pro .modules { grid-template-columns: 1fr; }
  .tier { padding: 24px; }
  .app-card, .callout { flex-direction: column; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
