/* Founding experts page (GO 32). The same Verdigris tokens as the app (frontend/src/app/globals.css, "shell"),
   Atkinson Hyperlegible served from this site (no font requests to anyone else). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --raised: #ebeef3;
  --border: #d9dfe8;
  --border-strong: #bfc8d6;
  --fg: #0e1422;
  --fg-2: #2a3448;
  --muted: #4b5568;
  --accent: #0f6e63;
  --accent-soft: #d7f0eb;
  --cta: #22a392;
  --cta-hover: #1c8f80;
  --cta-fg: #0e1422;
  --seal: #1b8577;
  --band: #0e1422;
  --band-fg: #e9edf4;
  --band-muted: #a9b3c6;
  --band-accent: #4fcfbb;
  --shadow: 0 30px 60px -28px rgb(14 20 34 / 0.28), 0 8px 20px -12px rgb(14 20 34 / 0.12);
  --note: #fff4d6; --note-fg: #5c4300;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1422; --surface: #151d2e; --raised: #1c2639; --border: #26314a; --border-strong: #35425e;
    --fg: #e9edf4; --fg-2: #c5cddb; --muted: #9aa6bc; --accent: #4fcfbb; --accent-soft: rgb(79 207 187 / 0.12);
    --cta: #4fcfbb; --cta-hover: #7adecd; --cta-fg: #0e1422; --seal: #4fcfbb;
    --band: #151d2e; --band-fg: #e9edf4; --band-muted: #9aa6bc; --band-accent: #4fcfbb;
    --shadow: 0 30px 60px -28px rgb(0 0 0 / 0.6);
    --note: #2e2610; --note-fg: #f2d68e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1422; --surface: #151d2e; --raised: #1c2639; --border: #26314a; --border-strong: #35425e;
  --fg: #e9edf4; --fg-2: #c5cddb; --muted: #9aa6bc; --accent: #4fcfbb; --accent-soft: rgb(79 207 187 / 0.12);
  --cta: #4fcfbb; --cta-hover: #7adecd; --cta-fg: #0e1422; --seal: #4fcfbb;
  --band: #151d2e; --band-fg: #e9edf4; --band-muted: #9aa6bc; --band-accent: #4fcfbb;
  --shadow: 0 30px 60px -28px rgb(0 0 0 / 0.6);
  --note: #2e2610; --note-fg: #f2d68e;
  color-scheme: dark;
}

/* Keep `hidden` hidden: rules like `form { display: grid }` would otherwise beat the browser's own [hidden] rule,
   and app.js hides the form after sending by setting hidden. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.mark { width: 28px; height: 28px; color: var(--seal); }
.soon { font-size: 13px; font-weight: 600; color: var(--fg-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; }
.theme { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
.theme:hover { background: var(--raised); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .moon { display: none; }
  :root:not([data-theme="light"]) .theme .sun { display: inline; }
}

/* Hero */
.hero { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 88px; padding-bottom: 96px; gap: 56px; } }
h1 { font-size: clamp(36px, 7.2vw, 60px); font-weight: 800; max-width: 15ch; }
.lead { margin-top: 20px; font-size: 19px; color: var(--fg-2); max-width: 56ch; }
.small { margin-top: 12px; font-size: 14px; color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 28px; padding: 0 26px;
  border-radius: 14px; border: 0; background: var(--cta); color: var(--cta-fg); font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; transition: background-color 150ms;
}
.cta:hover { background: var(--cta-hover); }

/* The seal: four checks, the last one still being built. */
.seal-fig { margin: 0; display: grid; justify-items: center; gap: 16px; }
.seal-wrap, .seal-fig { position: relative; }
.seal { width: min(78vw, 340px); height: auto; color: var(--seal); grid-area: 1 / 1; }
.arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s cubic-bezier(.4,0,.2,1) forwards; }
.a1 { animation-delay: 0.25s; } .a2 { animation-delay: 0.45s; } .a3 { animation-delay: 0.65s; }
.a4.pending { stroke-dasharray: 0.07 0.09; stroke-linecap: butt; stroke-dashoffset: 0; opacity: 0; animation: fade 0.6s ease 0.95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .arc { animation: none; stroke-dashoffset: 0; } .a4.pending { animation: none; opacity: 0.6; } }
.checks { grid-area: 1 / 1; list-style: none; margin: 0; padding: 0; width: min(78vw, 340px); aspect-ratio: 1; position: relative;
  font-family: "Atkinson Hyperlegible Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--fg-2); }
.checks li { position: absolute; background: var(--bg); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.c1 { top: 10%; right: -2%; } .c2 { bottom: 10%; right: -2%; } .c3 { bottom: 10%; left: -2%; } .c4 { top: 10%; left: -2%; border-style: dashed !important; }
.seal-fig figcaption { max-width: 34ch; text-align: center; font-size: 14px; color: var(--muted); }

/* What founding experts get: the inverted band */
.band { background: var(--band); color: var(--band-fg); padding: 64px 0; }
.band h2 { font-size: clamp(28px, 4.6vw, 40px); max-width: 20ch; }
.gets { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 1px; background: color-mix(in srgb, var(--band-fg) 14%, transparent); border-radius: 18px; overflow: hidden; }
@media (min-width: 900px) { .gets { grid-template-columns: repeat(3, 1fr); } }
.gets li { background: var(--band); padding: 26px 24px; }
.gets h3 { font-size: 20px; color: var(--band-accent); }
/* A neutral, generic assistant icon (a chat bubble with a spark): never another company's logo (CLAUDE.md). */
.with-icon { display: flex; align-items: flex-start; gap: 10px; }
.icon { flex: none; width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.gets p { margin-top: 10px; color: var(--band-muted); font-size: 16px; max-width: 46ch; }

/* How it works */
.how { padding-top: 72px; padding-bottom: 24px; }
.how h2, .privacy h2 { font-size: clamp(26px, 4vw, 34px); }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.steps li { counter-increment: s; border-top: 2px solid var(--border-strong); padding-top: 18px; }
.steps li::before { content: counter(s); font-family: "Atkinson Hyperlegible Mono", ui-monospace, monospace; font-weight: 700; color: var(--accent); font-size: 15px; }
.steps h3 { margin-top: 6px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--fg-2); font-size: 16px; }

/* The form */
.join { padding-top: 56px; padding-bottom: 32px; scroll-margin-top: 72px; }
.join-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 20px; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) { .join-card { padding: 40px; } }
.join-card h2 { font-size: clamp(26px, 4vw, 32px); }
.small-lead { margin-top: 10px; font-size: 16px; }
form { margin-top: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-weight: 700; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
input:not([type="checkbox"]) {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 16px;
}
input:not([type="checkbox"]):focus-visible { outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: #b42318; }
.hint { font-size: 13.5px; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--fg-2); min-height: 44px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--cta); flex: none; }
.submit { margin-top: 4px; width: 100%; }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.status { min-height: 1.4em; font-size: 15px; color: var(--fg); }
.status.error { color: var(--fg); font-weight: 700; }
.done { text-align: center; padding: 18px 0 4px; }
.done:focus { outline: none; }
.done-mark { width: 64px; height: 64px; color: var(--seal); }
.done h3 { margin-top: 14px; font-size: 26px; }
.done p { margin-top: 8px; color: var(--fg-2); }

/* Skill picker and the "What else" step (task 38) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--fg); font: inherit; font-size: 15px;
  text-align: left; cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.chip[aria-pressed="true"]::before { content: "\2713"; color: var(--accent); }
.chip.add { border-style: dashed; color: var(--fg-2); }
.picked .chip { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; padding-right: 8px; }
.picked .chip span[aria-hidden] { font-size: 18px; line-height: 1; color: var(--muted); padding: 0 4px; }
.suggest { margin-top: 2px; }
.more { padding: 4px 0; }
.more:focus { outline: none; }
.more h3 { font-size: 24px; }
.more-sub { margin-top: 6px; color: var(--fg-2); }
.note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--note); color: var(--note-fg); font-size: 15px; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.group {
  position: relative; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong);
  background: transparent; color: var(--fg); font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer;
}
.group small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.group[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.group .n { position: absolute; top: 10px; right: 10px; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 12.5px; text-align: center; }
.group-items { margin-top: 18px; }
.group-items h4 { margin: 0 0 10px; font-size: 16px; }
.own { margin-top: 20px; }
.own-row, .where-row { display: flex; gap: 8px; flex-wrap: wrap; }
.own-row input { flex: 1 1 220px; }
.where { margin: 18px 0 0; padding: 0; border: 0; }
.where legend { font-weight: 700; font-size: 15px; padding: 0; }
.where-row { margin-top: 8px; }
.where-row .field { flex: 1 1 200px; }
.where-row label { font-weight: 400; font-size: 14px; color: var(--fg-2); }
.more-picked { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.more-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.more-actions .cta { margin-top: 0; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--fg); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.own-row .ghost { min-height: 50px; }
.ghost:hover { border-color: var(--accent); }

/* Privacy */
.privacy { padding-top: 56px; padding-bottom: 64px; }
.privacy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 72ch; }
.privacy li { color: var(--fg-2); font-size: 16px; }
.privacy strong { color: var(--fg); }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 22px 0 32px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--fg-2); min-height: 44px; display: inline-flex; align-items: center; }
