/* Base: fuentes, reset, tipografía y utilidades. Sin componentes. */
@font-face { font-family: "Bricolage Grotesque"; src: url(../fonts/BricolageGrotesque.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/JetBrainsMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/JetBrainsMono-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Contenido según el modo de venta (assets/js/commerce.js): data-mode="shop" (demo o live) o "waitlist". */
html[data-commerce="waitlist"] [data-mode="shop"], html:not([data-commerce="waitlist"]) [data-mode="waitlist"] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--banner-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/var(--lh-body) var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
main { flex: 1; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: var(--tracking-display); }
h1.display { font-size: var(--fs-display); line-height: .92; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--tracking-heading); max-width: 20ch; }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); letter-spacing: -.01em; font-weight: 650; }
h4 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .88em; padding: 1px 6px; border-radius: var(--r-xs); background: var(--surface-2); overflow-wrap: anywhere; }
small { font-size: var(--fs-xs); }

/* utilidades */
.shell { width: var(--shell); margin-inline: auto; }
.label { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-3); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 48ch; }
.sub { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack { display: grid; gap: var(--stack, var(--s-4)); align-content: start; }
.stack--lg { --stack: var(--s-7); }
.stack--sm { --stack: var(--s-2); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, var(--s-3)); }
