@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --aubergine: #481e32;
  --aubergine-deep: #2d111f;
  --cream: #f3e6db;
  --cream-light: #fbf7f2;
  --warm-grey: #6f6663;
  --charcoal: #3a3534;
  --gold: #d7a83e;
  --gold-light: #f0ce75;
  --white: #fff;
  --shadow: 0 24px 70px rgba(72, 30, 50, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--charcoal);
  background: var(--cream-light);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(72, 30, 50, 0.14);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--aubergine); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: white; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.55); }
.brand-name { font-size: .86rem; font-weight: 700; letter-spacing: .16em; }
.header-label { color: var(--warm-grey); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

main { overflow: hidden; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.hero-copy { max-width: 760px; }
.hero-visual { display: grid; gap: 18px; align-self: center; }
.hero-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.eyebrow { margin: 0 0 18px; color: var(--aubergine); font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

h1, h2, h3 { margin-top: 0; color: var(--aubergine); line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 800px; margin-bottom: 30px; font-size: clamp(3.35rem, 7vw, 6.8rem); font-weight: 600; }
h1 em { color: var(--gold); font-style: normal; }
.hero-text { max-width: 700px; margin: 0 0 28px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 34px; color: var(--warm-grey); font-size: .86rem; font-weight: 600; }
.meta span + span::before { content: "·"; margin-right: 24px; color: var(--gold); }

.button { border: 0; border-radius: 0; padding: 17px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--aubergine); box-shadow: 0 12px 30px rgba(72, 30, 50, .18); }
.button-primary:hover { background: var(--aubergine-deep); }
.button-gold { width: 100%; color: var(--aubergine-deep); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

.hero-statement { position: relative; padding: 30px 32px 28px; color: var(--cream); background: var(--aubergine); box-shadow: var(--shadow); }
.hero-statement::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(240, 206, 117, .45); pointer-events: none; }
.hero-statement p { position: relative; z-index: 1; margin: 0; font-size: 1.05rem; }
.hero-statement .statement-truth { font-size: 1.26rem; font-weight: 600; line-height: 1.45; }
.gold-line { width: 62px; height: 2px; margin: 28px 0; background: var(--gold); }

.is-hidden { display: none !important; }

.quiz-section, .result-section { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.quiz-section { min-height: calc(100vh - 90px); }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; color: var(--warm-grey); font-size: .88rem; }
.quiz-topline p { margin: 0; font-weight: 600; }
.back-button, .restart-button { min-height: 44px; padding: 10px 0; border: 0; color: var(--aubergine); background: transparent; font-weight: 600; }
.progress-track { height: 4px; margin: 18px 0 62px; overflow: hidden; background: #e8d8cb; }
.progress-bar { height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--aubergine), var(--gold)); transition: width .35s ease; }
.question-wrap { max-width: 820px; }
.question-wrap h2 { max-width: 800px; margin-bottom: 38px; font-size: clamp(2rem, 4.5vw, 3.65rem); }
.answers { display: grid; gap: 12px; }
.answer {
  width: 100%;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(72, 30, 50, .18);
  color: var(--charcoal);
  background: white;
  text-align: left;
  transition: border .18s ease, transform .18s ease, background .18s ease;
}
.answer:hover, .answer:focus-visible { transform: translateX(5px); border-color: var(--gold); outline: none; }
.answer.is-selected { color: white; border-color: var(--aubergine); background: var(--aubergine); }
.answer-letter { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--aubergine); font-size: .76rem; font-weight: 700; }
.answer.is-selected .answer-letter { color: var(--gold-light); }

.result-section { width: min(1080px, calc(100% - 40px)); }
.result-intro { max-width: 830px; }
.result-kicker { margin: 0 0 8px; color: var(--warm-grey); }
.result-intro h2 { margin-bottom: 26px; font-size: clamp(2.5rem, 6vw, 5.4rem); }
.result-lead { max-width: 750px; margin: 0 0 18px; color: var(--aubergine); font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; }
.result-body { max-width: 760px; margin: 0; font-size: 1.06rem; }

.code-map { margin: 52px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dccabd; border-bottom: 1px solid #dccabd; }
.code-item { position: relative; padding: 24px 18px; opacity: .36; }
.code-item + .code-item { border-left: 1px solid #dccabd; }
.code-item span, .code-item small { display: block; }
.code-item span { color: var(--aubergine); font-weight: 700; font-size: 1.06rem; }
.code-item small { color: var(--warm-grey); }
.code-item.is-active { opacity: 1; background: var(--cream); }
.code-item.is-active::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--gold); }

.recommendation { padding: clamp(28px, 5vw, 54px); color: white; background: var(--aubergine); box-shadow: var(--shadow); }
.recommendation .eyebrow { color: var(--gold-light); }
.offer-card h3 { margin-bottom: 16px; color: white; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.offer-card p { max-width: 740px; margin: 0 0 28px; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.offer-link { padding: 13px 18px; color: var(--aubergine); background: var(--gold-light); text-decoration: none; font-weight: 700; }
.offer-link.secondary { color: white; border: 1px solid rgba(255,255,255,.5); background: transparent; }

.foundation-choice { margin-top: 20px; padding: 34px; border: 1px solid #dccabd; background: white; }
.foundation-choice h3 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-grid button { padding: 24px; border: 1px solid #dccabd; color: var(--charcoal); background: var(--cream-light); text-align: left; }
.choice-grid button:hover { border-color: var(--gold); }
.choice-grid span, .choice-grid strong { display: block; }
.choice-grid span { margin-bottom: 16px; }
.choice-grid strong { color: var(--aubergine); }

.email-panel { margin-top: 70px; padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 80px); align-items: start; background: var(--cream); }
.email-panel h3 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.email-panel p { margin-top: 0; }
.email-panel form { display: grid; gap: 9px; }
.email-panel label:not(.consent) { color: var(--aubergine); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.email-panel input[type="text"], .email-panel input[type="email"] { width: 100%; padding: 15px; border: 1px solid #cdb9aa; border-radius: 0; background: white; }
.email-panel input:focus { border-color: var(--gold); outline: 2px solid rgba(215,168,62,.2); }
.consent { margin: 8px 0 12px; display: flex; align-items: flex-start; gap: 10px; color: var(--warm-grey); font-size: .76rem; line-height: 1.5; }
.consent input { margin-top: 4px; accent-color: var(--aubergine); }
.consent a { color: var(--aubergine); font-weight: 600; text-underline-offset: 2px; }
.form-status { min-height: 24px; margin: 0; color: var(--aubergine); font-size: .84rem; font-weight: 600; }
.restart-button { display: block; margin: 28px auto 0; }

footer { padding: 42px max(20px, calc((100% - 1180px) / 2)); display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; color: var(--cream); background: var(--aubergine-deep); }
.footer-brand { font-weight: 700; letter-spacing: .16em; }
footer p { margin: 0; color: var(--gold-light); }
footer nav { margin-left: auto; display: flex; gap: 22px; }
footer a { color: var(--cream); font-size: .8rem; }

.legal-main { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 96px; overflow: visible; }
.legal-intro { margin-bottom: 54px; padding-bottom: 38px; border-bottom: 1px solid #dccabd; }
.legal-intro h1 { max-width: none; margin-bottom: 22px; font-size: clamp(2.8rem, 7vw, 5.7rem); }
.legal-intro p { max-width: 720px; margin: 0; font-size: 1.05rem; }
.legal-section { margin-top: 46px; }
.legal-section h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.legal-section h3 { margin: 28px 0 10px; font-size: 1.12rem; letter-spacing: -.015em; }
.legal-section p, .legal-section li { color: var(--charcoal); }
.legal-section ul { padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--aubergine); font-weight: 600; text-underline-offset: 3px; }
.legal-note { margin-top: 48px; padding: 24px 26px; border-left: 4px solid var(--gold); background: var(--cream); }
.legal-back { display: inline-flex; margin-top: 38px; color: var(--aubergine); font-weight: 700; text-decoration: none; }

@media (max-width: 800px) {
  .site-header { min-height: 74px; }
  .header-label { display: none; }
  .hero { min-height: 0; padding: 52px 0 70px; grid-template-columns: 1fr; gap: 72px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-visual { width: min(100%, 560px); margin-left: auto; }
  .quiz-section, .result-section { padding-top: 44px; }
  .progress-track { margin-bottom: 42px; }
  .email-panel { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header, .hero, .quiz-section, .result-section { width: min(100% - 28px, 1180px); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: .72rem; }
  .hero { padding-top: 40px; }
  .hero-text { font-size: 1rem; }
  .meta { display: grid; gap: 4px; }
  .meta span + span::before { display: none; }
  .button-primary { width: 100%; }
  .hero-statement { padding: 44px 28px 34px; }
  .answer { padding: 16px 14px; align-items: flex-start; }
  .code-map { grid-template-columns: 1fr; }
  .code-item + .code-item { border-left: 0; border-top: 1px solid #dccabd; }
  .code-item.is-active::before { right: auto; bottom: 0; width: 3px; height: auto; }
  .recommendation, .foundation-choice, .email-panel { margin-left: -14px; margin-right: -14px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { margin-left: 0; }
  .legal-main { width: min(100% - 28px, 880px); padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
