/* ============================================================
   CLAIRE MADISON — "Get Her Back" Quiz Funnel
   style.css  —  warm, trustworthy, editorial
   ============================================================ */

:root {
  /* palette */
  --cream:        #FAF7F2;
  --cream-deep:   #F1EADF;
  --terracotta:   #C96F5B;
  --terracotta-d: #B25A47;
  --gold:         #D9A441;
  --ink:          #2C2C2C;
  --ink-soft:     #5A5550;
  --line:         #E4DBCD;
  --white:        #FFFFFF;

  /* score tiers */
  --tier-green:   #6FA86F;
  --tier-blue:    #6F9BC9;
  --tier-amber:   #D9A441;
  --tier-red:     #C96F5B;

  /* type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Source Sans 3', -apple-system, sans-serif;

  --shadow-sm: 0 2px 10px rgba(44,44,44,.06);
  --shadow-md: 0 10px 34px rgba(44,44,44,.10);
  --shadow-lg: 0 22px 60px rgba(44,44,44,.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* soft atmospheric background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(201,111,91,.07), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(217,164,65,.07), transparent 42%);
  pointer-events: none; z-index: 0;
}

/* ---------- screen system ---------- */
.screen { display: none; position: relative; z-index: 1; min-height: 100vh; }
.screen--active { display: block; animation: fadeUp .5s ease both; }

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

/* ============================================================
   HOME
   ============================================================ */
.home-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 46px 24px 30px;
  text-align: center;
}

.home-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.home-photo {
  width: 188px; height: 188px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.home-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}

.home-photo-caption { display: flex; flex-direction: column; margin-bottom: 26px; }
.caption-name {
  font-family: var(--serif);
  font-size: 19px; font-weight: 600; color: var(--ink);
}
.caption-role {
  font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-soft); text-transform: uppercase;
}

.home-headline {
  font-family: var(--serif);
  font-size: clamp(33px, 7.4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}
.home-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.home-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 30px;
}

/* ---------- buttons ---------- */
.btn-primary {
  font-family: var(--sans);
  font-size: 17px; font-weight: 700;
  color: var(--white);
  background: var(--terracotta);
  border: none;
  padding: 17px 40px;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 26px rgba(201,111,91,.34);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201,111,91,.42);
}
.btn-primary:active { transform: translateY(0); }
.btn-arrow { transition: transform .18s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.home-reassure {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.home-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
  font-family: var(--serif);
  font-size: 21px; color: var(--terracotta);
}
.trust-item span {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-soft);
}
.trust-divider { width: 1px; height: 30px; background: var(--line); }

.home-footer {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.home-footer p { margin-bottom: 6px; }
.footer-brand { font-weight: 600; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-progress-bar {
  position: sticky; top: 0;
  height: 6px; width: 100%;
  background: var(--cream-deep);
  z-index: 5;
}
.quiz-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  border-radius: 0 4px 4px 0;
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

.quiz-stage {
  max-width: 600px;
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.q-step { animation: fadeUp .4s ease both; }

.q-count {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta-d);
  margin-bottom: 12px;
}
.q-title {
  font-family: var(--serif);
  font-size: clamp(23px, 4.6vw, 30px);
  font-weight: 600; line-height: 1.28;
  margin-bottom: 8px;
}
.q-hint {
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 22px;
}

/* option buttons */
.q-options { display: flex; flex-direction: column; gap: 11px; }
.q-option {
  font-family: var(--sans);
  font-size: 16px; font-weight: 500;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 13px;
  transition: border-color .15s, background .15s, transform .12s;
}
.q-option:hover { border-color: var(--terracotta); transform: translateX(3px); }
.q-mark {
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .15s, background .15s;
}
.q-option.is-multi .q-mark { border-radius: 6px; }
.q-mark svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: .15s; }
.q-option.selected { border-color: var(--terracotta); background: #FCF1ED; }
.q-option.selected .q-mark { background: var(--terracotta); border-color: var(--terracotta); }
.q-option.selected .q-mark svg { opacity: 1; transform: scale(1); stroke: #fff; }

/* multi-select continue button */
.q-continue {
  margin-top: 22px;
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  background: var(--terracotta);
  border: none; border-radius: 100px;
  padding: 16px; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.q-continue:disabled { opacity: .4; cursor: not-allowed; }
.q-continue:not(:disabled):hover { background: var(--terracotta-d); }

/* name / email capture pages */
.capture { text-align: center; padding-top: 14px; }
.capture-icon { font-size: 40px; margin-bottom: 14px; }
.capture-title {
  font-family: var(--serif);
  font-size: clamp(25px, 5vw, 33px);
  font-weight: 600; margin-bottom: 10px;
}
.capture-sub {
  font-size: 15.5px; color: var(--ink-soft);
  max-width: 400px; margin: 0 auto 24px;
}
.capture-input {
  width: 100%;
  font-family: var(--sans); font-size: 17px;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.capture-input:focus { outline: none; border-color: var(--terracotta); }
.capture-error {
  font-size: 13px; color: var(--terracotta-d);
  min-height: 18px; margin-bottom: 8px;
}
.capture-note {
  font-size: 12.5px; color: var(--ink-soft);
  margin-top: 14px;
}

.q-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
}
.q-back:hover { color: var(--terracotta); }

/* confirm screen */
.confirm-wrap { text-align: center; padding-top: 10px; }
.confirm-title {
  font-family: var(--serif);
  font-size: clamp(25px, 5vw, 33px);
  font-weight: 600; margin-bottom: 8px;
}
.confirm-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 26px; }

/* ============================================================
   ANALYZING
   ============================================================ */
.analyzing-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.analyzing-spinner {
  position: relative; width: 80px; height: 80px;
  margin-bottom: 30px;
}
.spinner-ring {
  position: absolute; inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
.spinner-ring:nth-child(2) { inset: 11px; border-top-color: var(--gold); animation-duration: 1.5s; }
.spinner-ring:nth-child(3) { inset: 22px; border-top-color: var(--terracotta-d); animation-duration: .9s; }
@keyframes spin { to { transform: rotate(360deg); } }

.analyzing-title {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600; margin-bottom: 8px;
}
.analyzing-text { font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   RESULTS
   ============================================================ */
.results-stage {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

/* --- left: score card --- */
.score-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
}
.score-eyebrow {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--terracotta-d);
  text-align: center; margin-bottom: 18px;
}
.score-dial {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 10px;
}
.score-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-dial-track { fill: none; stroke: var(--cream-deep); stroke-width: 16; }
.score-dial-fill {
  fill: none; stroke-width: 16; stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(.34,1.2,.4,1);
}
.score-dial-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-number {
  font-family: var(--serif);
  font-size: 58px; font-weight: 700; line-height: 1;
}
.score-outof { font-size: 13px; color: var(--ink-soft); letter-spacing: .05em; }

.score-tier-label {
  text-align: center;
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  margin: 6px 0 14px;
}
.score-verdict {
  font-size: 15px; color: var(--ink-soft);
  text-align: center; margin-bottom: 24px;
}

/* breakdown bars */
.breakdown { display: flex; flex-direction: column; gap: 16px; }
.bd-row {}
.bd-head {
  display: flex; justify-content: space-between;
  font-size: 13.5px; font-weight: 600; margin-bottom: 5px;
}
.bd-score { font-variant-numeric: tabular-nums; }
.bd-track {
  height: 9px; background: var(--cream-deep);
  border-radius: 6px; overflow: hidden;
}
.bd-fill {
  height: 100%; width: 0%;
  border-radius: 6px;
  transition: width 1.3s cubic-bezier(.4,0,.2,1);
}
.bd-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; }

/* tier legend */
.tier-legend {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 7px; margin-top: 24px;
}
.tl-cell {
  text-align: center;
  border-radius: 10px;
  padding: 9px 4px;
  border: 1px solid transparent;
}
.tl-range { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.tl-name  { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tl-cell.dim { opacity: .34; }

/* --- right: unlock card --- */
.unlock-card {
  background: linear-gradient(170deg, #2C2C2C, #413a36);
  color: var(--cream);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.unlock-card::after {
  content: ""; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(217,164,65,.22), transparent 70%);
}
.unlock-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(217,164,65,.4);
  padding: 6px 13px; border-radius: 100px;
  margin-bottom: 18px;
}
.unlock-title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  line-height: 1.18; margin-bottom: 6px;
}
.unlock-title em { color: var(--gold); font-style: italic; }
.unlock-sub {
  font-size: 14.5px;
  color: rgba(250,247,242,.74);
  margin-bottom: 22px;
}
.unlock-list { list-style: none; margin-bottom: 24px; }
.unlock-list li {
  display: flex; gap: 11px;
  font-size: 14.5px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.unlock-list li:last-child { border-bottom: none; }
.unlock-check {
  flex: none; width: 20px; height: 20px;
  background: rgba(217,164,65,.18);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold); font-size: 12px; font-weight: 700;
}
.unlock-price {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.price-now {
  font-family: var(--serif);
  font-size: 42px; font-weight: 700; color: var(--cream);
}
.price-was {
  font-size: 19px; color: rgba(250,247,242,.5);
  text-decoration: line-through;
}
.price-save {
  font-size: 12px; font-weight: 700;
  color: #2C2C2C; background: var(--gold);
  padding: 3px 9px; border-radius: 6px;
}
.unlock-price-note {
  font-size: 12.5px; color: rgba(250,247,242,.6);
  margin-bottom: 20px;
}
.btn-unlock {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px; font-weight: 700;
  color: #2C2C2C;
  background: var(--gold);
  border: none; border-radius: 100px;
  padding: 18px; cursor: pointer;
  transition: transform .16s, box-shadow .16s;
  box-shadow: 0 10px 26px rgba(217,164,65,.3);
}
.btn-unlock:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(217,164,65,.42); }
.unlock-guarantee {
  text-align: center;
  font-size: 12.5px;
  color: rgba(250,247,242,.6);
  margin-top: 14px;
}

.results-disclaimer {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .results-grid { grid-template-columns: 1fr; }
  .unlock-card { order: -1; }   /* offer first on mobile */
}
@media (max-width: 480px) {
  .home-wrap { padding-top: 34px; }
  .home-photo { width: 158px; height: 158px; }
  .home-trust { gap: 14px; }
  .score-card, .unlock-card { padding: 28px 22px; }
  .score-dial { width: 180px; height: 180px; }
}
