:root {
  color-scheme: light dark;
  --bg: #fbfaf7; --text: #1d1f21; --muted: #5c6166; --line: #dcd8cf;
  --panel: #f1eee6; --accent: #1f5f4a; --accent-text: #ffffff; --focus: #b4530a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Dark colours: once for the system setting, once for the switch in the header. Keep both the same. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171a; --text: #e8e6e1; --muted: #a3a7ac; --line: #33373c;
    --panel: #1e2125; --accent: #7fd1b3; --accent-text: #10201a; --focus: #f0a35e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171a; --text: #e8e6e1; --muted: #a3a7ac; --line: #33373c;
  --panel: #1e2125; --accent: #7fd1b3; --accent-text: #10201a; --focus: #f0a35e;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
header.site, main, footer.site { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header, logo and menus */
header.site, .footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.25rem;
  font: 1rem/1.4 var(--sans);
}
header.site { padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em;
}
.logo { color: var(--accent); flex: none; }
header.site nav, .footer-top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9375rem; }
header.site nav a, .footer-top nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
header.site nav a:hover, .footer-top nav a:hover { color: var(--text); text-decoration: underline; }
.theme-toggle {
  border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted);
  font: inherit; padding: 0.3rem 0.75rem; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.skip { position: absolute; left: -100vw; padding: 0.5rem 0.75rem; background: var(--bg); font-family: var(--sans); }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 1; }

/* Text */
h1, h2, h3 { font-family: var(--sans); line-height: 1.2; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); margin: 1.25rem 0 1rem; letter-spacing: -0.025em; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }
h2[id] { scroll-margin-top: 1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
li { margin: 0.35rem 0; }
sup { line-height: 0; font-size: 0.75em; }
sup a { text-decoration: none; }
.advisory, footer.site, .sources, .reviewed, .small { font: 0.875rem/1.5 var(--sans); color: var(--muted); }
.advisory { margin: 1.75rem 0 0; }
.eyebrow {
  margin: 2rem 0 0; font: 600 0.8125rem/1.4 var(--sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow + h1 { margin-top: 0.5rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-top: 0; }
.reviewed { margin: -0.5rem 0 1.25rem; }
.small { margin: 0.5rem 0 0; }
.sources { padding-left: 1.5rem; overflow-wrap: anywhere; }
.guides { padding-left: 1.25rem; }

/* Contents list on guides */
.toc {
  margin: 1.25rem 0 2rem; padding: 1rem 1.25rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; font: 0.9375rem/1.45 var(--sans);
}
.toc h2 { margin: 0 0 0.4rem; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: 0.25rem 0; }
.toc a, .guide-cards a { text-decoration: none; }
.toc a:hover, .guide-cards a:hover { text-decoration: underline; }

/* Home page */
.guide-cards, .promises { list-style: none; padding: 0; font-family: var(--sans); }
.guide-cards li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guide-cards a { font-weight: 600; font-size: 1.0625rem; }
.summary { margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.promises li {
  margin: 0.6rem 0; padding-left: 0.9rem; border-left: 3px solid var(--accent);
  font-size: 0.975rem; line-height: 1.5;
}

/* The offer */
.product {
  margin: 3.5rem 0 2rem; padding: 1.5rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; font: 1rem/1.5 var(--sans);
}
.product h2 { margin-top: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.plan {
  display: flex; flex-direction: column; padding: 1.1rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
}
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; }
.price { color: var(--accent); }
.plan ul { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: 0.9375rem; flex: 1; }
.plan li { position: relative; padding-left: 1.4rem; }
.plan li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pointer {
  margin: 2rem 0; padding: 0.6rem 0.9rem; border-left: 3px solid var(--accent);
  background: var(--panel); font: 0.9375rem/1.5 var(--sans);
}
.bridge { margin: 0 0 0.75rem; font-weight: 600; }
.reassure { margin: 0 0 1rem; }
.product h3#course { margin: 1.5rem 0 0.5rem; }
.outline { margin: 0; padding-left: 1.4rem; font-size: 0.9375rem; }
.outline li { margin: 0.3rem 0; }
.price-note { margin: 1rem 0 0; font-size: 0.9375rem; }
.limits { margin: 0.35rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.button {
  font: 600 1rem/1.2 var(--sans); padding: 0.8rem 1.1rem; border-radius: 8px;
  border: 2px solid var(--accent); cursor: pointer; min-height: 44px;
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.button.secondary { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.12); }
.notice { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
form label { display: block; margin: 0.75rem 0 0.25rem; }
form input[type="email"] {
  width: 100%; max-width: 24rem; padding: 0.65rem; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--muted); border-radius: 8px;
}
form .check { display: flex; gap: 0.5rem; align-items: center; margin: 1rem 0; }
form .check input { width: 1.15rem; height: 1.15rem; }
.trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
#signup-status { min-height: 1.5rem; margin: 0.75rem 0 0; }

/* Related guides and footer */
.related { margin-top: 2.5rem; font-family: var(--sans); font-size: 0.975rem; }
.related ul { padding-left: 1.2rem; }
footer.site { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 1.25rem; padding-bottom: 2.5rem; }
.footer-top { margin-bottom: 0.75rem; }
.footer-top .brand { font-size: 1rem; }
