/* CHISPA site styles. Colors and type live in :root so a rebrand is one edit. */
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-latin.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; }

:root {
  --espresso: #24160F;
  --mocha: #5C3A28;
  --cream: #F4EADB;
  --muted: #D9CBB6;
  --lime: #CFF24B;
  --pistachio: #B9D38C;
  --orange: #FF6A2B;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Bricolage', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--espresso); color: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.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; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(72px, 9vw, 104px) var(--gutter); }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 6vw, 92px); line-height: 0.95; text-transform: uppercase; }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { max-width: 760px; }

.le { display: inline-block; width: 0.42em; height: 0.5em; vertical-align: 0.02em; margin-right: 0.04em; }

/* Announcement + nav */
.announce { background: var(--lime); color: var(--espresso); text-align: center; padding: 11px 16px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { padding: 20px var(--gutter); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--display); font-size: 34px; letter-spacing: 0.03em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.pill-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; background: var(--lime); color: var(--espresso); font-weight: 800; border: 0; cursor: pointer; }
@media (max-width: 760px) { .nav-links a:not(.pill-btn) { display: none; } }

/* Hero */
.hero { padding: 40px var(--gutter) clamp(64px, 8vw, 104px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.hero-copy { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-art { flex: 2 1 380px; min-width: 0; }
.hero-art img { width: 100%; height: auto; }
.tag { display: inline-flex; align-items: center; padding: 8px 16px; border: 2px solid var(--lime); border-radius: 999px; color: var(--lime); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 8vw, 128px); line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.hl { color: var(--lime); }
.counter { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: var(--lime); }
.counter::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.sub { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.45; color: var(--muted); }

/* Join form */
.join { width: 100%; max-width: 620px; display: flex; flex-wrap: wrap; gap: 12px; scroll-margin-top: 24px; }
.join input[type=email] { flex: 1 1 260px; min-width: 0; height: 60px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--lime); background: var(--cream); color: var(--espresso); font: inherit; font-size: 18px; }
.join button { flex: 0 0 auto; height: 60px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--lime); color: var(--espresso); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.join button:disabled { opacity: 0.7; cursor: progress; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-dark input[type=email] { border-color: var(--espresso); }
.join-dark button { background: var(--espresso); color: var(--lime); }
.fine { margin: 0; font-size: 14px; color: var(--muted); }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.form-msg { margin: 0; font-size: 15px; font-weight: 700; color: var(--orange); }
.form-msg:empty { display: none; }
.cta .form-msg { color: var(--espresso); }
.joined { margin: 0; font-size: 15px; font-weight: 700; }
.joined a { text-decoration: underline; text-underline-offset: 3px; }

/* Marquee */
.marquee { background: var(--orange); color: var(--espresso); overflow: hidden; padding: 18px 0; border-top: 3px solid var(--espresso); border-bottom: 3px solid var(--espresso); }
.track { display: flex; width: max-content; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; white-space: nowrap; animation: marquee 40s linear infinite; }
.track svg { width: 20px; height: 20px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track, .counter::before { animation: none; } html { scroll-behavior: auto; } }

/* Numbers */
.light { background: var(--cream); color: var(--espresso); }
.light .eyebrow, .light .soft { color: var(--mocha); }
.stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.stat-dot { width: 184px; height: 184px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 68px; line-height: 1; color: var(--espresso); }
.stat p { margin: 0; font-size: 20px; font-weight: 700; }
.note { margin: 0; font-size: 14px; color: var(--mocha); }

/* Why */
.why { background: var(--pistachio); color: var(--espresso); }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 280px; background: var(--cream); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card .num { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--mocha); }
.card h3 { margin: 0; font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.card p { margin: 0; font-size: 18px; color: var(--mocha); }
.inline-link { text-decoration: underline; text-underline-offset: 4px; }

/* Flavors */
.flavors { background: var(--espresso); }
.flavor-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.flavor { flex: 1 1 300px; color: var(--espresso); border-radius: 32px; padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.flavor .vote { margin-top: auto; }
.flavor img { width: calc(100% + 40px); max-width: none; height: auto; margin: 0 -20px; transform: rotate(-4deg); filter: drop-shadow(0 16px 14px rgba(36, 22, 15, 0.35)); }
.flavor:nth-child(2) img { transform: rotate(3deg); }
.flavor h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 50px; line-height: 0.95; text-transform: uppercase; }
.flavor p { margin: 0; font-size: 18px; }
.vote { min-height: 52px; border-radius: 999px; border: 2px solid var(--espresso); background: transparent; color: var(--espresso); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vote[aria-pressed=true] { background: var(--espresso); color: var(--cream); }
.vote .check { width: 18px; height: 18px; display: none; }
.vote[aria-pressed=true] .check { display: block; }
.vote-note { margin: 0; font-size: 16px; font-weight: 700; color: var(--lime); min-height: 24px; }

/* Team */
.team-scroll { overflow-x: auto; padding-bottom: 4px; }
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; min-width: 920px; }
.person { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.avatar { width: 100%; aspect-ratio: 1 / 1; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 64px; color: var(--espresso); }
.person h3 { margin: 0; font-size: 22px; font-weight: 800; }
.person p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--mocha); }
.person strong { color: var(--espresso); }

/* Taste test */
.taste { background: var(--orange); color: var(--espresso); border-top: 3px solid var(--espresso); }
.center { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.huge { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(64px, 10vw, 150px); line-height: 0.9; text-transform: uppercase; }
.dark-btn { min-height: 56px; padding: 0 28px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--espresso); color: var(--orange); font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.faq-list { border-top: 2px solid var(--espresso); }
.faq details { border-bottom: 2px solid var(--espresso); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.plus { font-size: 32px; line-height: 1; transition: transform 0.2s ease; flex: none; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--mocha); }

/* Final CTA */
.cta { background: var(--lime); color: var(--espresso); }
.cta .fine { color: var(--espresso); }
.cta-count { margin: 0; font-size: 22px; font-weight: 800; }

/* Footer */
.footer { padding: 64px var(--gutter) 40px; }
.footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-top p { margin: 10px 0 0; font-size: 16px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 16px; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--mocha); font-size: 14px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Thank-you page */
.ty-hero { padding: 48px var(--gutter) 64px; }
.ty-hero .center svg { width: 64px; height: 64px; }
.ty-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(84px, 12vw, 180px); line-height: 0.9; text-transform: uppercase; }
.ty-spot { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--lime); min-height: 1.3em; }
.panel { background: var(--cream); color: var(--espresso); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-row input { flex: 1 1 320px; min-width: 0; height: 60px; padding: 0 24px; border: 2px solid var(--espresso); border-radius: 999px; background: #fff; color: var(--espresso); font: inherit; font-size: 18px; font-weight: 600; }
.link-row button { flex: 0 0 auto; height: 60px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--espresso); color: var(--lime); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.share { display: flex; flex-wrap: wrap; gap: 12px; }
.share a, .share button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; border: 2px solid var(--espresso); border-radius: 999px; background: transparent; color: var(--espresso); font-size: 16px; font-weight: 700; cursor: pointer; }
.tiers { display: flex; flex-wrap: wrap; gap: 24px; }
.tier { flex: 1 1 260px; color: var(--espresso); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.tier span { font-family: var(--display); font-size: 48px; line-height: 1; text-transform: uppercase; }
.tier p { margin: 0; font-size: 19px; font-weight: 700; }
.tier.done { outline: 4px solid var(--cream); outline-offset: -4px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; }
.bar { height: 14px; border-radius: 999px; background: var(--mocha); overflow: hidden; }
.bar div { height: 100%; width: 3%; border-radius: 999px; background: var(--lime); transition: width 0.6s ease; }
.wtp { max-width: 1120px; margin: 0 auto; background: var(--lime); color: var(--espresso); border-radius: 40px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 28px; }
.options { display: flex; flex-wrap: wrap; gap: 16px; }
.option { flex: 1 1 240px; min-height: 180px; padding: 28px; border: 3px solid var(--espresso); border-radius: 28px; background: var(--cream); color: var(--espresso); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.option[aria-pressed=true] { background: var(--espresso); color: var(--cream); }
.option[aria-pressed=true] .price { color: var(--lime); }
.option .label { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.option .price { font-family: var(--display); font-size: 52px; line-height: 1; }
.option .per { font-size: 17px; }
.lock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lock-row button { min-height: 60px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--espresso); color: var(--lime); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.locked { margin: 0; padding: 20px 24px; border-radius: 20px; background: var(--espresso); color: var(--cream); font-size: 19px; font-weight: 700; }

/* Simple text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 96px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: 0.95; text-transform: uppercase; margin: 16px 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* Small screens */
@media (max-width: 520px) {
  .tag { font-size: 11px; letter-spacing: 0.1em; padding: 7px 12px; }
  .join button { flex: 1 1 100%; }
  .card { padding: 28px; }
  .announce { font-size: 12px; }
}
