/* Public onboarding pages share typography and geometry while retaining their
   existing theme variables, backgrounds, and accent colors. */

.thq-landing,
.thq-landing :not(svg):not(path),
.stage,
.stage :not(svg):not(path),
body:has(> header .logo),
body:has(> header .logo) :not(svg):not(path) {
  font-family: Inter, system-ui, sans-serif !important;
}

/* Landing page: compact type, consistent content width, and calmer panels. */
.thq-landing .thq-logo,
body:has(> header .logo) .logo {
  font-family: "Space Grotesk", Inter, sans-serif !important;
}

.thq-landing [style*="max-width: 1180px"] { max-width: 1240px !important; }
.thq-landing [style*="max-width: 1000px"] { max-width: 820px !important; }
.thq-landing [style*="max-width: 760px"] { max-width: 820px !important; }
.thq-landing > section { padding-top: 72px !important; padding-bottom: 32px !important; }
.thq-landing > section:first-of-type { padding-top: 64px !important; }
.thq-landing .thq-hero-h1 {
  font-size: clamp(38px, 5vw, 56px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.04em !important;
  font-weight: 700 !important;
}
.thq-landing .thq-h2 {
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  font-weight: 700 !important;
}
.thq-landing p,
.thq-landing li { font-size: 14px !important; line-height: 1.65 !important; }
.thq-landing .thq-hero-h1 + p { font-size: 16px !important; }
.thq-landing .thq-card {
  border-radius: 12px !important;
  padding: 24px !important;
}
.thq-landing div[style*="border-radius: 18px"],
.thq-landing div[style*="border-radius: 20px"],
.thq-landing div[style*="border-radius: 22px"] { border-radius: 12px !important; }
.thq-landing h3 { font-size: 18px !important; line-height: 1.35 !important; }
.thq-landing .thq-nav-links { font-size: 14px !important; }
.thq-landing .thq-nav-login { font-size: 13px !important; }
.thq-landing .thq-cmp th,
.thq-landing .thq-cmp td { font-size: 13px !important; padding: 12px 14px !important; }
.thq-landing .thq-cmp thead th { font-size: 12px !important; letter-spacing: .04em !important; }
.thq-landing .thq-btn,
.thq-landing .thq-register-button,
.thq-landing .thq-sticky a {
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.thq-landing .thq-register-button { min-height: 48px; padding: 12px 22px !important; }
.thq-landing .thq-ch button { border-radius: 8px; font-size: 13px; }

/* Full-screen demo keeps its playback surface and controls intact. */
.stage { overflow: hidden; border-radius: 12px; }

/* Legal pages use the same 820px reading column and compact text scale. */
body:has(> header .logo) { font-size: 14px; line-height: 1.65; }
body:has(> header .logo) header,
body:has(> header .logo) main,
body:has(> header .logo) footer { max-width: 820px; }
body:has(> header .logo) header { padding-top: 24px; padding-bottom: 20px; }
body:has(> header .logo) h1 {
  font: 700 26px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
  margin: 20px 0 8px;
}
body:has(> header .logo) h2 {
  font: 600 18px/1.35 Inter, system-ui, sans-serif;
  margin: 28px 0 8px;
}
body:has(> header .logo) .meta { font-size: 12px; }
body:has(> header .logo) .draft { border-radius: 12px; font-size: 14px; }
body:has(> header .logo) table { font-size: 13px; }
body:has(> header .logo) th,
body:has(> header .logo) td { padding: 9px 10px; }
body:has(> header .logo) footer { font-size: 13px; }

@media (max-width: 700px) {
  .thq-landing > section { padding: 52px 16px 24px !important; }
  .thq-landing .thq-card { padding: 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { scroll-behavior: auto; }
}
