/* kouroguard.com: tokens from docs/brand/tokens.json (docs/brand/STYLE_GUIDE.md).
   No scripts, no requests to any other host. Built by tools/site/build.py. */
@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --whitewash: #F7F6F1; --wall-shadow: #D9E1EA; --terracotta: #C4613F; --deep-terracotta: #A84E2E;
  --cobalt: #1F55C6; --aegean: #0B4A94; --salmon: #E58A6C; --ink: #1B1D21; --night: #111316;
  /* light roles */
  --bg: #F7F6F1; --fg: #1B1D21; --fg-muted: #43474F;
  --surface: #F2F1EC; --surface-raised: #FFFFFF; --line: #D9E1EA; --outline: #73777F;
  --primary: #1F55C6; --on-primary: #FFFFFF; --heading: #0B4A94; --link: #0B4A94;
  --guard: #C4613F; --guard-text: #A84E2E; --kouro: #1F55C6; --kouro-text: #1F55C6;
  --mark-bg: #FFF3B0; --mark-fg: #1B1D21;
  /* type and space */
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px; --max: 1040px; --radius: 12px; --radius-lg: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111316; --fg: #E3E2DE; --fg-muted: #C3C7CF;
    --surface: #191B1F; --surface-raised: #1D1F23; --line: #43474F; --outline: #8D9199;
    --primary: #AFC6FF; --on-primary: #0B2F73; --heading: #AFC6FF; --link: #9CC1EE;
    --guard-text: #F0A388; --kouro-text: #AFC6FF;
    --mark-bg: #5A4A00; --mark-fg: #E3E2DE;
  }
}
:root[data-theme="dark"] {
  --bg: #111316; --fg: #E3E2DE; --fg-muted: #C3C7CF;
  --surface: #191B1F; --surface-raised: #1D1F23; --line: #43474F; --outline: #8D9199;
  --primary: #AFC6FF; --on-primary: #0B2F73; --heading: #AFC6FF; --link: #9CC1EE;
  --guard-text: #F0A388; --kouro-text: #AFC6FF;
  --mark-bg: #5A4A00; --mark-fg: #E3E2DE;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

* { box-sizing: border-box; }
html { font-size: 112.5%; }            /* 18 px body */
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); line-height: 1.55; -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--heading); line-height: 1.15; margin: 0 0 0.4em; letter-spacing: 0.005em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1.25rem; }
@media (min-width: 720px) { h1 { font-size: 2.75rem; } h2 { font-size: 1.95rem; } }
p, li, dd { max-width: 66ch; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin: 0.25em 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.muted { color: var(--fg-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-raised); color: var(--fg); padding: 8px 12px; z-index: 1; }
.skip:focus { left: 8px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-family: var(--display); font-size: 1.35rem; }
.lockup svg { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.lockup .guard { color: var(--guard-text); }
nav.main { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav.main a { color: var(--fg); text-decoration: none; padding: 6px 0; }
nav.main a:hover, nav.main a[aria-current] { text-decoration: underline; text-underline-offset: 0.3em; }

/* the Greek-key band (one meander, wall shadow) */
.band {
  height: 28px; background-color: var(--line);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23000' stroke-width='14' stroke-linecap='round' stroke-linejoin='round' d='M0,7 H160 M0,153 H160 M16,153 V32 H144 V128 H48 V64 H112 V96 H80'/%3E%3C/svg%3E") repeat-x center / 28px 28px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23000' stroke-width='14' stroke-linecap='round' stroke-linejoin='round' d='M0,7 H160 M0,153 H160 M16,153 V32 H144 V128 H48 V64 H112 V96 H80'/%3E%3C/svg%3E") repeat-x center / 28px 28px;
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.secondary { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn.soon { border-color: var(--outline); color: var(--fg-muted); background: transparent; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }

/* hero (home) and page heads */
.hero { padding: 48px 0 40px; }
.hero .lede, .head .lede { font-size: 1.15rem; max-width: 36em; }
@media (min-width: 720px) { .hero { padding: 72px 0 56px; } .hero .lede, .head .lede { font-size: 1.25rem; } }
.promise { font-family: var(--display); font-size: 1.3rem; color: var(--heading); margin: 28px 0 0; max-width: 28em; }
.head { padding: 40px 0 8px; }
@media (min-width: 720px) { .head { padding: 56px 0 16px; } }

/* sections */
section { padding: 40px 0; }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 8px; }

/* app cards */
.apps { display: grid; gap: 20px; }
@media (min-width: 720px) { .apps { grid-template-columns: 1fr 1fr; } }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--line); }
.app.guard { border-top-color: var(--guard); }
.app.kouro { border-top-color: var(--kouro); }
.app header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.app header svg { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app h3 { font-size: 1.5rem; margin: 0; }
.app .for { color: var(--fg-muted); margin: 0; }
.app ul { margin-bottom: 16px; }

/* feature grid */
.grid { display: grid; gap: 16px 32px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.grid h3 { margin-bottom: 0.2em; }
.grid p { margin: 0; }

/* honest limits */
.limits { border-left: 4px solid var(--line); padding: 4px 0 4px 20px; }
.limits ul { margin-bottom: 0; }

/* two columns */
.cols { display: grid; gap: 24px 48px; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; } }

/* long-form pages (privacy, how it works, support, accessibility) */
.prose { padding-top: 8px; padding-bottom: 48px; }
.prose h1 { margin-bottom: 0.6em; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 20px; border-left: 4px solid var(--line); color: var(--fg-muted); }
.prose table { border-collapse: collapse; width: 100%; max-width: 66ch; margin: 0 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--fg-muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prose dl { margin: 0 0 1.5em; }
.prose dt { font-weight: 600; margin-top: 1em; }
.prose dd { margin: 0.25em 0 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.toc p { margin: 0 0 4px; font-weight: 600; }
.toc ul { margin: 0; columns: 2; column-gap: 24px; }
@media (max-width: 599px) { .toc ul { columns: 1; } }
.toc li { break-inside: avoid; }

/* the permission cards */
.perm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 20px; max-width: 72ch; }
.perm h3 { margin-top: 0; }
.perm .what { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 12px; }
.perm ul:last-child, .perm p:last-child { margin-bottom: 0; }

/* draft mode (test deploys only) */
.draft-banner { background: var(--mark-bg); color: var(--mark-fg); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; max-width: none; }
mark.placeholder { background: var(--mark-bg); color: var(--mark-fg); padding: 0 4px; border-radius: 4px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.95rem; color: var(--fg-muted); }
footer .wrap { display: grid; gap: 20px 48px; }
@media (min-width: 720px) { footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 4px 0; }
footer a { color: var(--fg); }

/* the coming-soon page (tools/build.py --splash): one screen, the hero fills it */
body.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.splash .hero { flex: 1; display: flex; align-items: center; }
body.splash .hero > .wrap { width: 100%; }
body.splash footer .wrap { display: block; }
body.splash footer p { margin: 0; }

/* no motion anywhere; forced colours keep the borders readable */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
  .btn { border: 1.5px solid ButtonText; }
  .band { display: none; }
}
@media print { .top nav, .skip, .band, footer ul { display: none; } body { background: #fff; color: #000; } }

/* ---------- direction A: Whitewash (default tokens) ---------- */

/* ---------- direction B: Aegean night: a dark hero on a light page ---------- */
.dir-b .hero {
  --bg: #111316; --fg: #E3E2DE; --fg-muted: #C3C7CF; --heading: #AFC6FF; --primary: #AFC6FF; --on-primary: #0B2F73; --link: #9CC1EE; --line: #43474F;
  background: var(--bg); color: var(--fg); padding-top: 64px; padding-bottom: 64px;
}
.dir-b .top { background: #111316; border-bottom-color: #43474F; --heading: #E3E2DE; --guard-text: #F0A388; --fg: #E3E2DE; }
.dir-b .hero .promise { color: #F0A388; }
.dir-b .band.after-hero { background-color: #43474F; }
@media (min-width: 900px) { .dir-b .hero .wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; } }
.hero-art { display: none; }
/* The two app icons: a small row under the buttons on phones, large beside the text on wide screens. */
.dir-b .hero-art { display: flex; gap: 16px; margin-top: 32px; }
.dir-b .hero-art svg { width: 72px; height: 72px; border-radius: 18px; }
@media (min-width: 900px) { .dir-b .hero-art { gap: 24px; margin-top: 0; justify-content: center; } .dir-b .hero-art svg { width: 150px; height: 150px; border-radius: 36px; } }
/* In dark mode the page is night already, so the hero and the bar go deep Aegean to stay a distinct band. */
@media (prefers-color-scheme: dark) {
  .dir-b:not([data-theme="light"]) .hero, .dir-b:not([data-theme="light"]) .top { --bg: #0B1F3F; background: #0B1F3F; }
  .dir-b:not([data-theme="light"]) .top { border-bottom-color: #2A4572; }
  .dir-b:not([data-theme="light"]) .band.after-hero { background-color: #2A4572; }
}
.dir-b[data-theme="dark"] .hero, .dir-b[data-theme="dark"] .top { --bg: #0B1F3F; background: #0B1F3F; }
.dir-b[data-theme="dark"] .top { border-bottom-color: #2A4572; }
.dir-b[data-theme="dark"] .band.after-hero { background-color: #2A4572; }

/* ---------- direction C: Marble: white surfaces, deep blue, hairlines ---------- */
.dir-c { --surface: #FFFFFF; --heading: #0B4A94; --primary: #0B4A94; }
@media (prefers-color-scheme: dark) { .dir-c:not([data-theme="light"]) { --surface: #1D1F23; --heading: #AFC6FF; --primary: #AFC6FF; } }
.dir-c .hero { text-align: center; padding-top: 64px; }
.dir-c .hero .lede, .dir-c .hero .promise, .dir-c .hero h1 { margin-left: auto; margin-right: auto; }
.dir-c .hero h1 { font-size: 2.6rem; max-width: 18em; }
@media (min-width: 720px) { .dir-c .hero h1 { font-size: 3.4rem; } }
.dir-c .hero .actions { justify-content: center; }
.dir-c .hero .promise { position: relative; padding-top: 20px; }
.dir-c .hero .promise::before { content: ""; position: absolute; top: 0; left: 50%; width: 56px; margin-left: -28px; height: 3px; background: var(--terracotta); }
.dir-c .band { display: none; }
.dir-c section { border-top: 1px solid var(--line); }
.dir-c .app { border-top-width: 1px; border-top-color: var(--line); }
.dir-c .app header svg { width: 56px; height: 56px; border-radius: 14px; }
.dir-c .grid h3 { font-size: 1.15rem; }
.dir-c .grid > div { border-top: 1px solid var(--line); padding-top: 12px; }
