/* Lowdown Golf site. Colours, type and shapes come straight from the app. */
:root {
  --rough: #123528;
  --pine: #0f2b20;
  --fairway: #1c6a44;
  --fairway-stripe: #1f5a3d;
  --green: #22804f;
  --green-soft: #e2efe5;
  --green-line: #cfe2d4;
  --dew: #f3f5f0;
  --card: #ffffff;
  --sand: #f2ebdb;
  --flag: #d8432d;
  --tee: #b9e05c;
  --tee-deep: #7fae2c;
  --gold-soft: #eef7d6;
  --gold-ink: #4d6d12;
  --ink: #15211b;
  --ink-soft: #5a6760;
  --line: #e1e6df;
  --surface-2: #f7f9f5;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(21, 33, 27, 0.04), 0 8px 24px -16px rgba(21, 33, 27, 0.16);
  --shadow-float: 0 40px 80px -30px rgba(5, 25, 16, 0.65);

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --dew: #0c1712;
    --card: #13241b;
    --surface-2: #172a20;
    --ink: #e7efe9;
    --ink-soft: #9cb0a4;
    --line: #22382c;
    --green-soft: #183527;
    --green-line: #24493a;
    --green: #5cc28b;
    --sand: #2a2a20;
    --gold-soft: #26341a;
    --gold-ink: #cfe89a;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--dew);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.02em; font-variation-settings: 'opsz' 48; }
p { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--tee); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--tee); color: var(--pine); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 700; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-gold { background: var(--tee); color: var(--pine); box-shadow: 0 10px 28px -12px rgba(185, 224, 92, 0.8); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(185, 224, 92, 0.9); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  color: #fff;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s var(--ease-out);
}
.topbar.is-scrolled {
  background: rgba(15, 43, 32, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding-top: 10px; padding-bottom: 10px;
}
.topbar-brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 19px/1 var(--font-display); letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.topbar-nav { display: flex; gap: 26px; margin-left: auto; }
.topbar-nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.topbar-nav a:hover { color: #fff; }
.hero-note a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero: a mown fairway ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, rgba(5, 20, 14, 0.6), transparent 60%),
    repeating-linear-gradient(104deg, var(--fairway) 0 90px, var(--fairway-stripe) 90px 180px);
  padding: 140px 0 120px;
}
.hero::before {
  /* the shade under the trees, darkening towards the edges */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 34, 24, 0.55), rgba(10, 34, 24, 0) 30%, rgba(10, 34, 24, 0) 70%, rgba(10, 34, 24, 0.5));
}
.hero-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
}
.wordmark {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.26em;
  font-size: clamp(76px, 12.5vw, 176px); font-weight: 500; line-height: 0.92; letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}
.wm-word { display: inline-flex; align-items: baseline; }
.hero-line { margin-top: 28px; font: 500 clamp(26px, 3.2vw, 38px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.hero-sub { margin-top: 16px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, 0.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.hero-fade { position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--dew)); pointer-events: none; }

/* The phone */
.hero-phone { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  width: 300px; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a3b33, #0c1611);
  box-shadow: var(--shadow-float), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transform: rotateY(calc(-14deg * (1 - var(--m, 0)))) rotateX(calc(6deg * (1 - var(--m, 0)))) rotateZ(calc(2deg * (1 - var(--m, 0))));
}
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: #15211b; }
.phone-screen img { display: block; width: 100%; height: auto; }
.ph-status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-weight: 700; font-size: 12px; background: var(--rough); color: #fff; }
.ph-dots { display: flex; gap: 3px; align-items: center; }
.ph-dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.ph-head { display: flex; align-items: center; gap: 7px; padding: 10px 16px 12px; background: var(--rough); color: #fff; font: 600 14px/1 var(--font-display); }
.ph-head .mark { width: 20px; height: 20px; }
.ph-hero { margin: 12px 12px 0; padding: 14px 14px 8px; border-radius: 18px; color: #fff; background: repeating-linear-gradient(104deg, var(--fairway) 0 34px, var(--fairway-stripe) 34px 68px); }
.ph-eyebrow { font-size: 11px; opacity: 0.8; }
.ph-index { font: 500 54px/1 var(--font-display); letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ph-delta { margin-top: 6px; font-size: 11px; opacity: 0.9; }
.chip-good { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-weight: 700; }
.ph-chart { width: 100%; height: 66px; margin-top: 8px; overflow: visible; }
.ph-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.ph-target { stroke: var(--tee); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ph-dot { fill: var(--tee); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.ph-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 12px 0; }
.ph-kpis div { background: #fff; color: #15211b; border-radius: 12px; padding: 8px 9px; display: flex; flex-direction: column; }
.ph-kpis b { font: 600 18px/1.1 var(--font-display); }
.ph-kpis span { font-size: 10px; color: #5a6760; }
.ph-round { display: flex; justify-content: space-between; align-items: center; margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 10px 12px; }
.ph-round div { display: flex; flex-direction: column; }
.ph-round b { font: 600 13px/1.2 var(--font-display); }
.ph-round span { font-size: 10px; color: #5a6760; }
.ph-round-score { align-items: flex-end; }
.ph-round-score b { font-size: 20px; }
.ph-card { margin: 10px 12px 0; background: #fff; border-radius: 14px; padding: 10px 12px; border-left: 4px solid #b4542c; }
.ph-card-title { font-size: 10px; color: #5a6760; font-weight: 700; }
.ph-card-line { font: 500 15px/1.25 var(--font-display); margin-top: 2px; }
.ph-card-saving { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e2efe5; color: var(--fairway); }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px 14px 18px; background: #fff; border-top: 1px solid #e1e6df; }
.ph-tabs i { width: 18px; height: 18px; border-radius: 6px; background: #d5ddd6; }
.ph-tabs i.on { background: var(--fairway); }
.ph-tabs b { font: 700 11px/1 var(--font-body); color: var(--pine); background: var(--tee); padding: 10px 14px; border-radius: 999px; }

/* ---------- The one load moment: the tees go in, then the index comes down ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js   .js   .js .hero-line, .js .hero-sub, .js .hero-ctas, .js .hero-note { animation: rise 0.8s var(--ease-out) backwards; }
  .js .hero-line { animation-delay: 0.45s; }
  .js .hero-sub { animation-delay: 0.55s; }
  .js .hero-ctas { animation-delay: 0.65s; }
  .js .hero-note { animation-delay: 0.75s; }
  .js .phone { animation: phone-in 1.2s 0.3s var(--ease-out) backwards; }
  .js .ph-line { animation: draw 1.6s 0.9s var(--ease-out) both; }
  .js .ph-dot { animation: pop 0.4s 2.3s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotateY(-24deg) rotateX(14deg) rotateZ(4deg); } }
@keyframes draw { from { stroke-dashoffset: 400; } }
@keyframes pop { from { transform: scale(0); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

/* ---------- Feature deep dives ---------- */
.features { padding: 90px 0 40px; }
.feature { border-top: 1px solid var(--line); }
.feature-sticky {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding: 56px 0;
}
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
.feature-copy > p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; max-width: 32em; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.ticks li::before {
  /* a little lime tee peg in place of a bullet */
  content: ''; position: absolute; left: 4px; top: 0.3em; width: 12px; height: 15px;
  background: var(--tee-deep);
  clip-path: polygon(0 0, 100% 0, 100% 18%, 62% 30%, 56% 100%, 44% 100%, 38% 30%, 0 18%);
}
.ticks b { font-weight: 600; }
.feature-visual { position: relative; margin: 0; }

/* Map */
/* A real screenshot of the Play screen on a phone (assets/on-course.jpg, 488x900). */
.visual-map { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 488 / 900; max-width: 360px; justify-self: center; width: 100%; background: #15211b; }
.visual-map img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Scorecard */
.visual-card { display: grid; gap: 14px; }
.sc { background: var(--card); border-radius: var(--radius-lg); padding: 20px 20px 16px; box-shadow: var(--shadow-card); overflow-x: auto; }
.sc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.sc-head span:first-child { font: 600 16px/1.2 var(--font-display); color: var(--ink); }
.sc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 420px; }
.sc th, .sc td { text-align: center; padding: 7px 2px; font-size: 14px; }
.sc th:first-child { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 12px; padding-right: 8px; }
.sc tr + tr { border-top: 1px solid var(--line); }
.sc-hole { color: var(--ink-soft); font-size: 12px; }
.sc-si td { color: var(--ink-soft); font-size: 12px; }
.sc-score td, .sc-score th:last-child { font-weight: 600; }
.sc th:last-child { background: var(--surface-2); border-radius: 6px; }
.n { display: inline-grid; place-items: center; width: 28px; height: 28px; position: relative; }
.n.birdie { border: 1.5px solid var(--green); border-radius: 50%; }
.n.bogey { border: 1.5px solid var(--ink-soft); border-radius: 3px; }
.n.ndb { width: 34px; }
.n.ndb s { color: var(--flag); font-weight: 500; font-size: 12px; position: absolute; left: 0; top: -2px; }
.n.ndb em { font-style: normal; border: 1.5px solid var(--ink-soft); outline: 1.5px solid var(--ink-soft); outline-offset: 2px; border-radius: 2px; width: 20px; height: 20px; display: grid; place-items: center; margin-left: 10px; }
.n.small { transform: scale(0.85); vertical-align: middle; margin-right: 4px; }
.sc-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.sc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-result div { background: var(--green-soft); border: 1px solid var(--green-line); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sc-result span { font-size: 12px; color: var(--ink-soft); }
.sc-result b { font: 600 20px/1.15 var(--font-display); }
.sc-result b.yes { font-size: 16px; color: var(--green); }
.sc-result b span { font: inherit; color: inherit; }

/* Tips */
.visual-tips { display: grid; gap: 14px; }
.tip { background: var(--card); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); border-left: 5px solid #b4542c; display: grid; gap: 8px; }
.tip-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-area { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tip-saving { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--green-soft); color: var(--green); }
.tip-title { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.tip-evidence { font-size: 15px; font-weight: 600; }
.tip-advice { font-size: 15px; color: var(--ink-soft); }
.bars { background: var(--card); border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow-card); display: grid; gap: 10px; }
.bars-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.bar { display: grid; grid-template-columns: 64px 1fr 42px; align-items: center; gap: 12px; font-size: 14px; }
.bar i { height: 10px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--fairway); transform-origin: left; transform: scaleX(var(--f, 1)); }
.bar:nth-child(3) i::after { background: var(--tee-deep); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }


/* Leaderboard */
.board { background: var(--rough); color: #fff; border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-float); max-width: 440px; justify-self: center; width: 100%; }
.visual-board { display: grid; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 18px/1.2 var(--font-display); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body); padding: 5px 10px; border-radius: 999px; background: rgba(185, 224, 92, 0.18); color: #f5dc9c; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tee); }
@media (prefers-reduced-motion: no-preference) { .live i { animation: pulse 1.8s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.3; } }
.board ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); }
.board li.me { background: rgba(185, 224, 92, 0.14); box-shadow: inset 0 0 0 1px rgba(185, 224, 92, 0.4); }
.pos { color: rgba(255, 255, 255, 0.55); font-weight: 600; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; color: #fff; }
.pts { font: 600 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.board-foot { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Everything ---------- */
.everything { padding: 100px 0; background: var(--card); border-block: 1px solid var(--line); }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.group h3 { font-size: 22px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--fairway); }
.group dl { margin: 0; }
.group dt { font-weight: 600; font-size: 16px; margin-top: 14px; }
.group dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* ---------- Pricing ---------- */
.pricing { padding: 110px 0 100px; }
.pricing .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.plans { display: grid; grid-template-columns: 1fr 1.12fr; gap: 20px; align-items: stretch; max-width: 820px; margin: 0 auto; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.plan h3 { font-size: 26px; }
.price { display: flex; flex-direction: column; margin-top: 14px; }
.price b { font: 600 52px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.plan-for { margin-top: 14px; color: var(--ink-soft); font-size: 15px; min-height: 3em; }
.plan .ticks { margin: 20px 0 28px; flex: 1; gap: 10px; align-content: start; }
.plan .ticks li { font-size: 15px; }
.plan .btn { width: 100%; }
.plan-pro {
  --lift: -12px;
  color: #fff; border: 0; transform: translateY(var(--lift));
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(185, 224, 92, 0.16), transparent 55%),
    repeating-linear-gradient(104deg, var(--fairway) 0 70px, var(--fairway-stripe) 70px 140px);
  box-shadow: var(--shadow-float);
}
.plan-pro .price span, .plan-pro .plan-for { color: rgba(255, 255, 255, 0.78); }
.plan-pro .ticks li::before { background: var(--tee); }
.plan-flag { position: absolute; top: 28px; right: 24px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--tee); color: var(--pine); }
.pricing-note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Install ---------- */
.install { padding: 0 0 100px; }
.install-panel {
  background: var(--rough); color: #fff; padding: 96px 0;
  background-image: radial-gradient(70% 120% at 0% 0%, rgba(34, 128, 79, 0.5), transparent 60%), radial-gradient(60% 100% at 100% 100%, rgba(185, 224, 92, 0.12), transparent 60%);
  clip-path: inset(0 round 0);
}
.install-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.install-copy h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.install-copy p { margin: 16px 0 28px; color: rgba(255, 255, 255, 0.8); font-size: 18px; max-width: 28em; }
.install-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.install-steps section { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); padding: 22px; }
.install-steps h3 { font-size: 20px; }
.install-steps ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.install-steps li { counter-increment: step; position: relative; padding: 2px 0 0 38px; min-height: 26px; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.install-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tee); color: var(--pine); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.install-steps b { color: #fff; }
.install-steps p { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.86); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 110px; }
.faq-inner { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 48px; }
.faq h2 { font-size: clamp(32px, 4vw, 46px); }
.faq-list { display: grid; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 500 20px/1.3 var(--font-display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.35s var(--ease-out); }
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
@media (prefers-reduced-motion: no-preference) { details[open] p { animation: rise 0.4s var(--ease-out) both; } }

/* ---------- Footer ---------- */
.footer { background: var(--pine); color: rgba(255, 255, 255, 0.7); padding: 48px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-small { width: 100%; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- The pinned statement ---------- */
.statement { position: relative; height: 230vh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; padding: 0 24px; }
.statement-text {
  max-width: 1040px; margin: 0 auto;
  font: 500 clamp(34px, 5.6vw, 76px)/1.08 var(--font-display); letter-spacing: -0.035em; font-variation-settings: 'opsz' 96;
}
.statement-text .w { opacity: var(--o, 1); transition: opacity 0.12s linear; }

/* ---------- Scroll reveals (only with JS and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(calc(var(--lift, 0px) + 32px));
    transition: opacity 0.9s ease-out, transform 1.1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 85ms);
  }
  .js .reveal.is-in { opacity: 1; transform: translateY(var(--lift, 0px)); }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 24px; }
  .feature-sticky { grid-template-columns: 1fr; gap: 36px; }
  .feature-flip .feature-copy { order: 0; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-pro { --lift: 0px; order: -1; }
  .install-inner { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .topbar-nav { display: none; }
  .topbar { justify-content: space-between; padding-left: 16px; padding-right: 16px; }
  .wrap, .hero-inner { padding: 0 16px; }
  .hero { padding: 112px 0 90px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .phone { width: 262px; }
  .ph-round { display: none; }
  .features { padding-top: 64px; }
  .feature-sticky { padding: 44px 0; }
  .section-head { margin-bottom: 40px; }
  .groups { grid-template-columns: 1fr; gap: 36px; }
  .everything, .pricing { padding: 72px 0; }
  .billing-opt { padding: 12px 14px; }
  .install-panel { padding: 64px 0; }
  .install-steps { grid-template-columns: 1fr; }
  .statement { height: 200vh; }
  .sc-result { grid-template-columns: 1fr 1fr; }
  .sc-result div:last-child { grid-column: span 2; }
}

/* =====================================================================
 * Scenes. Each section is pinned for a while (sticky) and its animation is tied to how far through it you've
 * scrolled: script.js sets the progress. Pinning is only for wide screens with motion allowed; elsewhere the same
 * animations simply play as each section scrolls into view.
 * ===================================================================== */
.ticks li { opacity: var(--o, 1); transition: opacity 0.35s ease, transform 0.35s var(--ease-out); }
.ticks li.is-active { transform: translateX(6px); }
.ticks li.is-active b { color: var(--green); }

.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; padding: 0 24px; margin: 0;
  font: 500 clamp(24px, 3vw, 40px)/1.15 var(--font-display); letter-spacing: -0.02em; color: #fff;
  opacity: 0; pointer-events: none;
}
.hero-phone { will-change: transform; }

.visual-card { perspective: 1400px; }
.sc { transform-origin: 50% 100%; }
.n.ndb s { text-decoration: none; position: absolute; }
.n.ndb s::after { content: ''; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; background: var(--flag); transform: scaleX(var(--k, 1)); transform-origin: left; }
.n.ndb em { opacity: var(--k, 1); }
.sc-result div { opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * 24px)); }
.sc-score td { opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * 10px)) scale(calc(0.6 + var(--o, 1) * 0.4)); }
.visual-map { will-change: transform; }

.board-rows li { transition: transform 0.6s var(--ease-out), background 0.3s, box-shadow 0.3s; }
.board-rows li.is-leader .pts { color: var(--tee); }

@media (prefers-reduced-motion: no-preference) and (min-width: 981px) {
  .js .scene { position: relative; }
  .js .scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

  .js .hero.scene { height: 230vh; padding: 0; overflow: visible; }
  .js .everything.scene, .js .feature.scene { overflow: visible; }
  .js .hero-sticky { display: grid; align-items: center; padding-top: 40px; }

  .js .feature.scene { height: 300vh; border-top: 0; }
  .js .feature-sticky { padding: 72px 0 24px; align-content: center; }
  .js .feature + .feature { border-top: 0; }

  .js .everything.scene { padding: 0; }
  .js .bag-sticky { display: flex; flex-direction: column; justify-content: center; padding-top: 64px; }
  .js .bag-sticky .section-head { margin-bottom: 28px; }
  .js .bag-sticky .section-head h2 { font-size: clamp(34px, 3.6vw, 48px); }
  .js .bag-sticky .groups { display: flex; gap: 24px; width: max-content; will-change: transform; perspective: 1600px; }
  .js .bag-sticky .group {
    flex: none; width: 340px; background: var(--dew); border: 1px solid var(--line); border-radius: var(--radius-xl);
    padding: 24px 26px; will-change: transform, opacity;
  }
  .js .bag-sticky .group h3 { font-size: 20px; padding-bottom: 10px; }
  .js .bag-sticky .group dt { margin-top: 10px; font-size: 15px; }
  .js .bag-sticky .group dd { font-size: 13.5px; line-height: 1.45; }
}

/* The Lowdown Golf logo (outline wordmark and LDG mark), in white on the dark green. */
.brand-logo { display: block; height: 24px; width: auto; color: #fff; }
.footer-brand .brand-logo { height: 28px; }
.hero-logo { display: block; width: min(100%, 620px); height: auto; color: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }
.ph-logo { display: block; height: 18px; width: auto; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-logo { animation: rise 0.8s var(--ease-out) backwards; }
}

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.legal-page { background: var(--dew); }
.legal-page .topbar { position: sticky; }
.legal { max-width: 760px; padding-top: 120px; padding-bottom: 80px; font-size: 16.5px; line-height: 1.6; }
.legal-head { margin-bottom: 36px; }
.legal-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; margin: 8px 0 12px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p { margin: 0 0 14px; }
.legal p.muted { color: var(--ink-soft); font-size: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--green-soft); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.footer-links { margin-top: 8px; }
.footer-links a { color: #fff; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .legal { padding-top: 96px; font-size: 16px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .legal td { border: 0; padding: 4px 12px; }
}
