/* ==========================================================================
   CommissionOS Review Hub, shared stylesheet
   Dark + gold theme, system fonts only (no third-party font requests).
   ========================================================================== */

:root {
  --bg: #0b0f16;
  --bg-alt: #10161f;
  --bg-card: #151c28;
  --border: #232c3a;
  --text: #e7ecf5;
  --text-dim: #a7b1c2;
  --text-faint: #6b7688;
  --gold: #f2b544;
  --gold-dark: #c98f26;
  --green: #35c98f;
  --red: #ef5b5b;
  --blue: #4f8ff0;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 960px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #ffd27a;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--text-dim); }

ul, ol { color: var(--text-dim); padding-left: 22px; }
li { margin-bottom: 8px; }

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 700px;
}

/* ---------- Top notice / affiliate bar ---------- */
.top-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
  padding: 8px 16px;
}

.top-bar a { color: var(--text-dim); }

/* ---------- Site header ---------- */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #17130a;
  box-shadow: 0 8px 24px rgba(242, 181, 68, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 181, 68, 0.45);
  color: #17130a;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }

.cta-block {
  text-align: center;
  margin: 28px 0;
}

.cta-sub {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.cta-sub strong { color: var(--text-dim); }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 720px;
  margin: 32px auto 0;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  text-align: left;
}

.verdict-score {
  text-align: center;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.verdict-score .num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.verdict-score .out-of {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.verdict-facts { font-size: 0.92rem; }
.verdict-facts div { margin-bottom: 4px; color: var(--text-dim); }
.verdict-facts strong { color: var(--text); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 40px auto;
  max-width: 720px;
}

.toc h2 { font-size: 1.05rem; margin-bottom: 10px; }

.toc ol {
  columns: 2;
  column-gap: 30px;
  font-size: 0.95rem;
  padding-left: 20px;
}

.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--gold); }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Pros / cons ---------- */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proscons .card ul { padding-left: 20px; margin: 0; }
.proscons .pros { border-top: 3px solid var(--green); }
.proscons .cons { border-top: 3px solid var(--red); }

/* ---------- Funnel / pricing table ---------- */
.funnel-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.funnel-table th,
.funnel-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.funnel-table th {
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.funnel-table td { color: var(--text-dim); }
.funnel-table td.price { color: var(--gold); font-weight: 700; }
.funnel-table tr:last-child td { border-bottom: none; font-weight: 700; color: var(--text); }

/* ---------- Screenshot figure ---------- */
figure.evidence {
  margin: 28px 0;
  text-align: center;
}

figure.evidence img {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

figure.evidence figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Callout / disclosure box ---------- */
.callout {
  background: rgba(242, 181, 68, 0.08);
  border: 1px solid rgba(242, 181, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 24px 0;
}

.callout strong { color: var(--gold); }

.callout-caution {
  background: rgba(239, 91, 91, 0.08);
  border-color: rgba(239, 91, 91, 0.35);
}

.callout-caution strong { color: var(--red); }

/* ---------- Bonus stack ---------- */
.bonus-list { display: flex; flex-direction: column; gap: 14px; }

.bonus-item {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  align-items: flex-start;
}

.bonus-item .num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #17130a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonus-item h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--text); }
.bonus-item p { margin: 0; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 30px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer .disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  display: none;
}

#cookie-banner.visible { display: block; }

#cookie-banner p {
  font-size: 0.88rem;
  margin-bottom: 14px;
}

#cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-banner .cookie-actions button {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

#cookie-banner .cookie-actions button.accept-all {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130a;
  margin-left: auto;
}

#cookie-banner .cookie-prefs {
  display: none;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

#cookie-banner .cookie-prefs.visible { display: block; }

#cookie-banner .cookie-prefs label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text-dim);
}

#cookie-settings-link {
  background: none;
  border: none;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  font-family: var(--font);
}

/* ---------- Legal pages ---------- */
.legal-page .section { padding-top: 40px; padding-bottom: 40px; }
.legal-page h2 { margin-top: 36px; font-size: 1.3rem; }
.legal-page h3 { margin-top: 22px; font-size: 1.05rem; }
.legal-page .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 30px; }

table.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

table.info-table th, table.info-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-dim);
}

table.info-table th { color: var(--text-faint); }

/* ---------- Bonus vault pages ---------- */
.bonus-page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-card);
  display: flex;
  gap: 10px;
}

.checklist li input { margin-top: 4px; }

/* ---------- Calculator ---------- */
.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.calc-box label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 700;
}

.calc-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 18px;
}

.calc-results {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.calc-results .result-item {
  text-align: center;
}

.calc-results .result-item .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.calc-results .result-item .label {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Tracker table (printable) ---------- */
.tracker-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.tracker-table th, .tracker-table td {
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 0.85rem;
}
.tracker-table th { background: var(--bg-alt); color: var(--text-dim); }
.tracker-table td { height: 40px; }

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, #cookie-banner, .no-print { display: none !important; }
  .card, .calc-box, .bonus-page-header { border-color: #ccc; background: #fff; }
  a { color: #111; text-decoration: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid-2, .grid-3, .proscons { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .site-nav { display: none; }
  .verdict-box { grid-template-columns: 1fr; text-align: center; }
  .verdict-score { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 14px; }
  .calc-results { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
}
