/* What A Shot website.
   Layout: "Range Day". A bright morning on the range: white page, near-black ink, one fairway green for
   actions and progress, gold only for Pro. Numbers are the typography (Instrument Sans Bold, tabular).
   Sections are separated by space, not rules. Colors and type match the Android app (ui/Theme.kt). */

@font-face { font-family: "Fraunces"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans.woff2") format("woff2"); }

:root {
  /* White page and ink */
  --bg: #ffffff;
  --bg-2: #f3f5f2;
  --surface: #f3f5f2;
  --surface-2: #e9ede9;
  --line: rgba(14, 26, 20, 0.1);
  --line-strong: rgba(14, 26, 20, 0.24);
  --fg: #0e1a14;
  --muted: #5b6660;
  --faint: #66716b;
  /* Roles: one fairway green for actions, gold only for Pro, brick fault, lake fix and ball flight */
  --primary: #0a8443;
  --primary-hover: #08713a;
  --primary-soft: #e3f4ea;
  --on-primary: #ffffff;
  --brass: #d9a21b;
  --brass-text: #8a6410;
  --fault: #c2412d;
  --fix: #2563a8;
  --placeholder: #a35200;
  --bezel: #0e1a14;

  --font-display: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-coach: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.7rem, 6.2vw, 5.2rem);
  --fs-h2: clamp(2rem, 4vw, 3.2rem);
  --fs-h3: 1.45rem;
  --fs-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;

  --radius: 18px;
  --col: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h1 { font-size: var(--fs-hero); line-height: 1.0; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: var(--on-primary); }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Small label above a headline: sentence case, no letter-spaced caps */
.eyebrow { font: 500 0.98rem/1.4 var(--font-body); color: var(--muted); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36em; line-height: 1.55; }
.muted { color: var(--muted); }
/* The coach speaking: one quote per section at most. */
.coach { font-family: var(--font-coach); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 700 1.05rem/1 var(--font-body); text-decoration: none;
  border: 1.5px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: rgba(14, 26, 20, 0.05); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand b { font-weight: 600; }
.nav-links { display: none; gap: 28px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--fg); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav .btn { margin-left: 0; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 48px 72px; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--primary); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.fine span { display: inline-flex; align-items: center; gap: 7px; }
.fine span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
@media (min-width: 960px) {
  .hero { padding-block: 64px 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}

/* Hero visual: phone, a pen-stroke ball flight and readouts */
.hero-visual { position: relative; display: grid; justify-items: center; min-width: 0; }
.trace { position: absolute; inset: auto -6% 4% -40%; width: 140%; height: auto; pointer-events: none; overflow: visible; }
.trace .path-line { fill: none; stroke: var(--fix); stroke-width: 5; stroke-linecap: round; }
.trace .path-reveal { fill: none; stroke: #fff; stroke-width: 22; stroke-dasharray: 1; stroke-dashoffset: 0; }
.trace .ball { fill: var(--bg); stroke: var(--fix); stroke-width: 4; }
.trace .tee { stroke: var(--fg); stroke-opacity: 0.35; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .trace .path-reveal { animation: reveal 1.8s 0.3s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
  .trace .ball { animation: ball-in 1.8s 0.3s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
  @keyframes reveal { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes ball-in { 0%, 85% { opacity: 0; } 100% { opacity: 1; } }
}
.readouts { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.readout { background: var(--bg); border-radius: 16px; padding: 10px 14px; min-width: 0; box-shadow: 0 10px 30px -14px rgba(14, 26, 20, 0.35); }
.readout .eyebrow { font-size: 0.8rem; display: block; }
.readout strong { font: 700 1.9rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.readout small { font: 500 0.95rem/1 var(--font-body); color: var(--muted); margin-left: 3px; }
.readout .tag { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--primary); }
.readout .tag.estimate { color: var(--muted); }
@media (min-width: 960px) {
  .readouts { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
  .readout { position: absolute; }
  .readout:nth-child(1) { left: -2%; top: 16%; }
  .readout:nth-child(2) { right: -4%; top: 38%; }
  .readout:nth-child(3) { left: 2%; bottom: 18%; }
}

/* Phone frame */
.phone {
  position: relative; width: min(300px, 74vw); padding: 9px; border-radius: 46px;
  background: var(--bezel);
  box-shadow: 0 36px 70px -34px rgba(14, 26, 20, 0.5);
}
.phone .screen { border-radius: 38px; overflow: hidden; background: var(--bg); padding-top: 30px; }
.phone img { width: 100%; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: #050a07; transform: translateX(-50%); }
.phone.sm { width: min(250px, 66vw); border-radius: 40px; padding: 8px; }
.phone.sm .screen { border-radius: 33px; padding-top: 26px; }
.phone.sm::after { top: 17px; width: 10px; height: 10px; }

/* Spec band: big numbers with quiet labels */
.specs { background: var(--bg-2); }
.spec-list { list-style: none; margin-block: 0; padding-block: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.spec-list li { display: grid; gap: 4px; min-width: 0; }
.spec-list strong { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.spec-list strong small { font-size: 0.45em; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.spec-list span { color: var(--muted); font-size: var(--fs-small); line-height: 1.35; }
@media (min-width: 720px) { .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .spec-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .spec-list li { padding-inline: 16px; }
  .spec-list li:first-child { padding-left: 0; }
}

/* Sections */
.section { padding-block: 88px; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.section-alt { background: var(--bg-2); }

/* Modes */
.modes { display: grid; gap: 96px; }
.mode { display: grid; gap: 40px; align-items: center; }
.mode-copy { display: grid; gap: 18px; min-width: 0; max-width: 560px; }
.mode-copy h3 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.mode-copy > p { color: var(--muted); font-size: 1.1rem; }
.mode-tag { display: inline-flex; align-items: center; gap: 10px; }
.mode-tag i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c); }
.mode-tag i svg { width: 20px; height: 20px; }
.mode-tag .eyebrow { color: var(--fg); font-weight: 600; }
.mode.launch { --c: var(--fix); --c-text: var(--fix); }
.mode.swing { --c: var(--primary); --c-text: var(--primary); }
.mode.mirror { --c: var(--fg); --c-text: var(--fg); }
.mode-copy h3 span { color: var(--c-text); }
.checks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--c, var(--primary)); background: radial-gradient(circle, var(--c, var(--primary)) 0 3.5px, transparent 4.5px); }
.note { font-size: var(--fs-small); color: var(--faint); }
.mode-visual { display: grid; justify-items: center; min-width: 0; }
@media (min-width: 900px) {
  .mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .mode:nth-child(even) .mode-visual { order: -1; }
}

/* Mirror illustration */
.mirror-art { width: min(300px, 74vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 9px; background: var(--bezel); box-shadow: 0 36px 70px -34px rgba(14, 26, 20, 0.5); position: relative; }
.mirror-art svg { width: 100%; height: 100%; border-radius: 38px; display: block; }

/* Fault to fix */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; align-items: start; counter-reset: step; }
.flow li { display: grid; gap: 18px; justify-items: start; min-width: 0; counter-increment: step; }
.flow .phone { width: min(240px, 64vw); border-radius: 38px; padding: 8px; }
.flow .phone .screen { border-radius: 31px; }
.flow h3::before { content: counter(step, decimal-leading-zero); display: block; font: 700 0.95rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--primary); margin-bottom: 8px; }
.flow p { color: var(--muted); max-width: 30em; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }

/* How it works */
.how { display: grid; gap: 48px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; counter-increment: s; }
.steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 700 1.5rem/1 var(--font-display); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }
.setup { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; }
.setup svg { width: 100%; height: auto; display: block; }
.setup figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 960px) { .how { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

/* Trust */
.trust { display: grid; gap: 28px; }
.trust article { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.trust p { color: var(--muted); }
.limits { margin-top: 44px; display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); max-width: 860px; }
.limits .eyebrow { color: var(--fg); font-weight: 600; }
.limits p { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 920px; }
.plan { display: grid; gap: 18px; align-content: start; padding: 30px; border-radius: 22px; background: var(--surface); border: 2px solid transparent; min-width: 0; }
.plan h3 { font-size: 2rem; }
.plan .price { font: 600 1.2rem/1.25 var(--font-body); }
.plan .price small { display: block; font: 400 var(--fs-small)/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.plan .checks { margin: 0; }
.plan .btn { justify-self: start; }
.plan.pro { border: 2px solid var(--brass); background: var(--bg); }
.plan.pro h3 span { color: var(--brass-text); }
.badge { justify-self: start; font: 600 0.82rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: var(--brass); color: var(--fg); }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 44em; }

/* Final CTA */
.final { position: relative; text-align: center; padding-block: 104px; background: var(--bg-2); }
.final .wrap { position: relative; display: grid; gap: 22px; justify-items: center; }
.final .lead { margin-inline: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: var(--fs-small); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* Checkout dialog */
dialog { border: 0; border-radius: 22px; padding: 0; background: var(--bg); color: var(--fg); width: min(440px, calc(100vw - 32px)); box-shadow: 0 40px 100px -30px rgba(14, 26, 20, 0.5); }
dialog::backdrop { background: rgba(14, 26, 20, 0.45); backdrop-filter: blur(3px); }
.dialog-body { display: grid; gap: 14px; padding: 30px; }
.dialog-body h2 { font-size: 2rem; }
.dialog-body p { color: var(--muted); }
.dialog-body .btn { justify-self: start; margin-top: 6px; }

/* Legal pages */
.legal { padding-block: 56px 88px; }
.legal .wrap { max-width: calc(760px + 64px); }
.legal h1 { font-size: clamp(2.4rem, 5.6vw, 3.6rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.55rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--fg); }
.placeholder { color: var(--placeholder); font-weight: 600; }
.legal .actions { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
