:root {
  --ink: #1c2822;
  --muted: #6d756f;
  --cream: #f9f5ee;
  --paper: #fffdf9;
  --green: #285d45;
  --green-dark: #164532;
  --sage: #dce7d8;
  --peach: #f0a888;
  --yellow: #f2cb68;
  --lavender: #c9bfdf;
  --line: rgba(28, 40, 34, .13);
  --shadow: 0 24px 70px rgba(35, 57, 45, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }

/* Provider-neutral ad containers. Replace the label with any provider's tag. */
.ad-slot { min-height: 90px; width: min(calc(100% - 40px), 728px); margin: 24px auto; display: grid; place-items: center; border: 1px dashed rgba(28, 40, 34, .22); border-radius: 14px; background: linear-gradient(135deg, rgba(255,253,249,.8), rgba(220,231,216,.38)); color: #7a837d; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; text-align: center; text-transform: uppercase; }
.ad-slot span { opacity: .82; }
.ad-slot-banner { margin-top: 12px; margin-bottom: 12px; }
.ad-slot-flow-top { width: 100%; min-height: 76px; margin: 0 0 24px; }
.ad-slot-flow-bottom { width: 100%; min-height: 76px; margin: 24px 0 0; }
.home-main-grid { width: min(100%, 1440px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1240px) 160px; gap: 20px; align-items: center; padding: 0 20px; }
.home-main-grid .hero { width: 100%; padding-left: 14px; padding-right: 14px; }
.home-ad-rail { min-width: 0; }
.ad-slot-side { width: 100%; min-height: 280px; margin: 0; padding: 18px 10px; }
.ad-slot-side span { writing-mode: vertical-rl; transform: rotate(180deg); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; color: white; background: var(--green); padding: 12px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid #e49a62; outline-offset: 3px; }

.site-header { height: 84px; max-width: 1240px; margin: auto; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 23px/1 "Manrope", sans-serif; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50% 50% 46% 54% / 57% 45% 55% 43%; color: white; background: var(--green); font-size: 16px; transform: rotate(-5deg); }
.brand-mark::first-letter { transform: rotate(5deg); }
.header-cta { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 6px 0; font-weight: 700; cursor: pointer; }

.screen { display: none; animation: fadeUp .42s ease both; }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { min-height: 650px; max-width: 1240px; margin: 0 auto; padding: 58px 34px 86px; display: grid; grid-template-columns: .94fr 1.06fr; gap: 64px; align-items: center; }
.eyebrow, .section-kicker { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: 1.9px; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); box-shadow: 10px 0 0 var(--yellow); margin-right: 10px; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -2.5px; margin: 0; }
h1 { font-size: clamp(48px, 5vw, 72px); line-height: 1.04; margin-top: 23px; }
h1 em { color: var(--green); font-family: Georgia, serif; font-weight: 400; letter-spacing: -3px; }
.hero-copy { max-width: 510px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 26px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { border: 0; border-radius: 14px; padding: 15px 22px; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 10px 24px rgba(40, 93, 69, .2); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 12px 28px rgba(40, 93, 69, .28); }
.button-large { padding: 17px 24px; }
.button-full { width: 100%; padding: 16px 22px; }
.button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.text-button { border: 0; background: none; padding: 8px 0; font-weight: 700; cursor: pointer; }
.text-button:hover { color: var(--green); }
.play-icon { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-right: 8px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; }
.social-proof { display: flex; gap: 15px; align-items: center; margin-top: 40px; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 38px; height: 38px; object-fit: cover; border: 3px solid var(--cream); border-radius: 50%; margin-left: -9px; }
.avatar-stack img:first-child { margin-left: 0; }
.social-proof p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.social-proof strong { color: var(--ink); font-size: 13px; }

.hero-visual { position: relative; height: 522px; }
.photo-main { position: absolute; inset: 0 7% 0 8%; border-radius: 160px 160px 28px 28px; background: linear-gradient(180deg, transparent 55%, rgba(20,40,30,.24)), url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1400&q=88") center/cover; box-shadow: var(--shadow); }
.photo-main::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.45); border-radius: inherit; pointer-events: none; }
.floating-card { position: absolute; z-index: 2; background: rgba(255,253,249,.94); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 17px 45px rgba(24,44,33,.17); backdrop-filter: blur(10px); }
.question-float { left: -1%; bottom: 55px; width: 244px; border-radius: 17px; padding: 19px; transform: rotate(-2deg); }
.mini-label { display: block; margin-bottom: 8px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.question-float strong { font: 700 14px/1.35 "Manrope", sans-serif; }
.mini-answer { display: block; margin-top: 13px; padding: 9px 10px; border-radius: 8px; background: var(--sage); font-size: 10px; font-weight: 700; }
.mini-answer i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.score-float { right: -2%; top: 67px; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 15px; transform: rotate(2deg); }
.score-float .sparkle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.score-float strong, .score-float small { display: block; }
.score-float strong { font-size: 12px; }.score-float small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.doodle { position: absolute; z-index: 3; font-size: 30px; color: var(--peach); }
.doodle-one { top: 4px; left: 3%; }.doodle-two { right: 1%; bottom: 18px; transform: rotate(13deg); }

.how-strip { min-height: 117px; padding: 25px max(34px, calc((100vw - 1172px)/2)); background: var(--green); color: white; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.how-strip > p { font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.how-strip ol { list-style: none; display: flex; gap: 48px; padding: 0; margin: 0; }
.how-strip li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.how-strip li span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--yellow); }

.flow-screen { min-height: calc(100vh - 84px); padding: 35px 20px 90px; background-image: radial-gradient(circle at 12% 18%, rgba(240,168,136,.14) 0 2px, transparent 3px), radial-gradient(circle at 88% 78%, rgba(40,93,69,.12) 0 2px, transparent 3px); background-size: 42px 42px, 53px 53px; }
.flow-shell { max-width: 840px; margin: 0 auto; }
.narrow-shell { max-width: 630px; }
.back-button { display: inline-flex; gap: 8px; border: 0; background: none; margin: 0 0 20px; padding: 8px 0; color: var(--muted); font-weight: 700; cursor: pointer; }
.flow-card, .question-card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid rgba(28,40,34,.08); border-radius: var(--radius); box-shadow: var(--shadow); }
.flow-card { padding: 50px 54px; text-align: center; }
.flow-card h2, .question-card h2 { font-size: clamp(32px, 5vw, 45px); line-height: 1.1; margin: 14px 0 15px; }
.flow-card > p, .question-card > p { color: var(--muted); line-height: 1.65; }
form { margin-top: 32px; text-align: left; }
label { display: block; margin: 0 0 8px; font-weight: 800; font-size: 13px; }
label span { color: var(--muted); font-weight: 500; }
input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 15px 16px; margin-bottom: 19px; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(40,93,69,.09); }
.privacy-note { margin: 18px 0 0 !important; font-size: 11px; }

.progress-header { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 25px; margin-bottom: 22px; }
.progress-header .back-button { margin: 0; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 6px; background: #deded6; }
.progress-bar { width: 16%; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.question-card { padding: 42px 55px 46px; text-align: center; }
.question-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 18px; background: var(--sage); font-size: 26px; transform: rotate(-3deg); }
.question-card h2 { max-width: 610px; margin-left: auto; margin-right: auto; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 29px 0 26px; text-align: left; }
.answer-option { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 13px; background: white; cursor: pointer; font-weight: 700; transition: .18s ease; }
.answer-option:hover { border-color: rgba(40,93,69,.55); transform: translateY(-1px); }
.answer-option[aria-checked="true"] { border-color: var(--green); background: #f1f6ef; box-shadow: 0 0 0 2px rgba(40,93,69,.1); }
.option-letter { flex: 0 0 auto; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #f0eee7; color: var(--muted); font-size: 12px; }
.answer-option[aria-checked="true"] .option-letter { color: white; background: var(--green); }
.next-button { min-width: 180px; }

.success-badge { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 20px; color: white; background: var(--green); border: 8px solid var(--sage); border-radius: 50%; font-size: 23px; }
.link-box { margin: 29px 0 18px; padding: 15px; background: #f1efe8; border-radius: 14px; text-align: left; }
.link-box label { color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.link-row { display: flex; gap: 8px; }
.link-row input { min-width: 0; margin: 0; padding: 12px; font-size: 12px; }
.link-row button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 0 15px; color: white; background: var(--ink); font-weight: 700; cursor: pointer; }
.share-actions { display: grid; gap: 10px; }
.centered { margin: auto; }

.friend-illustration { position: relative; width: 143px; height: 100px; margin: 0 auto 18px; }
.portrait { position: absolute; bottom: 0; width: 76px; height: 92px; border: 6px solid var(--paper); border-radius: 50px 50px 28px 28px; background-size: cover; background-position: center; box-shadow: 0 9px 25px rgba(30,50,40,.15); }
.portrait-a { left: 2px; background-image: url("https://images.unsplash.com/photo-1594744803329-e58b31de8bf5?auto=format&fit=crop&w=300&h=380&q=84"); transform: rotate(-5deg); }
.portrait-b { right: 2px; background-image: url("https://images.unsplash.com/photo-1607990281513-2c110a25bd8c?auto=format&fit=crop&w=300&h=380&q=84"); transform: rotate(5deg); }
.heart-pop { position: absolute; z-index: 2; right: -10px; top: -5px; color: var(--peach); font-size: 27px; transform: rotate(12deg); }

.result-card { overflow: visible; }
.score-ring { --score-angle: 0deg; display: grid; place-items: center; width: 145px; height: 145px; margin: 18px auto 21px; border-radius: 50%; background: conic-gradient(var(--green) var(--score-angle), var(--sage) 0); }
.score-ring::before { content: ""; position: absolute; width: 116px; height: 116px; border-radius: 50%; background: var(--paper); }
.score-ring div { position: relative; z-index: 1; }
.score-ring strong { font: 800 45px/1 "Manrope", sans-serif; }.score-ring span { color: var(--muted); }
.result-list { display: grid; gap: 7px; margin: 25px 0; text-align: left; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; background: #f5f3ed; border-radius: 10px; font-size: 12px; }
.result-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item b { flex: 0 0 auto; color: var(--green); }
.result-item.miss b { color: #b7654a; }
.confetti i { position: absolute; width: 8px; height: 18px; border-radius: 3px; background: var(--peach); transform: rotate(25deg); }
.confetti i:nth-child(1) { top: 55px; left: 9%; }.confetti i:nth-child(2) { top: 115px; left: 5%; background: var(--yellow); transform: rotate(70deg); }.confetti i:nth-child(3) { top: 43px; right: 11%; background: var(--lavender); transform: rotate(-30deg); }.confetti i:nth-child(4) { top: 130px; right: 6%; background: var(--green); transform: rotate(45deg); }.confetti i:nth-child(5) { top: 22px; left: 25%; background: var(--green); transform: rotate(-60deg); }.confetti i:nth-child(6) { top: 28px; right: 27%; background: var(--yellow); transform: rotate(65deg); }

footer { min-height: 112px; max-width: 1240px; margin: auto; padding: 35px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.brand.small { font-size: 18px; }.brand.small .brand-mark { width: 25px; height: 25px; font-size: 13px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 10px; color: white; background: var(--ink); box-shadow: 0 10px 35px rgba(0,0,0,.2); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 850px) {
  .home-main-grid { display: block; padding: 0; }
  .home-ad-rail { padding: 0 20px; }
  .ad-slot-side { width: min(100%, 728px); min-height: 90px; margin: 0 auto 24px; }
  .ad-slot-side span { writing-mode: initial; transform: none; }
  .hero { grid-template-columns: 1fr; padding-top: 35px; text-align: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }.hero-actions, .social-proof { justify-content: center; }
  .hero-visual { max-width: 600px; width: 100%; margin: 0 auto; }
  .how-strip { flex-direction: column; justify-content: center; text-align: center; padding-top: 28px; padding-bottom: 28px; }
  .how-strip > p { margin: 0; }.how-strip ol { gap: 25px; }
}

@media (max-width: 620px) {
  .ad-slot { width: calc(100% - 28px); min-height: 64px; margin-top: 14px; margin-bottom: 14px; }
  .ad-slot-flow-top, .ad-slot-flow-bottom { width: 100%; }
  .home-ad-rail { padding: 0 14px; }
  .ad-slot-side { width: 100%; }
  .site-header { height: 70px; padding: 0 18px; }.header-cta { font-size: 12px; }
  .hero { padding: 35px 20px 65px; gap: 48px; }
  h1 { font-size: 44px; letter-spacing: -2px; }.hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 12px; }.button-large { width: 100%; }
  .hero-visual { height: 410px; }.photo-main { left: 4%; right: 4%; border-radius: 105px 105px 24px 24px; }
  .question-float { left: -4px; bottom: 28px; width: 205px; }.score-float { right: -4px; top: 55px; }
  .how-strip ol { flex-direction: column; align-items: flex-start; gap: 15px; }
  .flow-screen { min-height: calc(100vh - 70px); padding: 22px 14px 65px; }
  .flow-card, .question-card { padding: 38px 22px; border-radius: 20px; }
  .flow-card h2, .question-card h2 { font-size: 33px; letter-spacing: -1.7px; }
  .progress-header { grid-template-columns: 45px 1fr 45px; gap: 10px; }.progress-header .back-button span { display: none; }
  .answer-grid { grid-template-columns: 1fr; }.answer-option { min-height: 60px; }
  footer { padding: 28px 18px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
