/* Cover Genie · ONE type system for every public page (landing, SEO, PDF tools).
   Loaded last. Every piece of text maps to exactly one role below; change a token and the whole site follows.
     display  h1 / h2 / h3 : Space Grotesk, tight tracking
     lead                  : 16px   intro under a title
     body                  : 14.5px descriptions, paragraphs, FAQ answers, card text
     small                 : 13.5px footer links, notes
     label / micro         : 14px 600 item names / 11.5px captions
     eyebrow               : JetBrains Mono 10.5px caps
   No justified text: everything is left/centre aligned as designed. */

:root {
  --ff-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --ff-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-h1: clamp(30px, 8.6vw, 56px);
  --fs-h2: clamp(26px, 7.4vw, 44px);
  --fs-h3: 18px;
  --fs-lead: 16px;
  --fs-body: 14.5px;
  --fs-small: 13.5px;
  --fs-label: 14px;
  --fs-micro: 11.5px;
  --fs-eyebrow: 10.5px;

  --lh-h1: 1.02;
  --lh-h2: 1.05;
  --lh-lead: 1.65;
  --lh-body: 1.7;
  --lh-small: 1.6;

  --footer-bg: color-mix(in srgb, var(--text) 4%, var(--ink));
}
@media (min-width: 900px) {
  :root { --fs-h1: 56px; --fs-h2: 44px; --fs-h3: 20px; --fs-lead: 17px; --fs-body: 15px; --fs-small: 14px; --fs-label: 14.5px; }
}

/* No pinch zoom (pairs with the viewport meta); scrolling and taps are unaffected. */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
h1, h2, h3, p, li, summary { overflow-wrap: break-word; }

/* display: h1 */
html:root .hero h1,
html:root main h1,
html:root .seo-main h1 {
  font-family: var(--ff-display); font-weight: 700;
  font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -.055em; text-wrap: balance;
}
/* display: h2 (every section title, landing + SEO + PDF tools) */
html:root .section-heading h2,
html:root .editor-copy h2,
html:root .final-cta h2,
html:root .home-faq h2,
html:root .pdf-tools h2,
html:root .pdfp-tools h2,
html:root main h2,
html:root .seo-main h2,
html:root .seo-faq h2 {
  font-family: var(--ff-display); font-weight: 700;
  font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -.05em; text-wrap: balance;
}
/* display: card / step titles */
html:root .flow-card h3,
html:root .pdfp-tool h3,
html:root main h3,
html:root .seo-main h3,
html:root .starter-panel h3,
html:root .steps b,
html:root .pdf-tool-card b {
  font-family: var(--ff-display); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance;
}
html:root .seo-main h2 { margin-top: 1.5em; }
html:root .seo-main h1 + .hero-lead, html:root .seo-main h1 { margin-top: 0; }

/* eyebrow */
html:root .eyebrow,
html:root .kicker,
html:root .bc,
html:root .footer-h,
html:root .footer-note {
  font-family: var(--ff-mono); font-weight: 600; font-size: var(--fs-eyebrow);
  line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
}

/* lead */
html:root .hero-lead { font-family: var(--ff-body); font-size: var(--fs-lead); line-height: var(--lh-lead); text-wrap: pretty; }

/* body */
html:root .section-heading-desc,
html:root .section-heading p,
html:root .editor-copy > p,
html:root .final-cta p,
html:root .flow-card p,
html:root .home-faq details p,
html:root .seo-faq p,
html:root .seo-main p,
html:root .seo-main li,
html:root .pdf-tools p,
html:root .pdfp-tools p,
html:root .steps span,
html:root .pt-d,
html:root .pdf-tool-card span.pt-d { font-family: var(--ff-body); font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
html:root .final-cta p { max-width: 34ch; margin-inline: auto; }

/* small */
html:root .pdf-note,
html:root .panel-copy,
html:root .footer-seo a,
html:root .footer-copy,
html:root .footer-brand small { font-size: var(--fs-small); line-height: var(--lh-small); }
html:root .footer-brand small { font-size: 12.5px; }

/* item names + captions */
html:root .feature-list b,
html:root .uchip b,
html:root .dc-meta b { font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
html:root .feature-list small,
html:root .uchip small,
html:root .dc-meta small { font-size: var(--fs-micro); line-height: 1.45; }

/* FAQ questions */
html:root .home-faq summary, html:root .seo-faq summary {
  font-family: var(--ff-body); font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; text-wrap: pretty;
}

/* buttons */
html:root .primary-btn,
html:root .secondary-btn,
html:root .continue-btn,
html:root .nav-cta { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: -.01em; }

.footer-brand b { font-family: var(--ff-display); letter-spacing: -.01em; }
html:root .seo-main p:has(> .primary-btn) { margin: 20px 0 24px; }

/* ---------- footer: its own, slightly different background (full-bleed band; content stays in the column) ---------- */
.site-footer { position: relative; isolation: isolate; border-top: 0; margin-top: 24px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 -100vw; z-index: -1;
  background: var(--footer-bg); border-top: 1px solid var(--line);
}

/* ---------- specificity fixes: the SEO stylesheet pins these, so match its selectors ---------- */
html:root .seo-main p.hero-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
html:root .seo-main .primary-btn,
html:root .seo-main .secondary-btn,
html:root .seo-main .pdf-tools .primary-btn { font-size: var(--fs-label); font-weight: 600; }
html:root .seo-main .pdf-note,
html:root .seo-main .pdf-tools .pdf-note,
html:root .seo-main .pdf-note a { font-size: var(--fs-small); line-height: var(--lh-small); }
