/* QuarterStack site. Board 9 ("Landing page, all green") on the mock-ups
   canvas. Inter only: 300 for headlines and big numbers, 400–600 elsewhere. */

@font-face { font-family: Inter; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/inter-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #0B1F1E;
  --muted: #5B6866;
  --soft: #8A9593;
  --line: #E6EAE9;
  --field: #C9D2D0;
  --panel: #F3F6F5;
  --brand: #137A63;
  --glow: #22A87A;
  --mint: #BFF0DC;
  --on-dark: #D6EDE5;
  --on-dark-muted: #BFE3D6;
  --streaks: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 7px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #FFFFFF; color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #FFFFFF;
  background:
    var(--streaks),
    radial-gradient(ellipse 38% 34% at 72% 58%, var(--glow) 0%, rgba(34,168,122,0) 70%),
    radial-gradient(ellipse 70% 55% at 50% 105%, var(--mint) 0%, rgba(191,240,220,0) 60%),
    linear-gradient(180deg, #04201D 0%, #0B4F4C 45%, #137A63 75%, #3FB98C 100%);
}
.hero > .wrap { padding-top: 24px; display: flex; flex-direction: column; gap: 56px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.logo:hover { color: #FFFFFF; }
.logo span { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.pill-nav {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 5px; display: flex; gap: 2px;
}
.pill-nav a { color: #FFFFFF; text-decoration: none; font-size: 13px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.pill-nav a:hover, .pill-nav a[aria-current="true"] { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.btn-white {
  color: var(--ink); background: #FFFFFF; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
}
.btn-white:hover { color: var(--ink); background: #EAF7F1; }

/* Centre column sized to the headline, so it stays on two lines. */
.hero-main { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr); gap: 24px; align-items: center; }
.stats { display: flex; flex-direction: column; gap: 18px; }
.stats-right { align-items: flex-end; text-align: right; }
.stat b { display: block; font-size: 26px; font-weight: 300; line-height: 1.5; }
.stat span { font-size: 12px; color: var(--on-dark-muted); }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 300; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .mint { color: var(--mint); }
.hero-copy p { max-width: 520px; color: var(--on-dark); text-wrap: balance; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-hero { font-size: 15px; padding: 13px 21px; box-shadow: 0 10px 30px rgba(4,32,29,0.45); }
.btn-glass {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.3); color: #FFFFFF;
  text-decoration: none; font-size: 15px; padding: 13px 22px; border-radius: 999px;
}
.btn-glass:hover { color: #FFFFFF; background: rgba(255,255,255,0.16); }

.hero-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: -40px; }
.glass {
  background: rgba(255,255,255,0.92); color: var(--ink); border-radius: 22px; padding: 20px;
  box-shadow: 0 24px 60px rgba(4,32,29,0.35); display: flex; flex-direction: column; gap: 12px;
}
.glass-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.glass-amount { font-size: 36px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.5; }
.glass-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.chip-dark { background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.dial {
  background: linear-gradient(160deg, var(--brand) 0%, var(--glow) 100%); color: #FFFFFF; border-radius: 26px; padding: 24px;
  box-shadow: 0 28px 70px rgba(4,32,29,0.45); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 230px;
}
.dial-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.dial-value { font-size: 44px; font-weight: 300; line-height: 1; margin-top: -40px; }
.dial-sub { font-size: 13px; color: #D6F3E7; }
.mail { gap: 10px; }
.mail-subject { font-size: 15px; font-weight: 600; }
.mail-rows { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.mail-rows div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.mail-rows b { font-weight: 400; color: var(--ink); }

/* ---------- Sections ---------- */
.big { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 300; }
.big .grey { color: var(--soft); }
.big .line { display: block; text-wrap: balance; }
.kicker { font-size: 13px; color: var(--muted); }

#how { padding-top: 40px; }
#how .wrap { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--panel); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step span { font-size: 13px; color: var(--muted); }
.step h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.3; }
.step p { color: var(--muted); }

#pot { padding-inline: 24px; }
.pot {
  max-width: 1232px; margin: 0 auto; border-radius: 32px; overflow: hidden; color: #FFFFFF;
  background: var(--streaks), linear-gradient(135deg, #04201D 0%, #0B4F4C 60%, #137A63 100%);
  padding: 64px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center;
}
.pot-copy { display: flex; flex-direction: column; gap: 16px; }
.pot-copy .kicker { color: var(--on-dark-muted); }
.pot h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 300; }
.pot-copy p { color: var(--on-dark); }
.pot-copy .small-print { color: #9FC7BB; font-size: 12px; }
.pot-side { display: flex; flex-direction: column; gap: 12px; }
.pot-box { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 20px; }
.pot-flow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pot-auto { display: flex; flex-direction: column; gap: 6px; }
.pot-auto b { font-weight: 500; }
.pot-auto span { color: var(--on-dark-muted); font-size: 14px; }

#join .wrap { padding-block: 96px 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.join-copy { display: flex; flex-direction: column; gap: 16px; }
.join-copy p { color: var(--muted); font-size: 17px; }
.form { background: var(--panel); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select {
  font: inherit; color: var(--ink); border: 1px solid var(--field); border-radius: 14px; padding: 12px 14px; background: #FFFFFF;
  min-height: 48px; width: 100%;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235B6866' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19,122,99,0.18); }
.field [aria-invalid="true"] { border-color: #B54708; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.consent label { font-size: 13px; color: var(--muted); }
.btn-submit {
  font: inherit; font-weight: 600; font-size: 15px; background: var(--brand); color: #FFFFFF; border: 0; border-radius: 999px;
  padding: 16px 24px; min-height: 52px; cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit[disabled] { opacity: 0.7; cursor: progress; }
.form-error { color: #8A3B00; background: #FFF1E3; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { background: var(--panel); border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.thanks h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.thanks p { color: var(--muted); }

#faq { border-top: 1px solid var(--line); }
#faq .wrap { padding-block: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.faq { display: flex; flex-direction: column; }
.faq div { border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.faq div:last-child { border-bottom: 0; }
.faq h3 { font-size: 18px; font-weight: 500; }
.faq p { color: var(--muted); }

.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding-block: 32px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer .full { width: 100%; }

/* ---------- Phone and tablet ---------- */
@media (max-width: 900px) {
  .hero > .wrap { gap: 40px; }
  .hero-main { grid-template-columns: 1fr 1fr; }
  .hero-copy { grid-column: 1 / -1; order: -1; }
  .stats-right { align-items: flex-start; text-align: left; }
  .hero h1 .line { white-space: normal; }
  .hero-cards { grid-template-columns: 1fr; max-width: 440px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .top { display: grid; grid-template-columns: 1fr auto; row-gap: 14px; }
  .pill-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .btn-white { padding: 10px 14px; font-size: 13px; }
  .btn-hero { padding: 13px 21px; font-size: 15px; }
  .hero > .wrap { gap: 32px; }
  .hero-copy { gap: 16px; }
  .hero-copy p { font-size: 15px; }
  .ctas a { flex: 1 1 auto; text-align: center; }
  .stats { gap: 14px; }
  .stat b { font-size: 22px; }
  #how .wrap { padding-block: 56px; }
  #pot { padding-inline: 16px; }
  .pot { padding: 40px 22px; border-radius: 26px; grid-template-columns: 1fr; }
  #join .wrap { padding-block: 64px 56px; grid-template-columns: 1fr; }
  .form, .thanks { padding: 20px; border-radius: 22px; }
  #faq .wrap { padding-block: 56px; grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 360px) {
  .pill-nav a { padding: 8px 10px; }
}

/* ---------- Privacy page ---------- */
.doc-head { background: var(--streaks), linear-gradient(135deg, #04201D 0%, #0B4F4C 60%, #137A63 100%); color: #FFFFFF; }
.doc-head .wrap { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 40px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; }
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 22px; }
.doc p, .doc li { color: #2C3B39; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.draft { background: #FFF1E3; color: #5E4200; border-radius: 14px; padding: 12px 16px; font-size: 14px; }
@media (max-width: 640px) { .doc { padding: 32px 16px 56px; } }
