/**
 * quit-blocking.css — PravaApp Quit Blocking emotional landing page
 * Dark cinematic theme. Colors shift from RED (restriction) to PURPLE/TEAL (awareness).
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --qb-red: #ff4444;
  --qb-red-dark: #991111;
  --qb-red-bg: rgba(255, 68, 68, 0.08);
  --qb-red-border: rgba(255, 68, 68, 0.25);
  --qb-purple: #8B5CF6;
  --qb-purple-dark: #7c3aed;
  --qb-purple-bg: rgba(139, 92, 246, 0.08);
  --qb-purple-border: rgba(139, 92, 246, 0.3);
  --qb-teal: #14b8a6;
  --qb-teal-bg: rgba(20, 184, 166, 0.08);
  --qb-teal-border: rgba(20, 184, 166, 0.3);
  --qb-dark: #050510;
  --qb-dark-mid: #08081a;
  --qb-dark-alt: #0d0d22;
  --qb-card-bg: rgba(255, 255, 255, 0.04);
  --qb-card-border: rgba(255, 255, 255, 0.08);
  --qb-text: #e5e5e5;
  --qb-text-muted: rgba(229, 229, 229, 0.6);
  --qb-glow-purple: 0 0 40px rgba(139, 92, 246, 0.3);
  --qb-glow-teal: 0 0 40px rgba(20, 184, 166, 0.25);
}

/* ============================================================
   BASE
   ============================================================ */
body.page-quit-blocking {
  background-color: var(--qb-dark);
  color: var(--qb-text);
  font-family: 'Instrument Sans', 'Lexend', Arial, sans-serif;
}

/* Subtle noise grain overlay for glass depth — brand-standard texture */
body.page-quit-blocking::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
}

body.page-quit-blocking a {
  color: var(--qb-purple);
  text-decoration: none;
}

body.page-quit-blocking a:hover {
  color: #fff;
}

/* Ensure button links always have white text — override generic anchor color */
body.page-quit-blocking a.button {
  color: #fff;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   HERO — Cinematic, dark, dramatic
   ============================================================ */
.qb-hero {
  background: linear-gradient(160deg, #120005 0%, #2d0008 30%, #180022 65%, #050510 100%);
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Slow animated background — cinematic version of brand conic gradient */
.qb-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #120005,
    #2d0008,
    #3d000a,
    #2d0008,
    #120005
  );
  animation: qb-rotate 150s linear infinite;
  z-index: 0;
  opacity: 0.4;
}

@keyframes qb-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.qb-hero .container {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.qb-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 68, 68, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 30% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.qb-hero__title {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(255, 68, 68, 0.25);
  color: #fff;
}

.qb-hero__subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ============================================================
   THE CYCLE — Vertical narrative timeline
   ============================================================ */
.qb-cycle {
  background: var(--qb-dark-mid);
}

.qb-cycle__heading {
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

.qb-cycle__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.qb-cycle__step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  background: var(--qb-card-bg);
  border: 1px solid var(--qb-card-border);
  border-radius: 16px;
  padding: 28px 32px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qb-cycle__step:hover {
  transform: translateX(4px);
}

/* Steps 1-3: Reddish / painful */
.qb-cycle__step[data-step="1"] {
  border-color: rgba(255, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.06);
}

.qb-cycle__step[data-step="2"] {
  border-color: rgba(255, 68, 68, 0.3);
  box-shadow: 0 0 24px rgba(255, 68, 68, 0.1);
}

.qb-cycle__step[data-step="3"] {
  border-color: rgba(255, 68, 68, 0.4);
  box-shadow: 0 0 28px rgba(255, 68, 68, 0.14);
}

/* Step 4: Muted/gray — exhausted loop */
.qb-cycle__step[data-step="4"] {
  border-color: rgba(150, 150, 150, 0.2);
  box-shadow: 0 0 16px rgba(100, 100, 100, 0.08);
  opacity: 0.85;
}

.qb-cycle__step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.qb-cycle__step[data-step="1"] .qb-cycle__step-number {
  background: rgba(255, 68, 68, 0.15);
  border: 2px solid rgba(255, 68, 68, 0.4);
  color: var(--qb-red);
}

.qb-cycle__step[data-step="2"] .qb-cycle__step-number {
  background: rgba(255, 68, 68, 0.2);
  border: 2px solid rgba(255, 68, 68, 0.5);
  color: var(--qb-red);
}

.qb-cycle__step[data-step="3"] .qb-cycle__step-number {
  background: rgba(255, 68, 68, 0.25);
  border: 2px solid rgba(255, 68, 68, 0.6);
  color: var(--qb-red);
}

.qb-cycle__step[data-step="4"] .qb-cycle__step-number {
  background: rgba(130, 130, 130, 0.12);
  border: 2px solid rgba(150, 150, 150, 0.3);
  color: #888;
}

.qb-cycle__step-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.qb-cycle__step-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--qb-text-muted);
}

.qb-cycle__connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 68, 68, 0.4), rgba(255, 68, 68, 0.15));
  margin: 0 auto;
  flex-shrink: 0;
}

/* ============================================================
   THE INSIGHT — Side-by-side comparison
   ============================================================ */
.qb-insight {
  background: var(--qb-dark-alt);
}

.qb-insight__heading {
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.qb-insight__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.qb-insight__side {
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
}

.qb-insight__side h3 {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.qb-insight__side--restriction {
  background: rgba(255, 68, 68, 0.07);
  border: 1px solid var(--qb-red-border);
  box-shadow: 0 0 32px rgba(255, 68, 68, 0.08);
}

.qb-insight__side--restriction h3 {
  color: rgba(255, 150, 150, 0.9);
}

.qb-insight__side--awareness {
  background: var(--qb-teal-bg);
  border: 1px solid var(--qb-teal-border);
  box-shadow: 0 0 32px rgba(20, 184, 166, 0.1);
}

.qb-insight__side--awareness h3 {
  color: var(--qb-teal);
}

.qb-insight__loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.qb-insight__side--restriction .qb-insight__loop {
  color: rgba(255, 180, 180, 0.85);
}

.qb-insight__side--awareness .qb-insight__loop {
  color: rgba(100, 230, 220, 0.9);
}

.qb-insight__arrow {
  opacity: 0.55;
  font-size: 1rem;
}

.qb-insight__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--qb-card-bg);
  border: 2px solid var(--qb-card-border);
  color: var(--qb-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

/* ============================================================
   PROOF / METRICS
   ============================================================ */
.qb-proof {
  background: var(--qb-dark);
  text-align: center;
}

.qb-proof .h2-heading {
  color: #fff;
  margin-bottom: 3rem;
}

.qb-metrics {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.qb-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.qb-metric__value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--qb-teal);
  line-height: 1;
  text-shadow: 0 0 30px rgba(20, 184, 166, 0.5);
  font-variant-numeric: tabular-nums;
}

.qb-metric__unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--qb-text-muted);
  margin-left: 2px;
}

.qb-metric__label {
  font-size: 0.9rem;
  color: var(--qb-text-muted);
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
  margin-top: 4px;
}

/* ============================================================
   THE PRODUCT — Features grid
   ============================================================ */
.qb-product {
  background: var(--qb-dark-mid);
}

.qb-product .h2-heading {
  text-align: center;
  color: #fff;
  margin-bottom: 0.75rem;
}

.qb-product .subheading {
  text-align: center;
  color: var(--qb-text-muted);
  margin-bottom: 3rem;
}

.qb-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.qb-feature {
  background: var(--qb-card-bg);
  border: 1px solid var(--qb-card-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.qb-feature:hover {
  transform: translateY(-4px);
  border-color: var(--qb-purple-border);
  box-shadow: var(--qb-glow-purple);
}

.qb-feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.qb-feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.qb-feature p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--qb-text-muted);
}

/* ============================================================
   CTA + iOS WAITLIST
   ============================================================ */
.qb-cta {
  background: linear-gradient(160deg, #050510 0%, #0d0022 40%, #051510 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qb-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(139, 92, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.qb-cta .container {
  position: relative;
  z-index: 2;
}

.qb-cta .h2-heading {
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Waitlist/wizard styles are now in /css/device-wizard.css (shared module) */

.button--large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.qb-footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--qb-card-border);
  padding: 40px 0;
  text-align: center;
}

.qb-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qb-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--qb-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.qb-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.qb-footer__links a {
  color: var(--qb-text-muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.qb-footer__links a:hover {
  color: #fff;
}

.qb-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(200, 200, 200, 0.35);
}

/* ============================================================
   RESPONSIVE — TABLET (768px)
   ============================================================ */
@media screen and (max-width: 991px) {
  .qb-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .qb-metrics {
    gap: 36px;
  }

  .qb-insight__compare {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .qb-insight__vs {
    margin: 0 auto;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media screen and (max-width: 767px) {
  .qb-hero {
    padding: 110px 0 72px;
    min-height: auto;
  }

  .qb-features {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .qb-metrics {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .qb-metric__value {
    font-size: 2.75rem;
  }

  .qb-cycle__step {
    padding: 22px 20px;
  }

  .qb-insight__side {
    padding: 28px 20px;
  }

  .qb-footer__links {
    gap: 16px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .qb-feature,
  .qb-cycle__step {
    transition: none;
  }

  .qb-feature:hover,
  .qb-cycle__step:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
