:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #5b6470;
  --line: #e6e2da;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0ec;
  --warn-soft: #fdf6e7;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04), 0 4px 14px rgba(20, 20, 20, .05);
  --shadow-md: 0 2px 6px rgba(20, 20, 20, .05), 0 12px 28px rgba(20, 20, 20, .08);
  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: 0 0 auto; display: block; }
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1; }
.logo-word span { color: var(--accent); }
.logo-sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---------- Header / footer ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.site-header nav a { font-size: 14.5px; color: var(--muted); text-decoration: none; margin-left: 16px; }
.site-header nav a:hover { color: var(--ink); }

.site-footer { margin-top: 56px; padding: 28px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- Disclosure bar ---------- */
/* Required by Google/Meta ad policy (clear affiliate disclosure) — kept, but
   styled as a quiet strip rather than a loud warning banner. */
.disclosure-bar { background: #f6f5f1; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; }
.disclosure-bar .wrap { padding-top: 6px; padding-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.disclosure-bar strong { font-weight: 600; color: var(--muted); }
.disclosure-bar a { color: var(--muted); text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero { padding: 52px 0 10px; }
.hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p { font-size: 19px; color: #333a42; margin: 0; max-width: 620px; }

/* ---------- Guide cards (home) ---------- */
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 48px 0 14px; }
.guides { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
}
.guide-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.guide-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.guide-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.guide-card p { margin: 0; font-size: 15px; color: var(--muted); }
.guide-card .more { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.guide-card.soon { opacity: .6; }
.guide-card.soon .tag { color: var(--muted); }

/* ---------- Article ---------- */
main { padding-top: 28px; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18.5px; margin: 24px 0 8px; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.lead { font-size: 18.5px; color: #333a42; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: 15.5px; box-shadow: var(--shadow-sm); }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.card.soft { background: var(--accent-soft); border-color: #cfe0d8; box-shadow: none; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

ul.check, ul.cross { list-style: none; padding-left: 0; margin: 8px 0 0; }
ul.check li, ul.cross li { padding-left: 26px; position: relative; margin-bottom: 6px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ul.cross li::before { content: "–"; position: absolute; left: 4px; color: #9a5b2f; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 16px 0; box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f4f2ed; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- CTA ---------- */
.cta { text-align: center; margin: 30px 0; }
.btn {
  display: inline-block; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, white 6%), var(--accent));
  color: var(--accent-ink); text-decoration: none;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em; padding: 17px 24px; border-radius: 999px;
  width: 100%; max-width: 420px; box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover, .btn:focus { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 28px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:active { transform: translateY(0); }
.cta small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }

/* Sticky mobile CTA: appears once the page has been scrolled, keeps a buy
   button one tap away without resorting to fake urgency or countdowns. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,20,20,.08); transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 13px 18px; border-radius: 999px; box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (min-width: 720px) { .sticky-cta { display: none; } }
@media (max-width: 719px) { body:has(.sticky-cta) { padding-bottom: 76px; } }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 10px 0; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 600; }

.note { font-size: 14px; color: var(--muted); }
.prose p { margin: 14px 0; }

@media (min-width: 720px) {
  h1 { font-size: 36px; }
  .hero h1 { font-size: 42px; }
}

/* ---------- Sleep theme (presell aligned with the offer) ---------- */
body.theme-sleep {
  --bg: #eef4fb;
  --surface: #ffffff;
  --accent: #2f6fb2;
  --accent-soft: #e6eff9;
  --line: #d8e3f0;
  --ink: #16263a;
  --muted: #5a6b7e;
}

.product-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: 26px 20px; margin: 24px 0 10px; text-align: center;
  box-shadow: var(--shadow-md);
}
.product-hero img { width: 100%; max-width: 440px; border-radius: 18px; box-shadow: 0 10px 26px -10px rgba(20,20,20,.25); }
.product-hero .ph-cap { font-size: 13px; color: var(--muted); margin-top: 12px; }

.pricetag { display: inline-flex; align-items: baseline; gap: 8px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.pricetag b { font-size: 19px; color: var(--accent); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; justify-content: center; }
.badge { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
