/* ==========================================================================
   FairwayLab — Golf Launch Monitor landing (Cluster A)
   Mobile-first, no frameworks. Dark golf-tech theme.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #0d1210;
  --bg-2: #111815;
  --surface: #16211b;
  --surface-2: #1c2921;
  --border: #26362c;
  --ink: #eaf1ea;
  --muted: #9cac9f;
  --muted-2: #6f8273;
  --accent: #46d67e;
  --accent-strong: #2fbf68;
  --accent-ink: #06130b;
  --warm: #f2c14e;

  /* Type */
  --font-display: "Archivo Expanded", "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing / radius / shadows */
  --space: 1rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1120px;

  --focus: 0 0 0 3px rgba(70, 214, 126, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-weight: 800;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--accent); }

strong { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.4rem; min-height: 48px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.55rem 1rem; min-height: 40px; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(70,214,126,0.2); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.brand-sub { font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav { display: none; margin-left: auto; gap: 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.site-nav a:hover { color: var(--ink); }
.header-cta { margin-left: auto; }
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.25rem; }

.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.75rem;
}

/* ---------- 1. Hero ---------- */
.hero { padding: 3rem 0 3.5rem; background: radial-gradient(1200px 600px at 80% -10%, rgba(70,214,126,0.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 640px; }
.lede { font-size: 1.12rem; color: var(--muted); }
.lede em { color: var(--ink); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.hero-stats li { font-size: 0.9rem; color: var(--muted); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }

.hero-visual { display: none; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { display: block; }
}

/* ---------- Product image placeholder ---------- */
.product-img {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(70,214,126,0.12), transparent 55%),
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--surface-2) 10px, var(--surface-2) 20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.img-glyph { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: rgba(234,241,234,0.28); }
.img-label {
  position: absolute; bottom: 0.55rem; left: 0.65rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2);
}
.img-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.hero-img { aspect-ratio: 4 / 3.4; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-img .img-glyph { font-size: 3.5rem; }

/* ---------- 2. Problem ---------- */
.problem-grid { display: grid; gap: 1rem; }
.problem-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.problem-card h3 { color: var(--accent); font-size: 1.02rem; margin-bottom: 0.5rem; }
.problem-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.problem-pull { margin-top: 1.5rem; font-size: 1.05rem; }
@media (min-width: 760px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 3. Quiz ---------- */
.quiz { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.quiz-intro { text-align: center; }
.quiz-intro p { color: var(--muted); margin-bottom: 1.5rem; }

.quiz-progress { margin-bottom: 1.5rem; }
.quiz-progress-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.5rem; }
.quiz-progress-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }

.quiz-question { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.quiz-options { display: grid; gap: 0.65rem; }
.quiz-option {
  text-align: left; width: 100%;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem; font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  cursor: pointer; min-height: 48px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option:focus-visible { outline: none; box-shadow: var(--focus); }
.quiz-option[aria-selected="true"] { border-color: var(--accent); background: rgba(70,214,126,0.12); }
.quiz-nav { margin-top: 1.25rem; display: flex; justify-content: space-between; }

.quiz-result { text-align: center; }
.quiz-result .result-kicker { color: var(--muted); margin-bottom: 0.5rem; }
.quiz-result .result-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.quiz-result .result-price { font-size: 1.15rem; font-weight: 700; margin: 0.25rem 0 1rem; }
.quiz-result .result-why { color: var(--muted); margin-bottom: 1.5rem; }
.quiz-result .result-alt { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted-2); }
.quiz-result .result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- 4. Framework ---------- */
.framework-grid { display: grid; gap: 1rem; }
.framework-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.framework-card h3 { font-size: 1.05rem; }
.framework-tag { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.framework-card p { color: var(--muted); font-size: 0.97rem; }
.framework-best { color: var(--ink) !important; }
.framework-note { margin-top: 1.5rem; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; }
.framework-note h3 { font-size: 1rem; color: var(--accent); }
.framework-note p { margin: 0; color: var(--ink); }
@media (min-width: 760px) { .framework-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 5. Product cards ---------- */
.cards-grid { display: grid; gap: 1.25rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.product-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.product-head h3 { font-size: 1.2rem; margin: 0; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--warm); white-space: nowrap; }
.product-sub { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.85rem; }
.product-features { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.45rem; }
.product-features li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.product-features li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.product-why, .product-limit { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.65rem; }
.product-cta { margin-top: auto; }
.cta-note { font-size: 0.76rem; color: var(--muted-2); margin: 0.6rem 0 0; text-align: center; }
@media (min-width: 700px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 6. Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table, .cost-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 0.9rem; }
.compare-table th, .compare-table td, .cost-table th, .cost-table td { padding: 0.8rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th, .cost-table thead th { background: var(--surface-2); font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.compare-table tbody th, .cost-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table tbody tr:nth-child(even), .cost-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.cost-table { min-width: 640px; }
.cost-total th, .cost-total td { background: var(--surface-2); border-top: 2px solid var(--accent); color: var(--ink); }

/* ---------- 7. Accordion ---------- */
.accordion { display: grid; gap: 0.75rem; max-width: 780px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.acc-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.2rem;
  font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform 0.2s ease; line-height: 1; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item summary:focus-visible { outline: none; box-shadow: inset var(--focus); }
.acc-body { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: 0.95rem; }
.acc-body p { margin: 0; }

/* ---------- 8. Total cost / add-ons ---------- */
.addons { margin-top: 2.25rem; }
.addons h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.addons-grid { display: grid; gap: 0.85rem; }
.addon {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; transition: border-color 0.15s ease, transform 0.15s ease;
}
.addon:hover { border-color: var(--accent); transform: translateY(-1px); }
.addon-name { display: block; font-weight: 700; color: var(--accent); margin-bottom: 0.2rem; }
.addon-desc { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 700px) { .addons-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 9. Verdict ---------- */
.verdict-grid { display: grid; gap: 1rem; }
.verdict-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.verdict-card h3 { font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.verdict-pick { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--accent); margin-bottom: 0.6rem; }
.verdict-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.verdict-card--primary { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.final-cta { text-align: center; margin-top: 2.5rem; }
.final-cta p { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 760px) { .verdict-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.85rem; color: var(--muted-2); }
.site-footer p { margin: 0 0 0.75rem; }
.footer-meta { font-size: 0.78rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .addon { transition: none; }
  .quiz-progress-fill { transition: none; }
}
