@font-face { font-family: "Oswald"; src: url("../fonts/Oswald-VariableFont_wght.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GeistPixel"; src: url("../fonts/GeistPixel-Regular-VariableFont_ELSH.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #002e2a;
  --ink-2: #001a17;
  --neon: #e1ff00;
  --pink: #ff37d0;
  --paper: #f5f5f0;
  --line: #0f4a43;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Manjari", "Manrope", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  padding-inline: 20px;
  overflow: hidden;
  height: 100dvh;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
.pixel { font-family: "GeistPixel", ui-monospace, monospace; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../riso-texture.webp");
  background-repeat: repeat;
  background-size: 337px 449px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 640px) {
  body::before { opacity: 0.025; }
}

.page { position: relative; z-index: 1; max-width: 1040px; margin-inline: auto; width: 100%; height: 100%; display: flex; flex-direction: column; }

main { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  flex-shrink: 0;
}
.wordmark { display: block; text-decoration: none; }
.wordmark img { display: block; height: clamp(30px, 7vw, 36px); width: auto; }
.nav-badge {
  font-family: "GeistPixel", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--paper);
  opacity: 0.8;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.nav-badge:hover { border-color: var(--neon); color: var(--neon); background: rgba(225, 255, 0, 0.08); opacity: 1; }

.story-wrap { position: relative; padding-block: 4px 16px; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.story {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}
.story::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; display: flex; flex-direction: column;
  justify-content: safe center; padding-inline: clamp(24px, 6vw, 56px); padding-block: clamp(14px, 2.5vh, 28px);
  overflow-y: auto; overflow-x: hidden;
}
.slide.centered { text-align: center; align-items: center; }

.section-kicker { font-family: "GeistPixel", monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--neon); margin: 0 0 12px; }
.kicker-pink { color: var(--pink); }
.reveal-kicker { color: var(--pink); font-size: 0.95rem; }
.beat-kicker {
  position: relative; display: inline-block; font-family: "GeistPixel", monospace; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--pink);
  padding: 8px 20px; margin: 0 0 18px;
}
.beat-kicker-border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: url(#wobbleBorder); }

.beat-line { font-family: "Oswald", "GeistPixel", monospace; font-weight: 700; color: var(--neon); font-size: clamp(2.6rem, 11vw, 7.5rem); line-height: 1.05; max-width: 14ch; margin: 0 auto; text-transform: uppercase; letter-spacing: 0.02em; filter: url(#wobbleText); }
.beat-line-md { font-family: "Oswald", "GeistPixel", monospace; font-weight: 700; color: var(--neon); font-size: clamp(1.9rem, 8vw, 4.5rem); line-height: 1.1; max-width: 16ch; margin: 0 auto; text-transform: uppercase; letter-spacing: 0.02em; filter: url(#wobbleText); }
.beat-line-md.beat-line-pink { color: var(--pink); margin: clamp(6px, 1.5vw, 12px) auto 0; font-size: clamp(1.1rem, 6vw, 3.4rem); max-width: none; }
.pink-line-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; }
.beat-emoji { width: clamp(48px, 14vw, 96px); height: auto; display: block; flex-shrink: 0; filter: url(#wobbleText); }
.beat-line.beat-line-sm { font-size: clamp(2.2rem, 9vw, 5.2rem); max-width: 18ch; }
.beat-sub { font-family: "Manjari", "Manrope", sans-serif; font-size: clamp(1.15rem, 4vw, 1.875rem); color: #fff; opacity: 1; margin: 14px auto 0; max-width: 36ch; }
.beat-sub-2 { font-family: "Manjari", "Manrope", sans-serif; font-size: clamp(1rem, 2.4vw, 1.15rem); opacity: 0.65; margin: 10px auto 0; max-width: 38ch; }
.stat-hero {
  font-family: "Oswald", "GeistPixel", monospace; font-weight: 700; color: var(--neon); line-height: 1; margin: 0;
  font-size: clamp(4rem, 17vw, 9rem);
  text-shadow: 0 0 12px rgba(225, 255, 0, 0.4);
  filter: url(#wobbleText);
}
.fine-print { font-size: 0.75rem; opacity: 0.55; margin: 22px auto 0; max-width: 42ch; }

.beat-icon { color: var(--pink); margin: 0 auto 14px; }
.beat-icon svg { width: 34px; height: 34px; display: block; }
.beat-icon img { width: 96px; height: auto; display: block; filter: url(#wobbleText); }

.reveal-title { position: relative; margin: clamp(22px, 4.5vh, 44px) 0 0; line-height: 0; }
/* No filter here: the logo SVG carries its own wobble, and the artwork is
   meant to read flat — no glow behind it. */
.reveal-title img {
  display: block;
  width: 92%;
  max-width: 470px;
  height: auto;
  margin-inline: auto;
}
.slide .reveal-tagline { font-family: "Manjari", "Manrope", sans-serif; font-weight: 400; font-size: clamp(1.2rem, 3.4vw, 1.9rem); margin: 14px 0 0; }
.hl { color: var(--pink); }
.grn { color: var(--neon); }

.slide.reveal { position: relative; }
.slide.reveal > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .slide.reveal.in-view .reveal-title { animation: neon-flicker 1.6s ease-in-out 1; }
  @keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    8% { opacity: 0.4; }
    10% { opacity: 1; }
    13% { opacity: 0.3; }
    16% { opacity: 1; }
    45% { opacity: 1; }
    47% { opacity: 0.5; }
    49% { opacity: 1; }
  }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 28px; }
.cta-row .btn { font-size: clamp(1rem, 2.2vw, 1.25rem); padding: clamp(15px, 2vw, 20px) clamp(26px, 4vw, 36px); }
.btn {
  font-family: "GeistPixel", monospace;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.15s ease;
  touch-action: manipulation;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--neon); color: var(--ink); box-shadow: 0 0 24px rgba(225, 255, 0, 0.35); }

.slide h2 {
  font-family: "GeistPixel", monospace;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  margin: 0 0 6px;
}
.slide h2.title-logo-font { font-family: "Oswald", monospace; font-weight: 600; }
.slide h2.title-accent {
  color: var(--neon); text-transform: uppercase; font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  filter: url(#wobbleTextSubtle);
}

.steps-grid {
  margin-top: 20px; width: 100%; max-width: 560px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 560px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.step-card {
  position: relative;
  background: none; border: 1.5px solid var(--neon); border-radius: 18px;
  padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  background: rgba(225, 255, 0, 0.06);
  box-shadow: 0 10px 24px -8px rgba(225, 255, 0, 0.35);
}
.step-icon-img { width: 32px; height: auto; display: block; flex-shrink: 0; }
.step-card-label { font-family: "GeistPixel", monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink); margin: 0; }
.step-card-num {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  font-family: "Oswald", monospace; font-weight: 700; color: var(--ink); line-height: 1;
  font-size: 0.72rem; margin: 0;
  background: var(--neon); width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-card-desc { color: #fff; margin: 0; font-size: 0.66rem; }
@media (min-width: 641px) {
  .steps-grid { max-width: 940px; gap: 18px; }
  .step-card { padding: 26px 18px; gap: 10px; }
  .step-icon-img { width: 52px; }
  .step-card-num { width: 28px; height: 28px; font-size: 0.9rem; top: 10px; left: 10px; }
  .step-card-label { font-size: 1.05rem; }
  .step-card-desc { font-size: 0.95rem; line-height: 1.4; }
}

.phone-frame {
  max-width: 280px; width: 100%; margin: 14px auto 0; background: var(--ink);
  border: 2px solid var(--pink); border-bottom: none; border-radius: 32px 32px 0 0;
  padding: 12px 10px 30px; box-shadow: 0 0 24px rgba(255, 55, 208, 0.25);
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phone-frame:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 0 40px rgba(255, 55, 208, 0.45), 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) { .phone-frame:hover { transform: none; } }
.phone-notch { width: 56px; height: 5px; background: var(--line); border-radius: 4px; margin: 0 auto 10px; }
.phone-status-bar {
  display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 240px;
  font-family: "GeistPixel", monospace; font-size: 0.6rem; color: var(--paper); opacity: 0.8; margin: 0 0 10px;
}
.phone-status-icons { display: flex; align-items: center; gap: 4px; }
.phone-header { width: 100%; max-width: 240px; margin: 0 0 14px; }
.phone-title {
  font-family: "Oswald", "GeistPixel", monospace; font-weight: 600; font-size: 1.05rem; color: var(--neon);
  margin: 0 0 2px; text-align: center;
}
.phone-subtitle {
  font-family: "Manjari", "Manrope", sans-serif; font-size: 0.72rem; line-height: 1.3;
  color: var(--paper); opacity: 0.6; text-align: center; margin: 0;
}
.match-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px; }
.match-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.match-row .info { flex: 1; min-width: 0; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: "GeistPixel", monospace; font-size: 0.95rem;
  color: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-row h4 { margin: 0; font-family: "GeistPixel", monospace; font-size: 0.8rem; }
.match-row .course { font-size: 0.66rem; color: var(--paper); opacity: 0.6; }
.match-pct {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(225, 255, 0, 0.12); border-radius: 12px; padding: 4px 8px; line-height: 1.1;
}
.match-pct-num { font-family: "GeistPixel", monospace; font-size: 0.72rem; color: var(--neon); }
.match-pct-label { font-family: "GeistPixel", monospace; font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--neon); opacity: 0.7; }

.phone-tabbar {
  display: flex; align-items: center; justify-content: space-around; width: 100%; max-width: 260px;
  margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
}
.phone-tab { width: 20px; height: 20px; color: var(--paper); opacity: 0.4; }
.phone-tab svg { width: 100%; height: 100%; display: block; }
.phone-tab-active { color: var(--neon); opacity: 1; }

.value-line {
  font-size: clamp(1.4rem, 4.4vw, 3.4rem); width: 100%; max-width: 44ch; line-height: 1.22;
}
.value-line em { font-style: normal; color: var(--pink); }
.value-icon img { width: clamp(48px, 7vw, 80px); }
.value-cta { margin-top: clamp(12px, 2vh, 22px); }

.question { display: grid; gap: 18px; width: 100%; max-width: 420px; margin-inline: auto; text-align: left; }
.question-label { font-family: "GeistPixel", monospace; font-size: clamp(1.1rem, 2.8vw, 1.4rem); font-weight: 400; margin: 0; }
.question input, .question textarea {
  font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--ink); color: var(--paper); width: 100%;
}
.question textarea { resize: vertical; min-height: 64px; }
.question input:focus, .question textarea:focus { border-color: var(--neon); }
.question .hint { font-size: 0.78rem; color: var(--paper); opacity: 0.55; font-weight: 400; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font: inherit; font-size: 0.95rem; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--ink); color: var(--paper); cursor: pointer;
  touch-action: manipulation; min-height: 44px;
}
.pill[aria-pressed="true"] { border-color: var(--neon); color: var(--neon); background: rgba(225, 255, 0, 0.08); }

.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.step-note { font-size: 0.82rem; color: var(--paper); opacity: 0.6; background: none; border: none; padding: 14px 8px; margin: -14px -8px; cursor: pointer; font-family: "Manjari", "Manrope", sans-serif; touch-action: manipulation; }

.confirm {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  width: 100%; max-width: 440px; margin-inline: auto; position: relative;
  container-type: inline-size;
}
.confirm > * { position: relative; z-index: 1; }
.confirm-glow {
  position: absolute; inset: 0; margin: auto; width: 70%; max-width: 320px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(225, 255, 0, 0.25), transparent 70%);
  filter: blur(36px); pointer-events: none; z-index: 0;
}
.confirm-badge {
  display: flex; align-items: center; justify-content: center; font-size: 3.2rem; line-height: 1; margin: 0 0 2px;
  filter: drop-shadow(0 0 16px rgba(225, 255, 0, 0.5));
  animation: badge-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.confirm-badge span { transform: translateY(-0.05em); }
@keyframes badge-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .confirm-badge { animation: none; } }
.confirm-title {
  font-family: "Oswald", "GeistPixel", monospace; font-weight: 700; text-transform: uppercase;
  color: var(--neon); font-size: clamp(1.2rem, 10cqw, 3rem); line-height: 1.02; margin: 4px 0 14px;
  letter-spacing: -0.005em; white-space: nowrap;
  text-shadow: 0 0 8px rgba(225, 255, 0, 0.55), 0 0 28px rgba(225, 255, 0, 0.3);
  filter: url(#wobbleTextSubtle);
}
.confirm-copy { color: var(--paper); opacity: 0.85; margin: 0; max-width: 38ch; font-size: 1.02rem; }
.confirm-copy-2 { margin-top: 12px; }
.form-error { font-family: "Manjari", "Manrope", sans-serif; font-size: 1rem; color: var(--pink); margin-top: 10px; }

.consent-title { margin-bottom: 4px; }
.consent-row {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-family: "Manjari", "Manrope", sans-serif; font-size: 0.8rem; line-height: 1.4;
  color: var(--paper); text-align: left; margin-top: 4px;
}
.consent-row input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--neon); cursor: pointer;
}
.consent-row strong { color: var(--neon); font-weight: 700; }
.consent-row a { color: var(--pink); }
#consent-error { margin-top: 4px; }

.rep-card {
  margin-top: 8px; padding: 18px 18px; border: none; border-radius: 6px;
  background: var(--paper); color: var(--ink); text-align: left; width: 100%;
  position: relative; transform: rotate(-1.2deg);
  box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.08);
}
.rep-card::before {
  content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(0, 46, 42, 0.25);
  border-radius: 3px; pointer-events: none;
}
.rep-kicker { color: #c0158f; margin: 0 0 4px; opacity: 1; }
.rep-title { font-family: "GeistPixel", monospace; color: var(--ink); font-size: 1rem; margin: 0 0 6px; }
.rep-copy { color: var(--ink); opacity: 0.75; font-size: 0.82rem; margin: 0 0 10px; line-height: 1.4; }
.rep-copy strong { color: #c0158f; opacity: 1; }
.referral-link-row { display: flex; gap: 8px; }
.referral-link-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.referral-link-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #c0158f; width: 16px; height: 16px; pointer-events: none;
}
.referral-link-input {
  width: 100%; font: inherit; font-size: 0.8rem; padding: 12px 14px 12px 34px;
  border-radius: 10px; border: 1.5px solid rgba(0, 46, 42, 0.25);
  background: rgba(0, 46, 42, 0.04); color: var(--ink);
}
.referral-copy-btn { flex-shrink: 0; font-size: 0.85rem; padding: 12px 18px; transition: background 0.15s ease, color 0.15s ease; }
.referral-copy-btn.copied { background: var(--pink); color: #fff; box-shadow: none; }

.story-progress { height: 6px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 14px; }
.story-progress-fill { height: 100%; background: var(--pink); border-radius: 2px; width: 6.6%; transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .story-progress-fill, .story { transition: none; scroll-behavior: auto; } }
.story-caption { text-align: center; font-family: "GeistPixel", monospace; font-size: 0.76rem; opacity: 0.55; margin: 8px 0 0; min-height: 1.1em; }

.story-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-2); border: 1.5px solid var(--neon); color: var(--neon);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
}
.story-prev { left: 6px; }
.story-next { right: 6px; }
@media (max-width: 640px) {
  .story-arrow { width: 44px; height: 44px; }
  .story-prev { left: 2px; }
  .story-next { right: 2px; }

  .slide { padding-inline: 58px; }

  .beat-line, .beat-line-md, .beat-emoji, .beat-icon img, .stat-hero, .confirm-title, .slide h2.title-accent {
    filter: url(#wobbleTextMobile);
  }

  .referral-link-row { flex-direction: column; }
  .referral-copy-btn { width: 100%; }
}

.dev-skip-btn {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 50;
  font-family: "GeistPixel", monospace; font-size: 0.7rem;
  background: #ff9900; color: #1a1200; border: none; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

footer {
  padding-block: 18px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer-text { margin: 0; color: #fff; font-size: 0.68rem; opacity: 0.7; white-space: nowrap; }
.footer-legal { display: flex; gap: 14px; margin: 0; margin-left: auto; }
.footer-legal a { color: #fff; opacity: 0.55; font-size: 0.68rem; text-decoration: underline; white-space: nowrap; }
.footer-legal a:hover { opacity: 0.9; }

@media (max-width: 640px) {
  footer { flex-direction: column; justify-content: center; text-align: center; }
  .footer-text, .footer-legal a { white-space: normal; }
  .footer-legal { margin-left: 0; justify-content: center; }
}
