/* =====================================================
   ZIVVY — THE PERFECT CLASS MATCH (Variant B)
   Katie DiNardo & Sophie Gahn Creative Direction
   Visual Direction Brief: Deliverable 2, applied exact

   NOTE: This file contains ONLY variant-specific overrides.
   Base typography and utilities from zivvy-design-system.css
   ===================================================== */

/* Variant B Custom Design Tokens - Override design system */
:root{
  /* Zivvy palette — Visual Direction Brief */
  --dark:hsl(232, 59%, 10%);
  --dark-mid:hsl(233, 55%, 12%);
  --dark-surface:hsl(232, 47%, 15%);
  --green:hsl(160, 84%, 39%);
  --green-hover:hsl(160, 86%, 35%);
  --bg:hsl(220, 27%, 98%);
  --white:hsl(0, 0%, 100%);

  /* Text on dark — Brief: 100% headlines, 85% body, 60% micro */
  --on-dark-h:hsl(0, 0%, 100%, 1);
  --on-dark-p:hsl(0, 0%, 100%, 0.85);
  --on-dark-sub:hsl(0, 0%, 100%, 0.55);

  /* Text on light — Brief: warm dark, not pure black */
  --ink:hsl(240, 28%, 14%);
  --on-light-h:hsl(240, 28%, 14%);
  --on-light-p:hsl(240, 28%, 14%, 0.88);
  --on-light-sub:hsl(240, 28%, 14%, 0.55);

  /* Typography — Use design system fonts */
  --tracking-tight:-0.025em;
  --lh-head:1.08;
  --lh-body:1.72;

  /* Spacing — Wireframe specs */
  --section-v:80px;
  --prose-max:640px;
  --wide-max:880px;
}

@media(min-width:768px){
  :root{ --section-v:120px; }
}

/* =====================================================
   BASE OVERRIDES - Variant B specific
   ===================================================== */

html{
  font-size:17px;
  scroll-behavior:smooth;
}

@media(min-width:768px){ html{ font-size:18px; } }

body{
  line-height:var(--lh-body);
  color:var(--on-light-p);
  background:var(--bg);
  overflow-x:hidden;
}

/* =====================================================
   TYPOGRAPHY OVERRIDES
   Brief: Headlines bold, tight tracking, 1.1 lh
   Body: regular, 1.7 lh, max 640px
   ===================================================== */

h1,h2{
  font-weight:700;
  letter-spacing:var(--tracking-tight);
  line-height:var(--lh-head);
}

h1{
  font-size:clamp(2.5rem,5.8vw,4.4rem);
}

h2{
  font-size:clamp(1.7rem,3.2vw,2.5rem);
  margin-bottom:24px;
}

h2.tc{
  white-space:nowrap;
}

@media(min-width:768px){
  h2{ margin-bottom:32px; }
}

p+p{ margin-top:20px; }

strong{
  font-weight:600;
}

/* =====================================================
   SECTIONS — centered single column, letter feel
   Brief: "No two-column layouts. No sidebars."
   Brief: "Each section should feel like a new room"
   ===================================================== */

.s{
  padding:var(--section-v) 24px;
}

@media(min-width:768px){
  .s{ padding:var(--section-v) 48px; }
}

.s-inner{
  max-width:var(--prose-max);
  margin:0 auto;
}

.s-wide{
  max-width:var(--wide-max);
  margin:0 auto;
}

/* Dark sections */
.s--dark{
  background:var(--dark);
  color:var(--on-dark-p);
}
.s--dark h1,.s--dark h2{ color:var(--on-dark-h); }
.s--dark strong{ color:var(--on-dark-h); }

/* Light sections — alternate white / off-white */
.s--white{
  background:var(--white);
  color:var(--on-light-p);
}
.s--white h2{ color:var(--on-light-h); }

.s--off{
  background:var(--bg);
  color:var(--on-light-p);
}
.s--off h2{ color:var(--on-light-h); }

/* =================================================
   CTA SYSTEM
   Brief: Green for CTAs ONLY. Singular, not loud.
   Arrow is part of text, not icon.
   Medium weight, slightly larger than body.
   ===================================================== */

.cta{
  display:inline-block;
  font-weight:500;
  font-size:1.06rem;
  letter-spacing:0.01em;
  color:var(--dark);
  background:var(--green);
  padding:16px 36px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:background 0.2s ease,transform 0.15s ease;
}
.cta:hover{
  background:var(--green-hover);
  transform:translateY(-1px);
}

.cta--big{
  font-size:1.15rem;
  padding:18px 48px;
}

.cta-link{
  display:inline-block;
  font-weight:500;
  font-size:1rem;
  color:var(--green);
  text-decoration:none;
  border-bottom:1px solid hsl(160, 84%, 39%, 0.3);
  padding-bottom:2px;
  transition:border-color 0.2s ease;
}
.cta-link:hover{ border-color:var(--green); }

/* Brief: CTA 40px from last line of copy */
.cta-wrap{ margin-top:40px; }

/* Brief: Microcopy 14px, 60% opacity */
.micro{
  margin-top:14px;
  font-size:0.78rem;
  font-weight:400;
  letter-spacing:0.01em;
}
.s--dark .micro{ color:var(--on-dark-sub); }
.s--white .micro,.s--off .micro{ color:var(--on-light-sub); }

/* =====================================================
   HERO — Full viewport, dark bg, centered
   Wireframe: Section 1
   ===================================================== */

.hero{
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:100px 24px 80px;
}

@media(min-width:768px){
  .hero{ padding:120px 48px; }
}

.hero-inner{
  max-width:760px;
}

.hero h1{
  margin-bottom:32px;
}

.hero-setup{
  display:block;
  font-size:0.55em;
  font-weight:500;
  opacity:0.85;
  white-space:nowrap;
}

.hero-punchline{
  font-size:1.1em;
}

.hero-accent{
  color:var(--green);
  font-style:italic;
}

.hero-sub{
  font-size:1.05rem;
  line-height:1.72;
  color:var(--on-dark-p);
  max-width:580px;
  margin:0 auto;
}

@media(min-width:768px){
  .hero-sub{ font-size:1.15rem; }
}

/* ===================================================
   BRIDGE SECTION — subtle emphasis
   ===================================================== */

.bridge-emphasis{
  font-size:1.08em;
  font-weight:500;
  font-style:italic;
  color:var(--on-light-h);
}

/* ===================================================
   PRODUCT SECTION GRID — text left, image right
   ===================================================== */

.product-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:48px;
  align-items:center;
}

@media(min-width:900px){
  .product-grid{
    grid-template-columns:1fr 380px;
    gap:64px;
  }
}

.product-text{
  max-width:var(--prose-max);
}

.product-image{
  display:flex;
  justify-content:center;
  align-items:center;
}

/* ===================================================
   QUIZ PREVIEW — the product IS the visual
   Photography Guidelines: "Don't use photography"
   "The quiz screens are the most compelling visual asset"
   ===================================================== */

.quiz-image{
  display:block;
  max-width:300px;
  width:100%;
  height:auto;
  margin:0;
}

@media(min-width:900px){
  .quiz-image{
    max-width:320px;
  }
}

.phone-frame{
  max-width:360px;
  margin:56px auto 0;
  border-radius:28px;
  overflow:hidden;
  background:var(--dark-mid);
  border:1px solid hsl(0, 0%, 100%, 0.07);
  box-shadow:
    0 0 0 1px hsl(0, 0%, 100%, 0.03),
    0 24px 64px hsl(0, 0%, 0%, 0.45),
    0 8px 24px hsl(0, 0%, 0%, 0.3);
  position:relative;
}

/* Notch hint */
.phone-frame::before{
  content:'';
  position:absolute;
  top:0;left:50%;
  transform:translateX(-50%);
  width:120px;height:28px;
  background:var(--dark);
  border-radius:0 0 16px 16px;
  z-index:2;
}

.phone-screen{
  padding:44px 24px 28px;
  min-height:380px;
  position:relative;
}

/* Quiz screens */
.qz-screen{
  display:none;
  animation:qzIn 0.3s ease;
}
.qz-screen.active{ display:block; }

@keyframes qzIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.qz-step{
  font-size:0.7rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--green);
  margin-bottom:20px;
}

.qz-q{
  font-size:1.15rem;
  font-weight:600;
  color:var(--on-dark-h);
  margin-bottom:24px;
  line-height:1.3;
}

.qz-opts{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.qz-opt{
  background:hsl(0, 0%, 100%, 0.05);
  border:1px solid hsl(0, 0%, 100%, 0.1);
  border-radius:10px;
  padding:14px 16px;
  font-size:0.88rem;
  font-weight:500;
  color:var(--on-dark-p);
  cursor:pointer;
  transition:all 0.2s ease;
  text-align:left;
}
.qz-opt:hover{
  background:hsl(0, 0%, 100%, 0.09);
  border-color:hsl(0, 0%, 100%, 0.18);
}
.qz-opt.picked{
  background:hsl(160, 84%, 39%, 0.1);
  border-color:var(--green);
  color:var(--on-dark-h);
}

/* Result screen */
.qz-result{ text-align:center; }

.qz-badge{
  font-size:0.7rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--green);
  margin-bottom:16px;
}

.qz-match{
  font-size:1.25rem;
  font-weight:700;
  color:var(--on-dark-h);
  line-height:1.2;
}

.qz-time{
  font-size:0.82rem;
  color:var(--on-dark-sub);
  margin-top:4px;
  margin-bottom:18px;
}

.qz-rec{
  font-size:0.88rem;
  color:var(--on-dark-p);
  line-height:1.65;
  margin-bottom:24px;
}

.qz-book{
  display:block;
  width:100%;
  text-align:center;
  font-weight:500;
  font-size:0.9rem;
  color:var(--dark);
  background:var(--green);
  padding:13px 24px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  cursor:pointer;
}

/* Auto-play indicator dots */
.qz-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  padding:16px 0;
}
.qz-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:hsl(0, 0%, 100%, 0.15);
  transition:background 0.3s ease;
}
.qz-dot.active{ background:var(--green); }

/* =====================================================
   METRICS BAR — horizontal stat display
   ===================================================== */

.metrics-bar{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  margin-top:48px;
  padding:40px 0;
  border-top:1px solid hsl(240, 28%, 14%, 0.1);
  border-bottom:1px solid hsl(240, 28%, 14%, 0.1);
}

@media(min-width:640px){
  .metrics-bar{
    grid-template-columns:repeat(3,1fr);
    gap:40px;
    padding:48px 0;
  }
}

.metric{
  text-align:center;
}

.metric-number{
  font-size:3rem;
  font-weight:700;
  color:var(--green);
  line-height:1;
  margin-bottom:12px;
}

@media(min-width:768px){
  .metric-number{
    font-size:3.5rem;
  }
}

.metric-label{
  font-size:0.95rem;
  font-weight:500;
  color:var(--on-light-p);
  line-height:1.4;
}

/* =====================================================
   COMPARISON CARDS — visual before/after
   ===================================================== */

.comparison-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  margin:48px 0;
  align-items:center;
}

@media(min-width:900px){
  .comparison-cards{
    grid-template-columns:1fr auto 1fr;
    gap:32px;
  }
}

.comparison-card{
  background:hsl(0, 0%, 100%, 0.03);
  border:1px solid hsl(0, 0%, 100%, 0.08);
  border-radius:16px;
  padding:40px 48px;
  position:relative;
}

@media(min-width:768px){
  .comparison-card{
    padding:56px 64px;
  }
}

.comparison-card--without{
  background:hsl(0, 0%, 100%, 0.02);
}

.comparison-card--with{
  background:hsl(160, 84%, 39%, 0.05);
  border-color:hsl(160, 84%, 39%, 0.2);
}

.comparison-header{
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.15em;
  text-transform:uppercase;
  text-align:center;
  margin-bottom:32px;
  color:hsl(0, 0%, 100%, 0.5);
}

.comparison-card--with .comparison-header{
  color:var(--green);
}

.comparison-flow{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}

.comparison-step{
  text-align:center;
}

.comparison-number{
  font-size:4rem;
  font-weight:700;
  line-height:1;
  margin-bottom:8px;
  color:hsl(0, 0%, 100%, 0.4);
}

@media(min-width:768px){
  .comparison-number{
    font-size:5rem;
  }
}

.comparison-card--without .comparison-number{
  color:hsl(0, 0%, 100%, 0.3);
}

.comparison-card--with .comparison-number{
  color:var(--white);
}

.comparison-label{
  font-size:0.9rem;
  font-weight:400;
  color:hsl(0, 0%, 100%, 0.6);
  letter-spacing:0.02em;
}

.comparison-arrow{
  font-size:1.5rem;
  color:hsl(0, 0%, 100%, 0.2);
  line-height:1;
}

.comparison-card--with .comparison-arrow{
  color:var(--green);
}

.comparison-vs{
  font-size:1.2rem;
  font-weight:700;
  text-transform:lowercase;
  color:hsl(0, 0%, 100%, 0.3);
  text-align:center;
  padding:16px 0;
}

@media(min-width:900px){
  .comparison-vs{
    padding:0;
  }
}

.comparison-tagline{
  text-align:center;
  font-size:1.15rem;
  font-weight:500;
  color:var(--on-dark-p);
  margin-top:40px;
  line-height:1.6;
}

@media(min-width:768px){
  .comparison-tagline{
    font-size:1.3rem;
    margin-top:56px;
  }
}

.comparison-highlight{
  color:var(--green);
  font-weight:600;
}

/* =====================================================
   NUMBERS BLOCK
   Rewrite: one punchline, not four percentages
   ===================================================== */

.numbers{
  text-align:center;
  margin:40px 0;
  padding:48px 32px;
  background:var(--dark-surface);
  border-radius:14px;
  border:1px solid hsl(0, 0%, 100%, 0.05);
}

@media(min-width:768px){
  .numbers{
    padding:56px 48px;
  }
}

.numbers-line{
  font-weight:700;
  font-size:clamp(1.4rem,2.8vw,1.9rem);
  color:var(--on-dark-h);
  letter-spacing:var(--tracking-tight);
  line-height:1.5;
}

.numbers-line .accent{ color:var(--green); }

.numbers-tag{
  margin-top:12px;
  font-size:0.85rem;
  font-weight:500;
  color:var(--on-dark-sub);
}

/* Light-bg variant */
.s--white .numbers,.s--off .numbers{
  background:var(--dark);
}

/* =====================================================
   STEPS — 1 → 2 → 3
   Wireframe: "Simple icons or numbers, NOT infographic"
   ===================================================== */

.steps{
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
  margin:40px 0;
}

@media(min-width:600px){
  .steps{
    grid-template-columns:repeat(3,1fr);
    gap:20px;
  }
}

.step{
  text-align:center;
  padding:32px 24px;
  background:var(--white);
  border-radius:12px;
  border:1px solid hsl(240, 28%, 14%, 0.08);
  box-shadow:0 1px 3px hsl(0, 0%, 0%, 0.04);
  transition:all 0.3s ease;
}

.step:hover{
  box-shadow:0 4px 12px hsl(0, 0%, 0%, 0.08);
  transform:translateY(-2px);
  border-color:hsl(240, 28%, 14%, 0.12);
}

.step-n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;height:44px;
  border-radius:50%;
  background:var(--dark);
  color:var(--on-dark-h);
  font-weight:700;
  font-size:1rem;
  margin-bottom:14px;
  position:relative;
}

.step-n::after{
  content:'';
  position:absolute;
  bottom:-7px;
  left:50%;
  transform:translateX(-50%);
  width:24px;
  height:2px;
  background:var(--green);
}

.step-title{
  font-weight:600;
  font-size:0.95rem;
  color:var(--on-light-h);
  margin-bottom:8px;
}

.step-desc{
  font-size:0.9rem;
  color:var(--on-light-sub);
  line-height:1.6;
}

/* =====================================================
   FAQ — all open, no accordion
   Brief: "if someone needs to click to see the answer,
   you've created friction in the wrong place"
   ===================================================== */

.faq-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.faq-item{
  padding:28px 32px;
  background:var(--white);
  border-radius:12px;
  border:1px solid hsl(240, 28%, 14%, 0.08);
  box-shadow:0 1px 3px hsl(0, 0%, 0%, 0.04);
  transition:all 0.3s ease;
}

@media(min-width:768px){
  .faq-item{
    padding:32px 36px;
  }
}

.faq-item:hover{
  box-shadow:0 4px 12px hsl(0, 0%, 0%, 0.08);
  border-color:hsl(240, 28%, 14%, 0.12);
}

.faq-q{
  font-weight:600;
  font-size:1.02rem;
  color:var(--on-light-h);
  margin-bottom:12px;
  line-height:1.4;
}

.faq-a{
  font-size:0.95rem;
  color:var(--on-light-p);
  line-height:1.72;
}

/* =====================================================
   CALLOUT — bold stat pairs
   ===================================================== */

.callout{
  margin-top:28px;
  font-weight:400;
  font-size:0.92rem;
  line-height:1.75;
  color:var(--on-light-p);
}

.callout strong{
  font-weight:600;
  color:var(--on-light-h);
}

.s--off .callout strong{ color:var(--on-light-h); }

/* =====================================================
   STICKY BAR
   Wireframe: after hero CTA, 300ms ease-out slide-up
   Disappears at closing CTA
   =================================================== */

.sticky{
  position:fixed;
  bottom:0;left:0;right:0;
  z-index:100;
  background:hsl(232, 59%, 10%, 0.94);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid hsl(0, 0%, 100%, 0.06);
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  transform:translateY(100%);
  transition:transform 0.3s ease-out;
}
.sticky.show{ transform:translateY(0); }
.sticky.hide{ transform:translateY(100%); }

.sticky-text{
  font-size:0.82rem;
  font-weight:500;
  color:var(--on-dark-p);
  display:none;
}
@media(min-width:640px){ .sticky-text{ display:block; } }

.sticky .cta{
  font-size:0.88rem;
  padding:11px 26px;
  white-space:nowrap;
}

/* =====================================================
   SCROLL REVEAL
   Brief: "Motion should feel like breathing, not performing"
   200ms fade-in, ease-out. That's it.
   ===================================================== */

.rv{
  opacity:0;
  transform:translateY(14px);
  transition:opacity 0.55s ease-out,transform 0.55s ease-out;
}
.rv.vis{
  opacity:1;
  transform:translateY(0);
}

/* Sequential stagger for steps */
.step.rv:nth-child(1){ transition-delay:0ms; }
.step.rv:nth-child(2){ transition-delay:130ms; }
.step.rv:nth-child(3){ transition-delay:260ms; }

/* =====================================================
   PRODUCT PUNCHLINE — emphasized final statement
   ===================================================== */

.product-punchline{
  font-size:2.1em;
  font-weight:600;
  line-height:1.2;
  margin-top:40px;
  color:var(--green);
}

@media(min-width:768px){
  .product-punchline{
    margin-top:56px;
  }
}

/* =====================================================
   FEATURE LINES — product section
   ===================================================== */

.feat-lines{ margin:20px 0; }

.feat-line{
  margin-bottom:4px;
  font-size:0.95rem;
}

.s--dark .feat-line strong{ color:var(--on-dark-h); }

/* =====================================================
   CTA ACCENT — green highlight in headings
   ===================================================== */

.cta-accent{
  color:var(--green);
}

/* =====================================================
   CLOSING SECTION — extra padding
   ===================================================== */

.closing-section{
  padding:80px 24px;
}

@media(min-width:768px){
  .closing-section{
    padding:120px 48px;
  }
}

/* =====================================================
   PROBLEM SECTION — larger text for readability
   ===================================================== */

.problem-text p{
  font-size:1.15rem;
  line-height:1.75;
}

@media(min-width:768px){
  .problem-text p{
    font-size:1.25rem;
    line-height:1.8;
  }
}

/* Override for closing line - make it 2x bigger than default */
.problem-text p.closing-line{
  font-size:2.2rem !important;
  font-weight:600;
  font-style:italic;
  line-height:1.3;
}

@media(min-width:768px){
  .problem-text p.closing-line{
    font-size:3rem !important;
  }
}

/* =====================================================
   CLOSING LINE — Emphasized final statement
   ===================================================== */

.closing-rule{
  width:80px;
  height:2px;
  border:none;
  background:hsl(240, 28%, 14%, 0.2);
  margin:80px auto 24px;
}

@media(min-width:768px){
  .closing-rule{
    margin:120px auto 28px;
  }
}

.closing-line{
  margin-top:0;
  font-size:4.4rem !important;
  font-weight:600;
  font-style:italic;
  color:var(--on-light-h);
  line-height:1.3;
  text-align:center;
}

@media(min-width:768px){
  .closing-line{
    font-size:6rem !important;
  }
}

.time-accent{
  color:hsl(25, 100%, 50%);
}

/* =====================================================
   AEO BLOCK — Answer Engine Optimization
   Visually hidden but accessible to search engines & screen readers
   ===================================================== */

.aeo-block{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border-width:0;
}

/* =====================================================
   UTILITY
   ===================================================== */

.tc{ text-align:center; }

/* =====================================================
   PROMPT LINE — the "Find the Right Class" moment
   ===================================================== */

.prompt-line{
  font-weight:600;
  font-size:1.1rem;
  color:var(--on-dark-h);
  margin:16px 0 12px;
}

.s--white .prompt-line,.s--off .prompt-line{ color:var(--on-light-h); }
