/* Polyhex
   Layout: centered, bold, sectioned landing page (one idea per band).
   Colors come from the logo (favicon.svg): honey #F2B33D and navy #1F2A44.
   Honey is too light for text on white (1.86:1), so it is used for fills, borders, and bands
   with navy text on top (7.67:1). Body text is navy (14.26:1). Links use dark honey (7.13:1). */
/* Atkinson Hyperlegible's zero has a slash through it. This swaps in a plain zero
   (from Inter, OFL license in assets/fonts/) for the digit 0 only. size-adjust matches its height. */
@font-face {
  font-family: "Plain Zero"; src: url("fonts/inter-zero.woff2") format("woff2");
  font-weight: 400 800; unicode-range: U+0030; size-adjust: 92.6%; font-display: swap;
}
:root {
  color-scheme: light;
  --honey: #F2B33D;
  --honey-soft: #FCEBC8;
  --navy: #1F2A44;
  --navy-deep: #141B2D;
  --honey-ink: #7A4F00;

  --bg: #FFFFFF;
  --surface: #EEF1F6;
  --fg: var(--navy);
  --muted: #4A5470;
  --line: #D5DBE6;
  --field-line: #7D879C;
  --link: var(--honey-ink);
  --btn-bg: var(--navy);
  --btn-fg: #FFFFFF;
  --focus: #1F2A44;
  --ok: #1B6B3A;
  --bad: #B3261E;
  --card: #FFFFFF;
  --tint: #FDF6E7;                /* pale honey: highlighted sections */

  --font: "Plain Zero", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --col: 44rem;
  --text: 46rem;                   /* one reading width for every text column */
  /* Spacing scale (8px steps). Every gap on the page uses one of these. */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: var(--s6);            /* vertical padding of every section */
  --head-gap: var(--s4);           /* section heading -> its content */
  --overlap: 120px;                /* how far the tan background runs behind the top of the letter card */
  --wide: 72rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; overflow-x: clip; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 8vw, 5.25rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--bg); padding: 8px 14px; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.narrow { max-width: calc(var(--text) + 64px); }
@media (min-width: 720px) { :root { --section: var(--s7); --head-gap: var(--s5); } }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 6px; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
}
.btn:hover { filter: brightness(1.15); }
.btn.outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.outline:hover { background: var(--surface); filter: none; }
.btn.big { font-size: 1.2rem; padding: 18px 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; }
.topnav { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-left: auto; font-weight: 700; font-size: 1.02rem; }
.topnav a { color: var(--fg); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current] { border-bottom-color: var(--honey); }
.top-actions { display: flex; gap: 12px; }
.top-actions .btn { padding: 10px 18px; font-size: 1rem; background: var(--bg); color: var(--fg); border-color: var(--fg); }   /* both top buttons: white */
.top-actions .btn:hover { background: var(--surface); filter: none; }
@media (max-width: 899px) {
  .topbar .wrap { gap: 4px 12px; padding-block: 10px; }
  .top-actions { margin-left: auto; }
  .top-actions .outline { display: none; }      /* Volunteer is still in the link row */
  .topnav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 0 6px; font-size: 0.86rem; }
}
@media (min-width: 900px) { .topnav .only-small { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s5) var(--section); text-align: center; }
@media (min-width: 720px) { .hero { padding-top: var(--s6); } }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.hero .lede { font-size: clamp(1.2rem, 2.6vw, 1.6rem); max-width: var(--text); color: var(--fg); margin-top: calc(-1 * var(--s1)); }
.callout {
  margin-top: var(--s2); padding: var(--s2) var(--s3); max-width: var(--text); background: var(--honey-soft);
  border-left: 6px solid var(--honey); border-radius: 4px; font-size: 1.2rem; text-align: left;
}
.callout strong { font-weight: 800; }

/* The pilot spots, drawn like the logo: dashed = open, honey = taken, navy = finished. */
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--s2), 3vw, var(--s4)); width: min(100%, 34rem); }
.spot { display: flex; flex-direction: column; align-items: center; gap: var(--s1); font-size: 1rem; }
.spot svg { width: 100%; max-width: 150px; height: auto; overflow: visible; }
.spot polygon { stroke-linejoin: round; }
.spot[data-status="open"] polygon { fill: none; stroke: var(--honey); stroke-width: 7; stroke-dasharray: 13 9; }
.spot[data-status="taken"] polygon { fill: var(--honey); }
.spot[data-status="finished"] polygon { fill: var(--navy); }
.spot strong { display: block; font-weight: 800; }
.spot span { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  /* Open spots: the dashes keep walking around the hexagon. 88 = 4 dash cycles (13 + 9), so the loop is seamless. */
  .spot[data-status="open"] polygon { animation: march 4s linear infinite; }
  @keyframes march { from { stroke-dashoffset: 88; } to { stroke-dashoffset: 0; } }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); scroll-margin-top: 110px; }
@media (min-width: 720px) { .section { scroll-margin-top: 80px; } }
.alt { background: var(--surface); }
.section-head { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--head-gap); }
.section-head.center { align-items: center; text-align: center; }
.section-head p { font-size: 1.3rem; }

/* Highlighted sections (pale honey) */
.dark { background: var(--tint); border-block: 1px solid #F3DFB5; }
.prose { display: flex; flex-direction: column; gap: var(--s3); font-size: 1.25rem; }
.prose h2 { margin-bottom: calc(var(--head-gap) - var(--s3)); }   /* same heading gap as other sections */
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s1); }
.problem { border-bottom: 0; }

/* Letter from Ethan: a slightly tilted card that overlaps the navy band */
/* The tan from the section above continues behind the top of the card, so the card straddles the edge.
   Done with a background (not a negative margin) so the gaps above and below the card stay exact. */
.letter-zone { background: linear-gradient(to bottom, var(--tint) var(--overlap), var(--bg) var(--overlap)); }
@media (min-width: 720px) { :root { --overlap: 200px; } }
.letter {
  position: relative; margin: 0 auto; max-width: var(--text); background: var(--card); color: var(--fg);
  border-radius: 10px; padding: var(--s4) var(--s3); box-shadow: 0 2px 0 var(--line), 0 18px 40px rgba(20,27,45,.18);
  display: flex; flex-direction: column; gap: var(--s2); font-size: 1.12rem;
}
.letter::before {   /* the second sheet peeking out behind */
  content: ""; position: absolute; inset: 10px -6px -10px 6px; z-index: -1; background: var(--card);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(20,27,45,.12);
}
@media (min-width: 720px) {
  .letter { padding: var(--s5); transform: rotate(-1deg); }
  .letter::before { transform: rotate(2deg); }
}
.letter h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.sign { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s1); }
.sign img { width: 64px; height: 64px; }
.sign p { line-height: 1.4; }
.sign strong { font-size: 1.2rem; font-weight: 800; display: block; }

/* Checklists with hexagon ticks */
.checks-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: var(--s3); max-width: var(--text); font-size: 1.25rem; }
.checks-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.checks-list li::before {
  content: ""; width: 40px; height: 46px; background: var(--honey) center / 22px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%231F2A44' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-top: -6px;
}
.checks-list strong { font-weight: 800; }
.checks-list span { display: block; color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.then { margin-top: var(--section); }

/* Steps (a real sequence) as cards */
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 720px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .step-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-cards li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4) var(--s3);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  box-shadow: 0 6px 18px rgba(20,27,45,.06);
}
.step-cards .num { color: var(--link); font-weight: 700; font-style: italic; font-size: 1.1rem; }
.step-cards h3 { font-size: 1.6rem; padding-bottom: var(--s2); border-bottom: 3px solid var(--honey); width: 100%; }
.step-cards p { color: var(--muted); }
.after-steps { margin-top: var(--s5); font-size: 1.35rem; text-align: center; max-width: var(--text); margin-inline: auto; }

/* Price cards with colored headers */
.price-cards { display: grid; gap: var(--s3); max-width: 60rem; margin: 0 auto; }
@media (min-width: 760px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-card { border: 3px solid var(--honey); border-radius: 12px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.price-card header { background: var(--honey); color: var(--navy); padding: var(--s3); text-align: center; }
.price-card header h3 { font-size: 1.8rem; }
.price-card .body { padding: var(--s4) var(--s3); display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.price-card .amount { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price-card .tag { display: flex; align-items: center; gap: var(--s2); width: 100%; font-weight: 800; font-size: 1rem; }
.price-card .tag::before, .price-card .tag::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .5; }
.price-card .tag span { background: var(--honey); color: var(--navy); padding: 6px 14px; border-radius: 6px; }
.price-card p { color: var(--muted); }
.price-card .amount { color: var(--fg); }
.price-card.later { border-color: var(--navy); }
.price-card.later header { background: var(--surface); color: var(--navy); border-bottom: 3px solid var(--navy); }
.price-card.later .tag span { background: var(--navy); color: #FFFFFF; }
.price-note { max-width: var(--text); margin: var(--s4) auto 0; color: var(--muted); text-align: center; }
.price-cta { margin-top: var(--s5); display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; font-size: 1.35rem; }

/* FAQ: outlined boxes */
.faq { max-width: var(--text); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s2); }
.faq details { border: 2px solid var(--honey); border-radius: 10px; background: var(--card); }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 1.2rem; padding: var(--s3) var(--s6) var(--s3) var(--s3); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--s3); top: 50%; transform: translateY(-52%); font-size: 1.9rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 var(--s3) var(--s3); color: var(--muted); }

/* Honey closing band with hexagon-top edges */
.band { position: relative; z-index: 1; background: var(--honey); color: var(--navy); text-align: center; padding-block: var(--section); margin-top: var(--s3); }   /* margin = height of the hexagon edge */
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px; background-repeat: repeat-x; background-size: 56px 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 24'%3E%3Cpath d='M0 24V14L28 0l28 14v10z' fill='%23F2B33D'/%3E%3C/svg%3E");
}
.band::before { top: -23px; }
.band::after { bottom: -23px; transform: scaleY(-1); }
.band .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.band p { font-size: 1.35rem; max-width: 34em; }
.band .btn { --btn-bg: var(--navy); --btn-fg: #FFFFFF; }
.band .btn.outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.band .btn.outline:hover { background: rgba(31,42,68,.08); }
.band a:not(.btn) { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); color: var(--muted); padding-block: calc(var(--section) + var(--s3)) var(--s4); font-size: 1.05rem; }   /* + room for the band's hexagon edge */
.footer a { color: var(--navy); text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.foot-grid { max-width: var(--text); margin: 0 auto; display: flex; flex-direction: column; gap: var(--s5); }
.foot-grid h2 { font-size: 1.05rem; color: var(--honey-ink); letter-spacing: 0; padding-bottom: var(--s1); border-bottom: 1px solid var(--line); margin-bottom: var(--s2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.foot-mail { text-align: center; display: flex; flex-direction: column; gap: var(--s1); }
.foot-mail p { color: var(--honey-ink); font-weight: 800; font-size: 1.15rem; }
.foot-mail a { font-size: clamp(1.4rem, 5vw, 2.6rem); font-weight: 800; overflow-wrap: anywhere; }
.foot-base { max-width: var(--wide); margin: var(--s6) auto 0; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: center; justify-content: space-between; font-size: 0.95rem; }
.foot-base .brand { color: var(--navy); font-size: 1.1rem; }
.foot-base .brand img { width: 28px; height: 28px; }

/* ---------- Form pages ---------- */
.page-head { padding-top: var(--s6); display: flex; flex-direction: column; gap: var(--s2); max-width: var(--text); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.page-head .lede { font-size: 1.25rem; }
.back { color: var(--muted); font-size: 1rem; }
.form-wrap { padding-block: var(--s5) var(--section); }
.form { display: flex; flex-direction: column; gap: var(--s3); max-width: var(--text); }
.form h2 { font-size: 1.35rem; }
.form-group-title { margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, fieldset.field legend { font-weight: 700; font-size: 1rem; }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg);
  border: 2px solid var(--field-line); border-radius: 6px; padding: 10px 12px; width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field ::placeholder { color: var(--muted); opacity: 0.8; }
.field .hint { color: var(--muted); font-size: 0.95rem; }
.field .hint.bad { color: var(--bad); }
.field input[type="file"] { font: inherit; font-size: 1rem; color: var(--muted); max-width: 100%; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; color: var(--fg); background: var(--bg);
  border: 2px solid var(--field-line); border-radius: 6px; padding: 8px 14px; margin-right: 12px; cursor: pointer;
}
.req { color: var(--bad); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 2px solid var(--field-line); border-radius: 6px; font-weight: 400; cursor: pointer;
}
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.checks label:has(input:checked) { border-color: var(--honey); font-weight: 700; }
.checks label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-hint { color: var(--muted); font-size: 1rem; }
.form-status { font-size: 1rem; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--bad); }
.turnstile-box { min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
