/* Quality floor shared by every build. Brand character comes from tokens.css and the page's own layout. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 var(--space-3); text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-3); max-width: var(--measure); text-wrap: pretty; }
small, .small { font-size: var(--step--1); }
a { color: inherit; text-underline-offset: 0.2em; }

.container { width: min(100% - 2 * var(--space-3), 72rem); margin-inline: auto; }
.section { padding-block: var(--space-7); }
.section--surface { background: var(--color-surface); }
.stack > * + * { margin-top: var(--space-3); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius);
  background: var(--color-primary); color: var(--color-on-primary);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--ghost { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 2px currentColor; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

/* One orchestrated reveal per page, not on every section. The page script adds .is-in. */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, color-mix(in srgb, var(--color-surface), var(--color-text) 6%) 50%, var(--color-surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.cta-sticky { display: none; }
@media (max-width: 767px) {
  .cta-sticky {
    display: flex; position: fixed; inset: auto var(--space-3) var(--space-3); z-index: 50;
    justify-content: center; box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text), transparent 75%);
  }
  body:has(.cta-sticky) { padding-bottom: calc(44px + 2 * var(--space-3)); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
