/* The public page, on the product's own tokens.
 *
 * A separate stylesheet rather than a <style> block so the page can be served under a
 * policy with no `'unsafe-inline'` — the same policy the application runs under, and the
 * one `tests/test_deploy_policy.py` enforces. The tokens are a subset of
 * `frontend/src/design/tokens.css`: the same palette taken from the mark, so signing in
 * does not cross a visual border any more than it crosses a language one.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/app/fonts/archivo-700-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: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/app/fonts/archivo-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/app/fonts/ibm-plex-sans-400-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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/app/fonts/ibm-plex-sans-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/app/fonts/ibm-plex-mono-400-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;
}

:root {
  --void: #060911;
  --hull: #0e1626;
  --hull-2: #141f33;
  --edge: #1e2b45;
  --steel: #7c93b5;
  --steel-dim: #5a6e8c;
  --chrome: #dce6f4;
  --gold: #f2b024;
  --gold-soft: #f2b0241a;
  --gold-line: #f2b02455;
  /* Gold as a *surface* is a different token from gold as *ink*, and conflating them is
     the bug this pair exists to prevent. On a light ground `--gold` is darkened so it has
     contrast as text; filling a button with that darkened gold and then putting near-black
     text on it leaves two dark colours on top of each other. A filled element takes
     `--gold-surface` and `--gold-ink`; text and borders take `--gold`. */
  --gold-surface: #f2b024;
  --gold-ink: #0b0f18;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --void: #eef1f7;
    --hull: #ffffff;
    --hull-2: #f5f8fc;
    --edge: #cfd8e7;
    --steel: #5a6e8c;
    --steel-dim: #7c8ca6;
    --chrome: #0c1424;
    --gold: #9c6704;
    --gold-soft: #9c670412;
    --gold-line: #9c670455;
    --gold-surface: #e5a413;
    --gold-ink: #17130a;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--chrome);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
  padding: 40px 0 80px;
}

/* ── Masthead ────────────────────────────────────────────────────────────────────── */

.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 56px;
}

.masthead svg {
  width: 34px;
  height: 34px;
}

.wordmark {
  font: 600 18px/1 var(--display);
  letter-spacing: -0.01em;
}

/* ── The thesis. Asymmetric: the claim takes the width, the note sits under it. ──── */

.thesis {
  max-width: 18ch;
  font: 700 clamp(38px, 7vw, 76px) / 1.02 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.lede {
  max-width: 54ch;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--steel);
  margin: 0;
}

/* ── The three claims, each one a thing the system actually does ─────────────────── */

.claims {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: 4px;
  overflow: hidden;
}

.claims li {
  background: var(--hull);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claims b {
  font: 600 17px/1.3 var(--display);
  letter-spacing: -0.005em;
  color: var(--chrome);
}

.claims span {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.55;
}

.claims code {
  font: 400 12px/1.5 var(--data);
  color: var(--steel-dim);
}

/* ── The one action. The only gold on the page, because it is the one conclusion. ── */

.actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  background: var(--gold-surface);
  color: var(--gold-ink);
  text-decoration: none;
  font: 600 16px/1 var(--body);
}

.cta:hover {
  filter: brightness(1.08);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.aside {
  color: var(--steel-dim);
  font: 400 14px/1.5 var(--data);
}

/* ── What it will not do. Stated on the public page, not buried in the terms. ────── */

.refusals {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--edge);
}

.refusals h2 {
  font: 600 13px/1 var(--data);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 20px;
}

.refusals ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

.refusals li {
  padding-left: 20px;
  position: relative;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.6;
}

.refusals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 1px;
  background: var(--steel-dim);
}

footer {
  border-top: 1px solid var(--edge);
  padding: 26px 0 40px;
  background: var(--hull);
}

.foot-inner {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--steel-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 78ch;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
