/* =====================================================================
   Computiqs — static one-page build
   Design tokens sampled from the React storefront (frontend/src/index.css)
   so the static page and the app read as the same product.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Brand palette, sampled straight out of the TheNextGenInnovation logo */
  --brand-blue: #0073ee;       /* the arrow and the "Innovation" wordmark */
  --brand-blue-deep: #012279;  /* the shaded inner face of the N          */
  --brand-cyan: #02dcf5;       /* the arrow tip and the trailing pixels    */
  --brand-navy: #061443;       /* the "TheNextGen" wordmark                */
  --brand-silver: #d7e3f7;

  /* The neutrals were warm to sit beside a red brand; they are cool now so
     they read as the same family as the blues above. */
  --background: oklch(0.98 0.004 250);
  --foreground: oklch(0.22 0.03 258);
  --card: oklch(1 0 0);
  --primary: var(--brand-blue);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.965 0.007 250);
  --muted: oklch(0.965 0.007 250);
  --muted-foreground: oklch(0.52 0.025 258);
  /* Gold, kept deliberately outside the brand blues so star ratings stay
     legible rather than blending into every other accent on the card. */
  --accent: oklch(0.76 0.148 75);
  --border: oklch(0.905 0.012 250);
  --ring: var(--brand-blue);
  --navy: var(--brand-navy);
  --navy-foreground: var(--brand-silver);

  --radius: 0.5rem;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Total height of the top bar (36px) + navbar (64px) */
  --header-height: 100px;
}

*, *::before, *::after { box-sizing: border-box; }

/* The component rules below set `display`, which would otherwise win over
   the [hidden] attribute the tabs and menus toggle. */
[hidden] { display: none !important; }

/* A grid or flex child defaults to min-width:auto, so one unbreakable line
   inside it widens the whole column past the viewport. */
.hero__copy, .hero__stats, .section-head__copy, .banner-feature__copy,
.journey__copy, .footer-about, .footer-col, .step-card, .guide-panel__intro {
  min-width: 0;
}

* { border-color: var(--border); }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 8rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  margin: 0;
}

p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; padding: 0; }

:where(button, a, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
  border-radius: calc(var(--radius) * 0.8);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Device-aware container, same breakpoints as the app */
.market-container {
  width: 100%;
  margin-inline: auto;
  max-width: 100%;
  padding-inline: 1rem;
}
@media (min-width: 40rem) { .market-container { max-width: 40rem; padding-inline: 1.25rem; } }
@media (min-width: 48rem) { .market-container { max-width: 48rem; padding-inline: 1.5rem; } }
@media (min-width: 64rem) { .market-container { max-width: 64rem; padding-inline: 2rem; } }
@media (min-width: 80rem) { .market-container { max-width: 80rem; } }
@media (min-width: 96rem) { .market-container { max-width: 90rem; padding-inline: 2.5rem; } }

.section-pad { padding-block: 3rem; }
@media (min-width: 48rem) { .section-pad { padding-block: 4rem; } }

.bg-card-surface { background: var(--card); }
.bg-secondary-surface { background: var(--secondary); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: calc(var(--radius) * 0.8);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem; font-weight: 600; line-height: 1.25rem;
  white-space: nowrap;
  background: var(--primary); color: var(--primary-foreground);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out-soft), opacity 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn--outline:hover { background: var(--muted); opacity: 1; }
.btn--ghost { background: transparent; color: var(--foreground); }
.btn--ghost:hover { background: var(--muted); opacity: 1; }
.btn--secondary { background: var(--secondary); color: var(--foreground); }
.btn--light { background: #fff; color: var(--foreground); }
.btn--light:hover { background: rgba(255,255,255,0.9); opacity: 1; }
.btn--round { border-radius: 999px; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.2rem 0.65rem; font-size: 0.75rem; font-weight: 600;
  background: var(--secondary); color: var(--foreground);
}

.link-more {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.link-more:hover { text-decoration: underline; }

.icon { width: 1rem; height: 1rem; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.25rem; height: 1.25rem; }

/* =====================================================================
   Header
   ===================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  background: transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--card) 95%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.header-spacer { height: var(--header-height); }

.topbar { border-bottom: 1px solid rgba(255,255,255,0.1); transition: background-color 0.3s, border-color 0.3s; }
.is-scrolled .topbar { border-bottom-color: color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--muted) 60%, transparent); }
.topbar__inner {
  display: flex; height: 2.25rem; align-items: center; justify-content: flex-end;
  gap: 1rem; font-size: 0.75rem; color: rgba(255,255,255,0.8); transition: color 0.3s;
}
.is-scrolled .topbar__inner { color: var(--muted-foreground); }
.topbar__inner a { display: inline-flex; align-items: center; gap: 0.375rem; transition: color 0.2s; }
.topbar__inner a:hover { color: var(--primary); }
.topbar__sep { color: rgba(255,255,255,0.3); }
.is-scrolled .topbar__sep { color: var(--border); }

.navbar { position: relative; display: flex; height: 4rem; align-items: center; gap: 1.5rem; }

.brand-lockup { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-lockup__mark { width: auto; height: 2.25rem; }
.brand-lockup__word {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
}
.brand-lockup__word .a { color: var(--brand-navy); transition: color 0.3s; }
.brand-lockup__word .b { color: var(--brand-blue); transition: color 0.3s; }
/* Over the dark hero the navy half of the wordmark would disappear. */
.site-header:not(.is-scrolled) .brand-lockup__word .a { color: #fff; }
.site-header:not(.is-scrolled) .brand-lockup__word .b { color: var(--brand-cyan); }
@media (min-width: 40rem) {
  .brand-lockup__mark { height: 2.5rem; }
  .brand-lockup__word { font-size: 1.25rem; }
}

.main-nav { display: none; flex: 1; align-items: center; gap: 1.5rem; }
@media (min-width: 64rem) { .main-nav { display: flex; } }

.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: #fff;
  transition: color 0.2s;
}
.is-scrolled .nav-link, .is-scrolled .nav-trigger { color: var(--foreground); }
.nav-link:hover, .nav-trigger:hover { color: var(--primary); }
.nav-trigger { padding-block: 1.25rem; }
.nav-trigger .icon { width: 0.75rem; height: 0.75rem; transition: transform 0.2s; }
.nav-item.is-open .nav-trigger .icon { transform: rotate(180deg); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn-advice { display: none; }
@media (min-width: 40rem) { .header-actions .btn-advice { display: inline-flex; } }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: calc(var(--radius) * 0.8);
  color: #fff; transition: background-color 0.2s, color 0.2s;
}
.is-scrolled .icon-button { color: var(--foreground); }
.icon-button:hover { background: color-mix(in oklab, var(--muted) 70%, transparent); color: var(--primary); }
.cart-button { position: relative; }
.cart-count {
  position: absolute; top: -0.125rem; right: -0.125rem;
  display: flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  font-size: 11px; font-weight: 700; pointer-events: none;
  animation: rise-in 350ms var(--ease-out-soft) both;
}
.menu-button { display: inline-flex; }
@media (min-width: 64rem) { .menu-button { display: none; } }

/* Mega menus */
.nav-item { position: relative; }
.mega {
  position: absolute; left: 0; top: 100%; z-index: 50;
  display: flex; align-items: flex-start;
  max-width: calc(100vw - 2rem);
  border: 1px solid var(--border); border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* The last triggers sit far enough right that a 34rem panel would run off the
   screen, so those open flush with their right edge instead. */
.nav-item:nth-last-child(4) .mega--simple,
.nav-item:nth-last-child(5) .mega--simple { left: auto; right: auto; }
.mega__col { display: flex; width: 16rem; flex: none; flex-direction: column; padding: 0.5rem; }
.mega__col--narrow { width: 14rem; }
.mega__col + .mega__col { border-left: 1px solid var(--border); }
.mega__scroll { max-height: 26rem; overflow-y: auto; padding-right: 0.25rem; }
.mega__all {
  margin-top: 0.25rem; display: block; border-top: 1px solid var(--border);
  padding: 0.625rem 0.75rem 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.mega__all:hover { text-decoration: underline; }

/* Brands and industries: a grid, not one tall scrolling column. */
.mega--simple { display: block; width: 34rem; }
.mega__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.125rem;
  max-height: 26rem; overflow-y: auto; padding: 0.5rem;
}
@media (min-width: 40rem) { .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mega__foot { border-top: 1px solid var(--border); padding: 0.625rem 1rem; }
.mega__foot a { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.mega__foot a:hover { text-decoration: underline; }
.mega__row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.875rem;
  transition: background-color 0.15s, color 0.15s; cursor: pointer;
}
.mega__row:hover, .mega__row.is-active { background: var(--muted); color: var(--primary); }
.mega__row-label { min-width: 0; flex: 1; }
.mega__row-label b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__row-label small { display: block; font-size: 0.75rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__row .icon { color: var(--muted-foreground); }
.mega__logo {
  display: flex; width: 2rem; height: 2rem; flex: none; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 0.375rem; border: 1px solid var(--border); background: #fff; padding: 0.25rem;
}
.mega__logo img { width: 100%; height: 100%; object-fit: contain; }
/* A brand that never uploaded a logo keeps the slot, so the column of names
   does not go ragged around it. */
.mega__logo i {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
  border-radius: 0.25rem; background: var(--muted);
  font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--muted-foreground);
}
.mega__empty { padding: 1.5rem 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 51; width: min(22rem, 88vw);
  display: flex; flex-direction: column; background: var(--card);
  box-shadow: -12px 0 40px rgba(0,0,0,0.2);
  transform: translateX(100%); transition: transform 0.3s var(--ease-out-soft);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding: 1rem; }
.drawer__nav { display: flex; flex: 1; flex-direction: column; gap: 0.25rem; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.drawer__row {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.5rem;
  border-radius: 0.375rem; padding: 0.75rem; text-align: left; font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.drawer__row:hover { background: var(--muted); }
.drawer__row[aria-expanded="true"] { color: var(--primary); }
.drawer__row .icon { transition: transform 0.2s; }
.drawer__row[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__row small { font-size: 0.75rem; font-weight: 400; color: var(--muted-foreground); }
.drawer__panel { display: none; flex-direction: column; }
.drawer__panel.is-open { display: flex; }
.drawer__link { border-radius: 0.375rem; padding: 0.75rem 0.75rem 0.75rem 1.5rem; font-size: 0.875rem; transition: background-color 0.15s; }
.drawer__link:hover { background: var(--muted); }
.drawer__link--muted { font-weight: 600; color: var(--primary); }
.drawer__link--deep { padding-left: 2.25rem; }

/* =====================================================================
   Hero
   ===================================================================== */

.hero {
  /* Not `overflow: hidden`: the search suggestion panel drops below the hero's
     bottom edge and was being cut in half by it. The artwork column clips
     itself instead. */
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  background-color: var(--navy); color: var(--card);
  background-image: linear-gradient(rgba(6,20,67,0.15), rgba(6,20,67,0.9)), url('../img/site/hero-bg.webp');
  background-position: center; background-repeat: no-repeat; background-size: cover;
}
.hero__grid {
  display: grid; gap: 2.5rem; min-height: 500px; align-items: end;
  padding-top: 140px; padding-bottom: 0;
}
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1fr 1fr; } }

.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; padding-bottom: 4rem; }
.hero__title {
  max-width: 42rem; margin-top: 1em;
  font-size: 1.875rem; font-weight: 600; line-height: 1.18;
  letter-spacing: 0.5px; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 40rem) { .hero__title { font-size: 2.25rem; } }
@media (min-width: 64rem) { .hero__title { font-size: 2.75rem; } }
.hero__lede {
  max-width: 36rem; font-size: 1rem; line-height: 1.65;
  color: color-mix(in oklab, var(--navy-foreground) 75%, transparent);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__search { position: relative; z-index: 20; width: 100%; max-width: 42rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; margin-bottom: 1.5em; }
.hero__stat { border-left: 2px solid var(--primary); padding-left: 0.75rem; }
.hero__stat strong { display: block; font-size: 1.125rem; color: var(--card); }
.hero__stat span { color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); }

.hero__art { position: relative; display: none; overflow: hidden; align-self: stretch; }
@media (min-width: 64rem) { .hero__art { display: block; } }
/* The brand mark, lit from behind, in place of the old banner artwork. */
.hero__brand {
  position: relative; display: flex; height: 100%; min-height: 20rem;
  align-items: center; justify-content: center; padding-bottom: 3rem;
}
.hero__brand::before {
  content: ''; position: absolute; left: 50%; top: 46%;
  width: min(34rem, 90%); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--brand-cyan) 38%, transparent) 0%,
    color-mix(in srgb, var(--brand-blue) 22%, transparent) 42%,
    transparent 68%);
  filter: blur(6px);
}
.hero__brand img {
  position: relative; width: min(30rem, 82%); height: auto;
  filter: drop-shadow(0 22px 45px rgba(2, 220, 245, 0.28));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Search box */
.searchbox { display: flex; width: 100%; align-items: center; gap: 0.5rem; border-radius: 1rem; background: var(--card); padding: 0.5rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25); }
.searchbox .icon-search { margin-left: 0.75rem; color: var(--primary); width: 1.25rem; height: 1.25rem; flex: none; }
.searchbox input {
  min-width: 0; flex: 1; background: transparent; border: 0; outline: none;
  padding-block: 0.625rem; font-size: 1rem; color: var(--foreground);
}
.searchbox input::placeholder { color: var(--muted-foreground); }
.searchbox button {
  flex: none; border-radius: 0.75rem; background: var(--primary); color: var(--primary-foreground);
  padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s;
}
.searchbox button:hover { opacity: 0.9; }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); z-index: 50;
  max-height: 28rem; overflow-y: auto; border: 1px solid var(--border); border-radius: 1rem;
  background: var(--card); padding: 1.25rem; text-align: left; color: var(--foreground);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: none;
}
.search-panel.is-open { display: block; animation: rise-in 220ms var(--ease-out-soft) both; }
.search-panel h3 { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.search-pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.25rem; }
.search-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); padding: 0.5rem 1rem;
  font-size: 0.875rem; transition: border-color 0.2s, background-color 0.2s;
}
.search-pill:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); background: color-mix(in oklab, var(--primary) 5%, transparent); }
.search-result { display: flex; width: 100%; align-items: center; gap: 0.75rem; border-radius: 0.5rem; padding: 0.5rem; text-align: left; transition: background-color 0.15s; }
.search-result:hover { background: var(--muted); }
.search-result img { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.5rem; border: 1px solid var(--border); object-fit: cover; }
.search-result b { display: block; font-size: 0.875rem; font-weight: 500; }
.search-result small { display: block; font-size: 0.75rem; color: var(--muted-foreground); }

/* =====================================================================
   Brand marquee
   ===================================================================== */

.marquee-section { overflow: hidden; border-bottom: 1px solid var(--border); background: var(--card); padding-block: 1.5rem; }
.marquee-wrap { position: relative; }
.marquee { display: flex; width: max-content; align-items: center; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__item { display: flex; height: 2.5rem; flex: none; align-items: center; }
.marquee__item img {
  height: 2.25rem; width: auto; max-width: 5rem; object-fit: contain;
  opacity: 0.7; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s;
}
.marquee__item:hover img { opacity: 1; filter: grayscale(0); }
.marquee__item span { white-space: nowrap; font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); transition: color 0.2s; }
.marquee__item:hover span { color: var(--primary); }
.marquee-fade { pointer-events: none; position: absolute; inset-block: 0; width: 4rem; }
.marquee-fade--l { left: 0; background: linear-gradient(to right, var(--card), transparent); }
.marquee-fade--r { right: 0; background: linear-gradient(to left, var(--card), transparent); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   Section headings
   ===================================================================== */

.section-head { margin-bottom: 1.75rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head__copy { display: flex; max-width: 42rem; flex-direction: column; gap: 0.5rem; }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.section-head h2, .section-head-centered h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance;
}
@media (min-width: 48rem) { .section-head h2, .section-head-centered h2 { font-size: 1.875rem; } }
.section-head p, .section-head-centered p { color: var(--muted-foreground); line-height: 1.65; text-wrap: pretty; }
.section-head__link { display: none; flex: none; }
@media (min-width: 40rem) { .section-head__link { display: inline-flex; } }

.section-head-centered {
  margin: 0 auto 2.25rem; display: flex; max-width: 42rem;
  flex-direction: column; align-items: center; gap: 0.75rem; text-align: center;
}

/* =====================================================================
   Rails — scroll-snap carousel shared by every card row
   ===================================================================== */

.rail { position: relative; }
.rail__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.rail__viewport::-webkit-scrollbar { display: none; }
.rail__track { display: flex; padding-block: 0.5rem; margin-left: -1.5rem; }
.rail__item { flex: 0 0 100%; min-width: 0; padding-left: 1.5rem; scroll-snap-align: start; }
.rail__item > * { height: 100%; }

@media (min-width: 40rem) { .rail--4 .rail__item, .rail--3 .rail__item, .rail--2 .rail__item { flex-basis: 50%; } }
@media (min-width: 64rem) { .rail--4 .rail__item, .rail--3 .rail__item { flex-basis: 33.3333%; } }
@media (min-width: 80rem) { .rail--4 .rail__item { flex-basis: 25%; } }

.rail__track.is-centered { justify-content: center; }

.rail__arrow {
  position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
  display: none; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.9); color: var(--foreground);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.12);
  transition: background-color 0.2s, transform 0.2s, opacity 0.2s;
}
.rail.is-slider .rail__arrow { display: flex; }
.rail__arrow:hover { background: #fff; }
.rail__arrow[disabled] { opacity: 0.35; cursor: default; }
.rail__arrow--prev { left: -0.75rem; }
.rail__arrow--next { right: -0.75rem; }
@media (min-width: 40rem) {
  .rail__arrow { width: 2.25rem; height: 2.25rem; }
  .rail__arrow--prev { left: -1.25rem; }
  .rail__arrow--next { right: -1.25rem; }
}

.rail__dots { margin-top: 1.75rem; display: none; align-items: center; justify-content: center; gap: 0.5rem; }
.rail.is-slider .rail__dots { display: flex; }
.rail__dots button {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; background: #cbd5e1;
  transition: all 0.3s;
}
.rail__dots button:hover { background: #64748b; }
.rail__dots button[aria-current="true"] { width: 0.625rem; height: 0.625rem; background: #1e293b; }

/* =====================================================================
   Product tile (the "buyers are choosing now" rows)
   ===================================================================== */

.tile {
  position: relative; display: flex; height: 100%; flex-direction: column;
  border-radius: 1rem; border: 1px solid var(--border); background: var(--card); padding: 0.875rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 40%, transparent); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.tile__panel {
  position: relative; display: flex; aspect-ratio: 4 / 3; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 0.75rem; background: var(--muted);
}
.tile__panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tile:hover .tile__panel img { transform: scale(1.05); }
.tile__body { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem 0.25rem 0; text-align: center; }
.tile__body h3 { font-size: 15px; font-weight: 600; line-height: 1.375; width: 100%; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.tile:hover .tile__body h3 { color: var(--primary); }
.tile__company { width: 100%; font-size: 0.75rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tile__rating { margin-top: 0.375rem; display: flex; align-items: center; gap: 0.5rem; }
.tile__rating span { font-size: 0.875rem; font-weight: 600; }
.tile__price { margin-top: auto; padding-top: 1rem; }
.tile__price small { display: block; font-size: 11px; color: var(--muted-foreground); }
.tile__price b { display: block; font-size: 15px; font-weight: 700; }
.tile__price .preorder { font-weight: 600; color: var(--primary); }

.ribbon {
  position: absolute; left: 0; top: 0.75rem; z-index: 10;
  padding: 0.25rem 1.25rem 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.ribbon--teal { background: #0d9488; }
.ribbon--violet { background: #7c3aed; }
.ribbon--amber { background: #f59e0b; }
.ribbon--deep { background: var(--brand-blue-deep); }
.ribbon--cyan { background: #0e8fb8; }
.ribbon--rose { background: #e11d48; }
.ribbon--green { background: #15803d; }
.ribbon--orange { background: #e06d33; }

.stars { position: relative; display: inline-flex; flex: none; }
.stars__track { display: flex; gap: 0.125rem; }
.stars__fill { position: absolute; inset: 0; display: flex; gap: 0.125rem; overflow: hidden; }
.stars svg { width: 1rem; height: 1rem; flex: none; }
.stars__track svg { fill: var(--border); color: var(--border); }
.stars__fill svg { fill: var(--accent); color: var(--accent); }

/* Rail card (Exclusive deals / Trending) */
.rail-card {
  display: flex; height: 100%; flex-direction: column; justify-content: space-between;
  overflow: hidden; border-radius: 22px; border: 1px solid rgba(226,232,240,0.8);
  background: #fff; padding: 1.25rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rail-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.rail-card__panel {
  position: relative; display: flex; aspect-ratio: 16 / 11; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 1rem; background: #f8fafc;
}
.rail-card__panel img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
/* A listing with no photograph falls back to its brand logo, shown as a
   mark rather than stretched across the panel. */
.rail-card__panel .mark, .tile__panel .mark {
  display: flex; width: 4rem; height: 4rem; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: #fff;
  padding: 0.375rem; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.rail-card__panel .mark img, .tile__panel .mark img { width: 100%; height: 100%; object-fit: contain; }
.tile__panel .letter, .rail-card__panel .letter {
  display: flex; width: 4rem; height: 4rem; align-items: center; justify-content: center;
  border-radius: 1rem; background: var(--navy); color: #fff; font-size: 1.5rem; font-weight: 700;
}
.rail-card:hover .rail-card__panel img { transform: scale(1.05); }
.rail-card__body { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem 0.25rem 0; text-align: center; }
.rail-card__body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #1e293b; width: 100%; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.rail-card:hover .rail-card__body h3 { color: var(--primary); }
.rail-card__body p.company { margin-top: 0.125rem; width: 100%; font-size: 0.75rem; font-weight: 500; color: #64748b; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rail-card__stars { margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.125rem; }
.rail-card__stars svg { width: 0.875rem; height: 0.875rem; fill: #f59e0b; color: #f59e0b; }
.rail-card__stars b { margin-left: 0.25rem; font-size: 0.875rem; font-weight: 700; color: #334155; }
.rail-card__price { margin-top: 0.75rem; text-align: center; }
.rail-card__price small { font-size: 11px; font-weight: 500; color: #94a3b8; }
.rail-card__price p { margin-top: 0.125rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.25rem; }
.rail-card__price b { font-size: 1rem; font-weight: 800; color: #0f172a; }
.rail-card__price s { font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.rail-card__save {
  margin: 1rem -1.25rem -1.25rem; border-radius: 0 0 22px 22px; background: #2d7a4d;
  padding-block: 0.625rem; text-align: center; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: #fff;
}

/* A launch date on a card: the one line the new-launches rail adds for
   itself, rather than a card of its own. */
.rail-card__note { margin-top: 0.5rem; }
.launch-note {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--muted); padding: 0.2rem 0.65rem;
  font-size: 11px; font-weight: 600; color: var(--muted-foreground);
}
.launch-note--upcoming {
  background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
  color: var(--brand-blue-deep);
}

/* =====================================================================
   Campaign cards
   ===================================================================== */

.campaign-card {
  display: flex; height: 100%; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card);
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s var(--ease-out-soft), border-color 0.3s;
}
.campaign-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--primary) 40%, transparent);
  box-shadow: 0 18px 40px -18px rgba(1,34,121,0.35);
}
.campaign-card__art {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--brand-blue-deep));
}
.campaign-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out-soft); }
.campaign-card:hover .campaign-card__art img { transform: scale(1.06); }
.campaign-card__mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); }
.campaign-card__section {
  position: absolute; left: 0.875rem; top: 0.875rem;
  border-radius: 999px; background: color-mix(in oklab, var(--card) 92%, transparent);
  padding: 0.2rem 0.65rem; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-blue-deep);
  backdrop-filter: blur(4px);
}
.campaign-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding: 1.125rem; }
.campaign-card__body h3 {
  font-size: 1.0625rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.campaign-card:hover .campaign-card__body h3 { color: var(--primary); }
.campaign-card__body p {
  font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.campaign-card__cta {
  margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.campaign-card__cta .icon { transition: transform 0.2s; }
.campaign-card:hover .campaign-card__cta .icon { transform: translateX(3px); }

/* Pill tab bars */
.pill-tabs { display: flex; justify-content: center; max-width: 100%; overflow-x: auto; }
.pill-tabs__inner { display: inline-flex; gap: 0.25rem; border-radius: 999px; background: var(--muted); padding: 0.375rem; }
.pill-tabs__inner button {
  white-space: nowrap; border-radius: 999px; padding: 0.625rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: all 0.2s;
}
.pill-tabs__inner button:hover { color: var(--foreground); }
.pill-tabs__inner button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.pill-tabs--rails .pill-tabs__inner { background: #f1f3f5; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.pill-tabs--rails .pill-tabs__inner button { padding: 0.625rem 1.5rem; font-weight: 600; color: #475569; }
.pill-tabs--rails .pill-tabs__inner button[aria-pressed="true"] { background: #1e232d; color: #fff; font-weight: 700; }

.tab-stack { display: flex; flex-direction: column; align-items: center; gap: 2.25rem; }
.tab-panel { display: none; width: 100%; }
.tab-panel.is-active { display: block; }
.tab-empty { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 3rem; text-align: center; }
.tab-empty h3 { font-size: 1.125rem; font-weight: 600; }
.tab-empty p { margin: 0.5rem auto 0; max-width: 28rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* =====================================================================
   Category flip cards
   ===================================================================== */

.flip-card { perspective: 1400px; display: block; height: 23rem; border-radius: 1rem; }
.flip-inner { position: relative; height: 100%; width: 100%; transform-style: preserve-3d; transition: transform 0.65s var(--ease-out-soft); }
.flip-card:hover .flip-inner, .flip-card:focus-visible .flip-inner, .flip-card:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; overflow: hidden; border-radius: 1rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: var(--navy); }
.flip-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.5)); }
.flip-front__copy { position: absolute; inset: 0 0 auto 0; z-index: 2; padding: 1.25rem; }
.flip-front__copy h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.flip-front__copy p { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.flip-back {
  transform: rotateY(180deg); display: flex; flex-direction: column; padding: 1.25rem; color: #fff;
  background: linear-gradient(to bottom right, var(--navy), var(--navy), var(--primary));
}
.flip-back h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.flip-back p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.8); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.flip-back span {
  margin-top: auto; display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,0.15); transition: background-color 0.3s, color 0.3s;
}
.flip-card:hover .flip-back span { background: #fff; color: var(--navy); }

.cat-rail .rail__item { flex-basis: 68%; padding-left: 1rem; }
.cat-rail .rail__track { margin-left: -1rem; padding-block: 0.25rem; }
@media (min-width: 40rem) { .cat-rail .rail__item { flex-basis: 50%; } }
@media (min-width: 48rem) { .cat-rail .rail__item { flex-basis: 33.3333%; } }
@media (min-width: 64rem) { .cat-rail .rail__item { flex-basis: 20%; } }
.cat-rail .rail__dots { margin-top: 1.5rem; }
.cat-rail .rail__dots button { width: 0.5rem; height: 0.5rem; background: var(--border); }
.cat-rail .rail__dots button[aria-current="true"] { width: 1.5rem; height: 0.5rem; background: var(--primary); }

/* =====================================================================
   Buying journey (pinned, scrubbed)
   ===================================================================== */

.journey { position: relative; background: var(--secondary); }
.journey__track { position: relative; display: none; }
@media (min-width: 64rem) { .journey__track { display: block; } }
.journey__stage { position: sticky; top: 0; display: flex; height: 100svh; width: 100%; }
.journey__inner { height: 100%; width: 100%; padding-block: 4rem; }
.journey__cols { display: grid; height: 100%; min-height: 0; width: 100%; align-items: center; gap: 6rem; grid-template-columns: 1fr 1fr; }
.journey__art { position: relative; height: 100%; min-height: 0; width: 100%; }
.journey__art > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; will-change: opacity; opacity: 0; }
.journey__art > div:first-child { opacity: 1; }
.journey__art img { width: min(100%, 42rem, calc(100svh - 8rem)); aspect-ratio: 1; object-fit: contain; transform: scale(1.18); }
.journey__copies { position: relative; height: 100%; min-height: 0; overflow: hidden; }
.journey__copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; will-change: transform; visibility: hidden; }
.journey__copy:first-child { visibility: visible; }
.journey__copy h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.15; text-wrap: balance; }
@media (min-width: 48rem) { .journey__copy h2 { font-size: 3rem; } }
.journey__copy p { max-width: 36rem; font-size: 1.25rem; line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
.journey__copy a { display: inline-flex; width: fit-content; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: var(--primary); }
.journey__copy a:hover { text-decoration: underline; }
.journey__copy a .icon { transition: transform 0.2s; }
.journey__copy a:hover .icon { transform: translateX(4px); }

.journey__stack { padding-block: 4rem; }
@media (min-width: 64rem) { .journey__stack { display: none; } }
.journey__stack-list { display: flex; flex-direction: column; gap: 3rem; }
.journey__stack-item { display: flex; flex-direction: column; gap: 1.5rem; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); padding-bottom: 2.5rem; }
.journey__stack-item:last-child { border-bottom: 0; padding-bottom: 0; }
.journey__stack-item h2 { font-size: 1.25rem; font-weight: 700; }
.journey__stack-item figure { position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.journey__stack-item figure img { width: 100%; height: 100%; object-fit: cover; }
.journey__stack-item p { line-height: 1.7; color: var(--muted-foreground); }
.journey__stack-item a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary); }

/* =====================================================================
   Banners
   ===================================================================== */

/* The frame carries whatever ratio the artwork was drawn at — set inline from
   the file's own pixel size — so no slot crops its adverts. */
.banner-slideshow { display: flex; flex-direction: column; gap: 0.75rem; }
.banner-slideshow__frame {
  position: relative; width: 100%; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--secondary);
}
.banner-slideshow__frame a { position: absolute; inset: 0; }
.banner-slideshow__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease-in-out;
}
.banner-slideshow__frame img.is-active { opacity: 1; }

/* Under the banner rather than over it: dots laid on top of an advert cover
   the part of it someone paid for. */
.banner-dots { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.banner-dots button { width: 0.75rem; height: 0.375rem; border-radius: 999px; background: color-mix(in oklab, var(--muted-foreground) 30%, transparent); transition: all 0.3s; }
.banner-dots button:hover { background: color-mix(in oklab, var(--muted-foreground) 60%, transparent); }
.banner-dots button[aria-current="true"] { width: 2rem; background: var(--primary); }

.banner-feature { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--card); }
.banner-feature > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.banner-feature__inner { position: relative; display: flex; min-height: 32rem; align-items: center; padding-block: 5rem; }
@media (min-width: 48rem) { .banner-feature__inner { min-height: 36rem; padding-block: 6rem; } }
.banner-feature__copy { display: flex; max-width: 42rem; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.banner-feature__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.banner-feature__tags .badge { background: rgba(255,255,255,0.1); color: var(--card); }
.banner-feature h2 { font-size: 1.875rem; font-weight: 700; text-wrap: balance; }
@media (min-width: 48rem) { .banner-feature h2 { font-size: 2.25rem; } }
@media (min-width: 64rem) { .banner-feature h2 { font-size: 3rem; } }
.banner-feature p { font-size: 1.125rem; line-height: 1.7; color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); text-wrap: pretty; }

.banner-pair { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .banner-pair { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   FAQ
   ===================================================================== */

.faq-wrap { max-width: 56rem; }
.audience-tabs { margin-bottom: 1.5rem; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: 0.25rem; }
.audience-tabs button { border-radius: 999px; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); transition: background-color 0.2s, color 0.2s; }
.audience-tabs button[aria-selected="true"] { background: var(--primary); color: var(--primary-foreground); }

.accordion { border-top: 1px solid var(--border); }
.accordion.is-hidden { display: none; }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.125rem; text-align: left; font-weight: 600; font-family: var(--font-display);
  transition: color 0.2s;
}
.accordion__trigger:hover { color: var(--primary); }
.accordion__trigger .icon { flex: none; color: var(--muted-foreground); transition: transform 0.25s var(--ease-out-soft); }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion__panel { overflow: hidden; height: 0; transition: height 0.3s var(--ease-out-soft); }
.accordion__panel-inner { padding-bottom: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }

.faq-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* =====================================================================
   How it works / buying steps
   ===================================================================== */

.steps-grid { margin-top: 0.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 80rem) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }
.step-card {
  display: flex; height: 100%; flex-direction: column; gap: 0.75rem;
  border: 1px solid var(--border); border-radius: 0.875rem; background: var(--card);
  padding: 1.5rem 1.25rem;
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s var(--ease-out-soft);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(1,34,121,0.35); }
.step-card__num {
  display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  border-radius: 0.75rem; background: color-mix(in oklab, var(--primary) 10%, transparent);
  font-size: 1rem; font-weight: 700; color: var(--primary);
}
.step-card h3 { font-size: 1rem; font-weight: 600; }
.step-card p { font-size: 0.875rem; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }

.steps-cta { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.steps-cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.steps-cta__badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }

.guide-panel { margin-top: 3rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); padding: 1.5rem; }
@media (min-width: 48rem) { .guide-panel { padding: 2.5rem; } }
.guide-panel__intro { margin: 0 auto; display: flex; max-width: 48rem; flex-direction: column; gap: 1rem; }
.guide-panel__intro h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.guide-panel__intro p { line-height: 1.7; color: var(--muted-foreground); text-wrap: pretty; }
.guide-toggle { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.guide-toggle:hover { text-decoration: underline; }
.guide-body { margin: 2rem auto 0; display: none; max-width: 48rem; flex-direction: column; gap: 2.5rem; }
.guide-body.is-open { display: flex; animation: rise-in 350ms var(--ease-out-soft) both; }
.guide-body h4 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.guide-body dl { display: flex; flex-direction: column; gap: 0.75rem; }
.guide-body dt { font-weight: 600; }
.guide-body dd { margin: 0; line-height: 1.7; color: var(--muted-foreground); text-wrap: pretty; }
.guide-body h5 { font-weight: 600; }
.guide-body h5 span { margin-right: 0.5rem; color: var(--primary); }
.guide-group { display: flex; flex-direction: column; gap: 1rem; }
.guide-group--steps { gap: 1.5rem; }
.guide-step { display: flex; flex-direction: column; gap: 0.5rem; }
.guide-step p { line-height: 1.7; color: var(--muted-foreground); text-wrap: pretty; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border-radius: 999px; border: 1px solid var(--border); background: var(--background);
  padding: 0.375rem 0.875rem; font-size: 0.875rem; transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.guide-end { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.guide-end__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer { background: var(--navy); color: var(--navy-foreground); }
.footer-cta { border-bottom: 1px solid rgba(235,238,243,0.15); padding-block: 3rem; text-align: center; }
.footer-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-cta h2 { font-size: 1.5rem; font-weight: 700; color: var(--card); text-wrap: balance; }
.footer-cta p { font-size: 0.875rem; color: color-mix(in oklab, var(--navy-foreground) 75%, transparent); }

.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }
.footer-about { display: flex; flex-direction: column; gap: 1rem; }
.footer-about p, .footer-about address { font-size: 0.875rem; line-height: 1.7; color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); font-style: normal; }
.footer-about address span { display: block; }
.footer-about address .name { font-weight: 500; color: var(--card); }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); }
.footer-contact a { display: flex; align-items: center; gap: 0.5rem; }
.footer-contact a:hover { color: var(--card); }
.footer-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-col h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--card); }
.footer-col div { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: color-mix(in oklab, var(--navy-foreground) 70%, transparent); }
.footer-col a:hover { color: var(--card); }
.footer-base { border-top: 1px solid rgba(235,238,243,0.15); }
.footer-base__inner { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.25rem; font-size: 0.75rem; color: color-mix(in oklab, var(--navy-foreground) 60%, transparent); }
@media (min-width: 40rem) { .footer-base__inner { flex-direction: row; justify-content: space-between; } }
.footer-base__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
/* Five columns leave the footer's first one too narrow for the lockup on one
   line, so it stacks the way the logo itself is drawn. */
.site-footer .brand-lockup { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.site-footer .brand-lockup__mark { height: 2.75rem; }
.site-footer .brand-lockup__word { font-size: 1.15rem; }
.site-footer .brand-lockup__word .a { color: #fff; }
.site-footer .brand-lockup__word .b { color: var(--brand-cyan); }

/* =====================================================================
   Floating controls
   ===================================================================== */

.scroll-controls { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: flex; flex-direction: column; gap: 0.625rem; }
.scroll-controls button, .scroll-controls a {
  display: flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--border); backdrop-filter: blur(6px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.25s, visibility 0.25s;
}
.scroll-controls button:hover, .scroll-controls a:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); }
.scroll-controls .call { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.scroll-controls .up { background: color-mix(in oklab, var(--card) 92%, transparent); color: var(--foreground); opacity: 0; visibility: hidden; }
.scroll-controls .up.is-visible { opacity: 1; visibility: visible; }

/* =====================================================================
   Motion
   ===================================================================== */

/* Hidden only while JS is there to reveal them again. */
.js [data-reveal], .js [data-stagger-item], .js [data-hero] { opacity: 0; }

.hover-lift { transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s var(--ease-out-soft); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(1,34,121,0.35); }

@keyframes rise-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* GSAP missing: the journey falls back to the stacked reading order. */
.journey.is-static .journey__track { display: none; }
.journey.is-static .journey__stack { display: block; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger-item], .js [data-hero] { opacity: 1 !important; transform: none !important; }
  .marquee { animation: none; }
  .hero__brand img { animation: none; }
  .flip-inner { transition: none; }
  .journey__track { display: none !important; }
  .journey__stack { display: block !important; }
  .rail__viewport { scroll-behavior: auto; }
}
