/* Base, layout primitives, navigation, hero and footer. Colors come only from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-text); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.035em; line-height: 1.08; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.eyebrow { display: inline-block; font: 700 .8rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.btn-primary, .btn-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 999px; font: 700 1rem/1.2 var(--font-display); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 26px rgba(11, 99, 246, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(11, 99, 246, .4); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-quiet { color: var(--ink); padding-inline: 6px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.btn-quiet:hover { text-decoration-color: currentColor; }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
/* Translucent bar only where color-mix() exists; older Android browsers keep the solid one. */
@supports (background: color-mix(in srgb, red, red)) {
  .site-nav { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
}
.site-nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.45rem/1 var(--font-display); letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--brand-text); font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.site-nav .btn-primary { min-height: 44px; padding: 10px 20px; font-size: .95rem; box-shadow: none; }
.theme-switch { display: inline-flex; align-items: center; width: 60px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.theme-switch .track { position: relative; display: block; width: 60px; height: 32px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.theme-switch .thumb { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.theme-switch .thumb svg { width: 14px; height: 14px; }
.theme-switch .moon, [data-theme="dark"] .theme-switch .sun { display: none; }
[data-theme="dark"] .theme-switch .moon { display: block; }
[data-theme="dark"] .theme-switch .thumb { transform: translateX(28px); }
@media (max-width: 980px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 480px) { .site-nav .btn-primary { display: none; } .brand { font-size: 1.3rem; } }

/* Hero */
.hero { position: relative; padding: clamp(36px, 7vw, 96px) 0 clamp(48px, 8vw, 110px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--ink-soft); font-size: .95rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero-stage { position: relative; min-height: clamp(300px, 46vw, 560px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; order: 2; }
}

/* Phones: the primary action stays reachable at the bottom of the screen, whatever the text size. */
.sticky-cta { display: none; }
@media (max-width: 480px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 19, 25, .10); }
  .sticky-cta .btn-primary { width: 100%; min-height: 48px; padding-block: 10px; box-shadow: none; }
  body { padding-bottom: 76px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; }
.footer-grid p { color: var(--ink-soft); max-width: 34ch; margin-top: 14px; font-size: .98rem; }
.footer-grid h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-soft); }
.footer-grid li + li { margin-top: 4px; }
.footer-grid a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.footer-base a { color: var(--ink-soft); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
