/* ==========================================================================
   NEXTBATCH — Reset, typography, layout primitives, utilities
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset for the sticky navbar when jumping to in-page anchors */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--nb-font);
  font-size: var(--nb-fs-body);
  line-height: var(--nb-lh-body);
  color: var(--nb-white);
  background-color: var(--nb-navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nb-no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong, b { font-weight: 700; }

/* ---- Headings --------------------------------------------------------- */

.nb-h1 {
  font-size: var(--nb-fs-h1);
  line-height: var(--nb-lh-tight);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nb-h2 {
  font-size: var(--nb-fs-h2);
  line-height: var(--nb-lh-snug);
  font-weight: 800;
  letter-spacing: -0.022em;
}

.nb-h3 {
  font-size: var(--nb-fs-h3);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.nb-lede {
  font-size: var(--nb-fs-lede);
  line-height: 1.6;
  color: var(--nb-muted);
  max-width: 62ch;
}

.nb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--nb-s2);
  font-size: var(--nb-fs-label);
  font-weight: 700;
  letter-spacing: var(--nb-track-label);
  text-transform: uppercase;
  color: var(--nb-cyan);
}

.nb-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
  flex: none;
}

/* ---- Layout ----------------------------------------------------------- */

.nb-container {
  width: 100%;
  max-width: var(--nb-container);
  margin-inline: auto;
  padding-inline: var(--nb-gutter);
}

.nb-section {
  position: relative;
  padding-block: var(--nb-section-y);
}

.nb-section--dark {
  background-color: var(--nb-navy-900);
  color: var(--nb-white);
}

.nb-section--dark-alt {
  background-color: var(--nb-navy-800);
  color: var(--nb-white);
}

.nb-section--light {
  background-color: var(--nb-light-bg);
  color: var(--nb-ink);
}

.nb-section--light-alt {
  background-color: var(--nb-light-bg-alt);
  color: var(--nb-ink);
}

.nb-section--light .nb-lede,
.nb-section--light-alt .nb-lede { color: var(--nb-ink-soft); }

.nb-section--light .nb-eyebrow,
.nb-section--light-alt .nb-eyebrow { color: var(--nb-teal); }

.nb-section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.nb-head {
  max-width: 760px;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.nb-head > * + * { margin-top: var(--nb-s4); }

.nb-head--center {
  margin-inline: auto;
  text-align: center;
}

.nb-head--center .nb-lede { margin-inline: auto; }

/* ---- Accessibility ---------------------------------------------------- */

.nb-skip {
  position: absolute;
  left: var(--nb-s4);
  top: var(--nb-s4);
  z-index: 200;
  padding: 0.75rem 1.125rem;
  border-radius: var(--nb-r-sm);
  background: var(--nb-white);
  color: var(--nb-navy-900);
  font-weight: 700;
  font-size: var(--nb-fs-sm);
  transform: translateY(-160%);
  transition: transform var(--nb-dur) var(--nb-ease);
}

.nb-skip:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--nb-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.nb-section--light :focus-visible,
.nb-section--light-alt :focus-visible { outline-color: var(--nb-teal); }

/* ---- Scroll reveal (progressive enhancement) -------------------------- */

.nb-reveal {
  opacity: 1;
  transform: none;
}

.js .nb-reveal {
  opacity: 0;
  /* A little more travel than the dark design needed: a white card fading in
     on a white page has no glow to announce it, so the movement has to do
     that work on its own. */
  transform: translateY(24px);
  transition: opacity var(--nb-dur-slow) var(--nb-ease),
              transform var(--nb-dur-slow) var(--nb-ease);
  will-change: opacity, transform;
}

.js .nb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cards inside a revealed grid come in one after another rather than as one
   block. The parent is what the observer watches; this only decides how its
   children arrive, so no extra markup and no extra JavaScript is involved. */
@media (prefers-reduced-motion: no-preference) {
  .js .nb-reveal.is-visible .nb-pkg,
  .js .nb-reveal.is-visible .nb-step,
  .js .nb-reveal.is-visible .nb-trust__item,
  .js .nb-reveal.is-visible .nb-card {
    animation: nb-rise 520ms var(--nb-ease) backwards;
  }

  .js .nb-reveal.is-visible > :nth-child(2) { animation-delay: 70ms; }
  .js .nb-reveal.is-visible > :nth-child(3) { animation-delay: 140ms; }
  .js .nb-reveal.is-visible > :nth-child(4) { animation-delay: 210ms; }
  .js .nb-reveal.is-visible > :nth-child(5) { animation-delay: 280ms; }
  .js .nb-reveal.is-visible > :nth-child(6) { animation-delay: 350ms; }
}

@keyframes nb-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.js .nb-reveal[data-delay="1"] { transition-delay: 70ms; }
.js .nb-reveal[data-delay="2"] { transition-delay: 140ms; }
.js .nb-reveal[data-delay="3"] { transition-delay: 210ms; }
.js .nb-reveal[data-delay="4"] { transition-delay: 280ms; }

/* ---- Reduced motion (spec §36, §38) ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .nb-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .nb-reveal.is-visible > * {
    animation: none !important;
  }
}

/* ---- Spacing / alignment utilities ------------------------------------ */

.nb-mt-0 { margin-top: 0; }
.nb-mt-2 { margin-top: var(--nb-s2); }
.nb-mt-3 { margin-top: var(--nb-s3); }
.nb-mt-4 { margin-top: var(--nb-s4); }
.nb-mt-5 { margin-top: var(--nb-s5); }
.nb-mt-6 { margin-top: var(--nb-s6); }
.nb-text-center { text-align: center; }

/* Keeps a price and its trailing punctuation on one line: the inline-flex
   price box otherwise creates a line-break opportunity after itself. */
.nb-nowrap { white-space: nowrap; }
