:root {
  --blue: #1a5ad7;       /* brand blue, darkened from #2770f3 for AA contrast */
  --blue-dark: #123f9a;
  --blue-soft: #eaf1fe;
  --cta: #c2410c;        /* brand orange, darkened for white text */
  --cta-hover: #9a3412;
  --accent: #f39200;     /* the "40%" orange */
  --text: #1f2933;
  --muted: #52606d;
  --line: #d9e2ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 12px;
  --wrap: 1080px;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img, iframe { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo img { display: block; width: 220px; height: auto; }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; }
.btn-cta { background: var(--cta); color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.btn-cta:hover { background: var(--cta-hover); color: #fff; }
.site-header .btn-cta { padding: 9px 18px; font-size: .9rem; }

/* Hero (home) */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .2em 0; max-width: 24ch; }
.hero .lead { font-size: 1.15rem; margin: 0 0 24px; opacity: .95; }
.tagline { font-size: 1.1rem; margin: 0; font-weight: 600; }
.tagline span { color: #ffb648; font-size: 1.4em; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-light { color: #fff; font-weight: 600; }
.link-light:hover { color: #fff; }

/* Page heading (inner pages) */
.page-head { background: var(--blue-soft); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.page-head h1 { margin: 0; color: var(--blue-dark); font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.page-head .lead { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }

.content { padding-top: 32px; padding-bottom: 48px; }
.prose { max-width: 72ch; }
.prose h2 { color: var(--blue); font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin: .3em 0; }
.examples { color: var(--muted); font-style: italic; border-left: 3px solid var(--line); padding-left: 12px; }
.cta-band { margin: 32px 0; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.cta-band p { margin: 8px 0; }

/* Home: steps + perks */
.icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: -48px 0 24px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 18px rgba(18, 63, 154, .08); position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 12px; right: 16px; font-size: 2.4rem; font-weight: 800; color: var(--blue-soft); }
.steps .icon { color: var(--blue); }
.steps h2 { font-size: 1.15rem; margin: 10px 0 6px; }
.steps h2 a { color: var(--text); text-decoration: none; }
.steps h2 a:hover { color: var(--blue); text-decoration: underline; }
.steps p { margin: 0; color: var(--muted); }
.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px; margin: 0 0 32px; border: 2px solid var(--blue); border-radius: var(--radius); }
.perks li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.perks .icon { color: var(--blue); }
.perks strong { display: block; color: var(--blue); font-size: 1.05rem; }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
blockquote { margin: 24px 0; padding: 0 0 0 16px; border-left: 4px solid var(--accent); font-style: italic; }
blockquote footer { font-style: normal; color: var(--muted); font-size: .9rem; }

.sidebar section { margin-bottom: 28px; }
.sidebar h2 { font-size: 1.05rem; color: var(--blue-dark); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sponsor { display: flex; gap: 10px; align-items: center; margin: 0; }
.email-big { font-size: 1.15rem; font-weight: 700; }
.review { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); }
.review blockquote { margin: 4px 0; border: 0; padding: 0; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); }
.stars { color: var(--blue); letter-spacing: 2px; }

.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.toc ul { columns: 2; gap: 24px; padding-left: 18px; }
.cat-list { columns: 2; gap: 32px; padding-left: 18px; }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }

/* Footer */
.site-footer { background: #0f2a5e; color: #dbe6ff; padding: 32px 0 16px; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; margin-top: 24px; font-size: .85rem; }

@media (max-width: 860px) {
  .columns, .footer-grid { grid-template-columns: 1fr; }
  .steps, .perks { grid-template-columns: 1fr; }
  .steps { margin-top: -32px; }
}
@media (max-width: 600px) {
  .logo img { width: 140px; }
  .site-header nav { margin-left: 0; order: 3; width: 100%; }
  .site-header .btn-cta { margin-left: auto; padding: 8px 12px; font-size: .78rem; }
  .tagline { line-height: 1.35; }
  .hero { padding: 32px 0 48px; }
  .toc ul, .cat-list { columns: 1; }
  .btn { width: 100%; }
  .site-header .btn-cta { width: auto; }
}
