/* Casual Golf website.
   Tokens mirror Shared/DesignSystem/DS.swift: Bone (light) and Graphite (dark)
   follow the system; Signal is only ever a point (cup, live dot, one value). */

@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos-text.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --ground: #ECE8DF;
  --surface: #F6F3EC;
  --text: #111312;
  --text2: #5C6150;
  --text3: rgb(17 19 18 / .36);
  --rule: rgb(17 19 18 / .12);
  --rough: #474B39;
  --glow: rgb(71 75 57 / .08);
  --signal: #FF5A1F;
  --frame: #0E0F0F;

  --eagle: #2E5A70;
  --birdie: #40657A;
  --par: #5C6150;
  --bogey: #8A5F1C;
  --double: #8E4E24;
  --triple: #7E3A2A;

  --gutter: clamp(20px, 5vw, 56px);
  --page: min(1200px, 100% - 2 * var(--gutter));
  --radius: 24px;
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1B1D1C;
    --surface: #242625;
    --text: #ECE8DF;
    --text2: #A8A396;
    --text3: rgb(236 232 223 / .38);
    --rule: rgb(236 232 223 / .13);
    --rough: #7A8275;
    --glow: rgb(122 130 117 / .11);

    --eagle: #8FB0C4;
    --birdie: #A9BFCB;
    --par: #A8A396;
    --bogey: #D4A762;
    --double: #C98B5E;
    --triple: #B8765F;
  }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--text3);
  transition: text-decoration-color .2s;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--rough); color: var(--ground); }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: var(--page); margin-inline: auto; }

/* Type roles (DS.Typography) */

.label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text2);
}

.title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text2);
  max-width: 34em;
  text-wrap: pretty;
}

.num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text2);
}

/* Pills (DS button styles) */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.pill--solid { background: var(--text); color: var(--ground); }
.pill--outline { box-shadow: inset 0 0 0 1.5px var(--text); }
.pill--quiet { box-shadow: inset 0 0 0 1px var(--rule); color: var(--text2); }
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

/* Header */

.site-header {
  --header-milk: 78%;
  --header-blur: 18px;
  --header-saturation: 1.4;
  --header-border: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) var(--header-milk), transparent);
  -webkit-backdrop-filter: saturate(var(--header-saturation)) blur(var(--header-blur));
  backdrop-filter: saturate(var(--header-saturation)) blur(var(--header-blur));
  border-bottom: 1px solid color-mix(in srgb, var(--rule) var(--header-border), transparent);
}
html:not(.no-js) .site-header {
  --header-milk: 0%;
  --header-blur: 0px;
  --header-saturation: 1;
  --header-border: 0%;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
/* Nearly the header's full height (68px, 60px on small screens). */
.brand svg { width: 56px; height: 56px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .wrap { height: 60px; }
  .brand svg { width: 50px; height: 50px; }
  .hero { margin-top: -60px; padding-top: calc(60px + 32px); }
  .site-header .pill { min-height: 38px; padding: 0 16px; font-size: 14px; }
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  /* Runs up under the translucent header so the contours aren't cut off. */
  margin-top: -68px;
  padding-block: calc(68px + clamp(32px, 5vw, 72px)) clamp(72px, 9vw, 128px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 60% at 78% 34%, var(--glow), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

/* The text column sits above the device's contour rings, which reach across it. */
.hero .wrap > :first-child { position: relative; z-index: 1; }
.hero h1 { margin-bottom: clamp(28px, 3.5vw, 44px); }
.hero h1 svg { width: min(100%, 580px); aspect-ratio: 330 / 83.5; }

.hero .lede { font-size: clamp(19px, 1.9vw, 23px); color: var(--text); max-width: 25em; }
.hero .lede span { color: var(--text2); }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: clamp(28px, 3.5vw, 40px);
}
.cta .note { font-weight: 500; }

.device {
  --w: clamp(240px, min(27vw, (100svh - 140px) / 2.2), 330px);
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: var(--w);
}

/* The big contour background. Its cup point (58, 55 in the mark's 100-unit box)
   sits on the cup in the counter screenshot (89.5% across, 1.087 widths down). */
.device .rings {
  position: absolute;
  z-index: -1;
  max-width: none;
  width: calc(var(--w) * 3.6);
  height: calc(var(--w) * 3.6);
  left: calc(var(--w) * (.8953 - .58 * 3.6));
  top: calc(var(--w) * (1.0874 - .55 * 3.6));
  stroke-width: 1.25px;
  opacity: .85;
  transform-origin: 58% 55%;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .device { --w: min(72vw, 300px); margin-top: 8px; }
}

/* Device frames */

.phone {
  position: relative;
  width: 100%;
  padding: 2.6%;
  border-radius: 15.5% / 7.1%;
  background: var(--frame);
  box-shadow:
    0 0 0 1px var(--rule),
    0 50px 90px -40px rgb(17 19 18 / .45);
}
.phone img {
  width: 100%;
  aspect-ratio: 720 / 1565;
  border-radius: 13% / 6%;
  background: var(--ground);
}

.watch {
  position: relative;
  width: 100%;
  padding: 8% 7.5%;
  border-radius: 30% / 26%;
  background: #000;
  box-shadow:
    0 0 0 1px var(--rule),
    inset 0 0 0 5px #151616,
    0 40px 70px -40px rgb(17 19 18 / .5);
}
.watch::after { /* Digital Crown */
  content: "";
  position: absolute;
  right: -5px;
  top: 25%;
  width: 6px;
  height: 17%;
  border-radius: 3px;
  background: #2A2C2B;
  box-shadow: 0 0 0 1px var(--rule);
}
.watch img {
  width: 100%;
  aspect-ratio: 416 / 496;
  border-radius: 20% / 17%;
}

/* Facts row (the counter's Par / Length / Index row) */

.facts {
  border-block: 1px solid var(--rule);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts li {
  padding: 18px 20px 20px;
  border-left: 1px solid var(--rule);
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .value {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* Feature sections */

.feature {
  padding-block: var(--section);
}
.feature + .feature { border-top: 1px solid var(--rule); }

.feature .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 128px);
}
.feature--flip .copy { order: 2; }

.copy .label { margin-bottom: 18px; }
.copy .title { margin-bottom: 24px; }
.copy .lede + .lede { margin-top: 1em; }

.media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.media .phone { width: clamp(240px, 26vw, 320px); }

@media (max-width: 860px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature--flip .copy { order: 0; }
}

/* Detail lists with hairlines */

.points {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.points li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15.5px;
  color: var(--text2);
}
.points strong { font-weight: 600; color: var(--text); }

@media (max-width: 480px) {
  .points li { grid-template-columns: 1fr; gap: 2px; }
}

/* Score marks (ScoreBand) */

.marks {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px 32px;
  margin-top: 36px;
}
.marks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}
.mk {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--c);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mk--eagle, .mk--birdie { border: 1.5px solid var(--c); border-radius: 50%; }
.mk--eagle { outline: 1.5px solid var(--c); outline-offset: 2px; }
.mk--bogey, .mk--double, .mk--triple { border: 1.5px solid var(--c); border-radius: 6px; }
.mk--double { outline: 1.5px solid var(--c); outline-offset: 2px; border-radius: 4px; }
.mk--triple { background: color-mix(in srgb, var(--c) 30%, transparent); }
.mk--eagle { --c: var(--eagle); }
.mk--birdie { --c: var(--birdie); }
.mk--par { --c: var(--par); }
.mk--bogey { --c: var(--bogey); }
.mk--double { --c: var(--double); }
.mk--triple { --c: var(--triple); }

/* Watch */

.panel {
  background: var(--surface);
  border-radius: var(--radius);
}

.watches {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
}
.watches .watch { flex: 0 1 clamp(140px, 18vw, 224px); min-width: 0; }
.watches .watch:nth-child(2) { margin-top: clamp(40px, 6vw, 88px); }

/* Courses: steps */

.steps {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 40px;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.steps strong { font-weight: 600; font-size: 17px; }
.steps span { color: var(--text2); font-size: 15.5px; }

/* Scorecard pair */

.pair { position: relative; }
.pair .phone:nth-child(2) { margin-top: clamp(64px, 10vw, 140px); }
.media.pair .phone { width: clamp(200px, 22vw, 290px); }

@media (max-width: 480px) {
  .media.pair { gap: 12px; }
  .media.pair .phone { width: auto; flex: 1 1 0; min-width: 0; }
}

/* Handicap */

.aside {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text2);
}
.aside strong { color: var(--text); font-weight: 600; }

/* Coming soon + slider */

.soon {
  position: relative;
  overflow: clip;
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}
.soon .wrap { position: relative; display: grid; justify-items: center; }
.soon .label { margin-bottom: 20px; }
.soon .title { font-size: clamp(44px, 7vw, 96px); }
.soon .lede { margin: 24px auto 0; text-align: center; }
.soon .note { margin-top: 28px; }

.slider {
  --size: 56px;
  --pad: 6px;
  --x: 0px;
  position: relative;
  width: min(100%, 400px);
  height: calc(var(--size) + 2 * var(--pad));
  margin-top: 44px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.slider:active { cursor: grabbing; }
.slider:focus-visible { outline-offset: 4px; border-radius: 999px; }

.slider__text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-inline: calc(var(--size) + 2 * var(--pad));
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  opacity: calc(1 - var(--p, 0) * 1.6);
  pointer-events: none;
}

.slider__cup {
  position: absolute;
  right: var(--pad);
  top: var(--pad);
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
}
.slider__cup::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--signal) 16%, transparent);
  transition: transform .4s var(--ease);
}

.slider__ball {
  position: absolute;
  left: var(--pad);
  top: var(--pad);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #E4E0D6 60%, #CFCABD);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 6px 14px -6px rgb(17 19 18 / .45);
  transform: translateX(var(--x));
}
@media (prefers-color-scheme: light) {
  .slider__ball { background: radial-gradient(circle at 35% 30%, #5A5E57, #1D1F1E 62%, #111312); box-shadow: 0 6px 14px -6px rgb(17 19 18 / .5); }
}
.slider.is-returning .slider__ball { transition: transform .45s var(--ease); }
.slider.is-holed .slider__ball { transition: transform .25s var(--ease), scale .35s .2s var(--ease), opacity .35s .2s; scale: .3; opacity: 0; }
.slider.is-holed .slider__cup::before { transform: scale(1.25); }
.slider.is-holed .slider__text { opacity: 1; color: var(--text); }

.no-js .slider { display: none; }

/* FAQ */

.faq { padding-block: var(--section); border-top: 1px solid var(--rule); }
.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq .title { position: sticky; top: 108px; }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--text2);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding-bottom: 24px;
  max-width: 40em;
  color: var(--text2);
}
.faq details p + p { margin-top: -12px; }

@media (max-width: 860px) {
  .faq .wrap { grid-template-columns: 1fr; }
  .faq .title { position: static; }
}

/* Footer */

.site-footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--text2);
}
.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.lockup { display: flex; align-items: center; gap: 18px; }
.lockup .m { width: 64px; height: 64px; }
.lockup .t { width: 220px; aspect-ratio: 330 / 83.5; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  font-size: 13px;
}

/* Legal pages */

.doc { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.doc .wrap { max-width: 720px; }
.doc__back { display: flex; width: fit-content; margin-bottom: 32px; }
.doc .label { margin-bottom: 16px; }
.doc h1 { margin-bottom: 20px; }
.doc h2 {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.doc p, .doc ul { margin-top: 14px; color: var(--text2); }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc address { font-style: normal; color: var(--text); margin-top: 14px; line-height: 1.7; }
.todo { background: color-mix(in srgb, var(--bogey) 18%, transparent); border-radius: 4px; padding: 0 4px; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.lost svg { width: 120px; height: 120px; margin: 0 auto 32px; }
.lost .lede { margin: 16px auto 32px; }

/* Motion: rings settle in; sections rise once. Nothing moves under Reduce Motion. */

@media (prefers-reduced-motion: no-preference) {
  .device .rings { animation: settle 1.8s var(--ease) both; }
  .device .phone { animation: rise 1.1s .15s var(--ease) both; }

  html:not(.no-js) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  html:not(.no-js) .reveal.is-in { opacity: 1; transform: none; }
}

@keyframes settle {
  from { opacity: 0; transform: scale(.92) rotate(-3deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
}

.feature--text .wrap { align-items: start; }

.note--after { margin-top: 20px; }

@media (max-width: 400px) {
  .marks { grid-template-columns: repeat(2, max-content); }
}

/* Coming-soon page (coming-soon.html, served before launch) */

.placeholder {
  position: relative;
  overflow: clip;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 50% 40%, var(--glow), transparent 70%);
  pointer-events: none;
}
.placeholder__mark {
  --m: clamp(64px, 9vw, 88px);
  position: relative;
  isolation: isolate;
  width: var(--m);
  height: var(--m);
  margin-bottom: clamp(32px, 5vw, 48px);
}
/* Big thin contours centred on the mark's cup (58, 55). */
.placeholder__rings {
  position: absolute;
  z-index: -1;
  max-width: none;
  width: calc(var(--m) * 16);
  height: calc(var(--m) * 16);
  left: calc(var(--m) * (.58 - .58 * 16));
  top: calc(var(--m) * (.55 - .55 * 16));
  stroke-width: 1.25px;
  opacity: .45;
  pointer-events: none;
}
.placeholder h1 { position: relative; }
.placeholder__type { width: min(560px, 84vw); aspect-ratio: 330 / 83.5; }
.placeholder .label { position: relative; margin-top: clamp(36px, 5vw, 56px); }
.placeholder .lede { position: relative; margin: 12px auto 0; }
.placeholder .note { position: relative; margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .placeholder__rings { animation: settle 1.8s var(--ease) both; transform-origin: 58% 55%; }
}
@media (min-width: 720px) {
  .placeholder .lede { max-width: none; }
  .placeholder .lede .line { white-space: nowrap; }
}
