/* Strike Lab — Fairway on the web.
   Palette, type roles, and metrics are ported from ios/StrikeLab/Design
   (Fairway.swift, Typography.swift). Change them there first, then here. */

:root {
  /* Palette — Assets.xcassets colorsets */
  --paper: #fcfbf9;
  --surface: #f1efea;
  --ink: #191a17;
  --ink-secondary: rgba(58, 58, 52, 0.62);
  --ink-tertiary: rgba(58, 58, 52, 0.5);
  --hairline: rgba(25, 26, 23, 0.08);
  --accent: #1e7a55;
  --accent-pressed: #17603f;
  --accent-wash: rgba(30, 122, 85, 0.08);
  --accent-chip: rgba(30, 122, 85, 0.1);

  /* Severity belongs to the chain rail and the severity badge. Nothing else. */
  --severe: #e5484d;
  --moderate: #f2a23c;
  --minor: #d9b31a;

  /* Metrics */
  --radius-card: 16px;
  --radius-icon: 11px;
  --gutter: 24px;
  --max-width: 1080px;

  /* Type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Archivo", var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type roles ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 46ch;
}

.body { color: var(--ink); }
.detail { font-size: 14px; color: var(--ink-secondary); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-pressed); }

.btn-bordered {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(30, 122, 85, 0.35);
  padding: 12.5px 24px;
}
.btn-bordered:hover { background: var(--accent-chip); }

.btn-small { min-height: 38px; padding: 9px 18px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 251, 249, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark:hover { text-decoration: none; }

.wordmark .mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links .nav-link { display: none; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; scroll-margin-top: 64px; }
section + section { border-top: 1px solid var(--hairline); }

@media (max-width: 720px) {
  section { padding: 60px 0; }
}

.section-head { max-width: 52ch; margin-bottom: 40px; }
.section-head p { margin: 16px 0 0; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 88px; border-top: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero p.lede { margin: 20px 0 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Phone frames ----------
   The frame owns the size and the corner radius, so swapping a screenshot is a
   one-line change. The .shot-* placeholder styles below are kept for any
   section added before its screenshot exists. */

/* The ratio belongs to the screen, not the frame. Put it on .phone and the
   9px bezel makes the inner box a different shape from the screenshot, so
   object-fit crops a slice off the top and bottom of every screen. */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 44px;
  padding: 9px;
  box-shadow: 0 24px 60px rgba(25, 26, 23, 0.14);
}

.phone-screen {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
}

.phone-screen img { width: 100%; height: 100%; object-fit: contain; }

.phone.tilt-left { transform: rotate(-3deg); }
.phone.tilt-right { transform: rotate(3deg); }

.shot-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed rgba(25, 26, 23, 0.28);
  border-radius: 36px;
}

.shot-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.shot-file {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
}

.shot-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-icon);
  background: var(--accent-chip);
}

/* A wide placeholder, for anything that is not a phone frame. */
.shot-wide {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  border: 1.5px dashed rgba(25, 26, 23, 0.28);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}


/* ---------- The through-line band ---------- */

.statement {
  background: var(--surface);
  padding: 64px 0;
}

.statement p {
  margin: 0;
  max-width: 30ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.statement p span {
  display: block;
  margin-top: 18px;
  max-width: 46ch;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-secondary);
}

@media (max-width: 720px) {
  .statement { padding: 48px 0; }
}

/* ---------- Legal and support pages ---------- */

.legal { padding: 64px 0 88px; }

.legal-head { max-width: 62ch; margin-bottom: 44px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 48px); }

.legal-meta {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.legal-body { max-width: 68ch; }

.legal-body h2 {
  font-size: 24px;
  margin: 48px 0 0;
}

.legal-body h3 {
  font-size: 17px;
  margin: 28px 0 0;
}

.legal-body p,
.legal-body ul {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.legal-body ul { padding-left: 22px; }
.legal-body li { margin-top: 8px; }
.legal-body strong { color: var(--ink); font-weight: 600; }

/* A claim the golfer would be annoyed to discover later gets its own card. */
.legal-body .callout {
  background: var(--accent-wash);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin-top: 24px;
  color: var(--ink);
}
.legal-body .callout p { color: var(--ink); margin: 10px 0 0; }
.legal-body .callout p:first-child { margin: 0; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}
.legal-body th,
.legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-secondary);
}
.legal-body th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-scroll { overflow-x: auto; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature.reverse .feature-copy { order: 2; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
}

.feature-copy p { margin: 18px 0 0; color: var(--ink-secondary); font-size: 17px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-icon);
  background: var(--accent-chip);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step p { margin: 10px 0 0; font-size: 15px; color: var(--ink-secondary); }

/* ---------- The chain rail ---------- */

.rail {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin-top: 28px;
}

.rail-positions {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.rail-pos {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.rail-dot.severe { background: var(--severe); }
.rail-dot.moderate { background: var(--moderate); }
.rail-dot.minor { background: var(--minor); }
.rail-dot.clean { background: rgba(30, 122, 85, 0.45); }
.rail-dot.hidden-pos {
  background: transparent;
  border: 1.5px dashed rgba(25, 26, 23, 0.22);
}

.rail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  text-align: center;
  line-height: 1.3;
}
.rail-pos.not-visible .rail-label { color: var(--ink-tertiary); }

.rail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* ---------- Honesty cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card p { margin: 10px 0 0; font-size: 15px; color: var(--ink-secondary); }

.card-note { background: var(--accent-wash); }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-chip);
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
}

.plan.featured {
  background: var(--accent-wash);
  border: 1.5px solid rgba(30, 122, 85, 0.25);
}

.plan .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
  color: var(--ink);
}
.plan .price span {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: 0;
}
.plan p { margin: 12px 0 0; font-size: 15px; color: var(--ink-secondary); }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; }

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink-secondary);
  max-width: 62ch;
}

/* ---------- Closing CTA ---------- */

.closer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  border-top: none;
}
.closer h2 { color: var(--paper); }
.closer p { color: rgba(252, 251, 249, 0.7); margin: 18px auto 0; max-width: 44ch; }
.closer .eyebrow { color: #4fbf8b; }
.closer .btn-primary { background: #4fbf8b; color: var(--ink); margin-top: 30px; }
.closer .btn-primary:hover { background: #6fd0a3; }

/* ---------- Footer ---------- */

/* The footer carries the closer's ink, so the page ends on one dark block
   rather than a thin paper strip under it. */
.site-footer {
  padding: 32px 0 40px;
  background: var(--ink);
  color: rgba(252, 251, 249, 0.6);
  border-top: 1px solid rgba(252, 251, 249, 0.12);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a { font-size: 14px; color: rgba(252, 251, 249, 0.6); }
.footer-links a:hover { color: var(--paper); text-decoration: none; }

.copyright { font-size: 14px; color: rgba(252, 251, 249, 0.45); margin: 0; }
