/* Clubfolk public site. Concept: the clubrooms on a Saturday: oval-green, chalk lines, the siren-yellow call to action. */
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --pitch: #123f2a;
  --pitch-2: #1f7a4d;
  --chalk: #ffffff;
  --paper: #f3f6f1;
  --ink: #15231a;
  --muted: #55665b;
  --rule: #d9e2d9;
  --siren: #f5c536;
  --siren-ink: #2a2100;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--chalk); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--pitch-2); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--siren); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.8rem, 7.2vw, 5.1rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--siren); color: var(--siren-ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1.02rem/1 var(--body); background: var(--siren); color: var(--siren-ink); border: 2px solid var(--siren); border-radius: 999px; padding: 14px 24px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 197, 54, .35); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { box-shadow: none; border-color: var(--chalk); }
.btn-small { padding: 9px 16px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--pitch); color: var(--chalk); padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font: 700 1.6rem/1 var(--display); letter-spacing: .01em; }
.brand img { border-radius: 8px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--chalk); text-decoration: none; font-weight: 600; font-size: .98rem; }
nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 760px) { nav a:not(.btn):not(.nav-signin) { display: none; } nav { gap: 14px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--pitch); color: var(--chalk); padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }
.oval { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.09); stroke-width: 3; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font: 600 .9rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--siren); }
.lede { font-size: 1.2rem; max-width: 34ch; color: rgba(255,255,255,.88); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* The example "Today" board */
.board { background: var(--chalk); color: var(--ink); border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); transform: rotate(1.2deg); min-width: 0; }
@media (max-width: 900px) { .board { transform: none; } }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; font: 700 1.5rem/1 var(--display); }
.board-head .muted { font: 600 .85rem/1.2 var(--body); }
.jobs { list-style: none; margin: 0; padding: 0; }
.jobs li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; padding: 12px 2px; border-bottom: 1px solid var(--rule); }
.jobs li:last-child { border-bottom: 0; }
.jobs b { display: block; font-weight: 600; line-height: 1.3; }
.jobs small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; margin-top: 2px; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.dot.ok { background: var(--pitch-2); }
.dot.due { background: var(--siren); box-shadow: inset 0 0 0 2px #c99a0c; }
.dot.warn { background: #d1452b; }
.board-note { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; margin-top: 6px; }

/* Facts strip */
.facts { background: var(--siren); color: var(--siren-ink); }
.facts-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 26px; }
.facts-lead { font: 700 1.35rem/1.15 var(--display); max-width: 22ch; }
.facts dl { display: flex; flex-wrap: wrap; gap: 18px 44px; margin: 0; }
.facts dl div { display: flex; align-items: baseline; gap: 10px; }
.facts dt { font: 700 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; max-width: 17ch; font-size: .95rem; line-height: 1.3; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--paper); }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin-top: 14px; }
.two { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.two > * { min-width: 0; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); }
.feature { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.feature:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rule); }
.feature p { color: var(--muted); }
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2n) { padding-left: 0; border-left: 0; }
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; background: var(--chalk); border-radius: 14px; padding: 18px 20px; border: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; font: 700 2.6rem/1 var(--display); color: var(--pitch-2); }
.steps b { font-size: 1.08rem; }
.steps span { color: var(--muted); }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trust li { padding: 16px 18px 16px 44px; border-radius: 12px; background: var(--paper); position: relative; font-weight: 600; }
.trust li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 7px; border-left: 3px solid var(--pitch-2); border-bottom: 3px solid var(--pitch-2); transform: rotate(-45deg); }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
details:first-of-type { margin-top: 28px; border-top: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font: 600 1.35rem/1.2 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 700 1.7rem/1 var(--display); color: var(--pitch-2); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 18px; color: var(--muted); max-width: 64ch; }

/* Demo form */
.demo { background: var(--pitch); color: var(--chalk); }
.demo .section-lead { color: rgba(255,255,255,.85); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--chalk); color: var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--chalk); border: 1.5px solid #b9c7bc; border-radius: 10px; padding: 11px 12px; width: 100%; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--pitch-2); }
.form-status.err { color: #b3261e; }
.form.sent .field, .form.sent .form-note, .form.sent button { display: none; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.88); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.foot a { color: var(--chalk); }
.foot .muted { color: rgba(255,255,255,.65); }
.foot-row { display: flex; flex-direction: column; gap: 8px; }
