/* ============================================================
   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; }
}

/* ============================================================
   POLISH UPDATE — glow, premium motion, cleaner mobile order
   ============================================================ */

/* Claire photo: remove baked-border feeling, add soft premium glow */
.home-photo {
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  animation: floaty 6s ease-in-out infinite;
}
.home-photo::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(201,111,91,.32), transparent 58%),
    radial-gradient(circle, rgba(217,164,65,.20), transparent 72%);
  filter: blur(8px);
  opacity: .88;
  z-index: -2;
  animation: portraitGlow 4.5s ease-in-out infinite;
}
.home-photo::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(201,111,91,.38);
  box-shadow:
    0 0 0 8px rgba(255,255,255,.35),
    0 0 34px rgba(201,111,91,.24),
    inset 0 0 18px rgba(217,164,65,.18);
  z-index: -1;
  animation: portraitRing 5.8s ease-in-out infinite;
}
.home-photo img {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 48%;
  border: 3px solid rgba(250,247,242,.95);
  box-shadow: 0 18px 46px rgba(44,44,44,.16);
}

@keyframes portraitGlow {
  0%,100% { transform: scale(.96); opacity: .62; }
  50%     { transform: scale(1.06); opacity: .95; }
}
@keyframes portraitRing {
  0%,100% { transform: scale(1); opacity: .72; }
  50%     { transform: scale(1.04); opacity: 1; }
}

/* Matching premium title highlight on home + offer card */
.home-headline,
.unlock-title {
  letter-spacing: -.025em;
}
.home-headline em,
.unlock-title em {
  display: inline-block;
  color: transparent;
  background: linear-gradient(135deg, var(--terracotta) 0%, #D88675 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 12px 34px rgba(201,111,91,.18);
}
.unlock-title em {
  filter: drop-shadow(0 8px 22px rgba(217,164,65,.16));
}

/* Button glow + subtle shine */
.btn-primary,
.q-continue,
.btn-unlock {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before,
.q-continue::before,
.btn-unlock::before {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 58%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg);
  animation: buttonShine 4.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-primary,
.q-continue:not(:disabled) {
  box-shadow: 0 12px 30px rgba(201,111,91,.34), 0 0 0 0 rgba(201,111,91,.28);
  animation: buttonPulse 3.4s ease-in-out infinite;
}
.btn-unlock {
  box-shadow: 0 14px 34px rgba(217,164,65,.34), 0 0 0 0 rgba(217,164,65,.28);
  animation: goldButtonPulse 3.4s ease-in-out infinite;
}
.q-continue:disabled::before { display: none; }
.q-option:hover {
  box-shadow: 0 10px 24px rgba(201,111,91,.10);
}

@keyframes buttonShine {
  0%, 52% { left: -90%; }
  76%, 100% { left: 132%; }
}
@keyframes buttonPulse {
  0%,100% { box-shadow: 0 12px 30px rgba(201,111,91,.32), 0 0 0 0 rgba(201,111,91,.22); }
  50%     { box-shadow: 0 16px 40px rgba(201,111,91,.42), 0 0 0 8px rgba(201,111,91,.06); }
}
@keyframes goldButtonPulse {
  0%,100% { box-shadow: 0 14px 34px rgba(217,164,65,.32), 0 0 0 0 rgba(217,164,65,.22); }
  50%     { box-shadow: 0 18px 44px rgba(217,164,65,.44), 0 0 0 8px rgba(217,164,65,.07); }
}

/* Footer contact */
.footer-contact a {
  color: var(--terracotta-d);
  font-weight: 700;
  text-decoration: none;
}
.footer-contact a:hover { text-decoration: underline; }

/* Premium analyzing screen */
.analyzing-wrap {
  background:
    radial-gradient(circle at 50% 30%, rgba(201,111,91,.12), transparent 34%),
    radial-gradient(circle at 42% 70%, rgba(217,164,65,.12), transparent 38%);
}
.analyzing-panel {
  width: min(540px, 100%);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(228,219,205,.85);
  border-radius: 28px;
  padding: 42px 34px 34px;
  box-shadow: 0 26px 80px rgba(44,44,44,.13);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.analyzing-panel::before {
  content: "";
  position: absolute;
  inset: -80px;
  background: conic-gradient(from 180deg, transparent, rgba(201,111,91,.14), transparent, rgba(217,164,65,.14), transparent);
  animation: panelSweep 8s linear infinite;
  pointer-events: none;
}
.analyzing-panel > * { position: relative; z-index: 1; }
.analyzing-spinner { margin-left: auto; margin-right: auto; }
.analyzing-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: 14px;
}
.analyzing-text {
  min-height: 24px;
  transition: opacity .18s ease;
}
.analysis-progress {
  width: 100%;
  height: 10px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
  margin: 26px 0 8px;
  box-shadow: inset 0 1px 3px rgba(44,44,44,.08);
}
.analysis-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  box-shadow: 0 0 18px rgba(201,111,91,.34);
  transition: width .18s linear;
}
.analysis-percent {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.analysis-checklist {
  display: grid;
  gap: 9px;
  text-align: left;
}
.analysis-step {
  font-size: 13.5px;
  color: rgba(90,85,80,.62);
  background: rgba(250,247,242,.78);
  border: 1px solid rgba(228,219,205,.8);
  border-radius: 12px;
  padding: 10px 12px 10px 34px;
  position: relative;
  transition: .28s ease;
}
.analysis-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
  transition: .28s ease;
}
.analysis-step.active {
  color: var(--ink);
  background: #fff;
  border-color: rgba(201,111,91,.34);
  box-shadow: 0 8px 20px rgba(44,44,44,.06);
}
.analysis-step.active::before {
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(201,111,91,.12);
}
@keyframes panelSweep { to { transform: rotate(360deg); } }

/* Mobile results: score first, blueprint second */
@media (max-width: 800px) {
  .score-card { order: 1; }
  .unlock-card { order: 2; }
}

@media (max-width: 480px) {
  .analyzing-panel { padding: 34px 22px 26px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-photo,
  .home-photo::before,
  .home-photo::after,
  .btn-primary,
  .q-continue,
  .btn-unlock,
  .btn-primary::before,
  .q-continue::before,
  .btn-unlock::before,
  .analyzing-panel::before {
    animation: none !important;
  }
}


/* ============================================================
   UPDATE 2 — clean fonts, fixed title crop, stronger CTA glow,
   offer/add-on page
   ============================================================ */
:root {
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { font-family: var(--sans); }

.home-wrap { padding-top: 42px; }
.home-headline,
.unlock-title,
.offer-title {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.18;
  overflow: visible;
}
.home-headline {
  font-size: clamp(38px, 7vw, 56px);
  padding-bottom: .12em;
  margin-bottom: 14px;
}
.home-headline em,
.unlock-title em,
.offer-title em {
  display: inline-block;
  font-family: var(--sans);
  font-style: italic;
  font-weight: 800;
  line-height: 1.22;
  padding: 0 .04em .12em;
  margin-bottom: -.10em;
  color: transparent;
  background: linear-gradient(135deg, var(--terracotta) 0%, #D78673 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}
.unlock-title { font-size: clamp(28px, 4vw, 36px); }
.unlock-title em { filter: none; }
.caption-name,
.trust-item strong,
.price-now,
.score-number,
.score-tier-label,
.tl-range { font-family: var(--sans); }

.btn-primary,
.q-continue:not(:disabled),
.btn-unlock {
  animation: ctaGlowOnOff 2.15s ease-in-out infinite !important;
}
.btn-primary::after,
.q-continue::after,
.btn-unlock::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.28), transparent 58%);
  opacity: 0;
  animation: ctaSoftFlash 2.15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes ctaGlowOnOff {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(201,111,91,.28), 0 0 0 0 rgba(201,111,91,0); }
  50% { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(201,111,91,.48), 0 0 0 9px rgba(201,111,91,.10); }
}
@keyframes ctaSoftFlash {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.btn-unlock {
  animation-name: goldCtaGlowOnOff !important;
}
@keyframes goldCtaGlowOnOff {
  0%, 100% { transform: translateY(0); box-shadow: 0 12px 28px rgba(217,164,65,.30), 0 0 0 0 rgba(217,164,65,0); }
  50% { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(217,164,65,.52), 0 0 0 9px rgba(217,164,65,.11); }
}

/* Analyzing: no blueprint step before payment */
.analysis-checklist { grid-template-columns: 1fr; }

/* Result price cleanup */
.unlock-price { margin-top: 2px; }
.price-now { font-size: 44px; letter-spacing: -.04em; }
.price-was,
.price-save { display: none !important; }

/* Offer/add-on page */
.offer-page {
  max-width: 760px;
  margin: 0 auto;
  animation: fadeUp .45s ease both;
}
.offer-back {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 18px;
}
.offer-back:hover { color: var(--terracotta-d); }
.offer-head {
  text-align: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.offer-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 12px;
}
.offer-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 10px;
}
.offer-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.offer-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.offer-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.86);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}
.offer-item.addon { cursor: pointer; }
.offer-item.addon:hover {
  transform: translateY(-2px);
  border-color: rgba(201,111,91,.42);
  box-shadow: 0 16px 36px rgba(44,44,44,.09);
}
.offer-item.selected {
  border-color: rgba(201,111,91,.62);
  background: #FFF8F3;
  box-shadow: 0 14px 34px rgba(201,111,91,.10);
}
.offer-check,
.offer-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: var(--terracotta);
  box-shadow: 0 8px 20px rgba(201,111,91,.24);
}
.offer-toggle {
  color: var(--terracotta-d);
  background: #fff;
  border: 1.5px solid rgba(201,111,91,.35);
}
.offer-item.selected .offer-toggle {
  color: #fff;
  background: var(--terracotta);
}
.offer-copy h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -.025em;
}
.offer-copy p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.offer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--terracotta-d);
  font-weight: 800;
  margin-bottom: 5px;
}
.offer-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.04em;
}
.bundle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(145deg, #2C2C2C, #463B34);
  color: var(--cream);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin: 18px 0;
  position: relative;
  overflow: hidden;
}
.bundle-card::after {
  content: "";
  position: absolute;
  inset: -70px;
  background: radial-gradient(circle at 80% 20%, rgba(217,164,65,.26), transparent 38%);
  pointer-events: none;
}
.bundle-card > * { position: relative; z-index: 1; }
.bundle-label {
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}
.bundle-card h2 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 4px;
}
.bundle-card p {
  color: rgba(250,247,242,.72);
  font-size: 14px;
}
.bundle-pricebox {
  text-align: right;
  min-width: 110px;
}
.bundle-was {
  display: block;
  color: rgba(250,247,242,.52);
  text-decoration: line-through;
  font-size: 18px;
  font-weight: 700;
}
.bundle-now {
  display: block;
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
}
.offer-actions {
  display: grid;
  gap: 11px;
}
.btn-bundle { width: 100%; }
.btn-secondary-checkout {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--terracotta-d);
  background: #fff;
  border: 1.5px solid rgba(201,111,91,.32);
  border-radius: 999px;
  padding: 17px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: .16s ease;
}
.btn-secondary-checkout:hover {
  transform: translateY(-1px);
  border-color: var(--terracotta);
  box-shadow: 0 12px 28px rgba(201,111,91,.12);
}

@media (max-width: 800px) {
  .unlock-card { order: 2 !important; }
  .score-card { order: 1 !important; }
}
@media (max-width: 520px) {
  .home-wrap { padding-top: 34px; }
  .home-headline { font-size: clamp(36px, 10vw, 48px); line-height: 1.22; }
  .home-headline em { padding-bottom: .16em; }
  .offer-head { padding: 26px 20px; }
  .offer-item { grid-template-columns: 36px 1fr; }
  .offer-price { grid-column: 2; font-size: 22px; }
  .bundle-card { align-items: flex-start; flex-direction: column; }
  .bundle-pricebox { text-align: left; }
}


/* ============================================================
   UPDATE 4 — animated quiz badge + unclipped Claire portrait
   ============================================================ */
.home-badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255,255,255,.96);
  border-color: rgba(201,111,91,.18);
  box-shadow: 0 8px 24px rgba(44,44,44,.05);
  animation: badgeToneShift 4.8s ease-in-out infinite;
}
.home-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--terracotta) 0%, #D78673 45%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  z-index: -1;
  animation: badgeFillSweep 4.8s ease-in-out infinite;
}
@keyframes badgeFillSweep {
  0%, 18%, 100% { transform: scaleX(0); opacity: 0; }
  34%, 68%      { transform: scaleX(1); opacity: 1; }
  84%           { transform: scaleX(0); opacity: 0; }
}
@keyframes badgeToneShift {
  0%, 18%, 100% {
    color: var(--terracotta-d);
    box-shadow: 0 8px 24px rgba(44,44,44,.05);
  }
  34%, 68% {
    color: #fff;
    box-shadow: 0 14px 34px rgba(201,111,91,.24), 0 0 0 7px rgba(201,111,91,.06);
  }
}

.home-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-photo img {
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: cover;
  object-position: center 34%;
}

@media (max-width: 520px) {
  .home-photo img {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-badge,
  .home-badge::before {
    animation: none !important;
  }
}


/* ============================================================
   UPDATE 5 — global corner logo + favicon support
   ============================================================ */
.site-logo {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 20;
  width: 96px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(228,219,205,.88);
  box-shadow: 0 10px 28px rgba(44,44,44,.07);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

#home .home-wrap { padding-top: 78px; }
#quiz .quiz-stage,
#results .results-stage,
#analyzing .analyzing-wrap {
  position: relative;
}

@media (max-width: 700px) {
  .site-logo {
    width: 74px;
    top: 14px;
    left: 14px;
    padding: 6px 8px;
    border-radius: 12px;
  }
  #home .home-wrap { padding-top: 92px; }
}


/* ============================================================
   UPDATE 6 — transparent logo, mobile no-overlap, slower badge,
   full Claire portrait
   ============================================================ */
.site-logo {
  top: 16px;
  right: 18px;
  left: auto;
  width: 72px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site-logo img {
  width: 100%;
  filter: drop-shadow(0 6px 16px rgba(44,44,44,.08));
}
#home .home-wrap { padding-top: 84px; }

.home-badge {
  animation-duration: 9.6s;
}
.home-badge::before {
  animation-duration: 9.6s;
}

.home-photo {
  overflow: visible;
}
.home-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: none !important;
  box-shadow: none !important;
  transform: scale(.98);
}

@media (max-width: 700px) {
  .site-logo {
    width: 52px;
    top: 12px;
    right: 12px;
    left: auto;
  }
  #home .home-wrap { padding-top: 78px; }
}

/* ============================================================
   PDF SUCCESS PAGE
   ============================================================ */
.success-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 24px 48px;
}
.success-card {
  width: min(680px, 100%);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 16px;
}
.success-card h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.05em;
  margin-bottom: 12px;
}
.success-sub {
  max-width: 500px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  font-size: 16px;
}
.success-summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--ink);
}
.success-summary div { margin: 4px 0; }
.success-download { width: min(420px, 100%); justify-content: center; }
.success-download:disabled { opacity: .5; cursor: not-allowed; }
.success-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}


/* ============================================================
   TEST PDF DELIVERY PAGE — checkout skipped for testing
   ============================================================ */
.pdf-delivery-page {
  max-width: 780px;
  margin: 0 auto;
  animation: fadeUp .45s ease both;
}
.pdf-ready-card {
  text-align: center;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}
.pdf-test-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FFF8F3;
  border: 1px solid rgba(201,111,91,.22);
  color: var(--ink-soft);
  font-size: 14px;
}
.pdf-test-total strong { color: var(--terracotta-d); }
.pdf-actions {
  display: grid;
  gap: 11px;
  margin-bottom: 16px;
}
.pdf-preview-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-height: 720px;
}
.pdf-preview-wrap iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}
@media (max-width: 520px) {
  .pdf-ready-card { padding: 24px 18px; }
  .pdf-preview-wrap,
  .pdf-preview-wrap iframe { min-height: 560px; height: 560px; }
}
