/* Golffélaginn — the web token layer.
 *
 * WHY RAW VALUES LIVE HERE: this is a static marketing/legal website, not the
 * React Native app. It cannot import src/theme/tokens.ts and there is no
 * useTheme() — these `:root` custom properties ARE the token layer for the
 * web, which is why the file sits under a `theme/` directory (the same role
 * design-tokens-check exempts for the app's own theme module). Every value is
 * copied from the app's ramps so the site and the app cannot drift.
 *
 * Golf green is the TINT and only the tint. The neutrals are grey with a
 * green-earth cast. The face is the system font — SF Pro on Apple devices,
 * exactly what the app renders. Light-only, matching the app's shipped lock.
 */

:root {
  --green-100: #e9f3ec;
  --green-200: #cfe6d7;
  --green-400: #5fae80;
  --green-500: #259253;
  --green-600: #16663a;
  --green-700: #0f5730;

  --ink-900: #181d1a;
  --ink-800: #444a46;
  --ink-700: #5f6561;
  --ink-600: #8a908c;
  --ink-300: #cdd3cf;
  --ink-100: #eef4f0;

  --ground: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 68ch;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--ground);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

a { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-700); }

/* ── header ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ink-100);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}
.brand {
  font-weight: 700; letter-spacing: 0.08em; font-size: 15px;
  color: var(--green-600); text-decoration: none; white-space: nowrap;
}
.site-head nav { display: flex; gap: 20px; font-size: 15px; }
.site-head nav a { color: var(--ink-700); text-decoration: none; }
.site-head nav a:hover { color: var(--green-600); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--green-100), var(--ground) 70%); }
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px;
  max-width: 16ch; font-weight: 700;
}
.hero p.lede {
  font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-800);
  max-width: 46ch; margin: 0 0 32px;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}

/* ── store buttons ──────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-900); color: #fff; text-decoration: none;
  padding: 11px 18px; border-radius: var(--radius); min-width: 190px;
  border: 1px solid var(--ink-900);
}
.store-btn:hover { color: #fff; }
.store-btn .icon { width: 22px; height: 22px; flex: none; }
.store-btn .label { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .label small { font-size: 11px; opacity: 0.75; }
.store-btn .label strong { font-size: 15px; font-weight: 600; }
.store-btn[aria-disabled="true"] {
  background: transparent; color: var(--ink-700);
  border: 1px dashed var(--ink-300); cursor: default;
}
.store-btn[aria-disabled="true"] .icon { opacity: 0.55; }
.store-note { font-size: 14px; color: var(--ink-600); margin-top: 14px; }

/* ── sections ───────────────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--ink-100); }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.015em; margin: 0 0 12px; }
.section-lede { color: var(--ink-700); max-width: 52ch; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--ground); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 24px;
}
section.alt .card { border-color: var(--ink-300); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-700); font-size: 16px; }
.card .dot {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: var(--green-100); color: var(--green-600);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* ── pricing ────────────────────────────────────────────── */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.tier { border: 1px solid var(--ink-300); border-radius: var(--radius-lg); padding: 26px; background: var(--ground); }
.tier.featured { border-color: var(--green-500); box-shadow: 0 0 0 1px var(--green-500); }
.tier h3 { margin: 0 0 4px; font-size: 19px; }
.tier .price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 4px; }
.tier .price span { font-size: 15px; font-weight: 400; color: var(--ink-600); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tier li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-800); font-size: 16px; }
.tier li::before {
  content: "\2713"; position: absolute; left: 0; top: 7px;
  color: var(--green-500); font-weight: 700;
}
.tier .foot { margin: 16px 0 0; font-size: 14px; color: var(--ink-600); }

/* ── footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--ink-100); padding: 40px 0; color: var(--ink-700); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-700); text-decoration: none; }
footer a:hover { color: var(--green-600); text-decoration: underline; }

/* ── legal documents ────────────────────────────────────── */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--ink-600); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-800); max-width: var(--measure); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-100); vertical-align: top; }
.doc th { color: var(--ink-900); font-weight: 600; white-space: nowrap; }
.doc td { color: var(--ink-700); }
.lang-switch { display: flex; gap: 10px; margin: 0 0 28px; }
.lang-switch a {
  font-size: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-700); text-decoration: none;
}
.lang-switch a:hover { background: var(--green-100); color: var(--green-600); }
.callout {
  background: var(--green-100); border-radius: var(--radius);
  padding: 16px 18px; margin: 20px 0; max-width: var(--measure);
}
.callout p { margin: 0; color: var(--green-700); }
hr.split { border: 0; border-top: 1px solid var(--ink-300); margin: 56px 0 40px; }

@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .site-head nav { gap: 14px; font-size: 14px; }
  .store-btn { min-width: 0; flex: 1 1 auto; }
}
