/* Classic polish (1 Dec 2026), public pages only. Linked by the 11 marketing pages right after
   design-system.css; kept out of design-system.css because the portal loads that file too. */
body { font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; }
/* ============================================================ CLASSIC POLISH (1 Dec 2026) */
/* Inter, self-hosted: one variable file (weights 100-900, Latin), preloaded by each
   marketing page in place of the render-blocking Google Fonts stylesheet.
   OFL 1.1, licence beside the file (assets/fonts/LICENSE-Inter-OFL.txt). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* While Inter loads, Arial is drawn at Inter's size and line metrics, so the swap does not
   move the page (values as published for Inter over Arial by the Next.js font tooling). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('Roboto');
  size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%;
}

/* Sharper lines: headings balance across their lines, paragraphs avoid a lone last word.
   Decorative only; older browsers wrap as before. */
h1, h2, h3, .of-title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* One keyboard ring everywhere, light on dark bands. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.trust-band :focus-visible, footer :focus-visible, .canvas-blue :focus-visible { outline-color: #93c5fd; }

/* Page to page: a short cross-fade where the browser supports cross-document view
   transitions (Chrome, Edge, Safari 18.2+); elsewhere navigation is instant as before. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
}

/* The hero is painted at once (it is the largest paint on the page): no fade from
   opacity 0 there, only a short rise, so first paint and LCP are not held back by the
   scroll-reveal script. Below the fold, .reveal works as before. */
.hero .reveal { opacity: 1; translate: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: hero-rise 0.7s var(--ease-out) both; }
  .hero .reveal:nth-child(2) { animation-delay: 0.05s; }
  .hero .reveal:nth-child(3) { animation-delay: 0.10s; }
  .hero .reveal:nth-child(4) { animation-delay: 0.15s; }
  .hero .reveal:nth-child(5) { animation-delay: 0.20s; }
  .hero .hero-card.reveal { animation-delay: 0.12s; }
}
@keyframes hero-rise { from { translate: 0 14px; } to { translate: none; } }

/* The living field (assets/js/hero-field.js): a canvas over the CSS glow, faded in after
   its first frame; absolutely placed, so it never moves the layout. */
.hero-canvas .hero-field {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none;
}
.hero-canvas .hero-field.on { opacity: 1; }
.hero-canvas.grain::after { z-index: 1; }
/* The eyebrow breaks into even lines on a phone, not a lone last word. */
.eyebrow-c { text-wrap: balance; }
/* The field's pause button (WCAG 2.2.2): made by hero-field.js only when the field runs. */
.field-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid rgba(37, 99, 235, .18); background: rgba(255, 255, 255, .72);
  color: var(--accent-dim); cursor: pointer; padding: 0;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s var(--ease-out), background-color .15s;
}
.field-toggle.on { opacity: 1; }
.field-toggle:hover { background: #fff; }
.field-toggle svg { width: 12px; height: 12px; }
