/* ============================================================
   Sift — Quiz Funnel Styles
   Spacing system: cards use 32px padding / 24px gaps; all
   vertical rhythm in multiples of 8px.
   ============================================================ */

:root {
  --ink: #0b2733;
  --ink-soft: #41606c;
  --aqua: #0e7c8c;
  --aqua-deep: #0a5a66;
  --aqua-pale: #e6f4f5;
  --mist: #f4f9fa;
  --white: #ffffff;
  --coral: #ff6b4a;
  --coral-deep: #e8512f;
  --gold: #f4b942;
  --green: #1e9e6a;
  --red: #d9534f;
  --amber: #e09a17;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(11, 39, 51, 0.10);
  --shadow-lg: 0 16px 56px rgba(11, 39, 51, 0.14);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.22; }
img { max-width: 100%; display: block; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(11,39,51,.07);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--aqua); }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  min-height: calc(100vh - 60px);
}

.progress-track {
  height: 6px; border-radius: 3px;
  background: rgba(14,124,140,.12);
  margin: 8px 0 32px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--aqua), #19b3c4);
  border-radius: 3px;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

.step { display: none; animation: stepIn .45s cubic-bezier(.2,.8,.3,1) both; }
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-kicker {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  background: var(--aqua-pale);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 16px;
}

.step h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: 12px; }
.step h2 { font-size: clamp(1.45rem, 5vw, 1.9rem); margin-bottom: 8px; }
.step .sub { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 24px; }

/* ZIP input */
.zip-row { margin-bottom: 12px; }
.zip-input {
  font-size: 1.4rem; font-weight: 600; letter-spacing: .15em;
  text-align: center;
  padding: 16px;
  border: 2px solid rgba(14,124,140,.25);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.zip-input:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(14,124,140,.12); }
.zip-error { color: var(--red); font-size: .9rem; min-height: 1.4em; margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.08rem; font-weight: 700;
  padding: 17px 28px;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(232,81,47,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,81,47,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-aqua {
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(14,124,140,.3);
}
.btn-aqua:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-lg { font-size: 1.14rem; padding: 19px 28px; }

/* Option cards */
.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid rgba(11,39,51,.08);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.02rem; font-weight: 500;
  font-family: var(--font-body);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  user-select: none;
}
.option:hover { border-color: rgba(14,124,140,.45); transform: translateY(-1px); }
.option.selected {
  border-color: var(--aqua);
  background: var(--aqua-pale);
  box-shadow: 0 4px 16px rgba(14,124,140,.15);
}
.option .emoji { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.option .check {
  margin-left: auto; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(11,39,51,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: transparent;
  transition: all .15s;
}
.option.selected .check { background: var(--aqua); border-color: var(--aqua); color: #fff; }

.trust-row {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
  font-size: .82rem; color: var(--ink-soft);
}
.trust-row span { display: flex; align-items: center; gap: 6px; }

.fact-chip {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  font-size: .92rem; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.fact-chip strong { color: var(--ink); }

/* ---------- Analyzing screen ---------- */
.analyze-wrap { text-align: center; padding-top: 8vh; }
.droplet {
  width: 84px; height: 84px; margin: 0 auto 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #19b3c4, var(--aqua-deep));
  animation: dropPulse 1.4s ease-in-out infinite;
  box-shadow: 0 12px 36px rgba(14,124,140,.35);
}
@keyframes dropPulse {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.12); }
}
.analyze-steps { max-width: 380px; margin: 32px auto 0; text-align: left; }
.analyze-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  color: rgba(11,39,51,.35);
  font-size: .98rem; font-weight: 500;
  transition: color .3s;
}
.analyze-step.on { color: var(--ink); }
.analyze-step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(11,39,51,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: transparent;
  transition: all .3s;
}
.analyze-step.on .dot { background: var(--green); border-color: var(--green); color: #fff; }
.analyze-step.working .dot {
  border-color: var(--aqua);
  border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   REPORT PAGE
   ============================================================ */

.report-page { background: var(--mist); }

/* ---------- Hero ---------- */
.report-hero {
  position: relative;
  background: linear-gradient(165deg, #0b2733 0%, #0e3d4a 55%, #0a5a66 100%);
  color: #fff;
  padding: 64px 20px 128px;
  text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .38;
}
.report-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,39,51,.35) 0%, rgba(11,39,51,.72) 70%, #0d3340 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.report-hero .kicker {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #9fe3ec;
  border: 1px solid rgba(159,227,236,.4);
  background: rgba(11,39,51,.35);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.report-hero h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.report-hero .sub {
  color: rgba(255,255,255,.85);
  max-width: 560px; margin: 0 auto;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
.scroll-cue {
  margin-top: 28px;
  font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  animation: cueBob 2s ease-in-out infinite;
}
@keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Body / cards ---------- */
.report-body { max-width: 680px; margin: -88px auto 0; padding: 0 20px 64px; position: relative; z-index: 2; }

.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
}
.card h2 { font-size: clamp(1.4rem, 4.5vw, 1.7rem); margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; }
.card > p, .gated .card p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1rem; }
.card p strong { color: var(--ink); }
.card > *:last-child { margin-bottom: 0; }

.section-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 12px;
}

.kicker-line {
  font-family: var(--font-head);
  font-size: 1.12rem; font-weight: 600;
  color: var(--ink) !important;
  border-top: 1px solid rgba(11,39,51,.08);
  padding-top: 20px;
  margin-top: 24px;
}

/* ---------- Figures / images ---------- */
.report-figure { margin: 24px 0; }
.report-figure img {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.report-figure figcaption {
  font-size: .82rem; color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}
.science-figure { margin: 8px 0 28px; }
.science-figure img { box-shadow: none; }

/* ---------- Score card ---------- */
.score-card { text-align: center; }
.gauge { position: relative; width: 210px; height: 120px; margin: 8px auto 4px; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .track { stroke: rgba(11,39,51,.08); }
.gauge .value { transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.3,1); }
.gauge-num {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1;
}
.gauge-grade {
  display: inline-block;
  font-weight: 800; font-size: 1.05rem;
  padding: 5px 16px; border-radius: 999px;
  margin-top: 12px;
}
.grade-bad { background: #fdecea; color: var(--red); }
.grade-mid { background: #fdf3dc; color: #b07d10; }
.grade-good { background: #e3f5ed; color: var(--green); }
.score-benchmark { font-size: 1rem; color: var(--ink); margin-top: 18px; }
.score-benchmark strong { color: var(--red); }
.grade-good ~ .score-benchmark strong { color: var(--green); }
.score-note { color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }

/* ---------- Email gate ---------- */
.gate-zone { position: relative; }
.gate-zone:not(.unlocked) .gated {
  filter: blur(14px);
  max-height: 1400px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.gate-zone:not(.unlocked) .gated .fade-in { opacity: 1; transform: none; }
.gate-zone:not(.unlocked)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 320px;
  background: linear-gradient(180deg, transparent, var(--mist) 85%);
  z-index: 4;
}
.gate-overlay {
  display: none;
  position: absolute; inset: 0;
  z-index: 5;
  padding: 48px 8px;
  justify-content: center;
  align-items: flex-start;
}
.gate-zone:not(.unlocked) .gate-overlay { display: flex; }
.gate-card {
  position: sticky; top: 88px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11,39,51,.28);
  border: 1px solid rgba(14,124,140,.15);
  padding: 36px 28px;
  max-width: 460px; width: 100%;
  text-align: center;
}
.gate-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.gate-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 20px; }
.gate-card form { display: flex; flex-direction: column; gap: 12px; }
.gate-card input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 16px;
  border: 2px solid rgba(11,39,51,.12);
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.gate-card input:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(14,124,140,.1); }
.gate-error { color: var(--red); font-size: .88rem; min-height: 1.2em; margin: 0 !important; }
.gate-micro { font-size: .78rem; color: rgba(11,39,51,.5); margin: 14px 0 0 !important; }

.gate-zone.unlocked .gate-overlay { display: none; }
.gate-zone.unlocked .gated {
  filter: none; max-height: none; overflow: visible;
  pointer-events: auto; user-select: auto;
  animation: unblur .7s ease both;
}
@keyframes unblur {
  from { filter: blur(10px); opacity: .6; }
  to { filter: blur(0); opacity: 1; }
}

/* ---------- Findings ---------- */
.finding { padding: 20px 0; border-bottom: 1px solid rgba(11,39,51,.07); }
.finding:last-of-type { border-bottom: none; }
.metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.metric-name { font-weight: 700; font-size: 1.02rem; }
.metric-val { font-weight: 800; font-size: .92rem; letter-spacing: .03em; white-space: nowrap; }
.metric-val.bad { color: var(--red); }
.metric-val.mid { color: #b07d10; }
.metric-val.good { color: var(--green); }
.bar-track { height: 8px; border-radius: 4px; background: rgba(11,39,51,.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; width: 0%; transition: width 1.4s cubic-bezier(.3,.7,.3,1); }
.bar-fill.bad { background: linear-gradient(90deg, #f0a13f, var(--red)); }
.bar-fill.mid { background: linear-gradient(90deg, var(--gold), #f0a13f); }
.bar-fill.good { background: linear-gradient(90deg, #46c690, var(--green)); }
.metric-note { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }

.flag-list { list-style: none; }
.flag-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: .96rem; color: var(--ink-soft);
}
.flag-list li::before { content: "⚠️"; flex-shrink: 0; }

/* ---------- Science section ---------- */
.science-point { margin-bottom: 24px; }
.science-point:last-of-type { margin-bottom: 0; }
.science-point h3 {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.science-point .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--aqua-pale);
  color: var(--aqua);
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.science-point p { font-size: .97rem; }

/* ---------- Callouts ---------- */
.callout {
  background: linear-gradient(135deg, #fff8f0, #fdeee6);
  border: 1px solid rgba(232,81,47,.16);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.callout:last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--ink); }
.callout p { font-size: .96rem; color: var(--ink-soft); margin: 0 !important; }

/* ---------- Big math ---------- */
.big-math {
  border: 1px solid rgba(11,39,51,.08);
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
}
.math-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(11,39,51,.07);
  font-size: .98rem; color: var(--ink-soft);
}
.math-row:last-child { border-bottom: none; }
.math-row strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.math-row.highlight { background: var(--aqua-pale); }
.math-row.highlight strong { color: var(--aqua-deep); }

/* ---------- Product ---------- */
.product-figure { margin: 8px 0 24px; }
.product-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.product-figure.img-missing {
  background: linear-gradient(160deg, var(--aqua-pale), #d4edf0);
  border-radius: 16px;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.product-figure.img-missing::after { content: "🚿"; font-size: 4rem; }
.product-figure.img-missing img { display: none; }

.benefit-list { list-style: none; margin: 0 0 24px; }
.benefit-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0; font-size: 1rem; color: var(--ink-soft);
}
.benefit-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.benefit-list li strong { color: var(--ink); }

.finish-row {
  background: var(--aqua-pale);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  margin-bottom: 24px;
  color: var(--ink);
}
.finish-row .finish-note { color: var(--ink-soft); }
.finish-row .finish-alt { color: var(--ink-soft); font-size: .88rem; }

.price-row { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-bottom: 8px; }
.price-now { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; }
.price-was { font-size: 1.2rem; color: var(--ink-soft); text-decoration: line-through; }
.price-badge {
  background: #e3f5ed; color: var(--green);
  font-weight: 800; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px;
}
.offer-note { text-align: center; font-size: .88rem; color: var(--ink-soft) !important; margin-bottom: 20px !important; }
.cta-micro { text-align: center; font-size: .82rem; color: rgba(11,39,51,.55) !important; margin: 12px 0 0 !important; }

.guarantee {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--aqua-pale);
  border-radius: 14px; padding: 18px 20px; margin-top: 24px;
  font-size: .93rem; color: var(--ink-soft);
}
.guarantee .shield { font-size: 1.7rem; line-height: 1; }
.guarantee strong { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonial { border-top: 1px solid rgba(11,39,51,.07); padding: 20px 0; }
.testimonial:first-child { border-top: none; padding-top: 4px; }
.testimonial:last-child { padding-bottom: 0; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial p { font-size: .97rem; margin-bottom: 8px !important; }
.testimonial .who { font-size: .85rem; font-weight: 700; color: var(--ink); }
.testimonial .who span { color: var(--ink-soft); font-weight: 500; }

/* ---------- Comparison ---------- */
.table-scroll { overflow-x: auto; margin: 0 -4px; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: 12px 10px; text-align: center; border-bottom: 1px solid rgba(11,39,51,.07); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-soft); }
.compare thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: rgba(11,39,51,.3); font-weight: 700; }
.compare .sift-col { background: var(--aqua-pale); font-weight: 700; color: var(--ink); }
.compare .bad-cell { color: var(--red); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(11,39,51,.07); }
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--aqua); font-weight: 800; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 16px; }
.card .faq-item + .btn, .card .btn-lg { margin-top: 24px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(11,39,51,.1);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sc-text { flex: 1; min-width: 0; }
.sticky-cta .sc-title { font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .sc-sub { font-size: .8rem; color: var(--ink-soft); }
.sticky-cta .btn { width: auto; padding: 13px 22px; font-size: .95rem; flex-shrink: 0; }

/* ---------- Footnote ---------- */
.footnote {
  font-size: .76rem; color: rgba(11,39,51,.45);
  max-width: 680px; margin: 0 auto; padding: 0 20px 112px;
  line-height: 1.6;
}

/* ---------- Fade-ins ---------- */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .card { padding: 26px 20px; }
  .report-body { padding: 0 14px 56px; }
  .sticky-cta .sc-sub { display: none; }
  .gate-card { padding: 30px 22px; }
  .math-row { padding: 16px 16px; }
  .math-row strong { font-size: 1.15rem; }
}
