/* F15: app token snapshot from ui/src/style.css (D-207).
   Self-hosted Latin fonts; SIL OFL licences in fonts/OFL-Geist.txt and fonts/OFL-SourceSerif4.txt. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks, so the swap does not shift layout. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Segoe UI"), local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Georgia");
  size-adjust: 96%;
  ascent-override: 96%;
  descent-override: 31%;
  line-gap-override: 0%;
}

:root {
  --scrollbar-thumb: #d4d4d8; /* thin light-grey scrollbars (Founder, ChatGPT-like) */
  --scrollbar-thumb-hover: #a1a1aa;
  /* colour: surfaces */
  --canvas: #f9f9f9;
  --surface: #ffffff;
  --subtle: #f5f5f6;
  --sunken: #f0f0f1;
  --border: #e5e5e7;
  --border-strong: #bcbcc3;
  /* colour: text */
  --text: #171717;
  --text-2: #52525b;
  --text-3: #6c6c75; /* metadata only, >= 12px; never body copy */
  --text-inverse: #ffffff;
  /* colour: ink (primary actions) */
  --ink: #171717;
  --ink-hover: #303033;
  /* colour: accent. --accent is text and links (AA on white); --accent-fill the lavender buttons with white text (B,
     D-209); --send-ready the send button (A). */
  --accent: #6a52c8;
  --accent-hover: #5a43b8;
  --accent-soft: #9b87e8;
  --accent-tint: #f4f1fd;
  --accent-tint-2: #e3dcfa;
  --accent-on-tint: #5640ad;
  --on-accent: #ffffff;
  --accent-fill: #9b87e8;
  --accent-fill-hover: #8a74e0;
  --send-empty: #d4d4d4;
  --send-ready: #b8a9f0;
  --send-ready-hover: #a998ec;
  --send-icon: #ffffff;
  --focus-color: #71717a;
  --toast-action: #e3dcfa; /* accent link on the ink toast */
  /* colour: semantic (never colour alone) */
  --positive: #2e6440;
  --positive-bg: #edf7f0;
  --warning: #80551a;
  --warning-bg: #fff8eb;
  --danger: #a42d2d;
  --danger-bg: #fff4f3;
  --info: #27476a;
  --info-bg: #f4f7fb;
  --safety: #624383;
  --safety-bg: #f7f4fb;
  --source-chip-bg: #f0f0f1;
  --source-chip-text: #3f3f46;
  --scrim: rgba(0, 0, 0, 0.3);
  --hover-wash: rgba(0, 0, 0, 0.045);
  --bubble: #f2f2f3;

  /* typography */
  --font-ui:
    "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-40: 40px;
  --fs-56: 56px;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.5;
  --lh-loose: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* spacing (4-based) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* radius */
  --r-chip: 6px;
  --r-control: 8px;
  --r-card: 12px;
  --r-sheet: 16px;
  --r-composer: 24px;
  --r-pill: 999px;

  /* elevation */
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);

  /* motion */
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 240ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* layout (ChatGPT web density, D-207) */
  --sidebar-w: 260px;
  --rail-w: 320px;
  --details-w: 360px;
  --chat-max-w: 768px;
  --topbar-h: 52px;
  --row-h: 36px;
  --send-size: 32px;
  --touch: 44px;
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color);

  font-family: var(--font-ui);
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --scrollbar-thumb: #3f3f46;
  --scrollbar-thumb-hover: #62626e;
  --canvas: #111113;
  --surface: #18181b;
  --subtle: #1c1c1f;
  --sunken: #232328;
  --border: #303036;
  --border-strong: #62626e;
  --text: #f4f4f5;
  --text-2: #c4c4cb;
  --text-3: #a0a0ab;
  --text-inverse: #171717;
  --ink: #f4f4f5;
  --ink-hover: #e4e4e7;
  --accent: #b8aaff;
  --accent-hover: #cfc6ff;
  --accent-soft: #9b87e8;
  --accent-tint: #241f3a;
  --accent-tint-2: #3a3260;
  --accent-on-tint: #cfc6ff;
  --on-accent: #ffffff;
  --accent-fill: #9b87e8;
  --accent-fill-hover: #a998ec;
  --send-empty: #3f3f46;
  --send-ready: #b8a9f0;
  --send-ready-hover: #c6b9f4;
  --send-icon: #ffffff;
  --focus-color: #a1a1aa;
  --toast-action: #5640ad;
  --positive: #9ed5b8;
  --positive-bg: #15271e;
  --warning: #efd19c;
  --warning-bg: #30291b;
  --danger: #f3b6b6;
  --danger-bg: #321e20;
  --info: #b9d5f5;
  --info-bg: #1b2633;
  --safety: #d9c4f0;
  --safety-bg: #2a2236;
  --source-chip-bg: #232328;
  --source-chip-text: #c4c4cb;
  --scrim: rgba(0, 0, 0, 0.6);
  --hover-wash: rgba(255, 255, 255, 0.06);
  --bubble: #27272b;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

/* Same dark values, applied from the system setting when no explicit theme is set. Keep in sync with the block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --scrollbar-thumb: #3f3f46;
    --scrollbar-thumb-hover: #62626e;
    --canvas: #111113;
    --surface: #18181b;
    --subtle: #1c1c1f;
    --sunken: #232328;
    --border: #303036;
    --border-strong: #62626e;
    --text: #f4f4f5;
    --text-2: #c4c4cb;
    --text-3: #a0a0ab;
    --text-inverse: #171717;
    --ink: #f4f4f5;
    --ink-hover: #e4e4e7;
    --accent: #b8aaff;
    --accent-hover: #cfc6ff;
    --accent-soft: #9b87e8;
    --accent-tint: #241f3a;
    --accent-tint-2: #3a3260;
    --accent-on-tint: #cfc6ff;
    --on-accent: #ffffff;
    --accent-fill: #9b87e8;
    --accent-fill-hover: #a998ec;
    --send-empty: #3f3f46;
    --send-ready: #b8a9f0;
    --send-ready-hover: #c6b9f4;
    --send-icon: #ffffff;
    --focus-color: #a1a1aa;
    --toast-action: #5640ad;
    --positive: #9ed5b8;
    --positive-bg: #15271e;
    --warning: #efd19c;
    --warning-bg: #30291b;
    --danger: #f3b6b6;
    --danger-bg: #321e20;
    --info: #b9d5f5;
    --info-bg: #1b2633;
    --safety: #d9c4f0;
    --safety-bg: #2a2236;
    --source-chip-bg: #232328;
    --source-chip-text: #c4c4cb;
    --scrim: rgba(0, 0, 0, 0.6);
    --hover-wash: rgba(255, 255, 255, 0.06);
    --bubble: #27272b;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-2: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-3: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
}

/* Public pages: no application shell or sidebar. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--s-6); }
body { margin: 0; font: var(--fs-16)/var(--lh-loose) var(--font-ui); }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 3px; }
/* D-221: focus is a 2px grey ring, drawn only for keyboard focus (:focus-visible). */
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-medium); line-height: var(--lh-tight); }
h1, h2, h3, p { margin-top: 0; }
strong { font-weight: var(--fw-semibold); }
.wrap {
  width: min(100%, 808px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  flex-direction: column;
}
main { flex: 1; min-width: 0; }
.skip-link {
  position: absolute;
  top: var(--s-2);
  left: var(--s-4);
  z-index: 2;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--touch);
  font-size: var(--fs-18);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark { width: 24px; height: 24px; display: block; border-radius: var(--r-chip); }
.wordmark, .wordmark:hover { color: var(--text); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); font-size: var(--fs-14); }
.top nav > a { display: inline-flex; min-height: var(--touch); align-items: center; text-decoration: none; }
.top nav > a:not(.button) { color: var(--text-2); }
.top nav > a:not(.button):hover { color: var(--text); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--touch);
  padding: var(--s-2) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: var(--fw-medium) var(--fs-14)/var(--lh-body) var(--font-ui);
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.button.primary { color: var(--text-inverse); background: var(--ink); }
.button.primary:hover { background: var(--ink-hover); }
.button.secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.button.secondary:hover { background: var(--subtle); border-color: var(--border-strong); }
/* D-220: the site's calls to action take T25 (white marketing pill, layered soft shadow; lifts 1px on hover, presses on
   click); dark mode uses T15 (graphite pill). Secondary stays the quiet outlined button. */
.button.primary {
  border-color: #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #171717;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.024), 0 4px 8px rgba(0, 0, 0, 0.03), 0 10px 22px -8px rgba(0, 0, 0, 0.094);
  transition: background var(--t-fast) var(--ease), box-shadow 160ms ease-out;
}
.button.primary:hover {
  background: #fafafa;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.03), 0 8px 16px rgba(0, 0, 0, 0.06), 0 14px 24px -8px rgba(0, 0, 0, 0.094);
}
.button.primary:active { background: #eee; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07); transition-duration: 100ms; }
:root[data-theme="dark"] .button.primary {
  border-color: #111;
  background: linear-gradient(180deg, #363636, #151515);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.21), 0 2px 2px rgba(0, 0, 0, 0.1), 0 6px 10px -5px rgba(0, 0, 0, 0.25);
}
:root[data-theme="dark"] .button.primary:hover { background: linear-gradient(#454545, #242424); }
:root[data-theme="dark"] .button.primary:active { background: linear-gradient(#181818, #242424); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.33); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button.primary {
    border-color: #111;
    background: linear-gradient(180deg, #363636, #151515);
    color: #fff;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.21), 0 2px 2px rgba(0, 0, 0, 0.1), 0 6px 10px -5px rgba(0, 0, 0, 0.25);
  }
  :root:not([data-theme="light"]) .button.primary:hover { background: linear-gradient(#454545, #242424); }
  :root:not([data-theme="light"]) .button.primary:active { background: linear-gradient(#181818, #242424); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.33); }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero { padding: var(--s-12) 0 var(--s-8); }
.hero h1 { font-size: var(--fs-40); letter-spacing: -0.025em; margin-bottom: var(--s-4); overflow-wrap: anywhere; }
.lead { color: var(--text-2); font-size: var(--fs-18); margin-bottom: var(--s-4); }
.fineprint, .eyebrow, .beta-status { font: var(--fs-12)/var(--lh-loose) var(--font-mono); color: var(--text-3); }
.fineprint { margin-bottom: 0; }
.eyebrow { margin-bottom: var(--s-3); }
.home { display: grid; align-items: center; }
.home .hero { padding: 96px 0; text-align: center; }
.home h1 { max-width: 20ch; margin: 0 auto var(--s-6); font-size: var(--fs-56); font-weight: var(--fw-regular); }
.home .lead { max-width: 50ch; margin: 0 auto var(--s-8); }
.home .actions { justify-content: center; }
.beta-status { margin: var(--s-6) 0 0; }
.beta-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: var(--s-2); border-radius: var(--r-pill); background: var(--accent-fill); vertical-align: middle; }
.document { width: 100%; max-width: 760px; margin: 0 auto; padding-bottom: var(--s-16); }
article > h2 { font-size: var(--fs-28); letter-spacing: -0.02em; margin: var(--s-10) 0 var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--border); overflow-wrap: anywhere; }
article h3 { font-size: var(--fs-22); }
article p { margin-bottom: var(--s-5); }
article li { margin: var(--s-3) 0; padding-left: 2px; }
article ul, article ol { padding-left: var(--s-6); }
article { overflow-wrap: anywhere; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control); padding: 0 var(--s-4); margin-bottom: var(--s-8); }
summary { cursor: pointer; min-height: var(--touch); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-14); font-weight: var(--fw-medium); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--text-2); font-size: var(--fs-18); }
details[open] summary::after { content: "−"; }
.contents nav { padding: var(--s-2) 0 var(--s-4); }
.contents ol { margin: 0; padding-left: 0; list-style: none; }
.contents li a { display: inline-block; padding: var(--s-2) 0; min-height: var(--touch); }
.data-list { margin: var(--s-6) 0 var(--s-8); }
.data-list > div { display: grid; grid-template-columns: minmax(130px, 1fr) 3fr; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--border); }
.data-list dt { font-weight: var(--fw-semibold); }
.data-list dd { min-width: 0; margin: 0; }
.data-list dd span { display: block; margin-bottom: var(--s-2); }
.data-list dt:has(+ dd > span) { font-family: var(--font-mono); font-size: var(--fs-22); }
.site-footer { padding: var(--s-6) 0 var(--s-8); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-12); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: var(--s-2) 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.footer-bottom p { font-family: var(--font-mono); }
.operator { max-width: 65ch; }
/* Review material stays visible in the editable drafts. The existing build removes it. */
.draft-notice { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-control); background: var(--subtle); padding: var(--s-3) var(--s-4); font-size: var(--fs-13); color: var(--text-2); }
.draft-notice strong { color: var(--text); }
.review-note { border-left: 3px solid var(--accent-fill); background: var(--subtle); padding: var(--s-3) var(--s-4); margin: var(--s-5) 0; color: var(--text-2); font-size: var(--fs-14); overflow-wrap: anywhere; }
.badge { color: var(--accent-on-tint); background: var(--accent-tint); padding: var(--s-1) var(--s-2); border-radius: var(--r-pill); font-size: var(--fs-12); }
@media (max-width: 600px) {
  .wrap { padding: 0 var(--s-4); }
  .top { gap: var(--s-2); }
  .top nav { gap: var(--s-3); }
  .top .button { padding-inline: var(--s-3); }
  .hero { padding: var(--s-8) 0 var(--s-6); }
  .hero h1 { font-size: 36px; }
  .home .hero { padding: var(--s-16) 0; }
  .home h1 { font-size: var(--fs-40); }
  .lead { font-size: var(--fs-16); }
  .document { padding-bottom: var(--s-10); }
  article > h2 { margin-top: var(--s-8); }
  .data-list > div { grid-template-columns: 1fr; gap: var(--s-2); }
}
@media (max-width: 360px) {
  .top { flex-wrap: wrap; padding-block: var(--s-2); }
  .top nav { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
@media (forced-colors: active) { .button { border: 1px solid ButtonText; } }
@media print {
  body { color: #171717; background: white; }
  .top, .skip-link, .contents { display: none; }
  .wrap { width: 100%; padding: 0; }
  a { color: inherit; }
}
