/* ========================================
   PianoNova — core
   Shared across every page: reset, tokens, chrome (nav/footer/buttons),
   and the layout vocabulary (section-head, eyebrow, quote, spec, split, wall).
   Page-specific sheets layer on top. Do NOT redefine these selectors
   elsewhere — `check:styles` fails the build if you do.
   ======================================== */

/* --- Reset & Tokens --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Surfaces */
  --bg: #0a0a08;
  --surface: #12110d;
  --surface-2: #171611;
  --surface-3: #1d1c15;
  --bg-raised: #13110c;
  --seam: rgba(201, 169, 98, 0.16);
  --line: rgba(245, 240, 232, 0.07);
  --line-strong: rgba(245, 240, 232, 0.14);

  /* Text */
  --text: #f6f2e9;
  --text-2: #b9b3a4;
  --text-3: #8b8577;

  /* Gold */
  --gold: #c9a962;
  --gold-light: #dfc283;
  --gold-deep: #a8843f;
  --gold-glow: rgba(201, 169, 98, 0.14);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --section-y: clamp(88px, 11vw, 150px);
  --container-x: clamp(20px, 5vw, 80px);
  --container-max: 1200px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* --- Legacy token aliases ---
     styles.css, the per-section sheets and the inline <style> blocks still
     name colours the old way (~255 references). Aliasing costs 16 lines and
     lets those rules adopt the new palette without touching one of them.
     Retire an alias by renaming its last consumer, not in a big sweep. */
  --black: var(--bg);
  --black-light: var(--surface);
  --charcoal: var(--surface-2);
  --charcoal-light: var(--surface-3);
  --warm-gray: var(--text-3);
  --warm-gray-light: var(--text-2);
  --ivory: var(--text);
  --ivory-muted: #e8e2d8;
  --cream: #fdfaf4;
  --gold-dark: var(--gold-deep);
  --danger: #d4483b;
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
  --ease-smooth: var(--ease);
}

/* Screen-reader-only utility — every icon-only control needs it. */
.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;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  /* clip, not hidden: `overflow: hidden` turns body into a scroll container
     and breaks document-scroll measurements/layers */
  overflow-x: clip;
}

/* Subtle film grain — lifts flat dark surfaces into something tactile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(201, 169, 98, 0.85);
  color: #0a0a08;
}

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

/* Elements tagged data-parallax get inline transforms from script.js */
[data-parallax] {
  will-change: transform;
}

/* --- Inline icon helper (Lucide-style stroke icons) --- */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* --- Ambient background: drifting gold orbs ---
   Frames own position/opacity; inner orbs own the autonomous drift animation
   (keyframes beat transitions, so the two live on different nesting levels).
   The homepage additionally re-moods each frame per section via
   body[data-active] — those rules stay in home.css, since they key off
   homepage section ids. Everywhere else the orbs just drift. */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
}

.bg-fx__frame {
  position: absolute;
  will-change: transform, opacity;
  transition:
    transform 1.8s var(--ease),
    opacity 1.4s var(--ease);
}

.bg-fx__frame--1 {
  width: 62vmax;
  height: 62vmax;
  left: -16%;
  top: -22%;
}

.bg-fx__frame--2 {
  width: 46vmax;
  height: 46vmax;
  right: -12%;
  top: 28%;
}

.bg-fx__frame--3 {
  width: 52vmax;
  height: 52vmax;
  left: 8%;
  bottom: -28%;
}

/* No filter/will-change here on purpose. These are three fixed, full-viewport
   layers (46-62vmax), so promoting and blurring them is charged on every frame
   the page composites — including every frame the embedded player renders. A
   cross-origin iframe gets its own renderer process (the player sends
   Origin-Agent-Cluster: ?1) but still shares this page's GPU/compositor, so the
   cost landed on the demo. Measured n=5 against production, time from iframe
   mount to score visible: 12.2s before this change, 9.9s after, 8.1s with .bg-fx
   removed outright — and an idle host framing the same player in the same size
   box is 8.0s, so .bg-fx was ~82% of why the landing demo trailed the app (the
   rest is just the smaller box). The gradients below already fade to
   transparent, so the blur was near-invisible — screenshots with and without it
   are indistinguishable. Numbers are from headless Chromium, which rasterizes
   blur on CPU, so treat them as an upper bound on a GPU (and a lower one on the
   old iPad).
   The drift animation still promotes the layer while it runs; it doesn't need
   a standing will-change hint. */
.bg-fx__orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.bg-fx__frame--1 .bg-fx__orb {
  background: radial-gradient(closest-side, rgba(201, 169, 98, 0.1), transparent 72%);
  animation: orbDrift1 38s ease-in-out infinite alternate;
}

.bg-fx__frame--2 .bg-fx__orb {
  background: radial-gradient(closest-side, rgba(201, 169, 98, 0.07), transparent 72%);
  animation: orbDrift2 46s ease-in-out infinite alternate;
}

.bg-fx__frame--3 .bg-fx__orb {
  background: radial-gradient(closest-side, rgba(140, 126, 100, 0.07), transparent 72%);
  animation: orbDrift3 52s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(5%, 7%) scale(1.12);
  }
}

@keyframes orbDrift2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-7%, -5%) scale(1.08);
  }
}

@keyframes orbDrift3 {
  from {
    transform: translate(0, 0) scale(1.05);
  }
  to {
    transform: translate(6%, -6%) scale(0.95);
  }
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

.container--wide {
  max-width: min(94vw, 1600px);
  margin-inline: auto;
  padding-inline: var(--container-x);
}

@media (max-width: 767px) {
  .container--wide {
    max-width: 100%;
  }
}

section[id],
header[id] {
  scroll-margin-top: 96px;
}

.plane-raised {
  background: var(--bg-raised);
  border-top: 1px solid var(--seam);
  border-bottom: 1px solid var(--seam);
}

/* --- Section headers ---
   `.section-header`/`.section-tag` are the pre-redesign names still in the
   program pages' markup. Aliasing them here rolls the new treatment onto those
   pages without editing 22 files; drop the alias when the markup is renamed. */
.section-head,
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(52px, 6vw, 76px);
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow::before,
.eyebrow::after,
.section-tag::before,
.section-tag::after {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.section-title a:hover {
  color: inherit;
}

.section-desc {
  margin: 16px auto 0;
  font-size: 1.02rem;
  color: var(--text-3);
  max-width: 560px;
}

.text-accent {
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn .icon {
  font-size: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 70%);
  color: #15110a;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 32px -8px rgba(201, 169, 98, 0.5);
}

.btn--primary:hover .icon {
  transform: translateX(3px);
}

.btn--outline {
  background: rgba(245, 240, 232, 0.02);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  border-color: rgba(201, 169, 98, 0.55);
  color: var(--gold-light);
  background: var(--gold-glow);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 0.97rem;
  border-radius: var(--r-md);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

/* --- Navigation (floating glass pill) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px var(--container-x) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  height: 62px;
  margin: 0 auto;
  padding: 0 10px 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.nav--scrolled .nav__inner {
  background: rgba(15, 14, 11, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 4px;
}

.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--text);
  background: rgba(245, 240, 232, 0.06);
}

.nav__links a.is-active {
  color: var(--gold-light);
  background: var(--gold-glow);
}

.nav .btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.wall {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 30px);
  text-wrap: balance;
}

.wall__line {
  display: block;
}

/* Decay is carried by size and weight. Colour stops at --text-2, which holds
   ~7:1 on --bg — going lighter fails WCAG and reads as hidden text to crawlers. */
.wall__line--1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.14;
  color: var(--text);
}

.wall__line--2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2;
  font-weight: 350;
  color: var(--text-2);
}

.wall__line--3 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.28;
  font-weight: 300;
  font-style: italic;
  color: var(--text-2);
}

@media (max-width: 767px) {
  .wall {
    max-width: none;
  }
}

/* --- Product (live demo) --- */
.product {
  padding: var(--section-y) 0;
}

.product__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  max-height: 82vh;
  border-radius: 25px;
  overflow: hidden;
  background: #1c1a15;
}

.product__player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.product__loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: #1c1a15;
  transition: opacity 600ms ease;
}

.product__loader--hidden {
  opacity: 0;
  pointer-events: none;
}

.product__loader-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
}

.product__loader-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-3);
  min-height: 1.6em;
  text-align: center;
  padding: 0 24px;
  transition: opacity 0.4s ease;
}

.product__loader-error {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-2);
  text-align: center;
  padding: 24px;
}

/* LogoLoader — vanilla port of packages/shared/src/components/Logo/LogoLoader (size=80) */
.logo-loader {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.logo-loader__whites {
  display: flex;
  gap: 0;
  position: absolute;
  left: 8px;
  top: 14px;
}

.logo-loader__wk {
  width: 15.5px;
  height: 52px;
  border-radius: 2px;
  background: #c9a962;
  opacity: 0.5;
  transform-origin: top center;
}

.logo-loader__sep {
  position: absolute;
  top: 16px;
  height: 48px;
  width: 0.5px;
  background: rgba(185, 149, 46, 0.15);
}

.logo-loader__sep--1 {
  left: 23.5px;
}

.logo-loader__sep--2 {
  left: 39px;
}

.logo-loader__sep--3 {
  left: 54.5px;
}

.logo-loader__bk {
  position: absolute;
  top: 14px;
  width: 8px;
  height: 31px;
  border-radius: 1.5px;
  background: #111;
  transform-origin: top center;
}

.logo-loader__bk--1 {
  left: 19.5px;
}

.logo-loader__bk--2 {
  left: 35px;
}

.logo-loader__bk--3 {
  left: 50.5px;
}

.logo-loader__wk--1 {
  animation: pn-wk1 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__wk--2 {
  animation: pn-wk2 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__wk--3 {
  animation: pn-wk3 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__wk--4 {
  animation: pn-wk4 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__bk--1 {
  animation: pn-bk1 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__bk--2 {
  animation: pn-bk2 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.logo-loader__bk--3 {
  animation: pn-bk3 4.2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

/* Mobile: video + opt-in fullscreen demo */
.product__mobile {
  display: none;
}

.product__frame {
  border-radius: calc(25px - 6px);
  overflow: hidden;
  background: var(--surface);
}

.product__video {
  width: 100%;
  display: block;
  background: #000;
}

.product__mobile-cta {
  display: block;
  margin: 18px auto 0;
  padding: 13px 26px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.product__mobile-cta:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .product__player {
    display: none;
  }

  .product__mobile {
    display: block;
    padding: 8px;
  }
}

/* Mobile demo overlay — covers full viewport without using fullscreen API */
.product__fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  background: #1c1a15;
  display: none;
}

.product__fullscreen--active {
  display: block;
}

.product__fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.product__fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

/* player-embed.js hides this while the player has a full-cover overlay up.
   Needed because the `display: flex` above is an author rule and so beats the
   UA's `[hidden] { display: none }` — the attribute alone does nothing here. */
.product__fullscreen-close[hidden] {
  display: none;
}

/* --- Phone launch card (player-embed.js) ---
   Replaces the inline iframe on phones, where the player needs the whole screen.
   It fills the embed's own bordered box, so it carries no border of its own —
   just the disc, the promise, and the one thing the visitor has to do next. */
.player-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 40px 24px 32px;
  background: transparent;
  border: 0;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.player-launch__disc {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 10px var(--gold-glow);
  position: relative;
  transition: transform 0.25s var(--ease-out);
}

/* Play triangle, drawn rather than shipped as another icon */
.player-launch__disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--bg);
}

.player-launch:active .player-launch__disc {
  transform: scale(0.94);
}

.player-launch__label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
}

.player-launch__note {
  font-size: 0.8rem;
  color: var(--text-3);
}

.player-launch:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
  border-radius: var(--r-lg);
}

@media (prefers-reduced-motion: reduce) {
  .player-launch__disc {
    transition: none;
  }
}

/* Steps grid below the demo */
.product__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.product__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid rgba(201, 169, 98, 0.3);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  flex: none;
}

.product__cta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .product__steps {
    grid-template-columns: 1fr;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.split__aside {
  position: sticky;
  top: 120px;
}

.split__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 32px;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-2);
  border-left: 2px solid var(--gold);
  padding-left: 22px;
}

.quote__author {
  margin-top: 14px;
  padding-left: 24px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.quote--centered {
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}

.quote--centered .quote__text {
  border-left: 0;
  padding-left: 0;
}

/* The centred variant loses the left gold rule, so it needs its own mark to
   read as a quotation rather than stray italic copy. */
.quote__mark {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  opacity: 0.55;
}

.quote__mark .icon {
  width: 26px;
  height: 26px;
}

.quote--centered .quote__author {
  padding-left: 0;
}

.spec {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.spec__item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.spec__item:first-child {
  padding-top: 0;
}

.spec__item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.spec__item h3 .icon {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.spec__item p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split__aside {
    position: static;
  }
}

/* --- Pricing --- */
.pricing {
  padding: var(--section-y) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 32px 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 240, 232, 0.18);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #15110a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

.pricing-card__header {
  margin-bottom: 22px;
}

.pricing-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0;
}

.pricing-card__price {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.9rem;
  color: var(--text-3);
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card__per-month {
  font-size: 0.85rem;
  color: var(--text-2);
  margin: -18px 0 26px;
}

.pricing-card__per-month s {
  color: var(--text-3);
}

.pricing-card__compare {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
  vertical-align: baseline;
}

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card__features .icon {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}

.pricing-card__cancel {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}

.pricing-card--free {
  opacity: 0.85;
}

.pricing-card--gold {
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, var(--surface-3), var(--surface-2)) padding-box,
    linear-gradient(
        160deg,
        rgba(223, 194, 131, 0.9),
        rgba(201, 169, 98, 0.15) 45%,
        rgba(223, 194, 131, 0.55)
      )
      border-box;
  box-shadow: 0 24px 70px -18px rgba(201, 169, 98, 0.28);
  transform: scale(1.03);
}

.pricing-card--gold:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: transparent;
}

/* Lifetime: quiet wide strip below the grid */
.pricing-card--lifetime {
  margin-top: 22px;
  padding: 30px 36px;
}

.pricing-card--lifetime__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.pricing-card--lifetime__left h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.pricing-card--lifetime__left .pricing-card__desc {
  margin-bottom: 12px;
}

.pricing-card--lifetime__payback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--gold-light);
}

.pricing-card--lifetime__payback .icon {
  font-size: 15px;
}

.pricing-card--lifetime__right {
  text-align: center;
  flex-shrink: 0;
}

.pricing-card--lifetime__right .pricing-card__price {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.pricing-card--lifetime__right .btn {
  min-width: 180px;
}

/* Self-expiring promo strip (populated at runtime by pricing-promo.js) */
.pricing-promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 34px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 100px;
  background: rgba(201, 169, 98, 0.08);
}

.pricing-promo-strip__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.pricing-promo-strip__chip {
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15110a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-variant-numeric: tabular-nums;
}

.pricing__teacher-note {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-3);
}

.pricing__teacher-note .icon {
  color: var(--gold);
  font-size: 0.95rem;
  margin-right: 6px;
  vertical-align: -2px;
}

.pricing__teacher-note a {
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201, 169, 98, 0.35);
  padding-bottom: 1px;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.pricing__teacher-note a:hover {
  border-color: var(--gold-light);
}

/* --- FAQ --- */
.faq {
  padding: var(--section-y) 0;
}

.faq__head {
  text-align: left;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq__item.open {
  border-color: rgba(201, 169, 98, 0.32);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  padding: 21px 24px;
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq__q:hover {
  color: var(--gold-light);
}

.faq__q .icon {
  font-size: 14px;
  color: var(--text-3);
  flex-shrink: 0;
  transition:
    transform 0.35s var(--ease),
    color 0.3s var(--ease);
}

.faq__item.open .faq__q .icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq__item.open .faq__a {
  max-height: 300px;
}

.faq__a p {
  padding: 0 24px 22px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-2);
}

.faq__a a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 169, 98, 0.4);
  transition: text-decoration-color 0.2s var(--ease);
}

.faq__a a:hover {
  text-decoration-color: var(--gold-light);
}

/* --- CTA --- */
/* Full-bleed bookend, echoing the hero's photo + light language */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: clamp(90px, 13vw, 150px) var(--container-x);
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg-pic {
  display: block;
  height: 100%;
}

.cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.42) saturate(0.85);
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(10, 10, 8, 0.55) 30%,
    rgba(10, 10, 8, 0.6) 70%,
    var(--bg) 100%
  );
}

.cta__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(40% 40% at 50% 55%, rgba(201, 169, 98, 0.16), transparent 70%);
  animation: glowDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.cta__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
}

.cta__content p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(246, 242, 233, 0.8);
  margin-bottom: 32px;
}

.cta__fine {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  background: #0c0b09;
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.footer__tagline {
  font-size: 0.86rem;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 260px;
}

.footer__email {
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}

.footer__email:hover {
  color: var(--gold-light);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.87rem;
  color: var(--text-3);
  transition: color 0.25s var(--ease);
}

.footer__col a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer__heart {
  color: var(--gold);
  font-size: 0.68rem;
  margin: 0 2px;
  vertical-align: -1px;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  border-radius: var(--r-lg);
  background: rgba(23, 22, 17, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s var(--ease-out);
}

.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-2);
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Scroll reveal (script.js applies .reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

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

/* --- Cursor spotlight (pointer effects set --mx/--my from script.js) --- */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 169, 98, 0.12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.pricing-card:hover::before {
  opacity: 1;
}

/* --- Reduced motion: everything dynamic goes still --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta__glow,
  .bg-fx__orb,
  .bg-fx__frame,
  .pricing-card::before,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin: 0 auto;
  }

  .pricing-card--gold {
    transform: none;
  }

  .pricing-card--gold:hover {
    transform: translateY(-4px);
  }

  .pricing-card--lifetime {
    max-width: 430px;
    margin: 22px auto 0;
    padding: 28px 26px;
  }

  .pricing-card--lifetime__inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }

  .pricing-card--lifetime__right {
    width: 100%;
  }

  .pricing-card--lifetime__right .btn {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer__tagline {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .cta {
    min-height: 440px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .faq__a {
    transition: max-height 0.45s var(--ease);
  }
}

@keyframes glowDrift {
  from {
    transform: translate(-4%, -3%) scale(1.04);
  }
  to {
    transform: translate(4%, 4%) scale(0.99);
  }
}

@keyframes pn-wk1 {
  0% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  2% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  6% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  8% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  13% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  64% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  67% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  71% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  73% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  78% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
}

@keyframes pn-wk2 {
  0% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  5% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  8% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  12% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  14% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  19% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  39% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  42% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  46% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  48% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  53% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
}

@keyframes pn-wk3 {
  0% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  30% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  33% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  37% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  39% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  44% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  64% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  67% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  71% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  73% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  78% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  80% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  83% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  87% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  89% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  94% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
}

@keyframes pn-wk4 {
  0% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  22% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  25% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  29% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  31% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  36% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  39% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  42% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  46% {
    transform: perspective(400px) rotateX(4deg);
    opacity: 1;
  }
  48% {
    transform: perspective(400px) rotateX(2deg);
    opacity: 0.75;
  }
  53% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    opacity: 0.5;
  }
}

@keyframes pn-bk1 {
  0% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  47% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  50% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  54% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  56% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  61% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  80% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  83% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  87% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  89% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  94% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
}

@keyframes pn-bk2 {
  0% {
    transform: perspective(400px) rotateX(2deg);
    background: #7a6535;
  }
  4% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  55% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  58% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  62% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  64% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  69% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  89% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  92% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  96% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  98% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  100% {
    transform: perspective(400px) rotateX(2deg);
    background: #7a6535;
  }
}

@keyframes pn-bk3 {
  0% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  14% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  17% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  21% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  23% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  28% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  72% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  75% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  79% {
    transform: perspective(400px) rotateX(5deg);
    background: #a8894f;
  }
  81% {
    transform: perspective(400px) rotateX(3deg);
    background: #7a6535;
  }
  86% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    background: #111;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
