/* Shared style of the content pages (FAQ, comparisons, guides). Tokens match index.html. */
:root {
  --bg: #F7F3F2;
  --panel: rgba(0,0,0,.03);
  --panel2: rgba(0,0,0,.05);
  --text: rgba(0,0,0,.86);
  --muted: rgba(0,0,0,.58);
  --faint: rgba(0,0,0,.40);
  --border: rgba(0,0,0,.08);
  --shadow: 0 14px 50px rgba(0,0,0,.06);
  --accent: #F86D0B;
  --accent-soft: rgba(248,109,11,.10);
  --link: #C05A08;
  --surface: #FFFFFF;
  --yes: #1E8E4E;
  --yes-soft: rgba(30,142,78,.12);
  --no: #B3261E;
  --no-soft: rgba(179,38,30,.10);
  --paid: #9A5B00;
  --paid-soft: rgba(230,150,20,.16);
  --radius: 18px;
  --max: 1200px;
  --read: 780px;
  --sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbarH: 62px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0E;
    --panel: rgba(255,255,255,.05);
    --panel2: rgba(255,255,255,.07);
    --text: rgba(255,255,255,.88);
    --muted: rgba(255,255,255,.60);
    --faint: rgba(255,255,255,.40);
    --border: rgba(255,255,255,.10);
    --shadow: 0 16px 60px rgba(0,0,0,.50);
    --accent-soft: rgba(248,109,11,.16);
    --link: #FFE09B;
    --surface: #1A1A1A;
    --yes: #6FD39A;
    --yes-soft: rgba(111,211,154,.14);
    --no: #FF8A80;
    --no-soft: rgba(255,138,128,.12);
    --paid: #FFC870;
    --paid-soft: rgba(255,200,112,.14);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbarH);
  display: flex; align-items: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar .inner {
  width: min(var(--max), 100%); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em; }
.topbar nav { display: flex; gap: 26px; margin-left: auto; }
.topbar nav a { color: var(--muted); font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 0.82rem;
  padding: 7px 16px; border-radius: 999px;
  margin-left: 16px; white-space: nowrap;
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 4px 20px rgba(248,109,11,.3); }

/* Article */
.page { width: min(var(--read), 100%); margin: 0 auto; padding: 40px 20px 64px; }
.page.wide { width: min(1040px, 100%); }
.crumbs { font-size: 0.8rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 14px; }
.lead { font-size: clamp(1rem, 1.9vw, 1.15rem); color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.updated { font-size: 0.8rem; color: var(--faint); margin-bottom: 28px; }
.page h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: calc(var(--topbarH) + 12px); }
.page h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 8px; scroll-margin-top: calc(var(--topbarH) + 12px); }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 16px 22px; }
.page li { margin-bottom: 6px; }
.page li::marker { color: var(--faint); }
.page strong { font-weight: 650; }
.page code { font-size: 0.9em; background: var(--panel2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* The "it's free" box */
.free-box {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  padding: 18px 20px; margin: 20px 0 28px;
}
.free-box strong { color: var(--accent); }
.free-box p:last-child, .note p:last-child { margin-bottom: 0; }
.note {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin: 18px 0; font-size: 0.92rem;
}

/* Table of contents */
.toc { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 8px 0 24px; font-size: 0.92rem; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin-bottom: 0; }

/* Comparison tables */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); margin: 18px 0 8px;
}
table.compare { border-collapse: collapse; width: 100%; font-size: 0.86rem; min-width: 640px; }
table.compare th, table.compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
table.compare thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; background: var(--panel); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: none; }
table.compare tbody th { font-weight: 650; white-space: nowrap; }
table.compare th:first-child, table.compare td:first-child { position: sticky; left: 0; background: var(--surface); }
table.compare thead th:first-child { background: color-mix(in srgb, var(--surface) 94%, var(--text)); }
table.compare tr.us th, table.compare tr.us td { background: color-mix(in srgb, var(--surface) 88%, var(--accent)); }
.table-note { font-size: 0.78rem; color: var(--faint); margin-bottom: 20px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag.yes { color: var(--yes); background: var(--yes-soft); }
.tag.no { color: var(--no); background: var(--no-soft); }
.tag.paid { color: var(--paid); background: var(--paid-soft); }

/* Steps in guides */
ol.steps { list-style: none; counter-reset: step; margin-left: 0; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 18px 14px; color: var(--text); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* Cards linking to other pages */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; color: var(--text); }
.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; display: block; }

/* Download block */
.cta-box {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; box-shadow: var(--shadow); padding: 28px 20px; margin: 44px 0 0;
}
.cta-box h2 { margin: 0 0 6px !important; }
.cta-box p { color: var(--muted); margin-bottom: 18px; }
.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 12px; font-size: 0.85rem;
}
.store-btn:hover { text-decoration: none; transform: scale(1.03); }
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn-text small { font-size: 0.6rem; opacity: 0.7; }
.store-btn-text strong { font-size: 0.88rem; font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer .inner { width: min(var(--max), 100%); margin: 0 auto; padding: 0 20px; }
.footer-links { display: flex; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--muted); font-size: 0.84rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 0.78rem; }

@media (max-width: 767px) {
  .topbar nav { display: none; }
  .btn-primary { margin-left: auto; }
  .topbar .inner, .footer .inner { padding: 0 16px; }
  .page { padding: 28px 16px 48px; }
  .footer-bottom { flex-direction: column; }
}
