/* ═══════════════════════════════════════════════
   Home / Garage Golf Simulator — Cluster B
   Mobile-first, dark theme, no frameworks
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0b0f0a;
  --bg-alt: #10160e;
  --surface: #141a12;
  --surface-2: #1b2318;
  --border: #2a3624;
  --border-strong: #3c4a35;
  --text: #e8efe6;
  --muted: #9aa89a;
  --green: #7bd24a;
  --green-dark: #4caf50;
  --gold: #c9a227;
  --gold-soft: #e6c85c;
  --danger: #d07a5a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --container: 1180px;
  --narrow: 820px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
em { color: var(--gold-soft); font-style: normal; }

a { color: var(--green); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: var(--narrow); }
.container.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #0b0f0a; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.75rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green); color: #0b0f0a;
  box-shadow: 0 4px 14px rgba(123, 210, 74, 0.3);
}
.btn-primary:hover { background: #90e562; box-shadow: 0 6px 20px rgba(123, 210, 74, 0.45); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 10, 0.85); 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 { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--green); }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.site-nav a:hover { color: var(--green); }
.nav-cta { margin-left: 0.5rem; }

/* ── Hero ────────────────────────────────── */
.hero { padding: 4.5rem 0 3.5rem; background: radial-gradient(ellipse at 20% 0%, #16210f 0%, var(--bg) 60%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--green); margin-bottom: 0.9rem;
}
.hero h1 span { color: var(--green); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; color: var(--gold-soft); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); }
.hero-media svg { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; }

/* ── Sections ────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-accent {
  background: linear-gradient(180deg, var(--bg-alt), #16211a);
  border-top: 1px solid var(--border);
}
.sub { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }

/* ── Problem ─────────────────────────────── */
.problem-grid { display: grid; gap: 1rem; margin: 2rem 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.problem-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.problem-card h3 { font-size: 1rem; }
.problem-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.problem-outro { font-weight: 600; margin-top: 1rem; }

/* ── Quiz ────────────────────────────────── */
.quiz {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; margin-top: 2rem;
  box-shadow: var(--shadow);
}
.quiz-progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 1.4rem; }
.quiz-progress-bar { height: 100%; width: 20%; background: var(--green); border-radius: 3px; transition: width 0.3s ease; }
.quiz-step { border: none; margin: 0; padding: 0; display: none; }
.quiz-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quiz-step legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; padding: 0; }
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: #0b0f0a; font-weight: 800; font-size: 0.85rem; margin-right: 0.5rem;
}
.quiz-options { display: grid; gap: 0.6rem; }
.quiz-options label {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem;
  background: var(--surface-2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; font-size: 0.95rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.quiz-options label:hover { border-color: var(--border-strong); }
.quiz-options input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.quiz-options label:has(input:checked) { border-color: var(--green); background: #1d2a17; }
.quiz-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.quiz-nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-result { text-align: center; padding: 1rem 0; }
.quiz-result h3 { color: var(--green); font-size: 1.4rem; }
.quiz-result-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ── Framework ───────────────────────────── */
.framework-grid { display: grid; gap: 1.2rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.framework-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; position: relative;
}
.framework-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.framework-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--green); background: #1d2a17;
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.framework-card ul { padding-left: 1.1rem; margin: 0; font-size: 0.9rem; }
.framework-card li { margin-bottom: 0.5rem; color: var(--muted); }
.framework-card li strong { color: var(--text); }

/* ── Product cards ───────────────────────── */
.product-grid { display: grid; gap: 1.4rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-card.recommended { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.card-media svg { display: block; width: 100%; height: auto; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.card-badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: #0b0f0a; background: var(--gold); padding: 0.25rem 0.6rem; border-radius: 999px;
}
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-price { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card-price strong { font-size: 1.35rem; color: var(--gold-soft); }
.price-note { font-size: 0.78rem; color: var(--muted); }
.card-why { margin: 0; font-size: 0.94rem; color: var(--muted); }
.card-features { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.card-features li { padding-left: 1.3rem; position: relative; margin-bottom: 0.45rem; }
.card-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.card-limits {
  font-size: 0.85rem; color: var(--muted); background: var(--surface-2);
  border-left: 3px solid var(--danger); padding: 0.6rem 0.8rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.card-limits strong { color: var(--text); }
.card-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
.card-cta .btn { flex: 1 1 auto; padding: 0.6rem 0.9rem; font-size: 0.85rem; }

/* ── Comparison table ────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 2rem; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare-table tbody th { font-weight: 700; color: var(--text); background: var(--surface); }
.compare-table tbody td { color: var(--muted); background: var(--bg-alt); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: #182117; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }

/* ── Accordion ───────────────────────────── */
.accordion { margin-top: 2rem; display: grid; gap: 0.8rem; }
.accordion-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.accordion-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; font-size: 1.3rem; color: var(--green); transition: transform 0.2s ease; }
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-body { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.95rem; }
.accordion-body p { margin: 0; }
.accordion-body strong { color: var(--text); }

/* ── Cost ────────────────────────────────── */
.cost-grid { display: grid; gap: 2rem; margin-top: 2.2rem; grid-template-columns: 1fr; }
.cost-table-wrap { overflow-x: auto; }
.cost-table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: 0.92rem; }
.cost-table th, .cost-table td { padding: 0.7rem 1rem; text-align: right; border-bottom: 1px solid var(--border); }
.cost-table th:first-child, .cost-table td:first-child { text-align: left; }
.cost-table thead th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cost-table tbody th { font-weight: 600; color: var(--text); background: var(--surface); }
.cost-table tbody td { color: var(--muted); background: var(--bg-alt); }
.cost-table tfoot th { background: var(--surface-2); color: var(--text); font-weight: 800; }
.cost-table tfoot td { background: var(--surface-2); }
.cost-table tfoot strong { color: var(--green); font-size: 1.05rem; }
.cost-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; }
.cost-tiers { display: grid; gap: 1rem; align-content: start; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.tier h3 { font-size: 1.05rem; }
.tier p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.tier p strong { color: var(--text); }
.tier-featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

/* ── Final ───────────────────────────────── */
.final-verdict {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem; margin: 2rem auto 0;
  max-width: 640px; font-size: 1.05rem; text-align: left;
}
.final-verdict p { margin: 0; }
.final-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }
.final-disclosure { font-size: 0.8rem; color: var(--muted); margin-top: 1.6rem; }

/* ── Footer ──────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 0.6rem; text-align: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--green); }

/* ── Responsive ──────────────────────────── */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .cost-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
@media (max-width: 719px) {
  .site-nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-cta .btn { width: 100%; }
  .card-cta .btn { width: 100%; }
}
