/* GolfLM: the app's night-green look. Colours from Tools/MakeScreenshots.swift and the logo. */
:root {
  --bg: #041008;
  --bg-mid: #08200f;
  --bg-top: #0e3a20;
  --sky: #050818;             /* the hero loop's night sky, top edge */
  --grass: #07160b;           /* and its range, bottom edge */
  --accent: #6be370;          /* headline accent (the starred words) */
  --green: #34c759;           /* logo green, READY pill */
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);
  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  /* One spacing scale: between sections, between feature rows, and from a heading to what follows it. */
  --space-section: clamp(88px, 11vw, 144px);
  --space-row: clamp(64px, 9vw, 120px);
  --space-stack: clamp(28px, 4vw, 44px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  /* Under the hero the range's grass carries on into a green glow, then night green. */
  background-image: linear-gradient(180deg, var(--grass) 0, var(--grass) 800px, #0b2c18 1700px, var(--bg-mid) 2800px, var(--bg) 4200px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Below the first screen, soft pools of green light, alternating sides down the page, like floodlights on a
   range at night. */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70vw 55vw at 0% calc(100vh + 700px), rgba(107, 227, 112, 0.10), transparent 70%),
    radial-gradient(65vw 50vw at 100% calc(100vh + 2000px), rgba(52, 199, 89, 0.09), transparent 70%),
    radial-gradient(70vw 55vw at 0% calc(100vh + 3400px), rgba(107, 227, 112, 0.08), transparent 70%),
    radial-gradient(65vw 50vw at 100% calc(100vh + 4800px), rgba(52, 199, 89, 0.08), transparent 70%),
    radial-gradient(70vw 55vw at 0% calc(100vh + 6200px), rgba(107, 227, 112, 0.07), transparent 70%),
    radial-gradient(65vw 50vw at 100% calc(100vh + 7600px), rgba(52, 199, 89, 0.07), transparent 70%);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ef092; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--green); color: #04150a; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 10, 12, 0.6);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.header-cta {
  flex: none; padding: 8px 16px; border-radius: 999px;
  background: var(--green); color: #04150a; font-size: 15px; font-weight: 800; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 20px rgba(52, 199, 89, 0.3);
}
.header-cta:hover { color: #04150a; background: #45d469; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* Hero: the 7-iron loop, edge to edge. The headline sits in its night sky, which runs on up behind the header;
   the loop melts into that sky at the top and into the page's green at the bottom. */
.hero {
  position: relative;
  margin-top: -64px;
  padding-top: 64px;
  /* The whole first screen (the header sits over its top). */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0, var(--sky) 42%, rgba(7, 22, 11, 0.85) 78%, transparent 100%);
  isolation: isolate;
}
.hero-copy { flex: none; position: relative; z-index: 2; padding-top: clamp(24px, 3.2vw, 44px); }
/* Where the loop's height is capped (a tall screen), the copy is centred in the sky left over above it. */
.hero-copy { margin-block: auto; }
.eyebrow {
  display: inline-block; margin-bottom: clamp(18px, 2.4vw, 26px); padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(107, 227, 112, 0.35); background: rgba(107, 227, 112, 0.10);
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 68px); margin-inline: auto; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(5, 8, 24, 0.8);
}
.lede {
  max-width: 760px; margin: clamp(14px, 1.8vw, 20px) auto 0; color: rgba(255, 255, 255, 0.78); font-size: clamp(18px, 1.8vw, 22px);
  text-wrap: balance; text-shadow: 0 1px 16px rgba(5, 8, 24, 0.9);
}
/* The badge on the page's centre line, the note under it, so the hero reads as one centred column. */
.cta-row { margin-top: clamp(26px, 3.2vw, 38px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-row picture { display: block; margin-bottom: 6px; }
.hero-icon {
  display: block; width: clamp(56px, 5vw, 72px); height: auto; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 40px rgba(0, 0, 0, 0.45);
}
.app-store { display: inline-block; border-radius: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.app-store:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(107, 227, 112, 0.18); }
.app-store img { width: 180px; height: auto; }
.hero .app-store img { width: 150px; }
.cta-note { color: rgba(255, 255, 255, 0.6); font-size: 14px; font-weight: 600; text-shadow: 0 1px 12px rgba(5, 8, 24, 0.9); }
.hero-media {
  position: relative;
  z-index: 1;
  /* Fills the rest of the screen, pulled up under the copy (the loop's top third is empty sky). On a tall screen
     it stops at an aspect where the tee, tracer and panel still fit across, and the sky above fills the gap. */
  flex: 1 1 auto;
  min-height: 38vw;
  max-height: 72vw;
  margin-top: calc(-1 * min(12vw, 16vh));
  margin-top: calc(-1 * min(12vw, 16svh));
}
/* The range (a still of the render), with the golfer and the shots drawn over it on a canvas: the render's 1920×822
   frame, which site.js sizes and places for the screen (inline styles), faded out at its top and bottom into the
   page. The shot's numbers are in a panel beside it, which site.js places too. */
.hero-stage {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
}
.hero-range, .hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-range { object-fit: cover; object-position: 46% 85%; }
/* The app's swing screen on a big iPhone, as in the App Store header: laid out at 1200 × 556 (an iPhone on its side)
   and scaled by site.js to fit, over the range, which blurs behind it. The look follows the app's own screen. */
.hero-stage { transition: filter 0.5s ease; }
.hero-stage.behind-phone { filter: blur(9px) brightness(0.75); }
.app-phone {
  position: absolute; z-index: 2; left: 0; top: 0; width: 1200px; height: 556px; transform-origin: 0 0; opacity: 0; pointer-events: none;
  border-radius: 96px; background: #0c0c0d;
  box-shadow: inset 0 0 0 3px #4a4b4e, inset 0 0 0 9px #18191a, 0 50px 110px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #fff; font-variant-numeric: tabular-nums;
  text-align: left;   /* (the hero's centred) labels over their values, as the app's are */
}
.app-screen { position: absolute; inset: 22px 24px; border-radius: 76px; background: #000; overflow: hidden; padding: 18px 118px 14px 52px; }
.app-island { position: absolute; right: 44px; top: 50%; width: 46px; height: 152px; margin-top: -76px; border-radius: 23px; background: #000; }
.app-island i { position: absolute; left: 50%; bottom: 34px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #34c759; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 66px; }
.app-fill { flex: 1; }
.app-btn, .app-pill, .app-chip { display: inline-flex; align-items: center; justify-content: center; background: #1c1c1e; color: #fff; }
.app-btn { width: 66px; height: 66px; border-radius: 50%; }
.app-btn svg, .app-chip svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-pill { height: 66px; padding: 0 28px 0 20px; border-radius: 33px; gap: 12px; font-size: 28px; font-weight: 600; }
.app-ring { width: 32px; height: 32px; border-radius: 50%; border: 3.5px dashed #fff; }
.app-shots { padding: 0 26px 0 12px; gap: 16px; }
.app-shots span { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.app-shots b { font-size: 30px; font-weight: 700; }
.app-shots small { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.8); margin-top: 3px; }
.app-avatar { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3fd0c4, #1b9e95); }
.app-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin-top: 14px; }
.app-view { position: relative; height: 228px; border-radius: 26px; overflow: hidden; background: #1a2a1a; }
.app-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-legend {
  position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px;
  background: rgba(0, 0, 0, 0.45); font-size: 17px; font-weight: 500;
}
.app-legend i { width: 22px; height: 3px; border-radius: 2px; margin-left: 4px; }
.app-legend i:first-child { margin-left: 0; }
.app-legend .t { background: repeating-linear-gradient(90deg, #ff8a3c 0 6px, transparent 6px 9px); }
.app-legend .b { background: #ffd23c; }
.app-legend .c { background: #4cc9f0; }
.app-chip { position: absolute; top: 12px; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); font-size: 24px; font-weight: 700; }
.app-chip svg { width: 22px; height: 22px; }
.app-expand { right: 12px; }
.app-share { right: 68px; }
.app-info { right: 12px; font-family: Georgia, serif; font-style: italic; }
.app-title { position: absolute; left: 18px; top: 14px; margin: 0; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.app-title b { font-size: 26px; font-weight: 600; }
.app-title span { font-size: 19px; color: rgba(255, 255, 255, 0.85); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; margin: 14px 0 0; }
.app-stats dt { font-size: 17px; color: rgba(255, 255, 255, 0.7); }
.app-stats dd { margin: 1px 0 0; font-size: 30px; font-weight: 600; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.app-stats small, .app-big small { font-size: 0.6em; font-weight: 400; color: rgba(255, 255, 255, 0.75); }
.app-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 0; }
.app-big dt { font-size: 21px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.02em; }
.app-big dd { margin: 2px 0 0; font-size: 54px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.app-big .carry { color: #9be89f; }
.app-phone .dir { width: 0.7em; height: 0.7em; fill: none; stroke: rgba(255, 255, 255, 0.8); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; align-self: center; transition: transform 0.2s; }
/* A short screen (a small laptop): no lede either, leaving room for the big phone in the hero. */
@media (max-height: 780px) and (min-width: 701px) {
  .hero .lede { display: none; }
}
@media (max-width: 700px) {
  /* A phone: just the tag, the headline and the App Store badge. */
  .hero .lede, .hero .cta-note { display: none; }
  .hero-media { margin-top: -56px; min-height: 250px; max-height: 92vw; }
}

/* Section scaffolding */
.section-title { font-size: clamp(32px, 4.6vw, 52px); text-align: center; text-wrap: balance; }
/* A phrase of a heading kept together: where the heading wraps, it breaks between phrases. */
.phrase { display: inline-block; }
.section-lede { margin: 14px auto 0; max-width: 620px; text-align: center; color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); }
.steps, .preview, .ipad, .pricing, .faq, .final-cta { margin-top: var(--space-section); }
/* Straight after the hero, whose range already fades out into the page below it. */
.hero + .preview { margin-top: clamp(16px, 2.2vw, 32px); }

/* Steps: the swing, with a zoom on the phone on its tripod: a ring round the phone (at the top of the frame), a line
   out to a round close-up of it at the top right, over the trees and net. */
.setup-media { max-width: 1040px; margin: var(--space-stack) auto 0; }
.setup-media figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #0a140d; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }
.setup-shot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.setup-zoom-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.setup-zoom-line .cone { fill: rgba(255, 255, 255, 0.09); }
.setup-zoom-line line { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.setup-zoom-line circle {
  fill: rgba(255, 255, 255, 0.08); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.setup-zoom {
  position: absolute; left: 70.5%; top: 5%; width: 27%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14), 0 0 28px rgba(255, 255, 255, 0.25), 0 18px 40px rgba(0, 0, 0, 0.55);
}
.setup-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 52%; transform: scale(1.25); }
.step-list { list-style: none; padding: 0; margin: 18px auto 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }   /* as wide as the swing above */
.step-list li {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.step-num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #04150a; font-weight: 900;
}
.step-list h3 { font-size: 21px; }
/* A phone: the three still side by side, each number over its name. */
@media (max-width: 640px) {
  .step-list { gap: 10px; }
  .step-list li { flex-direction: column; gap: 10px; padding: 16px 8px; text-align: center; border-radius: 16px; }
  .step-num { width: 30px; height: 30px; font-size: 15px; }
  .step-list h3 { font-size: 16px; }
}

/* Preview video */
/* The preview in a slim glass bezel, lit at its top edge, over a deep shadow and a faint green glow. */
.preview-frame {
  --bezel: clamp(6px, 0.9vw, 10px);
  position: relative; margin: var(--space-stack) auto 0; max-width: 1040px; padding: var(--bezel);
  border-radius: calc(var(--radius) + var(--bezel));
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 38%, rgba(107, 227, 112, 0.10));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 40px 100px rgba(0, 0, 0, 0.55), 0 0 140px rgba(107, 227, 112, 0.12);
}
.preview-video { display: block; width: 100%; aspect-ratio: 1280 / 590; border-radius: var(--radius); background: #000; cursor: pointer; }
.video-toggle {
  position: absolute; right: calc(var(--bezel) + 14px); bottom: calc(var(--bezel) + 14px); width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(4, 10, 8, 0.6); border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.video-toggle:hover { background: rgba(4, 10, 8, 0.8); transform: scale(1.05); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.video-toggle .icon-pause, .video-toggle.playing .icon-play { display: none; }
.video-toggle.playing .icon-pause { display: block; }

/* Feature rows */
.features { margin-top: var(--space-section); display: grid; gap: var(--space-row); }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
/* Every other row mirrored, the phone in the same-width column on either side. */
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.feature:nth-child(even) .phone { order: 2; }
.feature-copy h2 { font-size: clamp(30px, 3.8vw, 46px); text-wrap: balance; }
.feature-copy > p { margin-top: 16px; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); text-wrap: pretty; max-width: 30ch; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .phone { order: 0; }
}

/* The rest of the features as cards: two by two, or on a phone a row to swipe through, the next card peeking in. */
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { min-width: 0; padding: clamp(14px, 1.8vw, 22px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature-card .phone { margin-bottom: 20px; box-shadow: 0 0 0 1.5px #3a3d3b, 0 0 0 4px #121413, 0 16px 40px rgba(0, 0, 0, 0.45); }
.feature-card h3 { font-size: clamp(22px, 2.3vw, 28px); text-wrap: balance; }
.feature-card p { margin-top: 8px; color: var(--muted); text-wrap: pretty; }
@media (max-width: 760px) {
  .feature-cards {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter); padding-bottom: 6px; scrollbar-width: none;
  }
  .feature-cards::-webkit-scrollbar { display: none; }
  .feature-card { flex: 0 0 84%; scroll-snap-align: start; }
}

/* A quick look at every course: a panel with a heading and arrows, their featured holes in a row that scrolls
   sideways. */
.course-list {
  grid-column: 1 / -1; order: 3; min-width: 0;
  padding: 18px 0 8px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.course-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
.course-list-head h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 800; }
.course-list-nav { display: flex; gap: 8px; }
.course-list-nav button {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.course-list-nav button:hover { background: rgba(255, 255, 255, 0.12); }
.course-list-nav button:disabled { opacity: 0.35; cursor: default; background: rgba(255, 255, 255, 0.06); }
.course-list-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.course-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-padding-inline: 20px;   /* snap to the padding's edge, not under the fades */
  padding: 0 20px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.course-strip .course { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.course-strip picture { display: block; }
.course-strip figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.course-strip img {
  flex: 0 0 auto; width: clamp(200px, 21vw, 260px); height: auto; aspect-ratio: 1468 / 835; object-fit: cover;
  display: block; border-radius: 14px; border: 1px solid var(--line); background: #0a140d;
}
.course-strip:focus-visible { outline-offset: 2px; }
@media (max-width: 960px) { .course-strip img { width: 62vw; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(107, 227, 112, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%236be370' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Devices: an iPhone on its side, and an iPad, drawn around the captures. */
.phone, .tablet { margin: 0; position: relative; background: #0a0b0a; box-shadow: 0 0 0 1.5px #3a3d3b, 0 0 0 4px #121413, 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(107, 227, 112, 0.08); }
.phone { padding: 1.5%; border-radius: 7.2% / 15.6%; }
.phone img { border-radius: 5.8% / 12.6%; }
.tablet { padding: 2.2%; border-radius: 4.2% / 5.6%; max-width: 560px; margin: var(--space-stack) auto 0; }
/* The iPad's words: a line under the heading; centred over the tablet on a phone, beside it on a wide screen. */
.ipad-copy { text-align: center; }
.ipad-lede { margin: 14px auto 0; max-width: 34ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); text-wrap: pretty; }
/* On a wide screen the iPad's heading goes beside it. */
@media (min-width: 900px) {
  .ipad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
  .ipad .section-title, .ipad-copy { text-align: left; }
  .ipad-lede { margin-left: 0; }
  .ipad .tablet { margin: 0; justify-self: end; width: 100%; }
}
.tablet img { border-radius: 2.4% / 3.2%; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; max-width: 880px; margin: var(--space-stack) auto 0; }
/* The plans share their rows (name, price, the yearly price, the ticks), so both lists of ticks start level, though
   only Pro has a yearly price. */
.plan {
  grid-row: span 4; display: grid; grid-template-rows: subgrid; align-content: start;
  padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.plan h3 { grid-row: 1; }
.plan .price { grid-row: 2; }
.plan .price-alt { grid-row: 3; }
.plan .ticks { grid-row: 4; align-self: start; }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.price { margin-top: 6px; font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
.price .per { font-size: 18px; font-weight: 700; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.price-alt { margin-top: 2px; color: var(--muted); font-size: 15px; }
.price-alt strong { color: var(--text); }
.plan-pro { border-color: rgba(107, 227, 112, 0.45); background: linear-gradient(180deg, rgba(107, 227, 112, 0.12), rgba(107, 227, 112, 0.03)); box-shadow: 0 0 80px rgba(107, 227, 112, 0.10); }
.plan-pro .price { color: var(--accent); }
.pro-tag { padding: 2px 8px; border-radius: 6px; background: var(--green); color: #04150a; font-size: 12px; font-weight: 900; letter-spacing: 0.04em; }
.fine-print { max-width: 880px; margin: 20px auto 0; color: var(--faint); font-size: 13px; text-align: center; }
.fine-print a { color: inherit; }
/* A phone: the two plans still side by side, smaller. */
@media (max-width: 720px) {
  .plans { gap: 10px; }
  .plan { padding: 18px 14px; border-radius: 16px; }
  .plan h3 { font-size: 17px; gap: 6px; }
  .pro-tag { font-size: 10px; padding: 2px 6px; }
  .price { font-size: 25px; }
  .price .per { font-size: 14px; }
  .price-alt { font-size: 13px; }
  .plan .ticks { margin-top: 14px; gap: 8px; font-size: 14px; }
  .plan .ticks li { padding-left: 24px; }
  .plan .ticks li::before { width: 16px; height: 16px; background-size: 16px; top: 0.2em; }
}

/* FAQ */
.faq { max-width: calc(820px + 2 * var(--gutter)); }
.faq .section-title { margin-bottom: var(--space-stack); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 19px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 26px; font-weight: 400; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Final call to action */
.final-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-bottom: 20px; }
.app-icon { width: 112px; height: 112px; border-radius: 25px; margin-bottom: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 20px 60px rgba(107, 227, 112, 0.25); }
.final-cta .app-store { margin-top: 26px; }

/* Footer */
.site-footer { margin-top: var(--space-section); border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.25); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 14px; }
.footer-brand img { height: 32px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* Rows rise in as they scroll into view, where the browser can do it without script. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .feature, .feature-cards, .step-list li, .plan, .tablet {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-store { transition: none; }
}

/* 404 */
.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.not-found .brand img { height: 96px; width: auto; }
.not-found h1 { font-size: clamp(40px, 7vw, 72px); }
.not-found .header-cta { display: inline-block; margin-top: 8px; }
.footer-brand a, .legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }
.footer-brand a:hover, .legal a:hover { color: var(--text); }

/* Privacy policy and terms */
.legal-page { max-width: calc(780px + 2 * var(--gutter)); padding-top: clamp(40px, 6vw, 72px); }
.legal-page h1 { font-size: clamp(34px, 5vw, 52px); }
.legal-page h2 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page p { margin: 14px 0 0; }
.legal-page ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.legal-page strong { color: var(--text); }
.legal-page em { color: var(--faint); }
