/* ConCensus web: the app's stamp look. Ink outline + solid offset shadow,
   Newsreader for headlines, Public Sans for everything else, plum as the
   only accent, red and blue only inside the lean strip. */
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('/fonts/PublicSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('/fonts/PublicSans_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Public Sans'; font-weight: 800; font-display: swap; src: url('/fonts/PublicSans_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Newsreader'; font-weight: 600; font-display: swap; src: url('/fonts/Newsreader_600SemiBold.ttf') format('truetype'); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f4f4f2;
  --ink: #161616;
  --ink-soft: #5e5a55;
  --ink-faint: #8c877f;
  --line: #e7e3dc;
  --plum: #6b3fa0;
  --plum-lip: #4e2c78;
  --left: #2f6fd0;
  --right: #d6404a;
  --gold-wash: #fdf3df;
  --gold-ink: #7a5208;
  --danger: #b3261e;
  --radius: 14px;
  --stamp: 4px 4px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 'Public Sans', -apple-system, system-ui, sans-serif; }
a { color: var(--plum); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.4px; }
.brand svg { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 10px; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 20px; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; padding-top: 28px; padding-bottom: 88px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-wash); padding: 5px 10px; border-radius: 8px; }
h1, h2 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; letter-spacing: -1px; margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.02; margin-top: 18px; text-wrap: balance; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); margin: 20px 0 0; max-width: 34em; }

/* The lean strip: the one place red and blue appear */
.strip { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 26px; max-width: 360px; border: 2px solid var(--ink); }
.strip span:nth-child(1) { flex: 34; background: var(--left); }
.strip span:nth-child(2) { flex: 22; background: var(--plum); }
.strip span:nth-child(3) { flex: 44; background: var(--right); }
.strip-key { display: flex; justify-content: space-between; max-width: 360px; font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* Signup */
.signup { margin-top: 34px; max-width: 480px; }
.signup label { display: block; font-weight: 600; margin-bottom: 10px; }
.field { display: flex; gap: 10px; }
.field input { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.field input:focus { outline: 3px solid color-mix(in srgb, var(--plum) 35%, transparent); outline-offset: 2px; }
.button { font: 800 17px/1 'Public Sans', sans-serif; color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 15px 22px; box-shadow: 4px 4px 0 var(--plum); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; transition: transform .08s ease, box-shadow .08s ease; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--plum); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--plum); }
.button[disabled] { opacity: .6; cursor: wait; }
.fineprint { font-size: 14px; color: var(--ink-faint); margin: 12px 0 0; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--plum); }
.status.err { color: var(--danger); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup.done .field, .signup.done label { display: none; }

/* Phone */
.phone { justify-self: center; width: min(360px, 100%); height: auto; aspect-ratio: 603 / 1000; object-fit: cover; object-position: top; border: 3px solid var(--ink); border-radius: 44px; overflow: hidden; box-shadow: 12px 12px 0 var(--ink); background: var(--paper); }

/* Features */
.band { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 72px 0; }
.band h2 { font-size: clamp(32px, 4vw, 44px); text-align: center; text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--stamp); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--ink-soft); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: 1px; background: var(--plum); }

/* Closing call */
.closing { text-align: center; padding: 88px 0; }
.closing h2 { font-size: clamp(32px, 4vw, 44px); }
.closing p { color: var(--ink-soft); margin: 14px 0 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--ink-faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
footer nav a:hover { color: var(--ink); }

/* Document pages (privacy, terms, support, 404) */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gold-ink); background: var(--gold-wash); padding: 3px 9px; border-radius: 8px; }
.doc h2 { font-family: 'Public Sans', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.2px; margin: 34px 0 6px; }
.doc p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 16px; padding-bottom: 64px; }
  .phone { width: min(320px, 86%); box-shadow: 8px 8px 0 var(--ink); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field { flex-direction: column; }
  .button { width: 100%; text-align: center; }
  .top nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
