/* Homepage-only Figma tokens: 85:3 (desktop) / 85:4 (mobile).
   Deliberately separate from the support/privacy reading stylesheet. */
@font-face {
  font-family: "Inter";
  src: url("/smbdoctor/website/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cascadia Mono";
  src: url("/smbdoctor/website/fonts/CascadiaMono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --surface: #ffffff;
  --paper: #f5f8fb;
  --subtle: #eaf0f4;
  --ink: #071520;
  --muted: #526779;
  --inverse-muted: #bcc9d2;
  --line: #d9e2e8;
  --accent: #18b6d9;
  --accent-hover: #0c8eaf;
  --accent-pressed: #08718c;
  --success: #16865b;
  --warning: #9b5b00;
  --warning-surface: #fff2d6;
  --radius: 8px;
  --radius-panel: 12px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: var(--font);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 25px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
h2 { font-size: 44px; line-height: 52px; letter-spacing: -1.2px; }
h3 { font-size: 22px; line-height: 30px; letter-spacing: -.4px; }
p { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-pressed); outline-offset: 4px; border-radius: 3px; }
main:focus, section:focus { outline: none; }
section[id] { scroll-margin-top: 24px; }
hr { margin: 0; width: 100%; height: 1px; border: 0; background: var(--line); }
::selection { background: var(--accent); color: var(--ink); }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 88px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.section-stack { display: flex; flex-direction: column; gap: 40px; }
.section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.eyebrow { color: var(--accent-pressed); font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 18px; }
.lead { color: var(--muted); font-size: 18px; line-height: 28px; }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }
.caption { font-size: 13px; line-height: 20px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 24px; padding: 12px 20px; background: var(--surface); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 12px; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .1px; align-self: flex-start; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; white-space: nowrap; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { background: var(--accent-pressed); border-color: var(--accent-pressed); color: var(--surface); }
.button-secondary { background: var(--surface); border-color: var(--inverse-muted); }
.button-secondary:hover { background: var(--paper); border-color: var(--ink); }
.button-secondary:active { background: var(--subtle); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; line-height: 30px; letter-spacing: -.4px; white-space: nowrap; min-height: 44px; }
.brand-mark { display: block; width: 40px; height: 40px; position: relative; background: var(--ink); border-radius: 7.5px; flex-shrink: 0; }
.brand-mark img { display: block; position: absolute; top: 6.25px; left: 7.5px; width: 25px; height: 25px; }
.site-header, .hero, .privacy-section { background: var(--ink); color: var(--surface); }
.site-header a:focus-visible, .hero a:focus-visible, .privacy-section a:focus-visible { outline-color: var(--accent); }
.header-inner { display: grid; grid-template-columns: 220px 1fr 210px; gap: 140px; align-items: center; padding-block: 20px; }
.primary-nav { display: flex; gap: 32px; }
.primary-nav a:nth-child(1) { min-width: 124px; }
.primary-nav a:nth-child(2) { min-width: 84px; }
.primary-nav a:nth-child(3) { min-width: 56px; }
.mobile-label { display: none; }
.hero { padding-block: 56px 72px; }
.hero-grid { display: grid; grid-template-columns: 536fr 608fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 68px; line-height: 72px; letter-spacing: -2.2px; }
.hero h1 span, .hero-copy .eyebrow, .privacy-section .eyebrow, .privacy-section .text-link { color: var(--accent); }
.hero-copy .lead, .hero-copy .caption { color: var(--inverse-muted); }
.download-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-download { width: 280px; }
.trace-panel { border-radius: var(--radius-panel); background: var(--surface); color: var(--ink); overflow: hidden; min-width: 0; }
.trace-header { display: flex; gap: 12px; padding: 16px 24px; background: var(--subtle); }
.trace-header span:first-child { color: var(--muted); flex: 1; }
.trace-header span:last-child { flex: 0 0 76px; }
.trace-body { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 12px; }
.trace-panel > figcaption { padding: 12px 24px 24px; }
.network-path { font-family: var(--mono); font-size: 14px; line-height: 20px; }
.evidence-row { display: flex; flex-direction: column; gap: 8px; padding-block: 12px; font-size: 14px; line-height: 20px; }
.evidence-row .evidence-title, .evidence-row h4 { color: var(--ink); font-size: 14px; line-height: 20px; letter-spacing: .1px; font-weight: 600; }
.evidence-row p { color: var(--muted); }
.evidence-row .success { color: var(--success); }
.attention { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; border-radius: var(--radius); background: var(--warning-surface); }
.attention .eyebrow { color: var(--warning); }
.attention-title { font-size: 17px; line-height: 26px; letter-spacing: -.2px; font-weight: 600; }
.attention > p:last-child { color: var(--muted); font-size: 14px; line-height: 20px; }
.principles { padding-block: 28px; background: var(--subtle); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles-grid h2 { margin-bottom: 8px; font-size: 17px; line-height: 26px; letter-spacing: -.2px; }
.principles-grid p { font-size: 14px; line-height: 20px; color: var(--muted); }
.how-intro { display: grid; grid-template-columns: 600fr 520fr; gap: 80px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; padding: 0; margin: 0; }
.process-grid li { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.process-grid li > p:last-child { color: var(--muted); }
.path-example { overflow-wrap: anywhere; }
.coverage { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--paper); border-radius: var(--radius-panel); }
.coverage > p:last-child { font-size: 18px; line-height: 28px; }
.split-grid { display: grid; grid-template-columns: 520fr 600fr; gap: 80px; align-items: start; }
.comparison-section, .site-footer { background: var(--paper); }
.comparison-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; background: var(--surface); border-radius: var(--radius-panel); }
.comparison-panel > h3 { font-size: 17px; line-height: 26px; letter-spacing: -.2px; }
.comparison-panel .attention { padding: 12px 16px; gap: 8px; }
.privacy-copy { color: var(--inverse-muted); }
.privacy-copy .lead { color: var(--surface); }
.privacy-copy .small { color: var(--inverse-muted); }
.faq-grid { display: grid; grid-template-columns: 400fr 720fr; gap: 80px; }
.faq-answers > div { padding-block: 24px; border-top: 1px solid var(--line); }
.faq-answers h3 { margin-bottom: 12px; font-size: 17px; line-height: 26px; letter-spacing: -.2px; }
.faq-answers p { color: var(--muted); }
.download-section { background: var(--accent); }
.download-section a:focus-visible { outline-color: var(--ink); }
.closing-grid { display: grid; grid-template-columns: 800fr 300fr; gap: 100px; }
.closing-message { display: flex; flex-direction: column; gap: 16px; }
.closing-grid .button { width: 100%; }
.closing-grid .small { color: var(--ink); }
.site-footer { padding-block: 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { min-width: 100px; }

@media (max-width: 1200px) {
  .header-inner { gap: 48px; grid-template-columns: 220px 1fr 180px; }
  .primary-nav { gap: 20px; justify-content: center; }
  .primary-nav a { min-width: 0 !important; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 58px; line-height: 64px; }
  .split-grid, .how-intro, .faq-grid { gap: 48px; }
}
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr 180px; gap: 24px; }
  .primary-nav { display: none; }
  .hero-grid, .split-grid, .how-intro, .faq-grid, .closing-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-copy { max-width: 620px; }
  .trace-panel { width: 100%; }
  .how-intro { gap: 20px; }
  .split-grid { gap: 32px; }
  .privacy-section .split-grid { gap: 24px; }
  .faq-grid { gap: 20px; }
  .closing-grid { gap: 28px; }
  .closing-grid .download-actions { width: 300px; max-width: 100%; }
  .principles-grid { gap: 24px; }
  .process-grid { gap: 24px; }
}
@media (max-width: 640px) {
  h2 { font-size: 32px; line-height: 38px; letter-spacing: -.8px; }
  .section { padding-block: 56px; }
  .header-inner { grid-template-columns: 1fr 132px; gap: 18px; }
  .site-header .brand { font-size: 18px; }
  .site-header .brand-mark { width: 32px; height: 32px; border-radius: 6px; }
  .site-header .brand-mark img { top: 5px; left: 6px; width: 20px; height: 20px; }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .hero { padding-block: 36px 56px; }
  .hero h1 { font-size: 44px; line-height: 48px; letter-spacing: -1.4px; }
  .hero-download { width: 100%; }
  .hero-copy .download-actions { align-items: stretch; }
  .principles-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .coverage > p:last-child { font-size: 16px; line-height: 25px; }
  .closing-grid .download-actions { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { gap: 16px; }
  .footer-nav a { min-width: 0; flex: 0 1 100px; }
}
@media (max-width: 374px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .header-download { min-width: 104px; padding-inline: 16px; }
  .site-header .brand { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button, .trace-panel, .comparison-panel, .attention { border: 1px solid CanvasText; }
  hr { background: CanvasText; }
}
