/* BBC apex — tokens from apex/lockup-provenance.v1.json + VAE observation.v1 */
@font-face {
  font-family: "Ubuntu Sans";
  src: url("/fonts/UbuntuSans.ttf") format("truetype");
  font-weight: 100 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bbc-field: #000000;
  --bbc-ink: #f4f4f2;
  --bbc-mute: rgba(244, 244, 242, 0.7);
  --bbc-line: rgba(244, 244, 242, 0.18);
  --bbc-panel: rgba(244, 244, 242, 0.04);
  --bbc-rock-scale: 0.8;
  --bbc-meta-inset: 6.1%;
  --bbc-stage-ratio: 1024 / 768;
  --bbc-backdrop-opacity: 0.26;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bbc-field);
  color: var(--bbc-ink);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Ubuntu Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Landing-equivalent ambient cube (pricing subpages) */
.pricing-shell {
  position: relative;
  min-height: 100svh;
  background: var(--bbc-field);
}

.pricing-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--bbc-field);
}

.pricing-backdrop .stage {
  position: relative;
  width: min(100vw, calc(100svh * var(--bbc-stage-ratio)));
  aspect-ratio: var(--bbc-stage-ratio);
  container-type: size;
}

.pricing-backdrop .rock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% * var(--bbc-rock-scale));
  height: calc(100% * var(--bbc-rock-scale));
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
  opacity: var(--bbc-backdrop-opacity);
  animation: bbc-mass-drift 28s ease-in-out infinite;
}

@keyframes bbc-mass-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.98);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

.pricing-foreground {
  position: relative;
  z-index: 1;
}

.menu {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(244, 244, 242, 0.45);
  background: transparent;
  color: var(--bbc-ink);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--bbc-ink);
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.menu[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 2rem;
}

.overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}

.overlay nav {
  display: grid;
  gap: 1.75rem;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
}

.overlay a {
  text-decoration: none;
}

.overlay a[aria-current="page"] {
  color: var(--bbc-ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.about {
  max-width: 36rem;
  line-height: 1.55;
  color: #c8c8c4;
}

.about h2 {
  margin: 0 0 0.8rem;
  color: var(--bbc-ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.about p {
  margin: 0 0 1rem;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem clamp(1.25rem, var(--bbc-meta-inset), 4rem) 0;
}

.site-header a.wordmark {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--bbc-mute);
}

.site-header a.wordmark:hover {
  color: var(--bbc-ink);
  text-decoration: none;
}

.content-page {
  width: min(100%, 96rem);
  max-width: none;
  margin: 0 auto;
  min-height: calc(100svh - 4rem);
  padding: clamp(1rem, 2vw, 2rem) clamp(1.5rem, var(--bbc-meta-inset), 4.5rem)
    clamp(3rem, 6vw, 5rem);
}

.pricing-hero {
  width: min(100%, calc(100svh * 1024 / 768));
  max-width: 100%;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: clamp(0.8rem, 2.5cqh, 1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bbc-mute);
}

.content-page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 12cqw, 5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.95;
  max-width: 14ch;
}

.lede {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  max-width: 52rem;
  color: #c8c8c4;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
}

.pricing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(1.25rem, 2vw, 2rem);
  border-bottom: 1px solid var(--bbc-line);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-nav a[aria-current="page"] {
  color: var(--bbc-ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.plan-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}

@media (min-width: 720px) {
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: min(52vh, 28rem);
  }
}

.plan-card {
  border: 1px solid rgba(244, 244, 242, 0.22);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  min-height: 100%;
}

.plan-card h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

.plan-card .tagline {
  margin: 0;
  color: var(--bbc-mute);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #d4d4d0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

.plan-card li {
  margin-bottom: 0.5rem;
}

.plan-card .status {
  margin-top: auto;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bbc-mute);
}

.note {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--bbc-line);
  background: rgba(0, 0, 0, 0.45);
  color: #c8c8c4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  max-width: 52rem;
}

.note strong {
  color: var(--bbc-ink);
  font-weight: 600;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.content-page h2 {
  margin: clamp(2rem, 4vw, 3rem) 0 1rem;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-page p {
  margin: 0 0 1.15rem;
  color: #c8c8c4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 48rem;
}

.content-page ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: #c8c8c4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 48rem;
}

/* VAE holographik methods — pattern-only (see vae-holographik-methods.v1.json) */
html:has(.pricing-shell) {
  scroll-snap-type: y proximity;
}

.pricing-chapter {
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vh, 4rem);
}

.pricing-chapter-hero {
  --bbc-backdrop-opacity: 0.34;
  justify-content: center;
}

.pricing-chapter-hero .pricing-hero h1 {
  text-shadow: 0 0 48px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6);
}

.pricing-chapter-plans {
  justify-content: flex-start;
  padding-top: clamp(3rem, 10vh, 6rem);
}

.pricing-chapter-footer {
  min-height: auto;
  padding-bottom: clamp(4rem, 12vh, 7rem);
  justify-content: flex-start;
}

.pricing-chapter .reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

.pricing-chapter.is-visible .reveal,
.pricing-shell.is-booted .pricing-chapter-hero .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.pricing-nav a {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.plan-card.reveal {
  transition-delay: calc(0.2s + var(--reveal-i, 0) * 120ms);
}

@media (prefers-reduced-motion: reduce) {
  html:has(.pricing-shell) {
    scroll-snap-type: none;
  }

  .pricing-backdrop .rock {
    animation: none;
  }

  .pricing-chapter .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
