/* ClubMate marketing landing — styles.
 *
 * Tokens mirror the app (apps/mobile/src/lib/theme.ts / brand/design-tokens.ts) so
 * the site and the app read as one brand. RULES (from CLAUDE.md / brand-kit):
 *   - brand green #0E7A45 is the LOCKED constant: chrome, links, primary CTAs.
 *   - leather #A84D2A is reserved for MONEY/PAY surfaces ONLY (the fees block).
 *   - Bricolage Grotesque = display headings; Inter = body/UI.
 *   - tabular figures on every amount/count.
 * Keep text on paper/ink pairings — every token here already passes WCAG AA.
 */

:root {
  --green: #0E7A45;      /* brand green (locked) */
  --green-ink: #0B5E36;  /* darker green for hover */
  --ink: #14201A;        /* foreground */
  --paper: #FBFAF6;      /* background */
  --card: #FFFFFF;
  --pitch: #E8EDE4;      /* muted surface */
  --border: #DDE2DA;     /* warm hairline */
  --muted: #5B6B61;      /* secondary text (AA) */
  --leather: #A84D2A;    /* MONEY ONLY */
  --leather-ink: #8E3F22;
  --tint: #DCEFE3;       /* light green tint */
  --secondary: #1B2922;  /* dark ink surface (footer) */
  --secondary-fg: #C9D6CD;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(20, 32, 26, .06), 0 8px 24px rgba(20, 32, 26, .08);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
  min-height: 48px; /* touch target */
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--pitch); text-decoration: none; }
/* leather ONLY on money surfaces */
.btn-money { background: var(--leather); color: #fff; }
.btn-money:hover { background: var(--leather-ink); text-decoration: none; }

/* --- header --- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 246, .85); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand .mark { color: var(--green); width: 26px; height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.navlink { color: var(--ink); font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .nav-links a.navlink { display: none; } }

/* --- sections --- */
section { padding: 72px 0; }
.eyebrow { color: var(--green); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .fineprint { color: var(--muted); font-size: .85rem; margin-top: 14px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* phone mock */
.phone { width: 290px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 36px; padding: 12px; box-shadow: var(--shadow); }
.phone-screen { background: var(--paper); border-radius: 26px; overflow: hidden; }
.phone-topbar { background: var(--green); color: #fff; padding: 14px 16px 12px; font-family: var(--font-display); font-weight: 700; }
.phone-body { padding: 14px; display: grid; gap: 10px; }
.mrow { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.mrow .top { display: flex; justify-content: space-between; align-items: baseline; }
.mrow .opp { font-weight: 700; font-size: .95rem; }
.mrow .date { color: var(--muted); font-size: .8rem; }
.mrow .status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.st-in { background: var(--tint); color: var(--green-ink); }
.st-pay { background: #F6E7DE; color: var(--leather-ink); }
.st-maybe { background: #FBEFD6; color: #8A6415; }

/* feature blocks */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature.reverse .fig { order: 2; }

/* Tick list: the checkmark-bullet style used inside .feature blocks, and
   standalone (via .checklist) for single-column sections with no image
   sibling — .feature's grid-template-columns:1fr 1fr assumes two children,
   so a text-only section should use .checklist directly rather than .feature. */
.feature ul, .checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature li, .checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.feature li svg, .checklist li svg { flex: none; margin-top: 3px; color: var(--green); }
.feature.money li svg, .checklist.money li svg { color: var(--leather); }
.fig { background: var(--pitch); border: 1px solid var(--border); border-radius: 20px; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.fig .shot-note { color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.reverse .fig { order: 0; } }

/* band */
.band { background: var(--secondary); color: var(--secondary-fg); }
.band h2 { color: #fff; }
.band .lead { color: var(--secondary-fg); }

/* trust cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.tcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tcard h3 { margin-bottom: 8px; }
.tcard p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* final cta */
.final { text-align: center; }
.final .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* footer */
footer { background: var(--secondary); color: var(--secondary-fg); padding: 48px 0 40px; }
footer .cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer a { color: var(--secondary-fg); font-size: .95rem; }
footer .brand { color: #fff; }
footer .brand .mark { color: #fff; }
footer .legal { color: #8FA396; font-size: .82rem; margin-top: 28px; }
