*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-lg); }
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 var(--space-4); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-deep);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

ul, ol { padding-left: 1.2em; }

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

.lead { font-size: var(--text-lg); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: var(--space-4); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-band :focus-visible, .site-footer :focus-visible, .plan-pro :focus-visible, .video-poster-button:focus-visible, .section-dark :focus-visible { outline-color: var(--amber); }

/* Browser surfaces */
::selection { background: var(--brand-tint); color: var(--ink); }
.site-footer ::selection, .cta-band ::selection, .plan-pro ::selection { background: var(--amber); color: var(--ink); }
html { scrollbar-color: var(--line-strong) var(--paper); accent-color: var(--brand); }
input, textarea, select { caret-color: var(--accent); }
.tabular, .price-amount, .trust-stat strong { font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
