/* Strokes Given: the app's own greens and type. A golf-ball dimple field behind the hero, a pencilled
   scorecard as the centre-piece, mowing stripes behind the games. One column on phones, two from 900px. */
:root {
  --paper: #F3F9F5;       /* the app's background */
  --chalk: #FFFFFF;       /* cards, the scorecard */
  --ink: #10241A;
  --muted: #557063;
  --line: #D6E6DC;
  --turf: #1E9A55;        /* the S in the logo */
  --deep: #13753E;        /* the G */
  --turf-soft: #E2F2E8;
  --stripe: #EAF5EE;
  --flag: #D8443A;        /* the flag, and the pencilled shot dots */
  --pencil: #2B3A33;
  --bezel: #10241A;
  --on-turf: #FFFFFF;
  --dimple: rgb(19 117 62 / .07);
  --shadow: 0 18px 40px rgb(16 36 26 / .14);
  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Kalam", "Bradley Hand", "Marker Felt", cursive;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0D1611; --chalk: #15211A; --ink: #E6F1EA; --muted: #9DB7A8; --line: #263A2E;
  --turf: #3CC277; --deep: #2FA863; --turf-soft: #183325; --stripe: #112019; --flag: #F06A5F;
  --pencil: #D9E6DE; --bezel: #020604; --on-turf: #06140C; --dimple: rgb(60 194 119 / .07); --shadow: 0 18px 40px rgb(0 0 0 / .45);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #0D1611; --chalk: #15211A; --ink: #E6F1EA; --muted: #9DB7A8; --line: #263A2E;
  --turf: #3CC277; --deep: #2FA863; --turf-soft: #183325; --stripe: #112019; --flag: #F06A5F;
  --pencil: #D9E6DE; --bezel: #020604; --on-turf: #06140C; --dimple: rgb(60 194 119 / .07); --shadow: 0 18px 40px rgb(0 0 0 / .45);
  color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--turf); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); }
h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
p { margin: 0; }
.pen { font-family: var(--hand); font-weight: 700; color: var(--turf); letter-spacing: 0; }
.eyebrow { font: 700 .76rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.mail { font-weight: 600; color: var(--deep); user-select: all; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--chalk); padding: 8px 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
nav.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--hand); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
nav.top ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: .9rem; }
nav.top ul a { color: var(--muted); text-decoration: none; }
nav.top ul a:hover, nav.top ul a[aria-current] { color: var(--ink); }
@media (max-width: 720px) { nav.top ul { margin: 0; width: 100%; gap: 2px 14px; font-size: .84rem; } nav.top ul li:nth-child(n+4) { display: none; } }

/* buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; background: var(--turf); color: var(--on-turf); font: 700 1rem/1 var(--display); text-decoration: none; border: 2px solid var(--turf); }
.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--turf); }

/* hero: the dimple field of the SG ball */
.hero { background: radial-gradient(circle at 7px 7px, var(--dimple) 3.2px, transparent 3.6px) 0 0 / 14px 12.2px, var(--paper); padding-block: 56px 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.lede { font-size: 1.14rem; max-width: 34rem; color: var(--ink); }
.note { font-size: .9rem; color: var(--muted); }
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: min(250px, 46%); border-radius: 30px; overflow: hidden; border: 6px solid var(--bezel); box-shadow: var(--shadow); background: var(--chalk); }
.phones .phone:nth-child(2) { transform: translateY(36px); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding-block: 72px 72px; } }

/* sections */
section { padding-block: 64px; }
.band { border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 32px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }

/* the worked example */
.card-band { background: var(--chalk); }
.working { display: grid; gap: 12px; margin-bottom: 24px; }
.step { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; min-width: 0; }
.step .k { font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step .n { font-family: var(--hand); font-size: 1.5rem; color: var(--turf); }
.step.big { background: var(--turf-soft); border-color: transparent; }
.step.big .n { font-size: 2.2rem; color: var(--flag); }
@media (min-width: 900px) { .working { grid-template-columns: 1.6fr 1fr 1fr; } }
.card-pair { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1000px) { .card-pair { grid-template-columns: 1fr 1fr; } }
.card-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--chalk); }
.scorecard { border-collapse: collapse; width: 100%; min-width: 440px; font-variant-numeric: tabular-nums; font-size: .9rem; }
.scorecard caption { text-align: left; padding: 10px 12px 6px; font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scorecard th, .scorecard td { border-top: 1px solid var(--line); padding: 7px 4px; text-align: center; min-width: 30px; }
.scorecard th[scope="row"] { text-align: left; padding-left: 12px; white-space: nowrap; font-weight: 600; min-width: 92px; }
.scorecard th[scope="row"] small { font-family: var(--hand); font-size: .95rem; color: var(--muted); margin-left: 4px; }
.scorecard tr:first-child th { background: var(--deep); color: var(--on-turf); font-family: var(--display); border-top: 0; }
.scorecard tr.si td { color: var(--muted); font-size: .82rem; }
.scorecard tr.p td { height: 40px; }
.scorecard td:last-child, .scorecard th:last-child { border-left: 1px solid var(--line); font-weight: 700; }
.scorecard .pencil { font-family: var(--hand); color: var(--flag); font-size: 1.15rem; }
.nw { white-space: nowrap; }
@media (max-width: 480px) {
  .scorecard { min-width: 0; font-size: .8rem; }
  .scorecard th, .scorecard td { min-width: 0; padding: 6px 2px; }
  .scorecard th[scope="row"] { min-width: 0; padding-left: 8px; }
  .dot { width: 9px; height: 9px; }
}
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag) 20%, transparent); }

/* games: mowing stripes */
.stripes { background: repeating-linear-gradient(90deg, var(--paper) 0 64px, var(--stripe) 64px 128px); }
.formats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.formats li { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 16px; background: var(--chalk); border: 1px solid var(--line); min-width: 0; }
.formats b { font: 700 1.1rem/1.2 var(--display); }
.formats p { color: var(--muted); font-size: .92rem; }
.allow { justify-self: start; font: 700 1.35rem/1 var(--hand); color: var(--deep); padding: 4px 10px 2px; border-radius: 999px; background: var(--turf-soft); }

/* features */
.feature { display: grid; gap: 28px; align-items: center; padding-block: 28px; }
.feature .shot { display: flex; justify-content: center; }
.feature .phone { width: min(280px, 72%); }
.feature-copy { display: grid; gap: 14px; max-width: 34rem; min-width: 0; }
.feature-copy p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--turf); }
.ticks b { color: var(--ink); }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } .feature.flip .shot { order: 2; } }

/* get */
.get { background: var(--turf-soft); text-align: center; }
.get .wrap { display: grid; gap: 16px; justify-items: center; }
.get .ball { width: 104px; height: 104px; border-radius: 50%; box-shadow: var(--shadow); }
.get p { max-width: 32rem; color: var(--muted); }

/* legal pages */
.doc { max-width: 46rem; margin: 0 auto; padding: 48px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 18px; }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc .short { background: var(--turf-soft); border-radius: 16px; padding: 16px 18px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--chalk); padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .86rem; color: var(--muted); }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }

@media (max-width: 480px) {
  .formats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .formats li { padding: 14px; }
  .formats p { font-size: .85rem; }
  .allow { font-size: 1.15rem; }
}
