/* Semantic Mastery design system (semantic-mastery/brand/design-system/project/tokens.json).
   Charcoal on white, one electric blue, a charcoal band as the one inversion.
   Barlow Semi Condensed 400 for headings, Source Sans Pro for everything else.
   Shared by the opt-in page (index.html) and the report (report/index.html). */

@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-400-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("fonts/SourceSansPro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --charcoal: #303030;
  --slate: #54595F;
  --blue: #0033FF;

  --role-ground: var(--white);
  --role-ink: var(--charcoal);
  --role-ink-muted: var(--slate);
  --role-accent: var(--blue);
  --role-on-accent: var(--white);
  --role-ground-inverse: var(--charcoal);
  --role-ink-inverse: var(--white);
  --ink-inverse-muted: rgba(255, 255, 255, .78);   /* white over charcoal, 9.4:1 */
  --rule: #E3E4E6;                                 /* hairlines on white */
  --tint: #F1F3FF;                                 /* the blue washed out: callout and table-head ground */
  --error: #B61522;                                /* announcement-red, used only for form errors (6.7:1 on white) */

  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans Pro", "Source Sans 3", Arial, sans-serif;

  --container-max: 1140px;
  --measure: 700px;
  --widget-gap: 20px;
  --radius-button: 3px;
  --button-pad-y: 12px;
  --button-pad-x: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--role-ground);
  color: var(--role-ink);
  font: 400 18px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}
::selection { background: var(--blue); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: 40px; margin: 0 0 16px; }
h3 { font-size: 27px; margin: 0 0 8px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { font-weight: 600; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--widget-gap); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: var(--white); padding: 10px 16px; z-index: 50; text-decoration: none; font-weight: 600; }
.skip:focus { left: 8px; }

/* Masthead: the grey wordmark only ever sits on white */
.masthead { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark img { width: 124px; height: auto; }
.masthead .aside { font-size: 15px; color: var(--role-ink-muted); margin: 0; }

/* The charcoal band */
.band { background: var(--role-ground-inverse); color: var(--role-ink-inverse); }
.band a { color: var(--white); }
.eyebrow { font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; color: var(--role-accent); }
.band .eyebrow { color: var(--ink-inverse-muted); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 20px/1.2 var(--font-body);
  padding: var(--button-pad-y) var(--button-pad-x);
  border-radius: var(--radius-button);
  background: var(--role-accent); color: var(--role-on-accent);
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.btn:hover { background: #0029CC; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Opt-in page ---------- */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: center; } }
.hero h1 { font-size: 60px; line-height: 1.08; margin-bottom: 22px; max-width: 15ch; }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--ink-inverse-muted); max-width: 34em; }
.hero .lede strong { color: var(--white); font-weight: 600; }

.optin { background: var(--white); color: var(--role-ink); border-radius: 4px; padding: 28px; }
.optin h2 { font-size: 29px; margin-bottom: 6px; }
.optin form { margin-top: 14px; }
.optin .note { font-size: 15px; color: var(--role-ink-muted); margin: 12px 0 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.field input {
  width: 100%; font: 400 18px/1.3 var(--font-body); color: var(--role-ink);
  padding: 11px 12px; border: 1px solid #8A8E94; border-radius: var(--radius-button); background: var(--white);
}
.field input:hover { border-color: var(--charcoal); }
.field input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.optin .btn { width: 100%; }
.form-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 10px 0 0; }
.form-error:empty { display: none; }

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section .intro { max-width: var(--measure); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 28px 48px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0 14px; margin: 0; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font: 400 34px/1 var(--font-display); color: var(--role-accent); padding-top: 2px;
}
.steps h3 { font-size: 25px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--role-ink); }

.risk { max-width: var(--measure); }
.risk blockquote { margin: 0 0 24px; padding: 20px 24px; background: var(--tint); border-radius: 4px; }
.risk blockquote p { font-size: 20px; line-height: 1.5; margin-bottom: 8px; }
.risk blockquote footer { font-size: 15px; color: var(--role-ink-muted); }

.closer { padding: 64px 0 72px; }
.closer .hero-grid { align-items: start; }
.closer #last { color: var(--white); }
.closer p { color: var(--ink-inverse-muted); font-size: 19px; }

/* ---------- Report ---------- */
.report-head { padding: 48px 0 52px; }
.report-head h1 { font-size: 58px; line-height: 1.08; max-width: 17ch; margin-bottom: 18px; }
.report-head .dek { font-size: 21px; line-height: 1.5; color: var(--ink-inverse-muted); max-width: 36em; margin-bottom: 22px; }
.report-head .meta { font-size: 15px; color: var(--ink-inverse-muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.report-head .meta button { all: unset; cursor: pointer; color: var(--white); text-decoration: underline; text-underline-offset: .18em; }
.report-head .meta button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.welcome { background: var(--tint); padding: 14px 0; font-size: 17px; }
.welcome p { margin: 0; }
.welcome[hidden] { display: none; }

.layout { display: grid; gap: 40px; padding: 48px 0 24px; }
@media (min-width: 1040px) { .layout { grid-template-columns: 230px minmax(0, var(--measure)); gap: 72px; } }
.toc { font-size: 16px; }
@media (min-width: 1040px) { .toc { position: sticky; top: 24px; align-self: start; } }
.toc h2 { font: 600 14px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--role-ink-muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; color: var(--role-ink); text-decoration: none; border-top: 1px solid var(--rule); line-height: 1.35; }
.toc a:hover { color: var(--blue); }
.toc a[aria-current="true"] { color: var(--blue); font-weight: 600; }

.prose { max-width: var(--measure); }
.prose > section { margin-bottom: 56px; }
.prose .kicker { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--role-accent); margin: 0 0 6px; }
.prose h2 { font-size: 38px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { font-size: 19px; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: var(--tint); border-radius: 4px; }
.prose blockquote p { margin: 0 0 6px; font-size: 20px; line-height: 1.5; }
.prose blockquote footer { font-size: 15px; color: var(--role-ink-muted); }
.prose .aside { font-size: 16px; color: var(--role-ink-muted); }
sup.cite { font-size: .68em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.cite a { text-decoration: none; font-weight: 600; padding: 0 1px; }

.table-wrap { overflow-x: auto; margin: 24px 0 28px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 1.45; }
caption { text-align: left; font: 400 22px/1.3 var(--font-display); margin-bottom: 10px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
thead th { background: var(--tint); font-weight: 600; border-bottom: 1px solid #C9CFF5; }
tbody th { font-weight: 600; white-space: nowrap; }
td.watch { color: var(--role-accent); font-weight: 600; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px;
  border: 2px solid var(--role-accent); border-radius: 2px;
}

.video { position: relative; aspect-ratio: 16 / 9; background: #1E1E1E; border-radius: var(--radius-button); overflow: hidden; margin: 16px 0 10px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.offers { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 760px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { border: 1px solid var(--rule); border-radius: 4px; padding: 22px; }
.offer h3 { margin-top: 0; }
.offer .price { font: 400 24px/1.2 var(--font-display); color: var(--role-accent); margin-bottom: 8px; }
.offer p { font-size: 17px; }

.sources ol { padding-left: 1.6em; font-size: 16px; }
.sources li { margin-bottom: .7em; }
.sources li:target { background: var(--tint); }
.sources .what { color: var(--role-ink-muted); }

/* Footer */
.footer { padding: 28px 0 40px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.16); }
.footer p { margin: 0 0 6px; color: var(--ink-inverse-muted); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  h2, .prose h2 { font-size: 31px; }
  h3 { font-size: 24px; }
  .hero { padding: 36px 0 44px; }
  .hero h1, .report-head h1 { font-size: 40px; }
  .hero .lede, .report-head .dek { font-size: 18px; }
  .optin { padding: 22px 18px; }
  .section { padding: 44px 0; }
  .prose p, .prose li { font-size: 18px; }
  .prose blockquote p, .risk blockquote p { font-size: 18px; }
  .masthead .aside { display: none; }
}

@media print {
  .masthead, .toc, .welcome, .no-print, .footer, .video { display: none !important; }
  .band { background: none; color: #000; }
  .report-head .dek, .report-head .meta { color: #333; }
  .layout { display: block; padding: 0; }
  body { font-size: 11.5pt; }
  .prose p, .prose li { font-size: 11.5pt; }
  .prose > section { break-inside: auto; margin-bottom: 18pt; }
  h2, h3, caption { break-after: avoid; }
  table, blockquote { break-inside: avoid; }
  a { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
