/* Portal Scan site. One stylesheet, no build step. Mobile first. */
:root {
  --bg: #ffffff; --bg-soft: #f3f5fa; --card: #ffffff; --text: #141a26; --muted: #4b5568;
  --line: #d9deea; --brand: #0f47b8; --brand-ink: #ffffff; --ok: #14713a; --ok-bg: #e5f5ea;
  --warn-bg: #fff6dd; --warn-line: #e3c25c; --radius: 14px; --max: 68rem; --prose: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1220; --bg-soft: #151a2b; --card: #1a2034; --text: #eef1f8; --muted: #b3bccf;
    --line: #2f3852; --brand: #8fb6ff; --brand-ink: #0b1020; --ok: #7ddc9d; --ok-bg: #143321;
    --warn-bg: #342b10; --warn-line: #8a742a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); text-decoration: none; padding: 0.4rem 0; }
.site-header nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: 0.6rem 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 4rem; padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.site-footer li { margin: 0.1rem 0; }
.site-footer li a { display: inline-block; padding: 0.3rem 0; }
.footer-grid { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Landing */
section { padding: 3rem 0; }
section.alt { background: var(--bg-soft); }
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.badge { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok); margin-bottom: 1rem; }
.phone { margin: 0 auto; width: min(100%, 17.25rem); }
.phone img { display: block; width: 100%; border-radius: 2.2rem; border: 0.5rem solid #10131c; background: #f2f2f7; box-shadow: 0 1.2rem 2.5rem rgba(10, 20, 50, 0.25); }
.phone figcaption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.waitlist { margin-top: 1.5rem; max-width: 32rem; }
.waitlist label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.waitlist input[type="email"] {
  flex: 1 1 14rem; min-height: 3rem; padding: 0.6rem 0.9rem; font: inherit; color: var(--text);
  background: var(--card); border: 1.5px solid var(--muted); border-radius: 10px;
}
.button {
  display: inline-block; min-height: 3rem; padding: 0.7rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--brand-ink); background: var(--brand); border: 0; border-radius: 10px; text-decoration: none;
}
.button:hover { filter: brightness(1.1); }
.hp { position: absolute; left: -9999px; }
.cards { display: grid; gap: 1rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card p:last-child { margin-bottom: 0; }
.card svg { display: block; margin-bottom: 0.75rem; color: var(--brand); }
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 0.75rem;
}
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.checks li { padding-left: 1.8rem; position: relative; margin: 0.5rem 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
summary { cursor: pointer; font-weight: 600; padding: 0.7rem 0; }
details p { margin: 0 0 1rem; }
.narrow { max-width: var(--prose); }

/* Articles */
.prose { max-width: var(--prose); margin: 0 auto; padding: 2rem 1.25rem 0; }
.prose h1 { font-size: clamp(1.8rem, 5.5vw, 2.5rem); }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.35rem, 4vw, 1.7rem); }
.prose h3 { margin-top: 1.6em; }
.prose li { margin: 0.35em 0; }
.prose ol, .prose ul { padding-left: 1.4rem; margin: 0 0 1em; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { display: inline-block; padding: 0.3rem 0; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.answer { font-size: 1.12rem; border-left: 4px solid var(--brand); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 1.5rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 0.7rem 0.8rem; color: var(--muted); font-size: 0.9rem; caption-side: bottom; border-top: 1px solid var(--line); }
th, td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 0.9rem 1rem; margin: 0 0 1.2em; }
.note p:last-child { margin: 0; }
.cta { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 2rem 0; }
.cta h2, .cta h3 { margin-top: 0; font-size: 1.15rem; }
.cta p:last-child { margin: 0; }
.sources { font-size: 0.95rem; overflow-wrap: anywhere; }
.guide-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.guide-list h2 { font-size: 1.2rem; margin: 0 0 0.3rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
