/* ==========================================================================
   67Client — public pages
   ========================================================================== */

/* ============================================================ homepage walk */

.home-page { background: #0c080e; }
.home-page .nav { position: fixed; left: 0; right: 0; }

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #120b13;
  pointer-events: none;
}

.stage__poster,
.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.stage__video { opacity: 0; transition: opacity 0.8s var(--ease); }
.stage.is-playing .stage__video { opacity: 1; }

.stage__shade { position: absolute; inset: 0; }

.shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.stage__shade[data-active="hero"] .shade--hero,
.stage__shade[data-active="left"] .shade--left,
.stage__shade[data-active="right"] .shade--right,
.stage__shade[data-active="center"] .shade--center,
.stage__shade[data-active="gui"] .shade--gui,
.stage__shade[data-active="finale"] .shade--finale { opacity: 1; }

.stage__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 7, 14, 0.55) 0%, rgba(12, 7, 14, 0) 16%, rgba(12, 7, 14, 0) 78%, rgba(12, 7, 14, 0.45) 100%);
}

.shade--hero { background: radial-gradient(62% 58% at 50% 50%, rgba(14, 7, 16, 0.66) 0%, rgba(14, 7, 16, 0.38) 55%, rgba(14, 7, 16, 0.06) 100%), linear-gradient(0deg, rgba(14, 7, 16, 0.5) 0%, rgba(14, 7, 16, 0) 34%); }
.shade--left { background: linear-gradient(90deg, rgba(14, 7, 16, 0.72) 0%, rgba(14, 7, 16, 0.35) 40%, rgba(14, 7, 16, 0) 66%); }
.shade--right { background: linear-gradient(270deg, rgba(14, 7, 16, 0.72) 0%, rgba(14, 7, 16, 0.35) 40%, rgba(14, 7, 16, 0) 66%); }
.shade--center { background: radial-gradient(90% 80% at 50% 55%, rgba(14, 7, 16, 0.62) 0%, rgba(14, 7, 16, 0.4) 55%, rgba(14, 7, 16, 0.66) 100%); }
.shade--gui { background: linear-gradient(180deg, rgba(14, 7, 16, 0.5) 0%, rgba(14, 7, 16, 0) 26%); }
.shade--finale { background: linear-gradient(90deg, rgba(14, 7, 16, 0.7) 0%, rgba(14, 7, 16, 0.3) 36%, rgba(14, 7, 16, 0) 58%), linear-gradient(0deg, rgba(14, 7, 16, 0.4) 0%, rgba(14, 7, 16, 0) 40%); }

/* The name tag above 67skibidi, drawn the way Minecraft draws one. */
.stage__tag {
  position: absolute;
  left: var(--tx, 56%);
  top: var(--ty, 58%);
  padding: 5px 10px 4px;
  transform: translate(-50%, -100%) translateY(-10px);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  opacity: 0;
  white-space: nowrap;
}

/* chapters */
.story { position: relative; z-index: 1; }

.scene { position: relative; height: var(--h, 200vh); }

.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  overflow: hidden;
}

.scene__frame {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: var(--nav-h);
  padding-bottom: 32px;
}

.scene__frame--left { justify-content: flex-start; }
.scene__frame--right { justify-content: flex-end; }
.scene__frame--center { flex-direction: column; justify-content: center; text-align: center; gap: 24px; }
.scene__frame--top { align-items: flex-start; padding-top: calc(var(--nav-h) + 22px); }
.scene__frame--low { align-items: flex-end; padding-bottom: clamp(48px, 9vh, 110px); }

/* With the walk running, cards fade with their chapter; without it they simply sit in the page. */
.story-ready .scene__frame,
.story-ready .scene .scroll-cue,
.story-ready .scene .gui-caption {
  opacity: var(--fade, 1);
  transform: translateY(calc((1 - var(--fade, 1)) * 26px));
  will-change: opacity, transform;
}

.story-ready .scene:not(.is-live) .scene__frame,
.story-ready .scene:not(.is-live) .gui-caption { visibility: hidden; }

/* hero: centred in the first screen */
.hero { display: grid; justify-items: center; gap: 18px; max-width: 1040px; margin: 0 auto; text-align: center; }
.scene--hero .scene__frame { align-items: center; justify-content: center; padding-bottom: 72px; }

.hero__mark { width: clamp(150px, 15vw, 220px); height: auto; filter: drop-shadow(0 8px 28px rgba(10, 4, 12, 0.5)); }

.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: 0.94;
  text-shadow: 0 4px 30px rgba(10, 4, 12, 0.45);
}

.hero__title span { display: block; color: var(--pink-2); text-shadow: 0 0 36px rgba(255, 79, 168, 0.45), 0 4px 30px rgba(10, 4, 12, 0.4); }

.hero__lede { max-width: 54ch; margin-inline: auto; color: rgba(255, 244, 250, 0.88); font-size: clamp(1.02rem, 1.3vw, 1.18rem); text-shadow: 0 2px 18px rgba(10, 4, 12, 0.6); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.finale .hero__cta { justify-content: flex-start; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  translate: -50% 0;
  white-space: nowrap;
  color: rgba(255, 244, 250, 0.82);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: auto;
}

.scroll-cue__mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 244, 250, 0.7);
  border-radius: 12px;
}

.scroll-cue__mouse i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--pink-2);
  animation: wheel 1.8s var(--ease) infinite;
}

@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* story cards */
.story-card {
  display: grid;
  gap: 16px;
  width: min(100%, 540px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-xl);
}

.story-card--wide { width: min(100%, 620px); }
.story-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.story-card__lede { color: var(--text-2); font-size: 1.02rem; }
.story-card__lede b { color: var(--pink-2); font-family: var(--font-display); font-weight: 400; font-size: 1.3em; }

.feature-list { display: grid; gap: 4px; padding: 0; margin-top: 4px; list-style: none; }

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  opacity: 0.25;
  transform: translateX(-8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.feature-list li.is-on { opacity: 1; transform: none; }
.feature-list__n { color: var(--pink-2); font-family: var(--font-pixel); font-size: 0.78rem; padding-top: 3px; }
.feature-list h3 { margin-bottom: 4px; font-size: 1.02rem; }
.feature-list p { color: var(--text-2); font-size: 0.95rem; }
html:not(.story-ready) .feature-list li { opacity: 1; transform: none; }

/* GUI chapter: the footage shows the real GUI; the caption keeps out of its way.
   Without room beside the GUI it runs along the bottom of the screen. */
.gui-caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 74px;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 560px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(14, 8, 17, 0.66);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow-2);
  container-type: inline-size;
  pointer-events: auto;
}

/* Docked beside both GUIs; story.js measures the slot from the recording. */
.gui-caption.is-docked {
  left: var(--slot-x);
  right: auto;
  top: var(--slot-y);
  bottom: auto;
  width: var(--slot-w);
  margin: 0;
  padding: clamp(16px, 1.5vw, 22px);
  transform: translateY(-50%);
}

.story-ready .gui-caption.is-docked { transform: translateY(calc(-50% + (1 - var(--fade, 1)) * 26px)); }

.gui-caption h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.gui-caption p { color: var(--text-2); font-size: 0.94rem; }
.gui-caption .eyebrow kbd { margin-left: 2px; color: var(--text); }
/* Along the bottom it stays short, so it hides as little of the GUI as possible. */
.gui-caption:not(.is-docked) p { display: none; }

.gui-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.gui-switch__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--blossom-hi), var(--blossom-lo));
  box-shadow: 0 6px 18px -8px rgba(255, 170, 210, 0.8);
  transition: transform 0.45s var(--ease);
}

[data-gui="dropdown"] .gui-switch__thumb { transform: translateX(100%); }

.gui-switch__opt {
  position: relative;
  padding: 10px 8px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s;
}

.gui-switch__opt:hover { color: var(--text); }

[data-gui="panel"] [data-gui-opt="panel"],
[data-gui="dropdown"] [data-gui-opt="dropdown"] { color: var(--blossom-ink); }

/* A narrow slot stacks the two options. */
@container (max-width: 300px) {
  .gui-switch { grid-template-columns: 1fr; }
  .gui-switch__thumb { right: 4px; bottom: auto; width: auto; height: calc(50% - 4px); }
  [data-gui="dropdown"] .gui-switch__thumb { transform: translateY(100%); }
}

/* categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

.category {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

a.category:hover { background: rgba(255, 79, 168, 0.12); border-color: rgba(255, 146, 204, 0.4); transform: translateY(-2px); }
.category__icon { width: 22px; height: 22px; color: var(--pink-2); }
.category__icon svg { width: 100%; height: 100%; }
.category strong { font-family: var(--font-display); font-weight: 400; font-size: 0.86rem; letter-spacing: 0.05em; }
.category__count { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.72rem; }

.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee__item { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; }
.marquee__item::before { content: "+ "; color: var(--pink-2); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* steps */
.steps { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: none; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.steps__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 146, 204, 0.45);
  border-radius: 9px;
  background: var(--pink-a16);
  color: var(--pink-2);
  font-family: var(--font-pixel);
  font-size: 0.82rem;
}
.steps h3 { font-size: 0.98rem; margin-bottom: 3px; }
.steps p { color: var(--text-2); font-size: 0.93rem; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.reviews--compact { grid-template-columns: 1fr; gap: 10px; }
.review { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.reviews--compact .review { padding: 14px 16px; background: rgba(255, 255, 255, 0.05); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 38px; height: 38px; flex: none; border-radius: 10px; background: linear-gradient(135deg, var(--pink), #7b3cff); object-fit: cover; }
.review__name { color: var(--text); font-weight: 600; }
.review__meta { color: var(--text-3); font-size: 0.84rem; }
.review p { color: var(--text-2); font-size: 0.95rem; }
.review-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 0.92rem; }
.review-summary .stars svg { width: 18px; height: 18px; }

/* plans */
.pricing-head { display: grid; gap: 10px; justify-items: center; max-width: 640px; }
.pricing-head p { color: var(--text-2); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; width: 100%; text-align: left; }
.plan-skeleton { min-height: 380px; }

.plan {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgba(16, 9, 19, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: var(--shadow-3);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.plan:hover { transform: translateY(-4px); border-color: var(--line-3); }

.plan::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 146, 204, 0.12), transparent 60%);
  pointer-events: none;
}

.plan--highlight {
  border-color: rgba(255, 146, 204, 0.55);
  background: linear-gradient(180deg, rgba(255, 79, 168, 0.18), rgba(16, 9, 19, 0.66) 46%);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 79, 168, 0.18), 0 30px 80px -40px rgba(255, 31, 143, 0.7);
}

/* The big faint 30 / ∞ sits low on the right, clear of the name and the badge. */
.plan__glyph {
  position: absolute;
  right: 14px;
  bottom: 92px;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 1;
  pointer-events: none;
}

.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.plan__name { color: var(--text); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; }
.plan__badge { flex: none; padding: 6px 11px; line-height: 1; border-radius: 999px; background: var(--blossom); color: var(--blossom-ink); font-family: var(--font-pixel); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 0 18px rgba(255, 195, 221, 0.45); }
.plan__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__price b { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; letter-spacing: 0.01em; line-height: 1; }
.plan__price b.is-blank { color: var(--text-3); }
.plan__price span { color: var(--text-3); font-size: 0.86rem; }
.plan__tagline { color: var(--text-2); }
.plan__features { display: grid; gap: 9px; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.94rem; }
.plan__features svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--pink-2); }
/* Long labels ("You already have lifetime access") wrap and stay centred inside the card. */
.plan > * { min-width: 0; }
.plan__foot { margin-top: 4px; }
.plan__foot .btn { height: auto; min-height: 54px; padding: 12px 18px; line-height: 1.3; white-space: normal; text-align: center; }
.plan__foot .btn:disabled { font-size: 0.78rem; }
.plan .price-note { margin-top: 10px; text-align: left; }

.price-note { max-width: 720px; margin-inline: auto; color: var(--text-3); font-size: 0.84rem; line-height: 1.6; }

/* finale */
.finale { display: grid; gap: 16px; max-width: 560px; }
.finale h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); text-shadow: 0 4px 30px rgba(10, 4, 12, 0.45); }
.finale p { color: rgba(255, 244, 250, 0.88); font-size: 1.08rem; text-shadow: 0 2px 18px rgba(10, 4, 12, 0.6); }

/* progress rail */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 40;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
  transition: opacity 0.4s var(--ease);
}

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

.rail a {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  background: rgba(14, 7, 16, 0.4);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.rail a span {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(14, 7, 16, 0.75);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.2s, transform 0.25s var(--ease);
  pointer-events: none;
}

.rail a:hover span,
.rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail a:hover { border-color: #fff; }
.rail a.is-active { background: var(--blossom); border-color: #fff; transform: rotate(45deg) scale(1.1); box-shadow: 0 0 14px rgba(255, 195, 221, 0.8); }
.rail a.is-active span { transform: rotate(-45deg) translate(0, -50%); transform-origin: right center; }

/* ================================================================= pages */

.page { position: relative; z-index: 1; }

.page-hero { position: relative; padding: calc(var(--nav-h) * 0.4 + 56px) 0 40px; }

/* A soft dark pool behind the heading keeps it readable over bright sky. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: -12% 0 -24%;
  z-index: -1;
  background: radial-gradient(56% 72% at 24% 58%, rgba(12, 7, 14, 0.62), rgba(12, 7, 14, 0) 72%);
  pointer-events: none;
}

.page-hero--center::before { background: radial-gradient(46% 72% at 50% 58%, rgba(12, 7, 14, 0.6), rgba(12, 7, 14, 0) 72%); }

.page-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-hero__copy { display: grid; gap: 16px; max-width: 720px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); text-shadow: 0 4px 30px rgba(10, 4, 12, 0.5); }
.page-hero p { color: rgba(255, 242, 249, 0.9); font-size: 1.08rem; max-width: 60ch; text-shadow: 0 1px 2px rgba(10, 4, 12, 0.7), 0 2px 18px rgba(10, 4, 12, 0.7); }
.page-hero--center .page-hero__inner { flex-direction: column; align-items: center; text-align: center; }
.page-hero--center .page-hero__copy { justify-items: center; }
.page-body { padding-top: 8px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.35);
  backdrop-filter: blur(var(--blur)) saturate(1.35);
}

.cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* modules page */
.library-stamp {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: right;
}

.library-stamp strong { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 3.2rem; line-height: 1; }
.library-stamp span { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.library-shell { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }

.library-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
}

.library-sidebar__label { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.module-categories { display: grid; gap: 4px; }

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-align: left;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab svg { width: 18px; height: 18px; color: var(--text-3); }
.tab b { margin-left: auto; color: var(--text-3); font-family: var(--font-pixel); font-weight: 400; font-size: 0.7rem; }
.tab:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.tab.is-active { border-color: rgba(255, 146, 204, 0.4); background: linear-gradient(90deg, rgba(255, 79, 168, 0.22), rgba(255, 79, 168, 0.06)); color: #fff; }
.tab.is-active svg { color: var(--pink-2); }

.library-sidebar__note { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.84rem; }
.library-sidebar__note strong { display: block; margin-bottom: 4px; color: var(--text-2); font-size: 0.86rem; }

.library-results { display: grid; gap: 12px; min-width: 0; }
.module-toolbar { display: flex; align-items: center; gap: 12px; }

.module-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.module-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }

.module-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(14, 8, 17, 0.6);
  color: var(--text);
  outline: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-search input:focus { border-color: rgba(255, 146, 204, 0.6); box-shadow: 0 0 0 4px rgba(255, 79, 168, 0.14); }
.module-count { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.72rem; white-space: nowrap; }

.library-filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.risk-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.risk-filter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(14, 8, 17, 0.55);
  color: var(--text-2);
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.risk-filter small { display: none; }
.risk-filter__line { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; }
.risk-filter__line i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px currentColor; }
.risk-filter strong { color: var(--text-3); font-family: var(--font-pixel); font-weight: 400; font-size: 0.72rem; }
.risk-filter--risk .risk-filter__line i { background: var(--warn); }
.risk-filter--detected .risk-filter__line i { background: var(--danger); }
.risk-filter--unrated .risk-filter__line i { background: var(--text-3); }
.risk-filter:hover, .risk-filter.is-active { border-color: rgba(255, 146, 204, 0.45); background: rgba(255, 79, 168, 0.12); }

.clear-filters { margin-left: auto; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--pink-2); font-size: 0.86rem; font-weight: 600; }
.clear-filters:disabled { color: var(--text-4); cursor: default; }

.module-list { display: grid; gap: 8px; }
.module-list__loading { display: grid; gap: 8px; }
.module-list__loading span { height: 74px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); animation: breathe 1.4s ease-in-out infinite alternate; }

@keyframes breathe { to { opacity: 0.45; } }

.module-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 9, 19, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--module-i, 0) * 22ms);
  transition: border-color 0.2s, background 0.2s;
}

.module-row:hover { border-color: rgba(255, 146, 204, 0.35); background: rgba(26, 14, 30, 0.7); }
.module-row__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--pink-a10); color: var(--pink-2); }
.module-row__icon svg { width: 22px; height: 22px; }
.module-row__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.module-row__title strong { font-family: var(--font-display); font-weight: 400; font-size: 0.96rem; letter-spacing: 0.04em; }
.module-row__title span { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
.module-row p { color: var(--text-2); font-size: 0.92rem; }

.det { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid rgba(114, 232, 168, 0.3); border-radius: 999px; background: var(--ok-a); color: var(--ok); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.det__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.det--risk { border-color: rgba(255, 208, 106, 0.3); background: var(--warn-a); color: var(--warn); }
.det--detected { border-color: rgba(255, 115, 145, 0.35); background: var(--danger-a); color: var(--danger); }
.det--unrated { border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-3); }

/* pricing page */
.pricing-section--page { padding-top: 10px; }
.pricing-assurance { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 14px; color: var(--text-2); font-size: 0.92rem; }
.pricing-assurance span { display: inline-flex; align-items: center; gap: 9px; }
.pricing-assurance svg { width: 18px; height: 18px; color: var(--pink-2); }
.plan-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.plan-notes > div { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.plan-notes strong { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }
.plan-notes span { color: var(--text-2); font-size: 0.92rem; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }

.faq details {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color 0.2s, background 0.2s;
}

.faq details[open] { border-color: rgba(255, 146, 204, 0.4); background: rgba(22, 12, 26, 0.68); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-right: 2px solid var(--pink-2);
  border-bottom: 2px solid var(--pink-2);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq__body { padding: 0 20px 18px; color: var(--text-2); line-height: 1.7; }

.faq-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 26px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(140, 150, 255, 0.35);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.2), rgba(18, 11, 21, 0.6));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.faq-ask strong { display: block; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }
.faq-ask span { color: var(--text-2); }

/* setup */
.setup-specs { display: flex; gap: 10px; padding: 0; list-style: none; flex-wrap: wrap; }
.setup-specs li { display: grid; gap: 4px; min-width: 120px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.setup-specs span { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.setup-specs strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin-top: 22px; list-style: none; }

.how__step {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
}

.how__art { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.how__art svg { width: 100%; height: auto; }
.how__num { color: var(--pink-2); font-family: var(--font-pixel); font-size: 0.78rem; }
.how__body { display: grid; gap: 6px; }
.how__body p { color: var(--text-2); font-size: 0.94rem; }

.art-panel { fill: rgba(26, 15, 30, 0.95); stroke: rgba(255, 255, 255, 0.1); }
.art-head { fill: rgba(38, 22, 44, 0.95); }
.art-screen { fill: url(#none); fill: rgba(255, 255, 255, 0.02); }
.art-dim { fill: rgba(255, 255, 255, 0.2); }
.art-line { fill: rgba(255, 255, 255, 0.45); }
.art-dimline { fill: rgba(255, 255, 255, 0.2); }
.art-accent { fill: var(--pink); }
.art-accent-soft { fill: rgba(255, 79, 168, 0.25); }
.art-accent-stroke { fill: none; stroke: var(--pink-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-ink { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-btn-text, .art-file-text, .art-key-text { fill: #fff; font-family: var(--font-pixel); font-size: 11px; }
.art-path { fill: rgba(255, 255, 255, 0.6); font-family: var(--font-pixel); font-size: 11px; }
.art-file { fill: rgba(255, 255, 255, 0.12); stroke: rgba(255, 255, 255, 0.4); }
.art-menu { fill: rgba(18, 10, 21, 0.96); stroke: rgba(255, 255, 255, 0.14); }
.art-row { fill: rgba(255, 255, 255, 0.07); }
.art-on { fill: var(--pink-2); }
.art-off { fill: rgba(255, 255, 255, 0.3); }
.art-keycap { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.4); }
.art-drop { animation: drop 2.6s var(--ease) infinite; }
.art-slide { animation: slide 2.6s var(--ease) infinite; }
.art-pop { transform-origin: 78px 75px; animation: popin 2.6s var(--ease) infinite; }
.art-key { animation: press 2.6s var(--ease) infinite; transform-origin: 171px 77px; }

@keyframes drop { 0%, 20% { transform: translateY(-14px); opacity: 0; } 45%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes slide { 0%, 15% { transform: translateY(-6px); } 55%, 85% { transform: translateY(42px); } 100% { transform: translateY(42px); opacity: 0; } }
@keyframes popin { 0%, 30% { transform: scale(0.8); opacity: 0; } 50%, 90% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes press { 0%, 18% { transform: none; } 24% { transform: scale(0.92); } 30%, 100% { transform: none; } }

.setup-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.setup-notes > div { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.setup-notes strong { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }
.setup-notes span { color: var(--text-2); font-size: 0.93rem; }
.setup-faq { margin-top: 14px; max-width: none; }

/* changelog */
.timeline { display: grid; gap: 14px; max-width: 860px; }
.release { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.release__head { display: flex; align-items: center; gap: 12px; }
.release__version { padding: 4px 10px; border-radius: 8px; background: var(--pink-a16); color: var(--pink-2); font-family: var(--font-pixel); font-size: 0.78rem; }
.release__date { color: var(--text-3); font-size: 0.88rem; }
.release ul { display: grid; gap: 6px; padding-left: 1.2em; color: var(--text-2); }

/* login */
.auth { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; min-height: calc(100vh - var(--nav-h) - 80px); padding: 40px 0 72px; }
.auth__intro { display: grid; gap: 16px; }
.auth__intro h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); text-shadow: 0 4px 30px rgba(10, 4, 12, 0.5); }
.auth__intro > p { color: var(--text-2); font-size: 1.08rem; max-width: 50ch; }
.auth__list { display: grid; gap: 10px; padding: 0; margin-top: 8px; list-style: none; }
.auth__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(14, 8, 17, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--text-2); }
.auth__list svg { width: 22px; height: 22px; flex: none; color: var(--pink-2); margin-top: 2px; }
.auth__list strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 400; letter-spacing: 0.04em; }

.auth__card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: rgba(16, 9, 19, 0.66);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: var(--shadow-3);
}

.auth__mark { width: 86px; height: 45px; background: url("/assets/img/logo-67-blossom-md.webp") center / contain no-repeat; filter: drop-shadow(0 6px 18px rgba(10, 4, 12, 0.45)); }
.auth__card h2 { font-size: 1.9rem; }
.auth__methods { display: grid; gap: 10px; }
.auth__note, .auth__hint { color: var(--text-3); font-size: 0.88rem; }
.auth__note a { color: var(--pink-2); text-decoration: underline; }

/* legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.legal__nav { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.legal__nav a { padding: 9px 11px; border-radius: 9px; color: var(--text-2); font-size: 0.92rem; }
.legal__nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.legal__nav a[aria-current="page"] { background: var(--pink-a16); color: #fff; }
.legal__nav .legal__withdraw { margin-top: 8px; color: var(--text); }
.legal__body { padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: rgba(16, 9, 19, 0.72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.legal-meta { color: var(--text-3); font-family: var(--font-pixel); font-size: 0.72rem; letter-spacing: 0.06em; }

/* withdraw */
.withdraw-card { display: grid; gap: 16px; max-width: 640px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: rgba(16, 9, 19, 0.7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.withdraw-card__status { color: var(--text-2); }
.withdraw-card__form { display: grid; gap: 14px; }
.withdraw-card__foot { color: var(--text-3); font-size: 0.88rem; }

/* 404 */
.notfound { position: relative; display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 120px); padding: 60px 0; text-align: center; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 52% at 50% 50%, rgba(12, 7, 14, 0.62), rgba(12, 7, 14, 0) 75%); pointer-events: none; }
.notfound p { text-shadow: 0 1px 2px rgba(10, 4, 12, 0.7), 0 2px 18px rgba(10, 4, 12, 0.7); }
.notfound .container { display: grid; gap: 14px; justify-items: center; }
.notfound__code { color: transparent; font-family: var(--font-display); font-size: clamp(6rem, 22vw, 14rem); line-height: 0.85; -webkit-text-stroke: 2px rgba(255, 146, 204, 0.75); filter: drop-shadow(0 0 30px rgba(255, 79, 168, 0.45)); }
.notfound p { color: var(--text-2); }

/* ============================================================== responsive */

@media (max-width: 1100px) {
  .rail { display: none; }
}

@media (max-width: 960px) {
  .library-shell { grid-template-columns: 1fr; }
  .library-sidebar { position: static; }
  .module-categories { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .how, .setup-notes, .plan-notes { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 760px) {
  /* On phones the chapters flow normally; the walk still follows the scroll. */
  .scene { height: auto; min-height: 100vh; }
  .scene--gui { min-height: 180vh; }
  .scene--finale { min-height: 150vh; }
  .scene__sticky { position: relative; height: auto; min-height: 100vh; overflow: visible; }
  .scene--gui .scene__sticky { position: sticky; height: 100vh; min-height: 0; }
  .scene--finale .scene__sticky { position: sticky; height: 100vh; min-height: 0; }
  .scene__frame { height: auto; min-height: 100vh; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 40px; }
  .scene--finale .scene__frame { min-height: 0; height: 100%; }
  /* The sky holds the words, so 67skibidi stays in view below them. */
  .scene--finale .scene__frame { align-items: flex-start; padding-top: calc(var(--nav-h) + 28px); }
  .story-ready .scene:not(.is-live) .scene__frame { visibility: visible; }
  .story-ready .scene__frame { opacity: 1; transform: none; }
  .scene--finale .scene__frame { opacity: var(--fade, 1); }
  .story-card, .story-card--wide { width: 100%; padding: 22px; }
  .plans { grid-template-columns: 1fr; }
  .scene--pricing .scene__frame { text-align: left; }
  .pricing-head { justify-items: start; }
  .scroll-cue { display: none; }
  .gui-caption { bottom: 66px; padding: 16px; }
  .gui-caption p { display: none; }
  .module-row { grid-template-columns: 38px 1fr; }
  .module-row__status { grid-column: 2; }
  .module-toolbar { flex-wrap: wrap; }
}
