/* Deep Field site. Apple product page played straight: one idea per screen, huge type, lots of space.
   World: the drawn criss-cross fairway, white type, electric blue for the one action. Decisions: HANDOVER.md. */

:root {
  --blue: #1F5EFF;
  --blue-press: #1848CC;
  --forest: #FFFFFF;
  --night: #FFFFFF;
  --text: #0B0B0C;
  --fairway: #5DBB84;
  --paper: #F3EEE2;
  --white: #FFFFFF;
  --ink-soft: rgba(0, 0, 0, .72);
  --ink-faint: rgba(0, 0, 0, .55);
  --scrim: linear-gradient(rgba(6, 26, 12, .30), rgba(6, 26, 12, .52));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 52px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(0, 0, 0, .3) var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: .18em; }
img, video, svg { display: block; max-width: 100%; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Menu bar ─────────────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background-color .4s var(--ease-out), -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
/* Once the page moves, the bar takes Apple's own material so the menu stays readable over anything. */
.nav.is-solid {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand {
  display: inline-flex; align-items: baseline; text-decoration: none; padding: 7px 0;
  font-weight: 600; font-size: 21px; letter-spacing: -.03em; white-space: nowrap;
}
/* The golf-hole planet (the app icon without its sky) leads the name, centred on the capitals, not the baseline. */
.planet {
  width: .9em; height: .9em; margin-right: .18em; flex: none; align-self: center;
  filter: drop-shadow(0 .04em .08em rgba(0, 0, 0, .4));
}
.brand .planet { width: 1.15em; height: 1.15em; margin-right: .32em; }
.ball { width: .25em; height: .25em; margin-left: .05em; flex: none; filter: drop-shadow(0 .03em .05em rgba(0, 0, 0, .35)); }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links .wide { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 104px)) var(--gutter) 0;
  text-align: center;
}
/* The grass sits on its own layer, deeper than everything else, and drifts slower than the page (js/deepfield.js). */
.hero-ground {
  position: absolute; inset: -12% 0 -12%; z-index: -1;
  background: #fff;
  will-change: transform;
}
@media (max-width: 760px) {
  .hero-ground { background: #fff; }
}
/* The bottom of the hero falls into the night colour so the next screen starts clean. */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, var(--night));
}

.lockup {
  margin: 0; display: inline-flex; align-items: baseline;
  font-weight: 600; font-size: clamp(56px, 13vw, 96px); line-height: 1; letter-spacing: -.035em; white-space: nowrap;
}
.hero-line {
  margin: clamp(14px, 2.4vh, 22px) 0 0;
  font-weight: 600; font-size: clamp(26px, 5.4vw, 44px); line-height: 1.1; letter-spacing: -.028em;
  text-wrap: balance; max-width: 18ch;
}
.hero-sub {
  margin: 14px 0 0; max-width: 34ch;
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.42; color: var(--ink-soft); text-wrap: pretty;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; border: 0;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .45);
  transition: background-color .2s, transform .2s var(--ease-out);
}
a.btn:hover { background: #2E6BFF; }
a.btn:active { transform: scale(.97); background: var(--blue-press); }
/* Before launch the button says so and does nothing; it keeps its colour so the page reads exactly as it will. */
.btn[aria-disabled="true"] { cursor: default; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px;
  color: var(--text); font-size: 17px; text-decoration: none;
}
.btn-text svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.btn-text:hover svg { transform: translateY(2px); }

/* ── The phone ────────────────────────────────────────────────────────────────────────────────── */
.hero-device {
  margin-top: clamp(40px, 7vh, 72px);
  width: min(300px, 70vw);
  will-change: transform;
  animation: rise 1.4s var(--ease-out) both;
}
@keyframes rise { from { transform: translateY(56px); } }
.phone {
  position: relative; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 10px;
  background: linear-gradient(145deg, #2a2f2c, #0b0d0c 40%, #1a1d1b);
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .35), 0 12px 24px -12px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
/* Real app footage, recorded with the club's crest hidden (no club logos). */
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-island {
  position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; border-radius: 999px; background: #000; transform: translateX(-50%); z-index: 1;
}

/* ── Foot ─────────────────────────────────────────────────────────────────────────────────────── */
.foot {
  padding: 56px var(--gutter) 40px; max-width: 980px; margin: 0 auto;
  color: var(--ink-faint); font-size: 12px; border-top: 1px solid rgba(0, 0, 0, .1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-device { animation: none; }
  .hero-ground, .hero-device { will-change: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Feature screens: one idea each ───────────────────────────────────────────────────────────── */
.feature {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; justify-items: center;
  max-width: 1080px; margin: 0 auto; padding: clamp(96px, 16vh, 168px) var(--gutter);
  text-align: center;
}
.feature-copy { max-width: 34rem; }
.feature h2, .langs h2, .pricing h2 {
  margin: 0; font-weight: 600; font-size: clamp(34px, 6.2vw, 60px); line-height: 1.06; letter-spacing: -.032em;
  text-wrap: balance;
}
.feature-copy p, .langs > p {
  margin: 18px auto 0; max-width: 36ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-soft); text-wrap: pretty;
}
.feature-copy .plan-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  margin-top: 22px; font-size: 15px; color: var(--ink-faint);
}
.plan-tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .22); color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -.005em;
}
.plan-tag--pro { border-color: transparent; background: rgba(31, 94, 255, .12); color: #1F5EFF; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; text-align: left; justify-items: stretch; }
  .feature .feature-art { justify-self: center; }
  .feature-copy p { margin-left: 0; }
  .feature-copy .plan-note { justify-content: flex-start; }
  .feature--flip .feature-copy { order: 2; }
  .feature--centre, .feature--film { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .feature--centre .feature-copy p, .feature--film .feature-copy p { margin-left: auto; }
  .feature--centre .plan-note, .feature--film .plan-note { justify-content: center; }
}
.feature--flip { max-width: none; }
@media (min-width: 900px) { .feature--flip { padding-left: max(var(--gutter), calc((100% - 1080px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - 1080px) / 2 + var(--gutter))); } }

.phone--still { width: min(300px, 72vw); }
.feature-art .phone { width: min(300px, 72vw); }
.feature--film .feature-art .phone { width: min(340px, 80vw); }
/* Screenshots have no status bar: a strip in the app's own background stands in for one, under the camera
   island, and covers the screenshot's top bar (which carries the course's crest; no club logos). */
.phone-screen--crop::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 7%; z-index: 1; background: #0D1A12;
}
.phone-screen--film video { transform: scale(1.14); transform-origin: 50% 100%; }

/* ── How many: back on the grass ──────────────────────────────────────────────────────────────── */
.reach, .close {
  position: relative; isolation: isolate; overflow: clip; text-align: center;
  padding: clamp(120px, 22vh, 220px) var(--gutter);
}
.reach-ground, .close-ground {
  position: absolute; inset: 0; z-index: -1;
  background: #fff;
}
@media (max-width: 760px) {
  .reach-ground, .close-ground {
    background: #fff;
  }
}
.reach-line {
  margin: 0 auto; max-width: 14ch; font-weight: 600; font-size: clamp(44px, 9vw, 96px); line-height: 1.02; letter-spacing: -.038em;
  text-wrap: balance; font-variant-numeric: tabular-nums;
}
.reach-sub { margin: 22px auto 0; max-width: 32ch; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-soft); text-wrap: pretty; }

/* ── Languages ────────────────────────────────────────────────────────────────────────────────── */
.langs { max-width: 980px; margin: 0 auto; padding: clamp(96px, 16vh, 160px) var(--gutter); text-align: center; }
.lang-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 34px auto 0; padding: 0; list-style: none;
  font-weight: 600; font-size: clamp(22px, 3.6vw, 34px); letter-spacing: -.02em; line-height: 1.3;
}
.lang-list li { color: var(--text); }

/* ── Pricing ──────────────────────────────────────────────────────────────────────────────────── */
.pricing { max-width: 1080px; margin: 0 auto; padding: clamp(96px, 16vh, 160px) var(--gutter); text-align: center; }
.pricing h2 { max-width: 16ch; margin: 0 auto; }
.plans { display: grid; gap: 40px; margin-top: clamp(48px, 7vh, 72px); }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.plan { padding-top: 26px; border-top: 1px solid rgba(0, 0, 0, .14); }
.plan h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.price { margin: 10px 0 0; font-size: clamp(36px, 4.4vw, 44px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.per { margin-left: 8px; font-size: 17px; font-weight: 400; letter-spacing: -.01em; color: var(--ink-soft); }
.price-alt { margin: 4px 0 0; font-size: 15px; color: var(--ink-faint); }
.plan-what { margin: 14px auto 0; max-width: 26ch; font-size: 17px; color: var(--ink-soft); }
.price-note { margin: 44px auto 0; max-width: 40ch; font-size: 15px; color: var(--ink-faint); }

/* ── Close ────────────────────────────────────────────────────────────────────────────────────── */
.lockup--close { font-size: clamp(48px, 10vw, 84px); }
.close-line { margin: 18px 0 30px; font-weight: 600; font-size: clamp(22px, 3.6vw, 32px); letter-spacing: -.025em; }

.foot p { margin: 0; }
.foot .foot-legal { margin-top: 8px; }

/* ── Language picker ──────────────────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-links .lang { display: flex; align-items: center; }
#lang-picker {
  -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 22px 0 0; border: 0; border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000000b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 4px center / 10px 6px no-repeat;
  color: var(--ink-soft); font: 400 15px/1 var(--font); letter-spacing: -.01em; cursor: pointer;
}
#lang-picker:hover { color: var(--text); }
#lang-picker option { color: #111; background: #fff; }

/* ── Footer links ─────────────────────────────────────────────────────────────────────────────── */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 14px 0 0; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* ── Reading pages (support, privacy, terms, delete your account) ─────────────────────────────── */
.doc { max-width: 72ch; margin: 0 auto; padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(72px, 12vh, 120px); }
.doc h1 { margin: 0; font-weight: 600; font-size: clamp(36px, 6vw, 56px); line-height: 1.06; letter-spacing: -.032em; text-wrap: balance; }
.doc .lede { margin: 18px 0 0; font-size: clamp(19px, 2.2vw, 21px); line-height: 1.45; color: var(--ink-soft); }
.doc .stamp { margin: 14px 0 0; font-size: 14px; color: var(--ink-faint); }
.doc .draft {
  margin: 28px 0 0; padding: 14px 18px; border-radius: 14px; background: rgba(0, 0, 0, .05);
  font-size: 15px; color: var(--ink-soft);
}
.doc .lang-note { margin: 14px 0 0; font-size: 15px; color: var(--ink-faint); }
.is-english .doc .lang-note { display: none; }
.doc h2 { margin: 52px 0 0; font-weight: 600; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.2; letter-spacing: -.02em; }
.doc h3 { margin: 28px 0 0; font-weight: 600; font-size: 18px; letter-spacing: -.012em; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: rgba(0, 0, 0, .82); }
.doc p { margin: 12px 0 0; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: #1F5EFF; }
.doc a:hover { color: var(--text); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .contact {
  margin: 28px 0 0; padding: 20px 22px; border-radius: 16px; background: rgba(0, 0, 0, .05);
}
.doc .contact p:first-child { margin-top: 0; }
.doc .btn { margin-top: 18px; }
.doc-foot { border-top: 1px solid rgba(0, 0, 0, .1); }

/* The planet in the logo is the club app's own film of it turning, golf cart and all. The film has sky in its
   corners, so it is shown in a circle just inside the planet's edge: the sky never shows. */
.planet-live { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; background: #2E6A2A; }
.planet-live video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transform: scale(1.12); transform-origin: 50% 51%; pointer-events: none; }
