/* Novaire relaunch, 25.11.2026. Top layer: type, one continuous flow, section rhythm.
   Loaded after every older stylesheet, so a rule here of equal specificity wins by order.
   Feature styles of the relaunch live in their own files, linked after this one. */

/* Inter for Windows and Android. Apple devices use their own system face first.
   Inter Variable 5.3, latin subset, SIL Open Font License 1.1 (fonts/OFL.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-var.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;
}

:root {
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Vertical distance between the content of two neighbouring sections. Each section carries half above and half below. */
  --flow-gap: clamp(120px, 15vw, 224px);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* Type. */
body {
  font-family: var(--font-apple);
  font-size: 17px;
  line-height: 1.47;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea, summary, .language-toggle { font-family: var(--font-apple); }

/* Headings: weight 600; tracking tightens with size, from -0.022em at body size to -0.045em at display size. */
.marketing-page main :is(h2, h3, h4, .hero-tagline) {
  font-weight: 600;
  letter-spacing: max(-0.045em, min(-0.022em, calc(-0.022em - (1em - 17px) * .03)));
}
.marketing-page main :is(h3, h4) { line-height: 1.2; }
.marketing-page main :is(.section, .hero, .provider-band) .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.marketing-page .section-heading > p:last-child:not(.eyebrow) { font-size: 17px; line-height: 1.47; }

/* One sky: the fixed star canvas shows through every section. No section paints its own background or ruled edge. */
.marketing-page .site-header { border-bottom: 0; }
.marketing-page main > section[class] { border: 0; background: transparent; box-shadow: none; }
.marketing-page .site-footer { border-top: 0; background: transparent; }

/* One rhythm: every section gets the same distance to the next. */
.marketing-page main > .section:not(.rewards-live) { padding-block: calc(var(--flow-gap) / 2); }
.marketing-page main > .beta-invitation { margin-block: 0; }
.marketing-page main > .provider-band { padding-block: calc(var(--flow-gap) / 2); }
.marketing-page .provider-inner { padding-block: 0; }

/* Provider belt: on phones it runs exactly like on desktop, edge to edge, with slightly smaller logos. */
@media (max-width: 700px) {
  .provider-window { margin-inline: calc(var(--gutter) * -1); }
  .provider-list li { font-size: 19px; }
  .provider-band[data-marquee] .provider-belt { animation-duration: 38s; }
}

/* Sections fade and rise in as they arrive.
   Fallback: the existing timed .reveal (app.js). Where scroll timelines exist they take over and .reveal stays put.
   Sticky scroll scenes (rewards, story) and anything marked [data-flow-still] keep their own motion. */
@media (prefers-reduced-motion: no-preference) {
  .marketing-page .reveal.pending { opacity: 0; transform: translate3d(0, 24px, 0); }
  .marketing-page .reveal.pending:focus-within { opacity: 1; transform: none; }
  .marketing-page .reveal.visible { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }

  @supports (animation-timeline: view()) {
    .marketing-page .reveal.pending { opacity: 1; transform: none; }
    .marketing-page main > :is(.section, .provider-band):not(.rewards-section, .story-section, [data-flow-still]) > * {
      animation: flow-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes flow-in {
  from { opacity: 0; translate: 0 32px; }
  to { opacity: 1; translate: 0 0; }
}
