/* ProofOfSolve — shared styles for the coming-soon site. */
:root {
  --ground: #EEF0F4;
  --grid: #DFE3EA;
  --surface: #FFFFFF;
  --ink: #121A2E;
  --body: #3C465C;
  --muted: #535D73;
  --line: #C3CAD8;
  --accent: #B9520A;
  --accent-deep: #8E3E06;
  --accent-soft: #FBE9DA;
  --night: #121A2E;
  --night-2: #172038;
  --night-line: #344058;
  --night-ink: #E6EAF2;
  --night-muted: #B4BDCE;
  --night-accent: #F2994A;
  --good: #155C38;
  --good-soft: #E3F1E8;
  --bad: #B42318;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.section { padding-block: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }

h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
h1 { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(42px, 6.4vw, 86px); line-height: .98; letter-spacing: -.02em; }
h2 { font-variation-settings: "wdth" 115; font-weight: 780; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.01em; }
h3 { font-weight: 720; font-size: 21px; }
p { margin: 0; }
.eyebrow { font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.label { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark .ink { fill: var(--ink); }
.mark .hot { fill: var(--accent); }
.mark .open { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.wordmark { font-family: var(--f-display); font-variation-settings: "wdth" 118; font-weight: 750; font-size: 21px; letter-spacing: -.01em; color: var(--ink); }
.wordmark span { color: #5A6479; font-weight: 500; }
.wordmark.small { font-size: 17px; }
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.topnav > a { font-family: var(--f-display); font-weight: 650; font-size: 15px; color: var(--ink); text-decoration: none; padding: 8px 2px; }
.topnav > a:hover, .topnav > a[aria-current="page"] { color: var(--accent); }
.topnav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.status-pill { font-family: var(--f-display); font-size: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lede { max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); color: var(--body); }

/* Signup form */
.signup { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 540px; margin-top: 6px; }
.signup label { font-family: var(--f-display); font-size: 15px; font-weight: 650; }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 16px;
  font-family: var(--f-mono); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid #8F99AD; border-radius: 8px;
}
.signup input[type="email"]::placeholder { color: #7A8398; }
.signup input[aria-invalid="true"] { border-color: var(--bad); }
.signup button {
  flex: 0 0 auto; min-height: 52px; padding: 0 26px;
  font-family: var(--f-display); font-variation-settings: "wdth" 110; font-size: 17px; font-weight: 700;
  color: #FFFFFF; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
.signup button:hover { background: var(--accent-deep); }
.signup button[disabled] { opacity: .6; cursor: progress; }
.form-msg { font-family: var(--f-display); font-size: 15px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.bad { color: var(--bad); }
.form-msg.good {
  color: var(--good); background: var(--good-soft); border: 1.5px solid #1D7448;
  border-radius: 10px; padding: 14px 16px; font-weight: 600;
}
.signup.done .row, .signup.done .turnstile, .signup.done > label { display: none; }
.fine { font-size: 15px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* Hero card */
.card {
  flex: 1 1 360px; max-width: 500px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 24px 48px -32px rgba(18, 26, 46, .45);
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.tag { font-family: var(--f-display); font-size: 13px; font-weight: 650; color: var(--accent-deep); background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; }
.prize { display: flex; flex-direction: column; gap: 4px; }
.prize-big { font-family: var(--f-display); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; }
.prize-sub { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--muted); }
.seed { display: flex; flex-direction: column; gap: 10px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slots li {
  display: flex; align-items: baseline; gap: 8px; padding: 8px 10px;
  background: #F3F5F9; border: 1px dashed #B7BFCF; border-radius: 6px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 2px;
}
.slots li span { font-size: 11px; letter-spacing: 0; color: #6A7489; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--f-mono); font-size: 14px; color: var(--body); }

/* Bands */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.steps li { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps p { font-size: 17px; color: var(--body); }
.num { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--accent); }

/* Dark proof section */
.dark { background: var(--night); color: var(--night-ink); }
.dark .eyebrow { color: var(--night-accent); }
.dark a { color: var(--night-accent); }
.dark a:hover { color: #FFC08A; }
.dark h3 { color: #FFFFFF; font-size: 20px; }
.section-lede { font-size: 18px; color: var(--night-muted); }
.trio { display: flex; flex-wrap: wrap; gap: 28px; }
.trio > div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.trio p { font-size: 17px; color: var(--night-muted); }
.hashbox { border: 1px solid var(--night-line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--night-2); }
.hashbox .label { color: #9AA4B8; }
.hashbox code { font-family: var(--f-mono); font-size: 15px; color: var(--night-accent); overflow-wrap: anywhere; }
.hashbox p { font-size: 15px; color: #9AA4B8; }

/* Split sections */
.split { flex-direction: row; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); align-items: flex-start; }
.split-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split-copy p:last-child { max-width: 34em; color: var(--body); }
.chips { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.chips strong { font-family: var(--f-display); font-weight: 720; font-size: 17px; }
.chips span { font-size: 15px; color: var(--muted); }
#faq-h { flex: 1 1 280px; min-width: 0; }
.faq { flex: 2 1 520px; min-width: 0; margin: 0; }
.faq > div { padding: 20px 0; border-bottom: 1px solid #D5DBE5; display: flex; flex-direction: column; gap: 6px; }
.faq > div:last-child { border-bottom: 0; }
.faq dt { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.faq dd { margin: 0; font-size: 17px; color: var(--body); }

/* CTA */
.cta { align-items: flex-start; gap: 18px; }
.cta h2 { max-width: 16em; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(34px, 4.6vw, 62px); line-height: 1; letter-spacing: -.02em; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--ground); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 32px; padding-block: 28px 40px; font-size: 15px; color: var(--muted); }
.footer-row p { flex: 1 1 360px; min-width: 0; max-width: 40em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-display); font-weight: 600; }
.footer-links a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--accent); }

/* Puzzles page */
.pz-page { display: flex; flex-direction: column; gap: 40px; padding-block: 16px 80px; }
.pz-intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.pz-intro h1 { font-size: clamp(40px, 6vw, 72px); }
.howcheck { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.howcheck h2 { font-size: 20px; font-variation-settings: "wdth" 108; }
.howcheck ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 16.5px; color: var(--body); }
.howcheck strong { font-family: var(--f-display); color: var(--ink); }
.pz-group { display: flex; flex-direction: column; gap: 16px; }
.pz-group h2 { font-size: clamp(26px, 3vw, 34px); }
.pz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.pz-empty { color: var(--muted); font-size: 16.5px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 18px 20px; grid-column: 1 / -1; }
.pz { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pz-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; }
.pz-head h3 { font-size: 21px; font-variation-settings: "wdth" 110; }
.pz-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pz-tag, .pz-status { font-family: var(--f-display); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.pz-tag.free { background: #E3ECFA; color: #1A4E9E; }
.pz-tag.paid { background: var(--accent-soft); color: var(--accent-deep); }
.pz-status.open { background: var(--good-soft); color: var(--good); }
.pz-status.upcoming { background: #ECEFF4; color: var(--muted); }
.pz-status.solved { background: var(--ink); color: #FFFFFF; }
.pz-prize { font-family: var(--f-display); font-variation-settings: "wdth" 120; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.pz-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pz-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pz-facts dt { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pz-facts dd { margin: 0; font-size: 16px; color: var(--body); min-width: 0; }
.mono { font-family: var(--f-mono); font-size: 13.5px; overflow-wrap: anywhere; }
.pz-reveal { background: #F3F5F9; border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.pz-reveal p { color: var(--ink); }
.pz-check { align-self: flex-start; margin-top: 6px; font-family: var(--f-display); font-weight: 650; font-size: 15px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.pz-check:hover { background: var(--ink); color: #FFFFFF; }
.pz-check-result { font-family: var(--f-display); font-size: 14.5px; overflow-wrap: anywhere; }
.pz-check-result:empty { display: none; }
.pz-check-result.good { color: var(--good); font-weight: 650; }
.pz-check-result.bad { color: var(--bad); }
.pz-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-display); font-weight: 650; font-size: 15px; }

/* Plain text pages (privacy, 404) */
.doc { max-width: 720px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); padding-block: 24px 72px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 24px; margin-top: 14px; }
.doc p, .doc li { color: var(--body); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .updated { font-family: var(--f-display); font-size: 14px; color: var(--muted); }
