/* Worth It Stack — shared stylesheet
   Self-contained: no external fonts, frameworks, or CDNs. */

/* ============ Tokens ============ */
:root {
  --ink: #1a2332;
  --ink-soft: #42506a;
  --ink-faint: #6b7a93;
  --bg: #ffffff;
  --bg-warm: #faf8f3;
  --bg-tint: #f3f0e8;
  --accent: #b45309;
  --accent-dark: #92400e;
  --accent-soft: #fef3e6;
  --green: #166534;
  --green-soft: #eef7ee;
  --red: #b91c1c;
  --border: #e7e2d6;
  --border-strong: #d5cfbf;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(26, 35, 50, 0.07);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--ink);
  margin: 1.6em 0 0.6em;
}
h1 { font-size: 2.4rem; margin-top: 0.4em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: 760px; }
main { padding: 2rem 0 3.5rem; }

/* ============ Header ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-weight: bold;
  font-size: 1.05rem;
}
.brand-name { font-family: var(--serif); font-weight: bold; font-size: 1.25rem; }
.brand-name em { font-style: normal; color: var(--accent-dark); }
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); }

/* ============ Hero ============ */
.hero {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.hero h1 { font-size: 2.8rem; max-width: 16ch; }
.hero .lede {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 44ch;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  line-height: 1.4;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ============ Cards ============ */
.section-title { font-size: 1.9rem; margin-top: 2.6rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin: 0.4em 0 0.5em; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card .card-meta { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.4rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.5rem;
}

/* ============ Article bits ============ */
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--ink-faint); }
.updated-stamp {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.verdict-box {
  background: var(--bg-warm);
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
}
.verdict-box h2, .verdict-box h3 { margin-top: 0; font-size: 1.3rem; }
.verdict-box .verdict-cta { margin-top: 1rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

.disclosure-box {
  background: var(--accent-soft);
  border: 1px solid #f0dcc0;
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
}
.disclosure-box strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table.comparison { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 620px; }
table.comparison th, table.comparison td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.comparison thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
}
table.comparison thead th:first-child { border-top-left-radius: var(--radius); }
table.comparison thead th:last-child { border-top-right-radius: var(--radius); }
table.comparison tbody tr:nth-child(even) { background: var(--bg-warm); }
table.comparison tbody tr:last-child td { border-bottom: none; }
table.comparison td:first-child, table.comparison th:first-child { font-weight: 700; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.pros, .cons {
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
}
.pros { background: var(--green-soft); }
.cons { background: #fdf2f2; }
.pros h3, .cons h3 { margin-top: 0; font-size: 1.1rem; }
.pros ul, .cons ul { margin: 0; padding-left: 1.3rem; }
.pros li, .cons li { margin-bottom: 0.45em; font-size: 0.95rem; }

.check-list, .x-list { list-style: none; padding-left: 0; }
.check-list li, .x-list li { padding-left: 1.8rem; position: relative; margin-bottom: 0.6em; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green); font-weight: bold;
}
.x-list li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--red); font-weight: bold;
}

details.faq { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.7rem; background: var(--bg); }
details.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; color: var(--accent-dark); }
details.faq[open] summary::before { content: "– "; }
details.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

.toc {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
  font-size: 0.95rem;
}
.toc strong { display: block; margin-bottom: 0.5rem; font-family: var(--serif); }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin-bottom: 0.3em; }

.price-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.cta-band h2, .cta-band h3 { color: #fff; margin-top: 0; }
.cta-band p { color: #cbd5e1; }
.cta-band .btn { margin: 0.3rem; }

.newsletter-box {
  background: var(--bg-tint);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.newsletter-box h2 { margin-top: 0; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; }
.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 1px solid #334155;
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .site-nav ul { gap: 0.9rem; }
  .site-nav a { font-size: 0.85rem; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 1rem; }
}
