/* ════════════════════════════════════════════════════
   Denim Code — Quiz Styles
   ════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --cream:   #FAF8F4;
  --navy:    #0E1B38;
  --gold:    #B8924A;
  --gold-h:  #9E7A39;
  --ink:     #1A1510;
  --muted:   #6B6460;
  --border:  #E8E3DC;
  --surface: #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Progress bar ───────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--border); z-index: 99;
  transition: opacity .3s ease;
}
.progress-bar.hidden { opacity: 0; pointer-events: none; }
#progress-fill {
  height: 100%; background: var(--gold);
  transition: width .55s cubic-bezier(.4, 0, .2, 1);
  width: 0;
}

/* ── Home link ──────────────────────────────────────── */
.home-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.01em;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(14, 27, 56, .07);
  transition: opacity .3s ease, box-shadow .15s ease, transform .1s ease;
}
.home-link:hover {
  box-shadow: 0 4px 16px rgba(14, 27, 56, .12);
  transform: translateY(-1px);
}
.home-link em { font-style: italic; color: var(--gold); }
.home-link.hidden { opacity: 0; pointer-events: none; }

@media (min-width: 760px) {
  .home-link { top: 24px; left: 24px; }
}

/* ── Screens ────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100dvh;
  padding: 24px 20px;
  align-items: center;
  justify-content: center;
}
.screen.active { display: flex; }

/* ── Layout ─────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 500px;
  padding: 48px 0;
}
.wrap--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Typography ─────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 10px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.display {
  font-family: var(--serif);
  font-size: clamp(62px, 17vw, 104px);
  font-weight: 400; line-height: 1.02;
  color: var(--surface);
  margin-bottom: 32px;
  letter-spacing: -.01em;
}
.display em { font-style: italic; color: var(--gold); }

.question {
  font-family: var(--serif);
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 500; line-height: 1.3;
  color: var(--navy);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 6.5vw, 38px);
  font-weight: 500; line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}

.shape-title {
  font-family: var(--serif);
  font-size: clamp(50px, 13vw, 70px);
  font-weight: 400; font-style: italic;
  color: var(--navy); line-height: 1.04;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.landing-sub {
  font-size: 16px; line-height: 1.65;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 38px;
  max-width: 310px;
}

.body-text {
  font-size: 15px; line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
}
.body-text strong { color: var(--ink); }

.fine-print {
  font-size: 11px; letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
  margin-top: 14px;
}

/* ── Landing (scrollable page) ──────────────────────── */
#s-landing {
  min-height: unset;
  padding: 0;
  align-items: stretch;
}
#s-landing.active {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  padding: 110px 20px 120px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner {
  max-width: 1180px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-text .landing-sub {
  margin-bottom: 44px;
}
.hero-visual {
  position: relative;
  flex-shrink: 0;
  width: 540px;
  max-width: 46vw;
}
.hero-visual img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.digital-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 144px;
  padding: 16px 14px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 14px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; line-height: 1.55;
  letter-spacing: .04em; text-transform: uppercase;
  transform: rotate(-5deg);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  transition: color .2s ease;
}
.scroll-cue:hover { color: rgba(255,255,255,.95); }
.scroll-cue-dot {
  animation: scrollCueMove 1.8s ease-in-out infinite;
}
@keyframes scrollCueMove {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(9px); opacity: .2; }
  61%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* Brands bar */
.brands-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
}
.brands-label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 32px;
}
.brands-list span {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  opacity: .65;
}

/* About section */
.about-section {
  background: var(--surface);
  padding: 80px 20px;
}
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 12px;
}

.hero-text .eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
}
.about-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 auto 32px;
  max-width: 580px;
}
.about-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--navy);
  margin: 0 auto 28px;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
  margin-bottom: 28px;
}
.about-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}
.about-certified {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* What you get */
.what-section {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 80px 20px;
}
.what-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.what-illustration {
  max-width: 800px;
  margin: 0 auto 48px;
}
.what-illustration img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 25, 40, .14);
}
.what-content {
  text-align: center;
}
.what-eyebrow {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 12px;
}
.what-title {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}
.what-title em { color: var(--gold); }
.what-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 40px;
}
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: left;
}
.what-item--full {
  grid-column: 1 / -1;
}
.what-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.what-num {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.what-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

/* Landing bottom CTA */
.landing-cta {
  background: var(--navy);
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--surface);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 32px;
}

/* ── Button ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--surface);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  border: none; border-radius: 2px;
  padding: 16px 32px;
  cursor: pointer; text-decoration: none;
  transition: background .18s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-h); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }

/* ── Quiz ────────────────────────────────────────────── */
#s-quiz { flex-direction: column; }

#quiz-card { transition: opacity .2s ease; }
#quiz-card.fading { opacity: 0; }

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

.opt {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 15px 18px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1.4;
}
.opt:hover:not(:disabled) {
  border-color: var(--navy);
  background: #F4F1EB;
}
.opt.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}
.opt:disabled { cursor: default; }

/* ── Result ─────────────────────────────────────────── */
#s-result { flex-direction: column; }

.result-copy {
  font-size: 16px; line-height: 1.75;
  color: var(--ink);
  margin-bottom: 10px;
}

.result-tip {
  font-size: 15px; line-height: 1.65;
  color: var(--muted); font-style: italic;
  margin-bottom: 32px;
}

.result-blend {
  font-size: 13px; line-height: 1.6;
  color: var(--muted);
  background: var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: -10px 0 32px;
}
.result-blend strong { color: var(--ink); }

.result-cta {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.result-pages {
  font-size: 15px; color: var(--muted);
  line-height: 1.6; margin-bottom: 20px;
}
.result-pages strong { color: var(--ink); }
.result-pages em { font-style: italic; }

/* ── Email ──────────────────────────────────────────── */
#s-email { flex-direction: column; }

.field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.field-row input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  width: 100%; outline: none;
  transition: border-color .15s;
}
.field-row input:focus { border-color: var(--navy); }
.field-row input::placeholder { color: var(--muted); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin-bottom: 20px;
}
.consent input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0; margin-top: 3px;
  accent-color: var(--navy); cursor: pointer;
}
.consent span {
  font-size: 12px; color: var(--muted); line-height: 1.55;
}

.form-error {
  font-size: 12px; color: #C0392B;
  margin-bottom: 12px;
}
.form-error.hidden { display: none; }

/* ── Thank you ──────────────────────────────────────── */
#s-thankyou { flex-direction: column; }
.thanks-icon { font-size: 48px; margin-bottom: 20px; }

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 560px) {
  .screen { padding: 40px; }
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; }
}

@media (min-width: 768px) {
  .screen { padding: 60px; }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 36px 20px;
  text-align: center;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-bottom: 16px;
}
.site-footer .footer-links a {
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  transition: color .15s;
}
.site-footer .footer-links a:hover { color: var(--gold); }
.site-footer .footer-copy {
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .35);
}

/* ── Legal pages ────────────────────────────────────── */
.legal-header {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.legal-logo {
  display: inline-block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.01em;
}
.legal-logo em { font-style: italic; color: var(--gold); }

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.legal-page .eyebrow { margin-bottom: 10px; }
.legal-page .section-title { margin-bottom: 8px; }
.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 36px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 16px;
}
.legal-content p strong,
.legal-content li strong { color: var(--ink); }
.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}
.legal-content a { color: var(--gold-h); }

/* Landing responsive overrides */
@media (max-width: 720px) {
  .hero {
    min-height: unset;
    padding: 60px 20px 76px;
  }
  .hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 28px;
    text-align: center;
  }
  .hero-text {
    width: 100%;
  }
  .display {
    font-size: clamp(48px, 15vw, 76px);
  }
  .hero-text .landing-sub {
    margin-bottom: 32px;
  }
  .hero-visual {
    width: 320px;
    max-width: 78vw;
    margin: 0 auto;
  }
  .digital-badge {
    width: 116px;
    padding: 13px 11px;
    font-size: 10px;
    border-radius: 12px;
    top: auto; right: auto;
    bottom: -10px; left: -10px;
    transform: rotate(5deg);
  }
  .scroll-cue {
    bottom: 18px;
  }
  .landing-sub {
    max-width: none;
  }
  .about-columns {
    grid-template-columns: 1fr;
  }
  .what-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
