/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--surface-page);
  color: var(--ink-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 720px) {
  .container { padding-inline: var(--space-8); }
}

/* ---- Typography classes (design-system/tokens.json → type.groups) ---- */

.display-xl {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.2;
}

.display-sm {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.3;
}

.body-lg {
  font-family: var(--font-content);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
}

.body-md {
  font-family: var(--font-content);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

.body-sm {
  font-family: var(--font-content);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

.mono-index {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.0;
  font-weight: 500;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mono-caption {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* H2-level flowing statement — long paragraph standing in for a section heading (why-us,
   quote-block, Solutions), as opposed to a short display title. */
.statement-lg {
  font-family: var(--font-content);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Caps label, one step up from .mono-label — titles inside cards/table rows, where
   .mono-label's 12px would read too small next to the surrounding content. */
.caps-lg {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* All type +2px on mobile — fixed sizes get a flat bump; fluid (clamp) sizes get their
   floor raised by 2px, leaving the vw-driven/max end (i.e. desktop and up) untouched. */
@media (max-width: 720px) {
  .display-xl { font-size: clamp(42px, 9vw, 104px); }
  .display-lg { font-size: clamp(34px, 7vw, 72px); }
  .display-md { font-size: clamp(30px, 4.5vw, 48px); }
  .display-sm { font-size: clamp(24px, 3.2vw, 34px); }
  .statement-lg { font-size: clamp(24px, 2.8vw, 36px); }
  .body-lg { font-size: 21px; }
  .body-md { font-size: 18px; }
  .body-sm { font-size: 16px; }
  .mono-index { font-size: 17px; }
  .mono-label { font-size: 14px; }
  .mono-caption { font-size: 15px; }
  .caps-lg { font-size: 20px; }
}
