/**
 * Online Store page — “commerce flow” design.
 * Hero loop + parallax band + React Bits Scroll Stack, Blur Text, Spotlight cards.
 */

.os-page {
  --os-pad-y: clamp(2.4rem, 5vw, 4rem);
  --os-gutter: clamp(1.1rem, 3.5vw, 3rem);
  --os-gold: var(--hn-gold, #f0c43c);
  --os-navy: var(--hn-navy, #061428);
  --os-ink: #040c18;
  --os-panel: #0a1830;
  --os-text: var(--hn-text, #e8f3ff);
  --os-muted: rgba(232, 243, 255, 0.72);
  --os-cyan: #5eb3ff;
  --os-mint: #7ee0c3;
  --os-display: "Sora", "Nunito", Rubik, sans-serif;
  --os-body: Rubik, "Nunito", sans-serif;
  color: var(--os-text);
  background: var(--os-navy);
  font-family: var(--os-body);
  text-align: left;
  width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 1;
  /* Clear fixed header so banner/menu never overlap */
  padding-top: var(--pw-header-h, 7.25rem);
}

.os-page .os-wrap {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--os-gutter);
  padding-right: var(--os-gutter);
  box-sizing: border-box;
}

.os-page a:hover,
.os-page a:focus {
  text-decoration: none;
}

body.home-navy:has(.os-page) {
  --pw-chrome-bg: rgba(4, 12, 24, 0.88);
  --pw-chrome-h: 8.5rem;
  /* Safe default until JS measures real header (logo + nav is taller than 5.75rem) */
  --pw-header-h: 7.25rem;
}

body.home-navy:has(.os-page) header.stick,
body.home-navy:has(.os-page) header.stick.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 100000 !important;
  background: var(--pw-chrome-bg) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  padding: 20px 0;
}

/* Progress */
.os-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}

.os-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--os-gold);
}

/* Breadcrumbs — under header, not behind it */
.os-crumbs {
  margin-top: 0;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(94, 179, 255, 0.14);
}

.os-crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--os-muted);
}

.os-crumbs__list a {
  color: var(--os-muted);
}

.os-crumbs__list a:hover {
  color: var(--os-gold);
}

.os-crumbs__list li {
  display: inline-flex;
  align-items: center;
}

.os-crumbs__list li:not(:first-child)::before {
  content: "›";
  margin-inline: 0.55rem 0.65rem;
  color: var(--os-cyan);
  opacity: 0.7;
}

.os-crumbs__list .is-current {
  color: var(--os-gold);
}

/* —— Hero: text left, loop near banner center (slightly right) —— */
.os-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: clamp(26rem, 52vh, 32rem);
  display: flex;
  align-items: center;
  /* Extra bottom air so fade never sits on CTAs / loop caption */
  padding-block: clamp(1.85rem, 4.5vh, 3rem) clamp(5rem, 12vh, 7.5rem);
  background:
    linear-gradient(115deg, #061428 0%, #0a1f44 42%, #071530 100%);
}

/* Soft handoff into the photo band below — kept below the CTA row */
.os-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(2.75rem, 7vh, 4.5rem);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(6, 20, 40, 0) 0%,
    rgba(6, 20, 40, 0.5) 55%,
    #061428 100%
  );
}

.os-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(94, 179, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 179, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 66% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.os-hero__beam {
  position: absolute;
  inset: auto -10% -30% 35%;
  height: 55%;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(240, 196, 60, 0.18), transparent 65%);
  pointer-events: none;
  animation: os-beam 8s ease-in-out infinite alternate;
}

@keyframes os-beam {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(-4%, -6%, 0) scale(1.08); opacity: 1; }
}

.os-hero__frame {
  position: relative;
  z-index: 4;
  width: 100%;
}

.os-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-inline-start: clamp(1.75rem, 4vw, 3.25rem);
  max-width: min(38rem, 48%);
}

.os-hero__brand {
  margin: 0 0 0.4rem;
  font-family: var(--os-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--os-gold);
  line-height: 1.1;
}

.os-hero__title {
  margin: 0 0 0.65rem;
  font-family: var(--os-display);
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.os-hero__lead {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: var(--os-muted);
  max-width: 36rem;
}

.os-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.os-btn--primary {
  background: var(--os-gold);
  color: #1f1408;
}

.os-btn--primary:hover {
  background: #ffd666;
  color: #1f1408;
  transform: translateY(-1px);
}

.os-btn--ghost {
  background: transparent;
  color: var(--os-text);
  border-color: rgba(94, 179, 255, 0.45);
}

.os-btn--ghost:hover {
  border-color: var(--os-gold);
  color: var(--os-gold);
}

/* Circle: vertical center of banner, a bit right of horizontal center */
.os-hero__loop {
  position: absolute;
  left: 66%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  width: min(42vw, 420px);
  margin: 0;
  pointer-events: none;
}

.os-loop-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.os-loop-svg__ring {
  fill: none;
  stroke: rgba(94, 179, 255, 0.38);
  stroke-width: 2;
}

/* Short traveling accent — not a half-yellow ring */
.os-loop-svg__pulse {
  fill: none;
  stroke: var(--os-mint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 92;
  animation: os-pulse 5s linear infinite;
}

.os-loop-svg__nodes circle {
  fill: var(--os-navy);
  stroke: var(--os-mint);
  stroke-width: 2;
}

.os-loop-svg__nodes text {
  fill: var(--os-text);
  font-family: var(--os-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-anchor: middle;
}

.os-hero__loop-caption {
  position: relative;
  z-index: 4;
  margin: 0.5rem 0 0;
  font-family: var(--os-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--os-cyan);
  text-shadow: 0 1px 10px rgba(4, 12, 24, 0.85);
}

@keyframes os-pulse {
  to { stroke-dashoffset: -100; }
}

/* Definition section — “what we mean by online store” */
.os-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--os-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--os-gold);
  text-align: center;
}

.os-define {
  position: relative;
  isolation: isolate;
  margin-top: clamp(-2.5rem, -6vh, -1.25rem);
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 70% 55% at 12% 20%, rgba(94, 179, 255, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 80%, rgba(126, 224, 195, 0.08), transparent 55%),
    linear-gradient(180deg, #061428 0%, #07182e 48%, #061428 100%);
  overflow: clip;
}

.os-define__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.os-define__head {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.os-define__title {
  margin: 0;
  font-family: var(--os-display);
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  max-width: 22ch;
}

.os-define__stage {
  container-type: inline-size;
  container-name: os-define;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
}

@container os-define (min-width: 720px) {
  .os-define__stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3vw, 3rem);
  }
}

.os-define__visual {
  position: relative;
  margin: 0;
  overflow: clip;
  border-radius: 1.15rem;
  aspect-ratio: 3 / 2;
  background: #0a1830;
  box-shadow:
    0 0 0 1px rgba(232, 243, 255, 0.08),
    0 28px 60px rgba(0, 0, 0, 0.35);
}

.os-define__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(240, 196, 60, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(4, 12, 24, 0.45) 0%, transparent 42%);
}

.os-define__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.06);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .os-define {
      view-timeline-name: --os-define;
      view-timeline-axis: block;
    }

    @keyframes os-define-parallax {
      from { transform: scale(1.1) translate3d(0, -4%, 0); }
      to { transform: scale(1.06) translate3d(0, 4%, 0); }
    }

    .os-define__visual img {
      animation: os-define-parallax linear both;
      animation-timeline: --os-define;
      animation-range: cover;
    }
  }
}

.os-define__body {
  display: grid;
  gap: 0.95rem;
  min-inline-size: 0;
}

.os-define__lead,
.os-define__body > p {
  margin: 0;
  color: var(--os-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  max-width: 40rem;
}

.os-define__lead {
  color: #f2f7ff;
  font-size: clamp(1.08rem, 1.55vw, 1.22rem);
}

.os-define__body strong {
  color: #fff;
  font-weight: 700;
}

.os-define__flow {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  counter-reset: none;
}

@container os-define (min-width: 720px) {
  .os-define__flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.os-define__flow li {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.55rem;
  border-block-start: 2px solid rgba(240, 196, 60, 0.55);
  min-inline-size: 0;
}

.os-define__flow-mark {
  font-family: var(--os-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--os-gold);
}

.os-define__flow-label {
  font-family: var(--os-display);
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Shared section shell */
.os-section {
  padding: var(--os-pad-y) 0;
  position: relative;
}

.os-section--ink {
  background: var(--os-ink);
}

.os-rail-head {
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
  text-align: center;
  justify-items: center;
  border: none;
  padding: 0;
}

.os-rail-head h2 {
  margin: 0;
  font-family: var(--os-display);
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.os-rail-head h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 0.75rem auto 0;
  background: var(--os-gold);
}

.os-rail-head p {
  margin: 0;
  color: var(--os-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
}

/* Connected path (pillars) — not cards */
.os-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
  border-block: 1px solid rgba(94, 179, 255, 0.18);
}

@media (min-width: 900px) {
  .os-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.os-path__step {
  padding: 1.5rem 1.25rem 1.6rem;
  border-bottom: 1px solid rgba(94, 179, 255, 0.14);
  position: relative;
  min-width: 0;
}

@media (min-width: 900px) {
  .os-path__step {
    border-bottom: none;
    border-inline-end: 1px solid rgba(94, 179, 255, 0.14);
  }

  .os-path__step:last-child {
    border-inline-end: none;
  }

  .os-path__step::before {
    content: "";
    position: absolute;
    top: 1.85rem;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 196, 60, 0.45), transparent);
    z-index: 0;
  }
}

.os-path__idx {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--os-gold);
  background: var(--os-navy);
  color: var(--os-gold);
  font-family: var(--os-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.os-path__step h3 {
  margin: 0 0 0.55rem;
  font-family: var(--os-display);
  font-size: 1.12rem;
  line-height: 1.3;
}

.os-path__step p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* Vertical spine process */
.os-spine {
  padding: var(--os-pad-y) 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(94, 179, 255, 0.1), transparent 60%),
    var(--os-navy);
}

.os-spine__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.os-spine__list::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--os-gold), rgba(94, 179, 255, 0.35));
}

@media (min-width: 800px) {
  .os-spine__list::before {
    left: 2.35rem;
  }
}

.os-spine__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.35rem;
  align-items: start;
  padding: 1.15rem 0 1.35rem;
  position: relative;
}

.os-spine__mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--os-ink);
  border: 2px solid var(--os-gold);
  color: var(--os-gold);
  font-family: var(--os-display);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

@media (min-width: 800px) {
  .os-spine__mark {
    width: 4.7rem;
    height: 4.7rem;
    font-size: 1rem;
  }
}

.os-spine__item strong {
  display: block;
  font-family: var(--os-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 0.35rem;
}

.os-spine__item p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.6;
  max-width: 40rem;
}

/* Audience rows — no cards */
.os-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(94, 179, 255, 0.18);
}

.os-row {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(94, 179, 255, 0.14);
}

@media (min-width: 800px) {
  .os-row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: baseline;
  }
}

.os-row h3 {
  margin: 0;
  font-family: var(--os-display);
  font-size: 1.2rem;
}

.os-row p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.65;
}

/* Privacy */
.os-privacy {
  display: grid;
  gap: 1.75rem 2.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .os-privacy {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.os-privacy__copy h2 {
  margin: 0 0 1rem;
  font-family: var(--os-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
}

.os-privacy__copy p {
  margin: 0 0 1rem;
  color: var(--os-muted);
  line-height: 1.7;
}

.os-checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 700px) {
  .os-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.25rem;
  }
}

.os-checklist li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--os-text);
}

.os-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--os-gold);
}

.os-privacy__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, rgba(94, 179, 255, 0.12), rgba(240, 196, 60, 0.08));
  border-inline-start: 3px solid var(--os-gold);
}

.os-privacy__quote {
  margin: 0;
  font-family: var(--os-display);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

/* Steps */
.os-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .os-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

@media (min-width: 1200px) {
  .os-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.os-steps li {
  padding: 0;
  min-width: 0;
  border-top: 2px solid var(--os-gold);
  padding-top: 1rem;
}

.os-steps__num {
  display: block;
  font-family: var(--os-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--os-gold);
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}

.os-steps h3 {
  margin: 0 0 0.45rem;
  font-family: var(--os-display);
  font-size: 1.12rem;
}

.os-steps p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.6;
}

/* Banner CTA */
.os-banner {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background:
    linear-gradient(120deg, rgba(240, 196, 60, 0.12), transparent 50%),
    #071428;
  border-block: 1px solid rgba(240, 196, 60, 0.2);
}

.os-banner__inner {
  display: grid;
  gap: 0.85rem 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .os-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title cta"
      "lead cta";
  }

  .os-banner__inner h2 { grid-area: title; }
  .os-banner__inner p { grid-area: lead; }
  .os-banner__inner .os-btn {
    grid-area: cta;
    justify-self: end;
    align-self: center;
  }
}

.os-banner h2 {
  margin: 0;
  font-family: var(--os-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.os-banner p {
  margin: 0;
  color: var(--os-muted);
  line-height: 1.6;
  max-width: 46rem;
}

/* FAQ */
.os-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.15rem;
  width: 100%;
}

@media (min-width: 800px) {
  .os-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.os-faq__item {
  border-bottom: 1px solid rgba(94, 179, 255, 0.18);
  background: transparent;
  padding: 0;
  height: fit-content;
  min-width: 0;
}

.os-faq__item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-family: var(--os-display);
  list-style: none;
}

.os-faq__item summary::-webkit-details-marker {
  display: none;
}

.os-faq__item summary::after {
  content: "+";
  float: right;
  color: var(--os-gold);
  font-weight: 400;
}

.os-faq__item[open] summary::after {
  content: "–";
}

.os-faq__item p {
  margin: 0 0 1rem;
  color: var(--os-muted);
  line-height: 1.65;
}

/* Reveal — clear pop/fade every time a block enters or leaves the viewport */
[data-os-reveal] {
  opacity: 0;
  transform: translate3d(0, 2.5rem, 0) scale(0.94);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-os-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Stagger siblings so each item pops in sequence */
.os-path [data-os-reveal]:nth-child(1),
.os-spine__list [data-os-reveal]:nth-child(1),
.os-rows [data-os-reveal]:nth-child(1),
.os-steps [data-os-reveal]:nth-child(1),
.os-define__flow [data-os-reveal]:nth-child(1),
.os-faq [data-os-reveal]:nth-child(1) { transition-delay: 0.02s; }

.os-path [data-os-reveal]:nth-child(2),
.os-spine__list [data-os-reveal]:nth-child(2),
.os-rows [data-os-reveal]:nth-child(2),
.os-steps [data-os-reveal]:nth-child(2),
.os-define__flow [data-os-reveal]:nth-child(2),
.os-faq [data-os-reveal]:nth-child(2) { transition-delay: 0.1s; }

.os-path [data-os-reveal]:nth-child(3),
.os-spine__list [data-os-reveal]:nth-child(3),
.os-rows [data-os-reveal]:nth-child(3),
.os-steps [data-os-reveal]:nth-child(3),
.os-define__flow [data-os-reveal]:nth-child(3),
.os-faq [data-os-reveal]:nth-child(3) { transition-delay: 0.18s; }

.os-path [data-os-reveal]:nth-child(4),
.os-spine__list [data-os-reveal]:nth-child(4),
.os-rows [data-os-reveal]:nth-child(4),
.os-steps [data-os-reveal]:nth-child(4),
.os-define__flow [data-os-reveal]:nth-child(4),
.os-faq [data-os-reveal]:nth-child(4) { transition-delay: 0.26s; }

.os-faq [data-os-reveal]:nth-child(5) { transition-delay: 0.34s; }


/* Blur Text (React Bits port) */
.os-blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.os-blur-word.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.os-blur-space {
  display: inline;
}

/* Scroll Stack (React Bits port) */
.os-stack {
  position: relative;
  z-index: 1;
  border-block: 1px solid rgba(126, 224, 195, 0.12);
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(126, 224, 195, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(11, 31, 77, 0.7), rgba(6, 20, 40, 0.95));
}

.os-stack__inner {
  padding: clamp(2rem, 6vh, 3.5rem) var(--os-gutter) clamp(4rem, 12vh, 7rem);
}

.os-stack-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.45rem;
  width: min(100%, 52rem);
  margin-inline: auto;
  min-height: clamp(9.5rem, 22vh, 13rem);
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.35rem;
  background-color: #0a1a36;
  background-image: linear-gradient(165deg, color-mix(in srgb, var(--os-accent, #7ee0c3) 14%, #0d2248) 0%, #071428 55%, #061224 100%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
  color: var(--os-text);
  transform-origin: top center;
  will-change: transform;
}

.os-stack-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--os-accent, #7ee0c3), transparent 80%);
  border-radius: 1.35rem 1.35rem 0 0;
}

.os-stack-card__mark {
  font-family: var(--os-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--os-accent, #7ee0c3);
}

.os-stack-card strong {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  color: #fff;
}

.os-stack-card__desc {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  color: var(--os-muted);
  line-height: 1.5;
}

.os-stack .scroll-stack-end {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

/* Feature grid + Spotlight */
/* “What your store includes” — dual ledger columns (3 + 3) */
.os-includes {
  position: relative;
}

.os-includes::before {
  content: "";
  position: absolute;
  inset: 10% 8% auto;
  height: 55%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 50% at 20% 40%, rgba(94, 179, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 45% at 80% 60%, rgba(240, 196, 60, 0.07), transparent 68%);
  z-index: 0;
}

.os-includes .os-wrap {
  position: relative;
  z-index: 1;
  /* Wider board on phones — less side gutter than the rest of the page */
  padding-left: clamp(0.45rem, 2.2vw, 0.85rem);
  padding-right: clamp(0.45rem, 2.2vw, 0.85rem);
}

/* Mobile default: 2 columns × 3 items each */
.os-includes__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-inline: auto;
  width: 100%;
  max-width: 68rem;
  border: 1px solid rgba(94, 179, 255, 0.16);
  border-radius: 1.15rem;
  background:
    linear-gradient(165deg, rgba(12, 28, 54, 0.92) 0%, rgba(6, 20, 40, 0.96) 100%);
  overflow: clip;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.os-includes__col {
  display: grid;
  grid-template-rows: repeat(3, auto);
  min-inline-size: 0;
}

.os-includes__col:first-child {
  border-inline-end: 1px solid rgba(94, 179, 255, 0.14);
}

.os-includes__col:last-child {
  background: linear-gradient(90deg, rgba(240, 196, 60, 0.03), transparent 55%);
}

.os-includes__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  align-items: start;
  padding: 1.15rem 1rem 1.2rem;
  position: relative;
  min-inline-size: 0;
  border-block-end: 1px solid rgba(94, 179, 255, 0.12);
  transition: background 0.35s ease, transform 0.35s ease;
}

.os-includes__item:last-child {
  border-block-end: none;
}

.os-includes__item::before {
  content: "";
  position: absolute;
  inset-block: 0.75rem;
  inset-inline-start: 0;
  inline-size: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--os-gold), var(--os-cyan));
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.os-includes__item:hover,
.os-includes__item:focus-within {
  background: rgba(94, 179, 255, 0.07);
}

.os-includes__item:hover::before,
.os-includes__item:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.os-includes__idx {
  font-family: var(--os-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(160deg, var(--os-gold) 10%, #fff 48%, var(--os-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-top: 0;
}

.os-includes__copy {
  display: grid;
  gap: 0.75rem;
  min-inline-size: 0;
}

.os-includes__copy h3 {
  margin: 0;
  font-family: var(--os-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(240, 196, 60, 0.35);
}

.os-includes__copy p {
  margin: 0;
  color: rgba(232, 243, 255, 0.78);
  line-height: 1.55;
  font-size: 0.95rem;
  font-weight: 400;
  max-width: none;
}

/* Desktop: roomy 3 × 2 grid */
@media (min-width: 900px) {
  .os-includes .os-wrap {
    padding-left: var(--os-gutter);
    padding-right: var(--os-gutter);
  }

  .os-includes__board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 1.35rem;
  }

  .os-includes__col {
    display: contents;
  }

  .os-includes__col:first-child,
  .os-includes__col:last-child {
    border-inline-end: none;
    background: none;
  }

  .os-includes__item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1.1rem;
    padding: clamp(1.25rem, 2.8vw, 1.75rem) clamp(1.15rem, 2.5vw, 1.85rem);
    border-inline-end: 1px solid rgba(94, 179, 255, 0.12);
  }

  .os-includes__item::before {
    inset-block: 0.9rem;
  }

  .os-includes__copy p {
    color: var(--os-muted);
    max-width: 36rem;
  }

  /* End of each desktop row (03, 06) */
  .os-includes__col .os-includes__item:nth-child(3) {
    border-inline-end: none;
  }

  /* Top row = first column group (01–03) */
  .os-includes__col:first-child .os-includes__item {
    border-block-end: 1px solid rgba(94, 179, 255, 0.12);
  }

  /* Bottom row = second column group (04–06) */
  .os-includes__col:last-child .os-includes__item {
    border-block-end: none;
  }

  .os-includes__idx {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    padding-top: 0.15rem;
  }

  .os-includes__copy {
    gap: 0.85rem;
  }

  .os-includes__copy h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    padding-bottom: 0.65rem;
  }

  .os-includes__copy p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .os-includes__board.is-in .os-includes__item {
    animation: os-includes-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .os-includes__board.is-in .os-includes__col:first-child .os-includes__item:nth-child(1) { animation-delay: 0.04s; }
  .os-includes__board.is-in .os-includes__col:first-child .os-includes__item:nth-child(2) { animation-delay: 0.1s; }
  .os-includes__board.is-in .os-includes__col:first-child .os-includes__item:nth-child(3) { animation-delay: 0.16s; }
  .os-includes__board.is-in .os-includes__col:last-child .os-includes__item:nth-child(1) { animation-delay: 0.08s; }
  .os-includes__board.is-in .os-includes__col:last-child .os-includes__item:nth-child(2) { animation-delay: 0.14s; }
  .os-includes__board.is-in .os-includes__col:last-child .os-includes__item:nth-child(3) { animation-delay: 0.2s; }
}

@keyframes os-includes-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-includes__item::before {
    transition: none;
  }
}

/* Spotlight cursor glow removed */
.os-page .card-spotlight::before {
  content: none;
  display: none;
}

/* SEO split block */
.os-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .os-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.os-split__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.os-split__copy p {
  color: var(--os-muted);
  line-height: 1.65;
}

.os-split__panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1rem;
  border: 1px solid rgba(126, 224, 195, 0.2);
  background: rgba(10, 24, 48, 0.9);
}

.os-split__quote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--os-text);
}

@media (prefers-reduced-motion: reduce) {
  .os-hero__beam,
  .os-loop-svg__pulse {
    animation: none !important;
  }

  .os-loop-svg__pulse {
    stroke-dasharray: none;
    opacity: 0;
  }

  .os-band__media {
    animation: none !important;
    transform: none !important;
    inset: 0;
  }

  [data-os-reveal],
  .os-blur-word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .os-stack-card {
    transform: none !important;
    filter: none !important;
    margin-bottom: 0.85rem !important;
  }

  .os-btn--primary:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .os-hero {
    min-height: clamp(22rem, 56vh, 28rem);
    padding-block: 1.5rem 4.25rem;
  }

  .os-hero::after {
    height: 3rem;
  }

  .os-define {
    margin-top: -1.5rem;
    padding-top: 2.25rem;
  }

  .os-define__flow {
    grid-template-columns: 1fr 1fr;
  }

  .os-hero__copy {
    margin-inline-start: 0.75rem;
    max-width: min(100%, 58%);
  }

  .os-hero__title {
    max-width: none;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
  }

  .os-hero__lead {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
  }

  .os-hero__loop {
    left: 72%;
    width: min(48vw, 220px);
  }

  .os-hero__loop-caption {
    display: none;
  }

  .os-loop-svg__nodes text {
    font-size: 11px;
  }
}
