/* Fourball marketing site. Design system mirrors the app (Clubhouse Modern). */
:root {
  --board: #0E3A2D;
  --board-edge: #0A2C22;
  --fairway: #1E6147;
  --paper: #F7F4EC;
  --page: #EDEAE1;
  --ink: #172019;
  --muted: #6E7A70;
  --under: #C8362B;
  --line: #DDD8CB;
  --gold: #C99A3C;
  --white: #FFFFFF;
  --display: "Saira Condensed", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fairway); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Type */
.kicker { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--fairway); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.04; }
h1 { font-size: clamp(40px, 8vw, 76px); letter-spacing: 0.5px; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: 0.5px; }
h3 { font-size: 19px; }
p { font-size: 16px; color: #2C362E; }
.lead { font-size: 19px; color: #3A453C; }
.mono { font-family: var(--mono); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(247,244,236,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--board); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--ink); }
.nav-links a:hover { color: var(--fairway); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px; border: 1.5px solid var(--board); cursor: pointer; }
.btn-primary { background: var(--board); color: var(--paper); }
.btn-primary:hover { background: var(--board-edge); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--board); text-decoration: none; }

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 72px 0 80px; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 18px; }
.hero .gold { color: var(--gold); }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Phone card mock */
.mock { background: var(--board); border-radius: 26px; padding: 20px; border: 1px solid var(--board-edge); box-shadow: 0 30px 60px rgba(14,58,45,0.25); }
.mock .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mock .lt { font-family: var(--display); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--paper); }
.mock .live { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: var(--gold); }
.mock .row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(247,244,236,0.1); }
.mock .pos { font-family: var(--mono); font-weight: 600; color: var(--paper); width: 16px; }
.mock .team { flex: 1; }
.mock .team b { display: block; font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--paper); }
.mock .team span { font-size: 11px; color: var(--paperDim, rgba(247,244,236,0.6)); color: rgba(247,244,236,0.55); }
.mock .pts { font-family: var(--mono); font-weight: 600; color: var(--paper); }
.mock .sc { font-family: var(--mono); font-weight: 600; color: #F2B8B0; width: 42px; text-align: right; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { margin: 10px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.step .num { font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--gold); line-height: 1; }
.step h3 { margin: 10px 0 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Scoring */
.scoring .box { background: var(--board); border-radius: 20px; padding: 32px; color: var(--paper); }
.scoring .box h2 { color: var(--paper); }
.scoring .lines { margin-top: 20px; display: grid; gap: 8px; max-width: 420px; }
.scoring .ln { display: flex; justify-content: space-between; font-size: 15px; padding: 7px 0; border-top: 1px solid rgba(247,244,236,0.12); }
.scoring .ln span:first-child { color: rgba(247,244,236,0.85); }
.scoring .ln span:last-child { font-family: var(--mono); font-weight: 600; color: var(--gold); }

/* CTA band */
.band { background: var(--board); text-align: center; }
.band h2 { color: var(--paper); }
.band p { color: rgba(247,244,236,0.7); max-width: 520px; margin: 12px auto 24px; }

/* Footer */
footer { background: var(--board-edge); color: rgba(247,244,236,0.7); padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: rgba(247,244,236,0.85); }
footer .links { display: flex; gap: 22px; }

/* Legal pages */
.legal { background: var(--white); }
.legal .wrap { padding-top: 56px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 15.5px; color: #2C362E; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 820px) {
  .hero .grid { grid-template-columns: 1fr; }
  .cards, .steps .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
