/* ============================================================================
   Back Tees Live — marketing site design system
   ---------------------------------------------------------------------------
   Premium private golf club + modern software. Warm editorial light base so the
   product's dark UI reads as the hero; deep green and charcoal carry the brand.
   Greens are taken from the app (AppTheme.bgPrimary #0D1B0E, accent #22C55E) so
   the site and the product look like the same company.

   No web fonts, no JS frameworks, no animation libraries — the only script on
   the site is a ~20-line scroll-reveal, and it is skipped entirely for anyone
   who prefers reduced motion.
   ========================================================================== */

:root {
  /* Brand */
  --green-950: #0A1410;
  --green-900: #0D1B0E;   /* app background */
  --green-800: #12251A;
  --green-700: #14532D;
  --green-600: #17693A;
  --green-500: #22C55E;   /* app accent */
  --green-300: #6EE7A0;
  --green-050: #EEF6F0;

  /* Neutrals — warm, not blue-grey */
  --ink:    #0F1511;
  --ink-70: #3D4742;
  --muted:  #5E6A63;
  --line:   #E2E0D9;
  --bone:   #F7F5F0;
  --paper:  #FFFFFF;

  --gold:   #B08D3F;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.50rem + 1.50vw, 2.75rem);
  --step-4:  clamp(2.20rem, 1.65rem + 2.75vw, 4.00rem);

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 21, 17, .05), 0 4px 12px rgba(15, 21, 17, .06);
  --shadow-lg: 0 20px 50px -12px rgba(15, 21, 17, .28), 0 6px 18px rgba(15, 21, 17, .10);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { 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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;             /* belt-and-braces against horizontal scroll */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-family: var(--serif); font-size: var(--step-4); }
h2 { font-family: var(--serif); font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p  { margin: 0; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: var(--s, 20px); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-600); margin: 0 0 14px;
}
.lede { font-size: var(--step-1); color: var(--ink-70); line-height: 1.5; }
.muted { color: var(--muted); }

/* Dark sections — used to separate the club story from the golfer story. */
.dark {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(34, 197, 94, .13), transparent 62%),
    var(--green-900);
  color: #F2F5F2;
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lede, .dark .muted { color: #A9B8AE; }
.dark .eyebrow { color: var(--green-300); }
.dark a { color: var(--green-300); }

.tint { background: var(--bone); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--primary { background: var(--green-500); color: var(--green-950); }
.dark .btn--primary:hover { background: var(--green-300); }
.dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.dark .btn--ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 20px; height: 20px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a {
  color: var(--ink-70); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--bone); }
/* `.nav a` is class+element, which out-specifies `.btn--primary` (class only),
   so the button colours must be restated here or the CTA label goes dark. */
.nav a.btn { padding: 10px 20px; font-size: .95rem; }
.nav a.btn--primary { color: #fff; background: var(--green-700); }
.nav a.btn--primary:hover { color: #fff; background: var(--green-600); }
.nav a.btn--ghost { color: var(--ink); }
@media (max-width: 860px) {
  .nav a.nav-hide { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lede { max-width: 46ch; }
.hero .btn-row { margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: var(--step--1); color: var(--muted); }

/* Layered product composition: desktop console behind, phone in front. */
.compose { position: relative; }
.compose__desk {
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(15,21,17,.12);
  box-shadow: var(--shadow-lg); background: var(--green-900);
}
.compose__phone {
  position: absolute; right: -4px; bottom: -30px; width: 33%; max-width: 210px;
  border-radius: 22px; overflow: hidden;
  border: 5px solid #10160F; background: #10160F;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) {
  .compose__phone { width: 40%; right: -6px; bottom: -18px; border-width: 4px; border-radius: 18px; }
}

/* Browser chrome for desktop captures. */
.frame { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(15,21,17,.12); }
.frame__bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: #1B241D; border-bottom: 1px solid rgba(255,255,255,.07);
}
.frame__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.frame__url {
  margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame img { display: block; }

/* Phone frame for standalone mobile shots. */
.phone {
  border-radius: 26px; overflow: hidden; border: 6px solid #10160F;
  background: #10160F; box-shadow: var(--shadow-lg); max-width: 300px; margin-inline: auto;
}
.phone img { border-radius: 20px; }

/* ── Value bar ───────────────────────────────────────────────────────────── */
.valuebar { border-block: 1px solid var(--line); background: var(--bone); }
.valuebar ul {
  list-style: none; margin: 0; padding: 26px 0; display: grid; gap: 18px 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .valuebar ul { grid-template-columns: repeat(6, 1fr); } }
.valuebar li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-70);
}
.valuebar svg { width: 22px; height: 22px; color: var(--green-600); }

/* ── Steps (golfer story) ────────────────────────────────────────────────── */
.steps { display: grid; gap: clamp(28px, 4vw, 40px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-700); color: #fff; font-size: .82rem; font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: var(--step--1); }

/* ── Alternating feature rows ────────────────────────────────────────────── */
.row { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row--flip .row__media { order: -1; }
}
.row + .row { margin-top: clamp(48px, 8vw, 104px); }
.row h2 { margin-bottom: 16px; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--ink-70); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--green-500);
  border-bottom: 2.5px solid var(--green-500); transform: rotate(-45deg);
}
.dark .ticks li { color: #C6D4CB; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: var(--step--1); }
.dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); }
.dark .card p { color: #A9B8AE; }

/* Format chips */
.formats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.formats li {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .93rem;
}
.formats li span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.dark .formats li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.dark .formats li span { color: #9DAFA4; }

/* ── Lifecycle ───────────────────────────────────────────────────────────── */
.flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); list-style: none; margin: 0; padding: 0; }
.flow li {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px;
  background: var(--paper); position: relative;
}
.flow li b { display: block; font-size: .95rem; margin-bottom: 4px; }
.flow li span { font-size: .82rem; color: var(--muted); }
.dark .flow li { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.10); }
.dark .flow li span { color: #9DAFA4; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.tier--featured { border-color: var(--green-600); box-shadow: var(--shadow-lg); position: relative; }
.tier__flag {
  position: absolute; top: -12px; left: 28px; background: var(--green-700); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tier__price { font-family: var(--serif); font-size: var(--step-2); margin: 10px 0 2px; }
.tier__price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 400; }
.tier .ticks { margin-top: 18px; }
.tier .ticks li { font-size: var(--step--1); }
.tier .btn { width: 100%; margin-top: 22px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: var(--step-0);
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--green-600); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* ── Stat strip (factual product statements only — no invented metrics) ──── */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat b { display: block; font-family: var(--serif); font-size: var(--step-2); color: var(--green-600); }
.dark .stat b { color: var(--green-300); }
.stat span { font-size: var(--step--1); color: var(--muted); }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-foot { background: var(--green-950); color: #9DAFA4; padding-block: 56px 34px; }
.site-foot a { color: #C6D4CB; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* Footer column labels. They are h3 (not h4) so the document heading order
   never skips a level — the last content section on every page ends at h2. */
.foot__grid .foot-h {
  margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #7C8F84;
}
.foot__grid ul { list-style: none; margin: 0; padding: 0; }
.foot__grid li { margin-bottom: 9px; font-size: .92rem; }
.foot__brand { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; }
.foot__brand svg { width: 18px; height: 18px; }
.foot__bar {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .84rem; color: #7C8F84;
}

/* ── Store badges ────────────────────────────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 18px; color: var(--ink);
  background: var(--paper);
}
.store:hover { border-color: var(--ink); }
.store svg { width: 22px; height: 22px; flex: none; }
.store b { display: block; font-size: .93rem; line-height: 1.15; }
.store span { display: block; font-size: .72rem; color: var(--muted); }
.dark .store { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); color: #fff; }
.dark .store span { color: #9DAFA4; }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Horizontal screenshot rail on small screens — never shrink UI to illegible. */
.rail { display: grid; gap: 18px; }
@media (max-width: 780px) {
  .rail {
    grid-auto-flow: column; grid-auto-columns: 66%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    padding-bottom: 8px; scrollbar-width: thin;
  }
  .rail > * { scroll-snap-align: center; }
}
@media (min-width: 781px) { .rail { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* Visually hidden, still announced. Used where the design carries a section
   without a visible heading but the document still needs one for order. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
