:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2125;
  --muted: #5b636b;
  --line: #e3e1db;
  --accent: #1f5fae;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fa;
  --note: #fff6e0;
  --note-line: #e9c46a;
  --tip: #e9f6ee;
  --tip-line: #7cc49a;
  --warn-ink: #7a4b00;
  --ok-ink: #1d6a3e;
  --off: #f0efeb;
  --off-ink: #646a71;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px rgba(16, 24, 40, 0.08);
  --radius: 10px;
  --max: 720px;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1d2126;
    --text: #e8eaec;
    --muted: #a3abb3;
    --line: #2e343a;
    --accent: #6ea8ff;
    --accent-ink: #0d1520;
    --accent-soft: #1b2a3d;
    --note: #2e2717;
    --note-line: #8a6d24;
    --tip: #17291f;
    --tip-line: #3d7a55;
    --warn-ink: #f0c36b;
    --ok-ink: #8fd6aa;
    --off: #262b31;
    --off-ink: #9aa1a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: calc(var(--max) + 40px); margin: 0 auto; padding: 0 20px; }
.shell { max-width: calc(var(--wide) + 40px); margin: 0 auto; padding: 0 20px; }

/* Header and footer */
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); letter-spacing: -0.01em; }
.logo { width: 26px; height: 26px; flex: none; }
.logo rect { fill: var(--accent); }
.logo path { fill: none; stroke: var(--accent-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
header.site nav { display: flex; gap: 22px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
header.site nav a:hover { color: var(--text); }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 36px; }
footer.site a { color: var(--muted); }
footer.site p { margin: 6px 0; max-width: 72ch; }

/* Text */
main { padding: 36px 0 64px; }
h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 10px; letter-spacing: -0.01em; }
h2[id] { scroll-margin-top: 20px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin: 8px 0; padding-left: 4px; }
code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
}
kbd { border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note, .tip { border-left: 4px solid var(--note-line); background: var(--note); padding: 10px 14px; border-radius: 6px; margin: 16px 0; }
.tip { border-left-color: var(--tip-line); background: var(--tip); }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 2px; }
ul.sources { font-size: 15px; color: var(--muted); }
ul.guides { list-style: none; padding: 0; }
ul.guides li { margin: 8px 0; }

/* Guide pages: reading column plus a table of contents on wide screens */
.doc { display: grid; grid-template-columns: minmax(0, var(--max)); justify-content: center; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.toc { display: none; }
.toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.toc li { margin: 8px 0; line-height: 1.4; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (min-width: 1100px) {
  .doc { grid-template-columns: minmax(0, var(--max)) 240px; gap: 64px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; margin-top: 44px; font-size: 14px; }
}

/* Download box inside guides */
.cta {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--accent-soft);
}
.cta .cta-title { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.cta p { margin: 0 0 12px; color: var(--text); }
.cta .price { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* Home */
.hero { display: grid; gap: 40px; align-items: center; padding: 8px 0 24px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 28px 0 48px; }
}
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.quiet { color: var(--muted); font-weight: 500; }
.price { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.section-lead { color: var(--muted); max-width: 40em; }

.mock-wrap { margin: 0; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; line-height: 1.4; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock-win { letter-spacing: 12px; font-weight: 400; }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.mock-list li > div { min-width: 0; }
.mock-name { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sub { display: block; color: var(--muted); font-size: 12.5px; }
.mock-list li.is-off .mock-name { color: var(--muted); }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.warn { background: var(--note); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--note-line); }
.pill.ok { background: var(--tip); color: var(--ok-ink); }
.pill.off { background: var(--off); color: var(--off-ink); }
.mock-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
.mock-btn { background: var(--accent); color: var(--accent-ink); border-radius: 7px; padding: 6px 11px; font-weight: 600; white-space: nowrap; }
.mock-wrap figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 8px 0 24px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature h3 { font-size: 16px; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

.shell > h2 { margin-top: 56px; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 760px; margin: 16px 0; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-name { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .amount { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 4px; }
.plan .amount span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.2em; margin: 8px 0 18px; font-size: 15px; }
.plan .btn { margin-top: auto; align-self: flex-start; }

.guide-cards { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .guide-cards { grid-template-columns: 1fr 1fr; } }
.guide-cards a { display: block; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.guide-cards a:hover { border-color: var(--accent); }
.guide-cards strong { display: block; color: var(--accent); font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.guide-cards span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Waitlist dialog and the unsubscribe form */
dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
dialog h2 { margin-top: 0; font-size: 21px; }
dialog label, .form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 15px; }
dialog input[type=email], dialog select, .form input[type=email] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
dialog .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
dialog .check input { margin-top: 4px; }
dialog .actions, .form .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.form { max-width: 420px; margin: 20px 0 28px; }
dialog .small { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 12px; font-weight: 600; }
