/* 
  CRUSH404 - HACK UI (knife-edge)
  v2026-02-13-scroll-fix + result-compact
*/

:root {
  --bg0: #11020a;
  --bg1: #1a0310;
  --fg: #EDEEEE;
  --fg2: rgba(237, 238, 238, 0.78);
  --muted: rgba(237, 238, 238, 0.50);
  --line: rgba(255, 255, 255, 0.14);
  --line2: rgba(255, 255, 255, 0.09);
  --accent: #ff00dd;
  --accentRgb: 255, 0, 221;
  --radius: 0px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 900px at 18% 0%, rgba(var(--accentRgb), 0.04), transparent 62%),
    radial-gradient(900px 700px at 98% 16%, rgba(255,255,255, 0.03), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--fg);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 18px;

  /* FIX: Allow vertical scrolling on mobile */
  overflow-x: hidden;
  overflow-y: auto;
}

/* scanlines + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0px, rgba(255,255,255,.018) 1px, transparent 1px, transparent 6px);
  opacity: 1;
  mix-blend-mode: normal;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: -20vh;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 22% 10%, rgba(var(--accentRgb), 0.10), transparent 62%),
    radial-gradient(520px 340px at 86% 18%, rgba(var(--accentRgb), 0.06), transparent 70%),
    radial-gradient(closest-side, rgba(0,0,0,0) 54%, rgba(0,0,0,0.58) 100%);
  opacity: 0.86;
  z-index: 0;
}

a { color: inherit; }

.wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* --- SCREENS --- */
.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 0 5vw;
}

.screen[data-active="true"] {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- TOP BAR --- */
.topbar {
  flex: 0 0 72px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line2);
  background: transparent;
}

/* --- MAIN BLOCKS --- */
.block, .result {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  min-height: 0;
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  flex: 0 0 60px;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  color: rgba(237, 238, 238, 0.58);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 20px 0;
}
.footer a { color: rgba(237, 238, 238, 0.58); text-decoration: none; }
.footer a:hover { color: var(--fg2); }
.dot { opacity: 0.6; }

/* --- TYPO / KICKERS --- */
.kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(237, 238, 238, 0.58);
  font-weight: 700;
}
.kicker-title, .kicker-strong { color: rgba(var(--accentRgb), 0.9); }

/* --- LINKS / BUTTONS --- */
.link {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(237, 238, 238, 0.58);
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.link:hover {
  color: var(--fg2);
  border-color: rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg2);
  transition: all 0.18s ease;
}
a.btn, a.btn:hover { text-decoration: none !important; }

.btn:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
}
.btn-primary {
  border-color: rgba(var(--accentRgb), 0.9);
  color: rgba(var(--accentRgb), 0.95);
}
.btn-primary:hover {
  background: rgba(var(--accentRgb), 0.08);
  box-shadow: 0 0 18px rgba(var(--accentRgb), 0.16);
}

/* --- HOME --- */
.block-home {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding-top: clamp(96px, 14vh, 170px);
}
.main-title {
  font-size: clamp(28px, 3.4vw, 46px);
  margin: 0 0 10px 0;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.16em;
  word-spacing: 0.22em;
  text-transform: uppercase;
}
.home-subtitle {
  font-size: 18px;
  color: rgba(237, 238, 238, 0.58);
  margin: 0 0 28px 0;
}
#btn-start {
  border-width: 3px;
  border-color: rgba(var(--accentRgb), 0.95);
  color: rgba(var(--accentRgb), 0.95);
  padding: 12px 26px;
  min-width: 120px;
}
#btn-start:hover {
  background: rgba(var(--accentRgb), 0.08);
  box-shadow: 0 0 18px rgba(var(--accentRgb), 0.14);
}
.home-disclaimer {
  font-size: 16px;
  color: rgba(237, 238, 238, 0.58);
  opacity: 0.72;
  margin-top: 18px;
}

/* --- TEST --- */
.block-test {
  justify-content: flex-start;
  padding-top: clamp(190px, 38vh, 420px);
  padding-bottom: 18px;
}
.block-test.is-identity { padding-top: clamp(72px, 10vh, 140px); }

@media (max-height: 820px) {
  .block-test { padding-top: 120px; }
  .block-test.is-identity { padding-top: 64px; }
}

#q-text {
  margin: 0;
  font-size: clamp(30px, 3.9vw, 46px);
  line-height: 1.16;
  font-weight: 700;
  color: var(--fg);
}
.q-subtext {
  margin: 14px 0 0 0;
  color: rgba(237, 238, 238, 0.58);
  font-size: 16px;
  line-height: 1.4;
  max-width: 52ch;
}
.options {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 34px;
  width: 100%;
}
.options.options-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.btn-option-identity {
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-option-identity:hover {
  border-color: rgba(var(--accentRgb), 0.9);
  background: rgba(255,255,255,0.03);
}
.identity-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
}
.identity-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237, 238, 238, 0.86);
}
@media (max-width: 420px) {
  .options.options-identity { grid-template-columns: 1fr; }
  .identity-img { aspect-ratio: 16 / 9; }
}
.btn-option {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg2);
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  line-height: 1.35;
}
.btn-option:hover {
  border-color: rgba(var(--accentRgb), 0.9);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
}
.back-rail {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-top: auto;
  padding: 0 0 10px 0;
}
.link-back {
  background: transparent;
  border: 1px solid var(--line);
  color: rgba(237, 238, 238, 0.58);
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}
.link-back:hover {
  color: var(--fg2);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
}

/* --- READY --- */
.block-ready {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 22vh;
}
.ready-subtitle {
  font-size: 16px !important;
  opacity: 0.65;
  margin-bottom: 26px;
}

/* --- SUBMIT --- */
.block-submit {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  padding-top: clamp(120px, 18vh, 240px);
}
.submit-pre-title { font-size: 16px; color: rgba(237, 238, 238, 0.58); margin-bottom: 10px; }
.submit-main-title {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 28px 0;
  letter-spacing: -0.01em;
}
#btn-submit { margin-top: 8px; }
.back-container {
  margin-top: auto;
  padding-bottom: 18px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* --- RESULT (COMPACT, NO TOP/BOTTOM BLOAT) --- */
.result {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  min-height: 0;

  justify-content: flex-start;
  padding-top: clamp(12px, 2vh, 28px);
  padding-bottom: clamp(14px, 2.5vh, 30px);
  gap: 16px;
}

/* IMAGE CONTAINER (base / mobile) */
.result-media {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
  height: clamp(320px, 56vh, 680px);
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.5 ) contrast(1.00);
}

/* COPY / TEXT SIDE */
.result-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 14px;
}

#result-id {
  margin: 0 0 6px 0;
  color: rgba(237, 238, 238, 0.5);
  font-weight: 700;
  letter-spacing: 0.15em;
}

#result-title {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  color: rgba(var(--accentRgb), 0.95);
}

#result-body {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.16;
  margin: 8px 0 10px 0;
  color: var(--fg);
}

.result-cta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.result-lower {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

#result-note { font-size: 14px; opacity: 0.45; margin: 0; }

/* TEASER SECTION */
.result-teaser {
  margin-bottom: 2px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(90deg, rgba(var(--accentRgb), 0.05), transparent 90%);
  padding-top: 2px;
  padding-bottom: 2px;
}

.teaser-item {
  font-size: 16px;
  line-height: 1.35;
  color: rgba(237, 238, 238, 0.95);
}

.teaser-label {
  color: rgba(237, 238, 238, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 2px;
}

/* INCLUDES LIST */
.result-includes {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border: 1px solid var(--line2);
  text-align: left;
}
.includes-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-bottom: 6px;
  font-weight: 700;
}
.includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.disclaimer-text {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.35;
  font-size: 11px;
}

/* Desktop layout */
@media (min-width: 900px) {
  .result {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(420px, 0.85fr);
    align-items: start;
    gap: 44px;
    padding-top: clamp(14px, 2.5vh, 40px);
    padding-bottom: clamp(14px, 2.5vh, 40px);
  }

  .result-media {
    width: 100%;
    height: clamp(560px, 76vh, 860px);
    min-height: 0;
    align-self: start;
  }

  .result-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }

  .result-copy {
    text-align: left;
    align-self: start;
    justify-content: flex-start;
    gap: 14px;
  }

  .result-cta { margin-top: 8px; }
  .result-lower { margin-top: 12px; }
}

/* SHARE BUTTON */
.btn-share {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-share:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
  body::before { display: none !important; background: none !important; }
  body::after { display: none !important; background: none !important; }
  body { background: linear-gradient(180deg, var(--bg0), var(--bg1)) !important; }

  .result-media { height: auto; min-height: 300px; }
}

@media (min-width: 900px) {
  .result-media img {
    object-fit: contain !important;
    object-position: center !important;
  }
}






/* RESULT image: neutral colors */
.result-media img{
  filter: none !important;
}


/* --- PWYW SCREEN (layout + tiny video) --- */
.block-pwyw{
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: clamp(18px, 3vh, 34px);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* top stage: PDF | center copy | VIDEO */
.pwyw-stage{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) minmax(0, 1fr);
  align-items: start; /* keep PDF/VIDEO pinned to top */
  gap: clamp(18px, 4vw, 56px);
  /* gives us that "empty air" where the title block can sit */
  min-height: clamp(260px, 32vh, 460px);
}

.pwyw-side{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* no visible frame */
  border: 0;
  background: transparent;
  padding: 0;
}

.pwyw-side-label{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.52;
  font-weight: 700;
}

.pwyw-pdf-img{
  width: clamp(170px, 20vw, 300px);
  height: auto;
  display: block;
  /* no border box */
  border: 0;
  background: transparent;
}

.pwyw-mid{
  text-align: center;
  padding-top: 0;
  align-self: center; /* drop the title block into the middle space */
}

.pwyw-brand{
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.42;
  font-weight: 800;
}

.pwyw-title{
  margin-top: 8px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--accentRgb), 0.95);
}

.pwyw-subtitle{
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.48;
}

.pwyw-tagline{
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  opacity: 0.58;
  font-weight: 700;
}

/* Video stays SMALL and never jumps size */
.pwyw-video-wrap{
  height: clamp(150px, 18vw, 220px); /* roughly matches PDF teaser height */
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 160px;
  display: grid;
  place-items: center;
}

.pwyw-video{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
  object-fit: contain;
}

/* Actions */
.pwyw-actions{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.pwyw-free{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.01);
  color: rgba(237,238,238,0.92);
  padding: 14px 16px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.pwyw-free:hover{
  border-color: rgba(var(--accentRgb), 0.55);
  background: rgba(var(--accentRgb), 0.06);
}

.pwyw-hint{
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-top: 2px;
}

.pwyw-price-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
}

.pwyw-price{
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(237,238,238,0.86);
  padding: 14px 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.pwyw-price:hover{
  border-color: rgba(var(--accentRgb), 0.75);
  background: rgba(255,255,255,0.03);
  color: var(--fg);
}

.pwyw-price.is-recommended{
  border-color: rgba(var(--accentRgb), 0.95);
  color: rgba(var(--accentRgb), 0.95);
  box-shadow: 0 0 18px rgba(var(--accentRgb), 0.12);
}

.pwyw-fineprint{
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.32;
  margin-top: 2px;
}

/* Bottom: back + disclaimer */
.pwyw-bottom{
  width: 100%;
  max-width: var(--max-width);
  margin: 2px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}

.pwyw-disclaimer{
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px){
  .pwyw-stage{
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }
  .pwyw-video-wrap{
    height: 220px;
    width: auto;
    max-width: 180px;
  }
  .pwyw-pdf-img{
    width: min(320px, 80vw);
  }
}

@media (max-width: 520px){
  .pwyw-price-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .pwyw-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
  .pwyw-disclaimer{
    text-align: left;
  }
}

/* Extra safety: disable scanlines/vignette on touch devices (faster on mobile/tablets) */
@media (pointer: coarse){
  body::before, body::after { display:none !important; background:none !important; }
}
