/* =========================================================
   GolfSimBudget — Best Simulator / Cost (Cluster C)
   Mobile-first, dark theme, no frameworks
   ========================================================= */

:root {
  --bg: #0b0f14;
  --bg-elev: #121823;
  --bg-card: #161e2b;
  --border: #232e3f;
  --text: #e8eef5;
  --text-muted: #9aa7b8;
  --accent: #3ddc84;      /* fairway green */
  --accent-2: #4da3ff;    /* sky */
  --accent-warm: #ffb454; /* sand */
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; }
p { color: var(--text-muted); }

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

em { color: var(--accent); font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.noscript-banner { background: var(--danger); color: #fff; text-align: center; padding: 8px; font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #06280f; }
.btn-primary:hover { background: #4ae693; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(61,220,132,.12), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(77,163,255,.10), transparent 55%),
    var(--bg); }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); background: rgba(61,220,132,.1);
  border: 1px solid rgba(61,220,132,.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero-sub { max-width: 720px; font-size: 1.12rem; margin: 20px 0 28px; }
.hero-sub strong { color: var(--text); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin-top: 34px; }
.hero-proof li { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- Sections (shared) ---------- */
section { padding: 76px 0; }
.problem, .objections, .final { background: var(--bg-elev); }
.framework, .comparison { background: var(--bg); }
.solutions, .total-cost { background: var(--bg); }
.center-cta { margin-top: 34px; text-align: center; }

/* ---------- Problem ---------- */
.problem h2 { max-width: 720px; }
.problem > .container > p:first-of-type { margin: 18px 0 8px; font-size: 1.1rem; }
.mistake-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 28px 0; }
.mistake-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.mistake-num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-warm); font-weight: 600; }
.mistake-card h3 { margin: 8px 0 8px; }
.problem-close { margin-top: 8px; font-size: 1.05rem; }

/* ---------- Quiz ---------- */
.quiz-sub { margin-bottom: 26px; }
.quiz-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px;
}
.quiz-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.quiz-progress-bar { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .3s ease; }
.quiz-step-label { font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.quiz-screen { display: none; }
.quiz-screen.is-active { display: block; animation: fadeIn .3s ease; }
.quiz-question { font-size: 1.25rem; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quiz-opt {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-opt:hover { border-color: var(--accent); background: rgba(61,220,132,.06); }
.quiz-opt.selected { border-color: var(--accent); background: rgba(61,220,132,.12); }

.quiz-result { margin-bottom: 22px; }
.quiz-result .rec-product { background: var(--bg-elev); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.quiz-result .rec-product h4 { font-size: 1.2rem; margin-bottom: 4px; }
.quiz-result .rec-product .rec-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.quiz-result .rec-product p { margin-top: 10px; }
.quiz-result .rec-tier { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-warm); display: block; margin-bottom: 6px; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Framework ---------- */
.framework-sub, .solutions-sub, .comparison-sub, .total-sub { max-width: 720px; margin-bottom: 34px; }
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.tier-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  border-top: 3px solid var(--accent);
}
.tier-card:nth-child(2) { border-top-color: var(--accent-2); }
.tier-card:nth-child(3) { border-top-color: var(--accent-warm); }
.tier-card:nth-child(4) { border-top-color: #b48cff; }
.tier-price { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tier-card h3 { margin: 8px 0 10px; font-size: 1.25rem; }
.tier-card ul { list-style: none; margin-top: 14px; }
.tier-card ul li { color: var(--text-muted); font-size: 0.92rem; padding: 5px 0 5px 20px; position: relative; }
.tier-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-2); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product-media {
  position: relative; height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2434, #0f1520);
  border-bottom: 1px solid var(--border);
}
.ph-img { font-family: var(--mono); font-size: 0.8rem; color: #55637a; letter-spacing: .06em; }
.tier-badge {
  position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 0.72rem;
  background: rgba(11,15,20,.8); border: 1px solid var(--border); color: var(--text-muted);
  padding: 4px 10px; border-radius: 999px;
}
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.3rem; }
.product-price { font-size: 1.35rem; font-weight: 800; color: var(--accent); margin: 6px 0 12px; }
.price-note { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); font-family: var(--mono); }
.product-why { margin-bottom: 12px; }
.product-features { list-style: none; margin: 6px 0 12px; }
.product-features li { color: var(--text-muted); font-size: 0.92rem; padding: 5px 0 5px 22px; position: relative; }
.product-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.product-limit { font-size: 0.9rem; background: rgba(255,180,84,.07); border-left: 3px solid var(--accent-warm); padding: 10px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 16px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.product-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.comparison-table th, .comparison-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th {
  background: var(--bg-card); color: var(--text); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0;
}
.comparison-table tbody th { font-weight: 700; color: var(--text); white-space: nowrap; }
.comparison-table tbody tr:last-child td, .comparison-table tbody tr:last-child th { border-bottom: none; }
.comparison-table tbody tr:hover { background: rgba(77,163,255,.05); }
.comparison-table td { color: var(--text-muted); }
.table-footnote { font-size: 0.85rem; margin-top: 14px; max-width: 720px; }

/* ---------- Objections ---------- */
.objection {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden;
}
.objection summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.objection summary::-webkit-details-marker { display: none; }
.objection summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--accent); transition: transform .2s ease; }
.objection[open] summary::after { transform: rotate(45deg); }
.objection p { padding: 0 22px 20px; }

/* ---------- Total cost ---------- */
.cost-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cost-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cost-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cost-card h3 span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.cost-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.9rem; }
.cost-table td { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.cost-table td:last-child { text-align: right; color: var(--text); font-family: var(--mono); white-space: nowrap; }
.cost-table td.included { color: var(--accent); }
.cost-table .cost-total td { border-bottom: none; border-top: 2px solid var(--accent); color: var(--text); padding-top: 12px; }
.cost-table .cost-total td strong { color: var(--accent); font-size: 1.02rem; }
.cost-disclaimer { font-size: 0.82rem; margin-top: 22px; max-width: 820px; }

/* ---------- Final ---------- */
.final-rec { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.final-rec-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.final-rec-card.rec-strong { border-color: var(--accent); background: rgba(61,220,132,.05); }
.rec-label { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.final-rec-card h3 { margin: 10px 0 10px; }
.final-rec-card p { margin-bottom: 18px; }
.cross-sell { margin-top: 34px; background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.cross-sell-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 34px 0; }
.footer-inner p { font-size: 0.82rem; margin-bottom: 8px; }

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 640px) {
  .mistake-grid { grid-template-columns: repeat(3, 1fr); }
  .quiz-options { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .final-rec { grid-template-columns: repeat(2, 1fr); }
  .final-rec-card.rec-strong { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .final-rec { grid-template-columns: repeat(3, 1fr); }
  .final-rec-card.rec-strong { grid-column: span 1; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
