/* Briefwright site
   Navy carries the brand. Cobalt = routes, links and progress. Amber = the current stage
   and the main call to action. Nothing else is coloured. */

/* Self-hosted variable fonts (latin subset, SIL Open Font License) */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-var.woff2") format("woff2");
}

:root {
  --paper: #F3F4F7;
  --paper-2: #E8EBF1;
  --panel: #FFFFFF;
  --ink: #0F1728;
  --ink-2: #475067;
  --ink-3: #737D96;
  --line: #DADFE8;
  --navy: #0C1A3A;
  --navy-2: #15264F;
  --on-navy: #F3F4F7;
  --on-navy-2: #B6C1DB;
  --cobalt: #2F5BEA;
  --cobalt-deep: #1F44C2;
  --cobalt-soft: #E3EAFD;
  --amber: #FFB547;
  --amber-deep: #F09A1A;
  --amber-ink: #6E4300;
  --amber-soft: #FFF1D9;
  --danger: #B42318;
  --danger-soft: #FDE8E6;

  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 1.25 modular scale on a 16px base */
  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.5rem;
  --t-xl: clamp(1.9rem, 1.3rem + 1.9vw, 2.9rem);
  --t-hero: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- Buttons and links ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-accent { background: var(--amber); color: var(--ink); }
.btn-accent:hover { background: var(--amber-deep); }
.btn-accent:disabled, .btn-primary:disabled { background: var(--ink-3); color: #fff; cursor: progress; }
.btn-outline { border-color: var(--on-navy-2); color: var(--on-navy); }
.btn-outline:hover { border-color: var(--on-navy); }
.btn-quiet { min-height: 38px; padding: 0 18px; border-color: var(--line); background: var(--panel); font-size: var(--t-sm); }
.btn-quiet:hover { border-color: var(--ink-3); }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  cursor: pointer;
}
.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.hero .text-link-dark { color: var(--on-navy-2); text-decoration-color: rgba(182, 193, 219, 0.4); }
.hero .text-link-dark:hover { color: var(--on-navy); }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: var(--t-sm); font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-left: auto;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: var(--t-sm);
    cursor: pointer;
  }
  .nav-toggle[aria-expanded="true"] { background: var(--paper-2); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: var(--t-base); color: var(--ink); }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .header-login { flex: none; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.05rem; }
  .brand img { width: 26px; height: 26px; }
}
/* Pages without the menu button (privacy, 404): push the login button right */
.header-inner > .brand + .header-login { margin-left: auto; }

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 clamp(60px, 8vw, 112px);
  background: var(--navy);
  color: var(--on-navy);
}
/* Faint route lines fanning out behind the board */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(47, 91, 234, 0.35), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(182, 193, 219, 0.05) 46px 47px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lede { max-width: 33em; margin-top: 24px; color: var(--on-navy-2); font-size: var(--t-md); line-height: 1.6; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}
.hero :focus-visible { outline-color: var(--amber); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Routing board (the hero's centerpiece) ---- */

.board {
  background: var(--panel);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.board-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.board-tabs-label { margin-right: 6px; color: var(--ink-3); font-size: var(--t-xs); font-weight: 600; }
.board-tabs label {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.board-tabs label:hover { border-color: var(--ink-3); color: var(--ink); }
#ex-1:checked ~ .board-tabs label[for="ex-1"],
#ex-2:checked ~ .board-tabs label[for="ex-2"],
#ex-3:checked ~ .board-tabs label[for="ex-3"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}
#ex-1:focus-visible ~ .board-tabs label[for="ex-1"],
#ex-2:focus-visible ~ .board-tabs label[for="ex-2"],
#ex-3:focus-visible ~ .board-tabs label[for="ex-3"] {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.ticket { display: none; padding: 22px clamp(18px, 2.6vw, 28px) 8px; }
#ex-1:checked ~ .ticket-1,
#ex-2:checked ~ .ticket-2,
#ex-3:checked ~ .ticket-3 { display: block; }
/* Only animates in answer to a switch; the first example shows straight away */
#ex-2:checked ~ .ticket-2,
#ex-3:checked ~ .ticket-3,
.board.was-switched #ex-1:checked ~ .ticket-1 { animation: ticket-in 0.3s ease; }
@keyframes ticket-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Stage track: done = cobalt, current = amber, upcoming = grey */
.track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 20px;
  counter-reset: stage;
}
.track li {
  position: relative;
  padding-top: 18px;
  color: var(--ink-3);
  font-size: var(--t-xs);
  font-weight: 600;
  white-space: nowrap;
}
.track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  z-index: 1;
}
.track li::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 0;
  top: 4px;
  height: 2px;
  background: var(--line);
}
.track li:last-child::after { display: none; }
.track .is-done { color: var(--ink-2); }
.track .is-done::before, .track .is-done::after { background: var(--cobalt); }
.track .is-now { color: var(--amber-ink); }
.track .is-now::before { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }

.brief {
  padding: 0 0 0 16px;
  border-left: 3px solid var(--amber);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.scope { margin-top: 18px; border-top: 1px solid var(--line); }
.scope > div {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.scope dt { color: var(--ink-3); font-weight: 600; }
.scope dd { color: var(--ink); }

.routed-label { margin-top: 18px; color: var(--cobalt-deep); font-size: var(--t-sm); font-weight: 700; }
/* One trunk, a branch to each provider: the route itself */
.routed { position: relative; margin-top: 8px; padding-left: 22px; }
.routed::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 22px;
  width: 2px;
  background: var(--cobalt);
}
.routed li {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--cobalt-soft);
}
.routed li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 17px;
  height: 2px;
  background: var(--cobalt);
}
.who { font-weight: 600; font-size: var(--t-sm); line-height: 1.4; }
.why { color: var(--ink-2); font-size: var(--t-xs); line-height: 1.4; }

.board figcaption {
  padding: 10px clamp(18px, 2.6vw, 28px) 16px;
  color: var(--ink-3);
  font-size: var(--t-xs);
}

@media (max-width: 520px) {
  .track li { font-size: 0.6875rem; }
  .scope > div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket { animation: none !important; }
}

/* ---- Sections ---- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--paper-2); }
.section h2, .submit h2 {
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-head { display: grid; gap: 14px; max-width: 42em; }
.section-head p { color: var(--ink-2); font-size: var(--t-md); }

/* Services: one shared grid, cells divided by rules rather than separate cards */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
}
.service {
  padding: 28px clamp(20px, 2.4vw, 30px) 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service h3 { font-size: var(--t-lg); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
.service > p { margin-top: 8px; color: var(--ink-2); }
.jobs { margin-top: 18px; display: grid; gap: 6px; }
.jobs li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.jobs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
}

@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Process: a real sequence, so the stages are numbered and joined */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: 52px;
}
.steps li { position: relative; counter-increment: step; padding-top: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--display);
  font-weight: 700;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 40px;
  right: calc(-1 * clamp(16px, 2.4vw, 32px));
  top: 19px;
  height: 2px;
  background: var(--cobalt);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--t-md); font-weight: 700; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 34em; }
  .steps li { padding: 0 0 28px 64px; }
  .steps li::after { left: 19px; right: auto; top: 40px; bottom: 0; width: 2px; height: auto; }
}

/* Companies and providers side by side */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.section .side h2 { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); }
.side-provider { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.side-provider :focus-visible { outline-color: var(--amber); }
.points { margin: 24px 0 32px; display: grid; gap: 16px; flex: 1; }
.points li { color: var(--ink-2); line-height: 1.55; }
.points strong { display: block; color: var(--ink); font-weight: 650; }
.side-provider .points li { color: var(--on-navy-2); }
.side-provider .points strong { color: var(--on-navy); }
@media (max-width: 860px) { .sides { grid-template-columns: 1fr; } }

/* ---- Submit a need ---- */

.submit { padding: clamp(64px, 9vw, 112px) 0; background: var(--paper-2); }
.submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.submit-intro { position: sticky; top: 106px; }
.submit-intro p { margin-top: 16px; max-width: 26em; color: var(--ink-2); font-size: var(--t-md); }
.submit-intro .submit-alt { font-size: var(--t-base); }
.submit-alt a { color: var(--cobalt-deep); text-underline-offset: 3px; }

.need-form, .need-done {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.need-form[hidden], .need-done[hidden] { display: none; }
/* The confirmation takes the form's place in the right-hand column */
@media (min-width: 961px) { .need-done { grid-column: 2; grid-row: 1; } }
.need-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 960px) {
  .submit-grid { grid-template-columns: 1fr; }
  .submit-intro { position: static; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field > label, .field legend { font-size: var(--t-sm); font-weight: 600; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chips label:hover span { border-color: var(--ink-3); color: var(--ink); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chips input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chips-field[aria-invalid="true"] .chips span { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: var(--t-sm);
}
.form-error:empty { display: none; }
.form-fine { color: var(--ink-3); font-size: var(--t-xs); }
.form-fine a { color: inherit; text-underline-offset: 3px; }

.need-done { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.need-done h3 { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }
.need-done p { color: var(--ink-2); }
.need-done strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.need-done .text-link { justify-self: start; }
.need-done:focus { outline: none; }

/* ---- Footer ---- */

.site-footer { padding: 28px 0 36px; background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--ink-3);
  font-size: var(--t-sm);
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
.disclaimer { max-width: 60em; margin-top: 18px; color: var(--ink-3); font-size: var(--t-xs); line-height: 1.6; }

/* ---- Login ---- */

.auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 22px var(--gutter); }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px var(--gutter) 80px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: var(--t-xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.auth-sub { margin-top: 10px; color: var(--ink-2); }
.auth-form { display: grid; gap: 18px; margin-top: 32px; }
.auth-form .btn { width: 100%; margin-top: 6px; }
.auth-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.auth-note a { color: var(--ink); text-underline-offset: 3px; }

/* ---- Workspace (after login) ---- */

.portal-main { padding: clamp(40px, 7vw, 80px) 0 96px; }
.portal-head h1 { font-size: var(--t-xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.portal-head p { margin-top: 8px; color: var(--ink-2); }
.account { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: var(--t-sm); color: var(--ink-2); }
.empty {
  margin-top: 40px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px dashed var(--ink-3);
  border-radius: 18px;
  background: var(--panel);
}
.empty h2 { font-size: var(--t-lg); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.empty p { max-width: 36em; margin-top: 10px; color: var(--ink-2); }
.empty .btn { margin-top: 24px; }
@media (max-width: 520px) { #account-email { display: none; } }

/* ---- Long-form text (privacy) ---- */

.prose { max-width: calc(40em + 2 * var(--gutter)); padding-top: clamp(48px, 8vw, 88px); padding-bottom: 96px; }
.prose h1 { font-size: var(--t-xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.prose-meta { margin-top: 8px; color: var(--ink-3); font-size: var(--t-sm); }
.prose h2 { margin-top: 44px; font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; color: var(--ink-2); line-height: 1.7; }
.prose-meta + p { margin-top: 32px; }
.prose a { color: var(--cobalt-deep); text-underline-offset: 3px; }
.prose code { font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--paper-2); color: var(--ink); }

/* ---- 404 ---- */

.notfound { padding: 120px 0; }
.notfound h1 { font-size: var(--t-xl); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.notfound p { margin-top: 12px; color: var(--ink-2); }
.notfound .btn { margin-top: 28px; }
