/* ==========================================================
   Affiliate Toolkit theme — mobile-first, fast, no frameworks
   Change the brand colors in :root and the whole site follows.
   ========================================================== */
:root {
  --brand: #7a2e12;        /* main brand color (headers, links) */
  --brand-2: #9a3f1c;      /* secondary */
  --cta: #b3471d;          /* buy-button color: make it stand out */
  --cta-hover: #8f3714;
  --ink: #241c18;          /* body text */
  --muted: #5f5650;
  --line: #eadfd5;
  --bg: #ffffff;
  --bg-soft: #fbf6f1;
  --good: #1a8a4a;
  --bad: #c0392b;
  --star: #f5a623;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(122, 46, 18, .08);
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand); margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin-top: .4em; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--brand); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--cta); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1rem; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* ---------- Disclosure bar (required by FTC & most programs) ---------- */
.disclosure-bar { background: var(--bg-soft); font-size: .82rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.disclosure-bar a { color: inherit; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 620px; }
.hero .btn { margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--cta); color: #fff !important; text-decoration: none;
  font-weight: 700; padding: 14px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font-size: 1.02rem; line-height: 1.2; text-align: center; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: transparent; border: 2px solid currentColor; color: var(--brand) !important; }
.hero .btn.ghost { color: #fff !important; }
.btn.whatsapp { background: #25d366; }
.btn.whatsapp:hover { background: #1ebe5a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cards / grids ---------- */
.section { padding: 48px 0; }
.section.soft { background: var(--bg-soft); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-top: 0; }
.card .btn { margin-top: auto; }
.card img { border-radius: 8px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-soft); }
.badge { display: inline-block; align-self: flex-start; background: #fff3e8; color: var(--cta-hover); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 6px; margin-bottom: 8px; }
.badge.green { background: #e6f5ec; color: var(--good); }

/* ---------- Product box (top of review) ---------- */
.product-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0; background: #fff; }
@media (min-width: 720px) { .product-box { grid-template-columns: 220px 1fr; } }
.product-box img { border-radius: 10px; background: var(--bg-soft); aspect-ratio: 1; object-fit: cover; }
.score { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 1.1rem; }
.price-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons > div { border-radius: var(--radius); padding: 16px 18px; }
.pros { background: #eef8f2; border: 1px solid #c9ead6; }
.cons { background: #fcf0ee; border: 1px solid #f1cdc7; }
.proscons h3 { margin-top: 0; }
.proscons ul { margin: 0; padding-left: 0; list-style: none; }
.proscons li { padding-left: 26px; position: relative; margin: 6px 0; }
.pros li::before { content: "✔"; color: var(--good); position: absolute; left: 0; }
.cons li::before { content: "✖"; color: var(--bad); position: absolute; left: 0; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--brand); color: #fff; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tr.winner { outline: 2px solid var(--cta); outline-offset: -2px; }
td .btn { padding: 10px 14px; font-size: .9rem; white-space: nowrap; }

/* ---------- Callouts ---------- */
.callout { border-left: 4px solid var(--brand-2); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; }
.callout.warn { border-color: var(--cta); background: #fff6ef; }
.verdict { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.verdict h2, .verdict h3 { color: #fff; margin-top: 0; }

/* ---------- TOC ---------- */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: #fff; margin: 20px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: #fff; }
summary { font-weight: 700; cursor: pointer; color: var(--brand); }
details[open] summary { margin-bottom: 8px; }

/* ---------- Email capture ---------- */
.optin { background: linear-gradient(160deg, #fff7ef, #fff); border: 2px dashed var(--cta); border-radius: var(--radius); padding: 24px; text-align: center; margin: 32px 0; }
.optin h2, .optin h3 { margin-top: 0; }
.optin form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.optin input[type="email"], .optin input[type="text"] { flex: 1 1 220px; max-width: 340px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.optin .msg { margin-top: 10px; font-weight: 700; }
.hp { position: absolute; left: -5000px; }

/* ---------- Author box / trust ---------- */
.author { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 20px 0; font-size: .92rem; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-2); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: .9rem; color: var(--muted); }

/* ---------- Share ---------- */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; align-items: center; }
.share a, .share button { font-size: .88rem; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.share .wa { background: #25d366; color: #fff; border-color: #25d366; }

/* ---------- Sticky mobile buy bar ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; z-index: 60; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.sticky-cta .btn { padding: 12px 16px; white-space: nowrap; }

/* ---------- WhatsApp floating chat ---------- */
.wa-float { position: fixed; right: 16px; bottom: 84px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 55; text-decoration: none; font-size: 26px; }

/* ---------- Link-in-bio page ---------- */
.bio { max-width: 520px; margin: 0 auto; padding: 32px 16px 64px; text-align: center; }
.bio .avatar { width: 88px; height: 88px; margin: 0 auto 10px; font-size: 1.8rem; }
.bio .btn { display: block; margin: 12px 0; }
.bio .btn.alt { background: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #d8e6e3; padding: 36px 0 90px; margin-top: 48px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }

/* ---------- Article ---------- */
.article { padding: 24px 0 40px; }
.article .meta { color: var(--muted); font-size: .9rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.breadcrumb a { color: inherit; }
blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--star); background: #fffaf0; border-radius: 0 10px 10px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .sticky-cta, .wa-float, .optin, .share { display: none !important; } }

/* ---------- Ram Cook additions ---------- */
:focus-visible { outline: 3px solid #1d5fd1; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: "✔"; position: absolute; left: 0; color: var(--good); }
.aff-note { font-size: .9rem; background: #fff8ec; border: 1px solid #f0dcb8; border-radius: 10px; padding: 10px 14px; }
.status-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.status-box p:last-child { margin-bottom: 0; }
.label-opinion { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--brand); background: var(--bg-soft); border-radius: 6px; padding: 4px 10px; }
.draft ul { list-style: none; padding-left: 0; margin: 6px 0 0; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero .btn:not(.ghost) { background: #fff; color: var(--brand) !important; }
.hero .btn:not(.ghost):hover { background: #f6e6da; }
