/* Brand: Swap circle logo, Olive grove palette, Fraunces headings, Figtree text.
   The app theme (app/src/constants/theme.ts) moves to these colours in a later change. */
@font-face {
  font-family: Fraunces; src: url(fonts/fraunces.woff2) format('woff2');
  font-weight: 700 900; font-display: swap;
}
@font-face {
  font-family: Figtree; src: url(fonts/figtree.woff2) format('woff2');
  font-weight: 400 700; font-display: swap;
}

:root {
  --text: #2A2418; --text-secondary: #5E5546; --bg: #FBF2E2; --card: #FFFCF5; --surface: #F3E6CB;
  --brand: #556F24; --on-brand: #FFFFFF; --second: #8A5A3B; --accent: #F2B640; --on-accent: #2A2418;
  --edge: #2A2418; --input-border: #8A7E6A; --error: #A1281B;
  --logo-centre: var(--accent); --band: var(--brand); --on-band: var(--on-brand);
  color-scheme: light dark;
}
/* Dark mode follows the logo-on-dark design: honey and walnut, no green. */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #F6ECD8; --text-secondary: #C9BBA3; --bg: #1D1912; --card: #27211A; --surface: #2E271E;
    --brand: #F2B640; --on-brand: #2A2418; --second: #D9A882; --accent: #F2B640; --on-accent: #2A2418;
    --edge: #6B5D47; --input-border: #9C8F78; --error: #FF8A7A;
    --logo-centre: #FBF2E2; --band: #8A5A3B; --on-band: #FFFCF5;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .wordmark { font-family: Fraunces, Georgia, serif; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.04; margin: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 1.4rem; margin: 0; }
a { color: var(--brand); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.2rem; color: var(--text-secondary); max-width: 34rem; margin: 20px 0 0; }
.eyebrow { margin: 0 0 14px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--second); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.wordmark { font-size: 1.75rem; line-height: 1; }
.wordmark span, .footer-mark span { color: var(--brand); }
.pill {
  display: inline-block; margin: 0; padding: 6px 12px; border: 2px solid var(--edge); border-radius: 8px;
  background: var(--surface); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--text-secondary); font-size: 0.95rem; }
.hero-examples, .examples { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.examples { margin: 0; padding: 0; list-style: none; }
.examples-title { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.example {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600;
  background: var(--card); border: 2px solid var(--edge); border-radius: 12px; box-shadow: 0 4px 0 var(--edge);
}
.example span:first-child { flex: 1 1 0; }
.example span:last-child { flex: 1 1 0; text-align: right; }
.swap-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border-radius: 999px; background: var(--accent); border: 2px solid var(--edge); color: var(--on-accent);
}

/* Buttons: printed-label look, with a "pressed" shadow */
.button, button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--on-brand); background: var(--brand); border: 2px solid var(--edge); border-radius: 10px;
  box-shadow: 0 4px 0 var(--edge);
}
.button:active, button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
.button:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { margin-top: 24px; width: 100%; font-size: 1.1rem; }
button:disabled { opacity: 0.6; cursor: default; }

/* How it works */
.how { background: var(--surface); padding: 64px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border: 2px solid var(--edge); border-radius: 12px; }
.steps p { margin: 0; color: var(--text-secondary); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--edge); font-family: Fraunces, Georgia, serif; font-weight: 800; font-size: 1.25rem;
}

/* Founding members */
.founding { background: var(--band); color: var(--on-band); padding: 64px 0; }
.founding .wrap { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.founding h2 { flex: 1 1 300px; margin: 0; }
.perks { flex: 2 1 460px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.perks li { display: flex; flex-direction: column; gap: 6px; }
.perks strong { font-size: 1.15rem; }

/* Form */
.join { max-width: 680px; margin: 0 auto; padding: 64px 16px; }
.card { background: var(--card); border: 2px solid var(--edge); border-radius: 16px; box-shadow: 0 6px 0 var(--edge); padding: 32px 20px; }
@media (min-width: 600px) { .card { padding: 40px 32px; } }
.card > p { color: var(--text-secondary); margin: 0; }
.card > p + p { margin-top: 12px; }
/* The thanks card gets focus only so screen readers announce it; it isn't interactive. */
#thanks:focus { outline: none; }

label { display: block; font-weight: 600; margin: 18px 0 6px; }
input:not([type=checkbox]):not([type=radio]) {
  width: 100%; min-height: 48px; padding: 8px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--input-border); border-radius: 10px;
}
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.optional, .hint { color: var(--text-secondary); font-weight: 400; }
.hint { font-size: 0.875rem; margin: 6px 0 0; }
.option { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; min-height: 24px; }
.option input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.consents { margin-top: 22px; padding: 4px 16px; border-radius: 10px; background: var(--surface); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; font-weight: 400; font-size: 0.9rem; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--bg); border: 1.5px solid var(--input-border); border-radius: 999px; cursor: pointer;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.error { color: var(--error); font-weight: 600; margin: 16px 0 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -10000px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer */
.site-footer { border-top: 2px solid var(--edge); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 32px; font-size: 0.95rem; color: var(--text-secondary); }
.footer-mark { font-family: Fraunces, Georgia, serif; font-weight: 800; color: var(--text); }

/* Privacy policy */
.policy { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
.policy h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-top: 8px; }
.policy h2 { font-size: 1.4rem; margin: 32px 0 8px; }
