/* ARSgolf public site. Brand tokens from brand/tokens.css (edition 01). Mobile first. */
:root {
  --racing: #0C4A35;
  --racing-deep: #083626;
  --racing-hi: #14614A;
  --gold: #D6BC86;
  --gold-hi: #EEDDB4;
  --gold-lo: #B8975E;
  --p600: #24503D;
  --p750: #173226;
  --p800: #12291F;
  --p850: #0E2119;
  --p900: #0A1A14;
  --p950: #071410;
  --ivory: #F5F1E8;
  --mist: #B5C0B8;
  --sage: #8FA097;
  --line-gold: rgba(214, 188, 134, 0.22);
  --line-soft: rgba(245, 241, 232, 0.08);
  --warn: #EAB05A;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
  --wrap: 1120px;
  --pad: 20px;
  --radius: 16px;
  --focus: 0 0 0 2px #0A1A14, 0 0 0 4px #D6BC86;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--p900); color: var(--ivory);
  font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--p900); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
.kicker {
  font: 600 12px/1.3 var(--display); font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; letter-spacing: 0.005em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(38px, 10vw, 68px); }
h2 { font-size: clamp(30px, 7.4vw, 46px); }
h3 { font-size: 20px; line-height: 1.25; }
.lead { font-size: 18px; color: var(--mist); max-width: 34em; }
p { margin: 0 0 1em; }
.muted { color: var(--mist); }
.small { font-size: 14px; color: var(--sage); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(10, 26, 20, 0.88); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font: 600 14px/1 var(--display); font-stretch: 125%; letter-spacing: 0.2em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--mist); text-decoration: none; font-size: 15px; padding: 10px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav .hide-sm { display: none; }
@media (min-width: 640px) { .nav .hide-sm { display: inline-block; } }

/* Buttons and store badge */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font: 600 16px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-gold { background: linear-gradient(180deg, #E5D0A2, var(--gold) 45%, #C2A36A); color: #0B1A13; }
.btn-gold:hover { color: #0B1A13; filter: brightness(1.05); }
.btn-ghost { border-color: var(--line-gold); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--ivory); }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 0 18px;
  border-radius: 12px; border: 1px dashed var(--line-gold); color: var(--mist); line-height: 1.15;
}
.store-badge b { font: 600 15px/1.2 var(--text); color: var(--ivory); }
.store-badge small { font-size: 12px; letter-spacing: 0.04em; }
a.store-link { display: inline-block; }
a.store-link img { height: 52px; width: auto; }
.cta-note { font-size: 14px; color: var(--sage); margin-top: 14px; }

/* Device frame: screenshots are cropped to the screen, the frame is CSS */
.device {
  position: relative; width: min(300px, 78vw); margin: 0 auto; padding: 9px 9px 0; border-radius: 46px 46px 0 0;
  background: linear-gradient(160deg, #3a3d3b, #1c1f1d 40%, #2a2d2b); box-shadow: 0 0 0 1px rgba(214, 188, 134, 0.25), 0 30px 60px rgba(0, 0, 0, 0.45);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.device img { width: 100%; border-radius: 38px 38px 0 0; background: var(--p950); aspect-ratio: 640 / 1321; object-fit: cover; object-position: top; }
.device.short img { aspect-ratio: 640 / 1000; }

/* Sections */
section { padding: 72px 0; }
.hero { padding: 40px 0 0; overflow: hidden; background: radial-gradient(120% 70% at 80% 30%, rgba(20, 97, 74, 0.45), transparent 60%), var(--p900); }
.hero-grid { display: grid; gap: 40px; }
.hero-copy { padding-top: 12px; }
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold); }
.green { background: var(--racing); }
.green .lead, .green .muted { color: #CFD8D2; }
.deep { background: var(--p850); }
.split { display: grid; gap: 40px; align-items: center; }
.split .media { overflow: hidden; order: 2; }
.section-cut .split .copy { padding-bottom: 8px; }
.split .copy ul { padding: 0; margin: 20px 0 0; list-style: none; }
.split .copy li { position: relative; padding-left: 22px; margin: 0 0 10px; color: var(--mist); }
.green .split .copy li { color: #CFD8D2; }
.split .copy li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--gold); }
.section-cut { padding-bottom: 0; }

@media (min-width: 880px) {
  :root { --pad: 32px; }
  section { padding: 104px 0; }
  .section-cut { padding-bottom: 0; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 48px; }
  .hero h1 { font-size: 64px; }
  .hero-copy { padding-bottom: 120px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split .media { order: 0; }
  .split.flip .media { order: 2; }
  .section-cut .split .copy { padding-bottom: 104px; }
  .split .media { align-self: end; }
  .device { width: 320px; }
}

/* Three steps */
.steps { display: grid; gap: 16px; margin-top: 36px; }
.step { background: var(--p800); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.step svg { width: 32px; height: 32px; stroke: var(--gold); fill: none; stroke-width: 1.6; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--mist); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Leaderboard */
.board-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-gold); background: #071410; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); max-width: 480px; margin: 0 auto; }
.weights { display: grid; grid-template-columns: 3fr 1fr; gap: 6px; margin: 24px 0 10px; max-width: 460px; }
.weights div { height: 10px; border-radius: 99px; background: var(--gold); }
.weights div + div { background: #9FB5A9; }
.weights-legend { display: flex; gap: 16px; max-width: 460px; font-size: 14px; color: #CFD8D2; }
.weights-legend b { font-family: var(--display); font-stretch: 112%; color: var(--ivory); font-size: 18px; margin-right: 6px; }
.fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(245, 241, 232, 0.16); font-size: 14px; color: #CFD8D2; }

/* Mission */
.mission { text-align: center; }
.mission svg { width: 64px; height: 64px; margin: 0 auto 24px; display: block; }
.mission blockquote { margin: 0 auto; max-width: 22em; font: 600 clamp(24px, 5.4vw, 34px)/1.3 var(--display); font-stretch: 100%; }
.mission .sig { margin-top: 28px; font: 600 12px/1 var(--display); font-stretch: 125%; letter-spacing: 0.22em; color: var(--gold); }

/* Final call */
.final { text-align: center; }
.final .cta-row { justify-content: center; }

/* Safety notice */
.safety { padding: 40px 0; background: var(--p950); border-top: 1px solid var(--line-soft); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; max-width: 860px; }
.notice svg { width: 24px; height: 24px; stroke: var(--warn); fill: none; stroke-width: 1.8; margin-top: 2px; }
.notice h2 { font-size: 16px; font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; color: var(--ivory); }
.notice p { color: var(--mist); font-size: 15px; margin: 0; }

/* Footer */
.site-foot { padding: 40px 0 48px; background: var(--p950); border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--sage); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 20px; padding: 0; list-style: none; }
.foot-links a { color: var(--mist); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-links a:hover { color: var(--ivory); }
.site-foot p { margin: 0 0 6px; }

/* Document pages (privacy, terms, rules, support) */
.doc-head { padding: 48px 0 32px; background: radial-gradient(100% 120% at 90% 0%, rgba(20, 97, 74, 0.5), transparent 60%), var(--p900); border-bottom: 1px solid var(--line-soft); }
.doc-head h1 { font-size: clamp(34px, 8vw, 52px); }
.doc-head .meta { margin-top: 14px; color: var(--sage); font-size: 15px; }
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 24px; margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { color: #D9DFDA; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--ivory); }
.summary { background: var(--p800); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 22px 22px 8px; }
.summary h2 { margin-top: 0; font-size: 20px; }
.toc { margin: 28px 0 0; padding: 0; list-style: none; columns: 1; }
.toc li { margin: 0 0 6px; }
.toc a { text-decoration: none; }
@media (min-width: 640px) { .toc { columns: 2; column-gap: 32px; } }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line-soft); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
@media (min-width: 640px) { table { font-size: 15px; } }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
th { font: 600 12px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: var(--p850); }
tr:last-child td { border-bottom: 0; }
td { color: #D9DFDA; }

/* Contact card and FAQ */
.contact-card { display: grid; gap: 6px; background: var(--racing); border-radius: var(--radius); padding: 24px; margin: 0 0 12px; }
.contact-card .big { font: 600 clamp(20px, 5.4vw, 26px)/1.2 var(--display); font-stretch: 112%; color: var(--ivory); word-break: break-word; }
.contact-card .big a { color: var(--ivory); }
.contact-card p { margin: 0; color: #CFD8D2; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-of-type { border-top: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 18px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--warn); background: rgba(234, 176, 90, 0.07); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 0 0 1.2em; }
.callout p { margin: 0 0 0.6em; }
.callout p:last-child { margin: 0; }

/* Self-hosted brand fonts (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.mission .sig span { display: inline-block; }

/* Tables stack into labelled cards on phones */
@media (max-width: 639px) {
  .table-scroll { border: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--p800); border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 14px; margin: 0 0 10px; }
  td { border: 0; padding: 8px 0; }
  td + td { border-top: 1px solid var(--line-soft); }
  td::before { content: attr(data-label); display: block; font: 600 11px/1.3 var(--display); font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
}
.weights-legend span + span { margin-left: auto; text-align: right; }

/* Live video: hero and mission film, live device, coaching reel */
.hero, .has-film { position: relative; isolation: isolate; }
.hero-film { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-film video.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,20,.55) 0%, rgba(10,26,20,.45) 45%, rgba(10,26,20,.92) 100%), linear-gradient(90deg, rgba(10,26,20,.7), rgba(10,26,20,.15) 70%); }
.has-film .hero-scrim { background: rgba(8,54,38,.72); }
.hero { background: var(--p900); }
.device.live { position: relative; }
.device.live video { display: block; width: 100%; aspect-ratio: 640 / 1321; object-fit: cover; object-position: 42% center; border-radius: 38px 38px 0 0; background: var(--p950); }
.live-ui { position: absolute; left: 22px; right: 22px; top: 54px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(10,26,20,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; color: var(--mist); }
.live-ui b { color: var(--ivory); font: 600 15px/1.25 var(--text); }
.live-kick { font: 600 10px/1.2 var(--display); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.reel-sec { background: var(--p900); }
.reel { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.clip { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--p950); border: 1px solid var(--line-soft); }
.clip video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px; font: 600 13px/1.2 var(--text); color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(7,20,16,.85)); }
@media (min-width: 760px) { .reel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* Splash intro (first visit per session): mark, then mission, over the flyover. Only with JS. */
.intro { display: none; }
.intro-on #intro { display: block !important; position: fixed; inset: 0; z-index: 50; background: var(--p950); cursor: pointer; transition: opacity .8s ease; }
.intro-on body { overflow: hidden; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.intro-bg.on { opacity: 1; }
.intro-scrim { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, rgba(10,26,20,.35), rgba(7,20,16,.85)); }
.intro-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; opacity: 0; transform: translateY(8px); transition: opacity .9s ease, transform .9s ease; }
.intro[data-stage="mark"] .intro-mark, .intro[data-stage="mission"] .intro-mission { opacity: 1; transform: none; }
.intro-mark svg { width: 112px; height: 112px; }
.intro-mark path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.3s cubic-bezier(.6,0,.2,1) forwards; }
.intro-mark .im-a { animation-delay: .25s; }
.intro-mark .im-bar { animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-word { margin-top: 22px; font: 600 18px/1 var(--display); font-stretch: 125%; letter-spacing: .32em; color: var(--ivory); opacity: 0; animation: fadein .8s ease .9s forwards; }
@keyframes fadein { to { opacity: 1; } }
.intro-text { max-width: 20em; margin: 0; font: 600 clamp(24px, 5.6vw, 40px)/1.3 var(--display); font-stretch: 100%; color: var(--ivory); text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.intro-tag { margin-top: 26px; font: 600 12px/1 var(--display); font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.intro-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; background: none; border: 0; color: var(--mist); font: 500 14px/1 var(--text); padding: 10px 12px; cursor: pointer; opacity: .75; }
@media (prefers-reduced-motion: reduce) {
  .intro-mark path { animation: none; stroke-dashoffset: 0; }
  .intro-word { animation: none; opacity: 1; }
  .intro-stage, .intro-bg, .hero-film video { transition-duration: .3s; }
}
.intro-tag span { display: inline-block; }
