/* BOP Cost Advisor — editorial light. Warm paper, hairline rules, strong grotesk type.
   One deep-green accent, used only for the primary CTA and the headline number. */
:root, [data-theme="light"] {
  --bg: #F7F4ED;
  --paper: #FFFDF8;
  --ink: #1C1A16;
  --muted: #6E675C;
  --accent: #0C5B49;
  --accent-ink: #FFFFFF;
  --line: #E3DCCD;
  --inkline: #1C1A16;
  --shadow: 0 1px 2px rgba(28, 26, 22, 0.05), 0 8px 24px rgba(28, 26, 22, 0.07);
  --radius: 12px;
}
[data-theme="dark"] {
  --bg: #14120E;
  --paper: #1D1A15;
  --ink: #F2EDE1;
  --muted: #A79D89;
  --accent: #4CC39A;
  --accent-ink: #0C1512;
  --line: #353026;
  --inkline: #F2EDE1;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, .h3 {
  font-family: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3, .h3 { font-size: 20px; margin-top: 32px; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-underline-offset: 3px; }
.small { font-size: 13px; color: var(--muted); }
.section { max-width: 1080px; margin: 0 auto; padding: 64px 24px 8px; }
.section-sub { max-width: 640px; font-size: 16px; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-mark {
  background: var(--ink); color: var(--bg);
  border-radius: 6px; padding: 4px 8px; font-size: 16px; letter-spacing: 0.02em;
}
.brand-text { font-size: 16px; line-height: 1.15; }
.brand-text small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; width: 44px; height: 44px; font-size: 20px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-links { display: flex; order: 3; flex-basis: 100%; margin-left: 0; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
  .nav-links a { white-space: nowrap; }
}

/* BUTTONS */
.btn-primary {
  display: inline-block; background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 10px;
  padding: 16px 32px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.99); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 32px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: border-color 200ms ease-out;
}
.btn-ghost:hover { border-color: var(--ink); }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; }

/* HERO */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; background: transparent; background: radial-gradient(900px 320px at 85% -60px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px 40px; }
.sticker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 4px 16px; margin: 0 0 24px;
}
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 3.5rem); max-width: 780px; }
.hl { color: var(--accent); }
.lede { font-size: 20px; max-width: 640px; color: var(--muted); }
.byline { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.byline strong { color: var(--ink); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0 40px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.hero-stats div { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 24px; }
.hero-stats dt { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.hero-stats dd { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.ticker { border-top: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 8px 0; animation: tick 60s linear infinite; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* TRUST */
.trust { max-width: 1080px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card { border-top: 2px solid var(--ink); padding: 16px 0; }
.trust-card strong { display: block; font-size: 16px; }
.trust-card span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* CARDS */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* CALCULATOR */
.calc-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } }
#progress-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.opt-grid { display: grid; gap: 8px; margin: 16px 0 24px; }
.opt-btn {
  text-align: left; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; font-size: 16px;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.opt-btn strong { display: block; font-size: 16px; }
.opt-btn small { color: var(--muted); font-size: 13px; }
.opt-btn:hover { border-color: var(--ink); }
.opt-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); box-shadow: inset 3px 0 0 var(--accent); }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 600; font-size: 16px; }
.field input {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
  font-size: 16px; background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.report-card { position: sticky; top: 96px; border-top: 3px solid var(--accent); }
.finetune { margin-top: 8px; }
.finetune summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.finetune fieldset { margin-bottom: 0; }
/* Recommended setup — full-width, centered, below the calculator */
.setup-section { max-width: 960px; margin: 40px auto 0; text-align: center; }
.setup-section .eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--accent); }
.setup-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; text-align: left; }
@media (max-width: 760px) { .setup-cards { grid-template-columns: 1fr; } }
.setup-cards .unit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.setup-section .cta-row { justify-content: center; }
.setup-section .callback { max-width: 560px; margin: 24px auto 0; text-align: left; }
.report-flag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 16px; }
.headline-number { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 40px; color: var(--accent); letter-spacing: -0.02em; }
.unit { border-top: 1px solid var(--line); padding: 16px 0; }
.unit:first-of-type { border-top: 0; }
.unit h4 { margin: 0 0 8px; font-size: 16px; }
.spec-list { margin: 8px 0 16px; padding-left: 24px; font-size: 16px; }
.spec-list li { margin-bottom: 4px; }
.spec-list li::marker { color: var(--accent); }
.fit-line { font-size: 16px; font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.mrp { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 16px; margin-left: 8px; }
.badge { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; font-size: 13px; font-weight: 700; padding: 0 8px; margin-left: 8px; vertical-align: middle; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; }
.callback, .callback-card { margin-top: 24px; }
.callback-card h3 { margin-top: 0; }
.proof-quote { max-width: 640px; margin: 32px auto; border-left: 3px solid var(--accent); padding-left: 24px; text-align: left; }
.proof-quote p { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.proof-quote cite { font-style: normal; font-size: 13px; color: var(--muted); }
.upfront-line, .payback-line { font-size: 16px; font-weight: 700; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); text-align: right; padding: 8px 24px 0; }
@media (max-width: 640px) { .swipe-hint { display: block; } }
.callback summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.callback summary span { font-weight: 500; color: var(--muted); }
.callback label { display: grid; gap: 8px; margin: 16px 0; font-weight: 600; }
.callback input, .callback-card input { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 16px; background: var(--bg); color: var(--ink); }

/* INK / STEPS / TIPS */
.ink-grid, .steps-grid, .tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.steps-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .ink-grid, .tips-grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: repeat(2, 1fr); } }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 800; border-radius: 50%; margin-bottom: 16px;
}
.ink-picks { margin: 16px 0 0; padding-left: 24px; font-size: 16px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }

/* TABLE */
.table-card { padding: 0; overflow-x: auto; margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.compare tbody th { font-size: 16px; }
.winner { background: var(--paper); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); }
.sticker-inline { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-left: 8px; }

/* LINEUP */
.lineup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 760px) { .lineup-grid { grid-template-columns: 1fr; } }
.lineup-card h4, .cart-card h4 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.cart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 960px) { .cart-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cart-grid { grid-template-columns: 1fr; } }
.lineup-card p, .cart-card p { font-size: 16px; }
.card-links { display: flex; gap: 16px; margin-top: 16px; align-items: center; }

/* FAQ */
.faq-list { display: grid; gap: 8px; margin-top: 24px; }
.faq { padding: 16px 24px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.faq p { margin: 16px 0 0; color: var(--muted); }
.faq p a { color: var(--accent); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); margin-top: 64px; }
.footer-grid { max-width: 1080px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer .small { text-align: center; padding-bottom: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* PRINT */
@media print {
  .nav, #calculator .wizard-card, .cta-row, .callback, .hero-cta, #theme-toggle, .ticker, footer .footer-grid { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #000; }
  #print-report { display: block !important; }
}
