:root {
  --paper: #f7f8f3;
  --ink: #2f3832;
  --muted: #69756c;
  --line: #e1e6df;
  --card: #ffffff;
  --moss: #93b89c;
  --moss-strong: #5d7d66;
  --lime: #e5f0e7;
  --coral: #f2c9a5;
  --soft-warm: #fbefe3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 12px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header, footer { width: min(1240px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.site-header { min-height: 74px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50% 50% 42% 58%; color: white; background: var(--moss-strong); font-family: Georgia, serif; font-style: italic; }
.site-header nav, footer > div:last-child { display: flex; align-items: center; gap: 24px; font-size: .78rem; }
.site-header nav a, footer a { color: var(--muted); text-decoration: none; }
.privacy-chip { padding: 8px 11px; border-radius: 999px; color: #4b6b54; background: var(--lime); font-weight: 750; }

.hero { width: min(1180px, calc(100% - 48px)); min-height: 650px; margin: auto; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 60px; padding: 80px 0 90px; }
.eyebrow, .section-label { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .16em; }
.hero h1 { max-width: 760px; margin: 20px 0 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.lede { max-width: 660px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.65; }
.shared-invite { display: grid; grid-template-columns: auto 1fr; gap: 16px; max-width: 620px; margin-top: 24px; padding: 16px; border-radius: 20px; background: var(--lime); }
.shared-animal { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 18px; background: white; font-size: 2rem; }
.shared-invite p { margin: 1px 0 4px; color: var(--moss-strong); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.shared-invite h2 { margin: 0; font-family: Georgia, serif; font-size: 1.22rem; line-height: 1.2; font-weight: 500; }
.shared-code { display: inline-block; margin-top: 7px; color: var(--muted); font-family: ui-monospace, monospace; font-size: .7rem; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-actions > span { color: var(--muted); font-size: .75rem; }
.button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 16px; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .option:focus-visible, .offer-card:focus-visible, input:focus-visible, #result-code:focus-visible, a:focus-visible { outline: 3px solid #b87555; outline-offset: 3px; }
.button.primary { color: white; background: var(--moss-strong); }
.button.secondary { color: var(--ink); background: transparent; }
.button.large { min-height: 54px; padding-inline: 28px; }
.hero-art { position: relative; height: 430px; border-radius: 48% 52% 44% 56%; background: var(--lime); overflow: hidden; }
.orbit { position: absolute; inset: 13%; border: 1px dashed #aeb5ab; border-radius: 50%; }
.orbit-two { inset: 29%; transform: rotate(32deg); }
.orbit span { position: absolute; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.8rem; }
.orbit span:nth-child(1) { top: -29px; left: calc(50% - 29px); }
.orbit span:nth-child(2) { right: -29px; bottom: 24%; }
.orbit span:nth-child(3) { left: -29px; bottom: 14%; }
.hero-seal { position: absolute; inset: 50% auto auto 50%; display: grid; width: 106px; height: 106px; place-content: center; transform: translate(-50%,-50%); border-radius: 50%; color: var(--ink); background: var(--coral); text-align: center; }
.hero-seal strong { font-family: Georgia, serif; font-size: 1.85rem; line-height: .9; }
.hero-seal span { margin-top: 5px; font-size: .65rem; font-weight: 800; text-transform: uppercase; }

.quiz-shell { width: min(1040px, calc(100% - 32px)); min-height: 520px; margin: 0 auto 110px; padding: 48px; border-radius: 20px; background: var(--card); box-shadow: 0 16px 44px rgba(47,56,50,.06); }
.start-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 70px; align-items: start; }
.start-panel h2, .method h2, .future-offers h2 { margin: 10px 0 18px; font-family: Georgia, serif; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.start-panel > div > p:last-child, .future-offers > div > p:last-child { color: var(--muted); line-height: 1.6; }
.promise-list { margin: 0; padding: 0; list-style: none; }
.promise-list li { display: grid; grid-template-columns: 38px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.promise-list span { color: #9b9f99; font-family: ui-monospace, monospace; font-size: .7rem; }
.promise-list strong, .promise-list small { display: block; }
.promise-list small { grid-column: 2; margin-top: 5px; color: var(--muted); }
.start-panel > button { justify-self: start; }

.question-panel { max-width: 760px; margin: auto; padding: 16px 0; }
.progress-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; color: var(--muted); font-size: .72rem; font-weight: 850; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e5e1d7; }
.progress-track span { display: block; width: 14.285%; height: 100%; border-radius: inherit; background: var(--moss); transition: width .3s; }
.scenario { margin: 56px 0 8px; color: var(--moss-strong); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.question-panel h2 { margin: 0 0 28px; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 500; }
.options { display: grid; gap: 10px; }
.option { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); text-align: left; cursor: pointer; transition: border .2s, background .2s; }
.option:hover { border-color: var(--moss); background: var(--lime); }
.option span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--paper); font-size: .72rem; font-weight: 900; }
.back-button, .retake-button { margin-top: 24px; padding: 8px 0; border: 0; color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.result-panel { margin: -48px; }
.result-stage { padding: 56px; color: #f9f6ee; background: var(--moss); border-radius: 20px 20px 0 0; }
.result-card { max-width: 670px; min-height: 650px; margin: auto; padding: 34px; border-radius: 20px; background: var(--ink); text-align: center; box-shadow: 0 18px 48px rgba(47,56,50,.16); }
.result-topline { display: flex; justify-content: space-between; color: #b8d0c2; font-size: .65rem; font-weight: 900; letter-spacing: .13em; }
.result-topline button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; }
.animal-avatar { display: grid; width: 150px; height: 150px; margin: 42px auto 20px; place-items: center; border-radius: 48% 52% 44% 56%; background: var(--lime); font-size: 5rem; }
.animal-avatar.has-art { width: 210px; height: 210px; background: transparent; }
.animal-avatar img, .shared-animal img, .shadow-icon img { width: 100%; height: 100%; object-fit: contain; }
.shared-animal.has-art, .shadow-icon.has-art { background: transparent; overflow: visible; }
.result-kicker { margin: 0; color: #c9d9cf; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.result-card h2 { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(3.2rem, 8vw, 6rem); line-height: .9; font-weight: 500; letter-spacing: -.06em; }
.result-tagline { max-width: 520px; margin: 18px auto; color: #d6e3da; font-size: 1.05rem; line-height: 1.55; }
.trait-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trait-chips span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.share-line { margin: 30px 0 0; color: var(--coral); font-family: Georgia, serif; font-size: 1.2rem; font-style: italic; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.result-stage .button.primary { color: var(--ink); background: var(--coral); }
.result-stage .button.secondary { color: white; border-color: rgba(255,255,255,.5); }
.result-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 24px 56px 12px; }
.detail-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.detail-card h3 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.05; font-weight: 500; }
.detail-card p { color: var(--muted); line-height: 1.6; }
.dimension { margin-top: 20px; }
.confidence-label { margin: 12px 0 2px; padding: 12px 14px; border-radius: 14px; color: #46604e !important; background: var(--lime); font-size: .82rem; font-weight: 750; }
.dimension-heading { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .75rem; font-weight: 850; }
.dimension-track { height: 9px; border-radius: 99px; background: #e8e4da; overflow: hidden; }
.dimension-track span { display: block; height: 100%; border-radius: inherit; background: var(--moss-strong); }
.reason-list { padding-left: 1.2rem; color: var(--muted); line-height: 1.6; }
.reason-list li + li { margin-top: 10px; }
.split-card, .shadow-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.shadow-card { grid-template-columns: auto 1fr; align-items: center; color: white; background: var(--ink); border-color: var(--ink); }
.shadow-card .section-label, .shadow-card p { color: #aebbb3; }
.shadow-icon { display: grid; width: 90px; height: 90px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--coral); font-size: 3rem; }
.compare-card { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.compare-intro p:last-child { margin-bottom: 0; }
.compare-card form { padding: 20px; border-radius: 16px; background: var(--paper); }
.compare-card label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.compare-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.compare-card input { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid #cdd6ce; border-radius: 16px; color: var(--ink); background: white; font: 700 .88rem ui-monospace, monospace; text-transform: uppercase; }
.compare-card form > p { margin: 9px 0 0; font-size: .72rem; }
.compare-card .form-error { color: #a2514c; font-weight: 700; }
.compare-result { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: 16px; background: var(--lime); }
.overlap-score { display: grid; width: 112px; height: 112px; place-content: center; border-radius: 50%; color: white; background: var(--moss-strong); text-align: center; }
.overlap-score strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.overlap-score span { font-size: .66rem; }
.compare-result h4 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.compare-result p { margin: 4px 0; color: #526158; }
.premium-module { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-color: #cfdacf; background: linear-gradient(135deg, #f7fbf7, var(--lime)); }
.premium-module h3 { max-width: 620px; }
.premium-module p { max-width: 700px; margin-bottom: 0; }
.premium-module .button { min-width: 190px; }
.unlock-actions { display: grid; justify-items: end; gap: 9px; }
.product-price { color: var(--moss-strong); font-size: .76rem; font-weight: 850; }
.premium-preview { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #cfdacf; }
.premium-preview section + section { margin-top: 24px; }
.premium-preview h4 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.premium-preview p { margin: 0; }
.access-center { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.access-center .restore-form, .access-center .payment-status { grid-column: 1 / -1; }
.restore-form { padding-top: 20px; border-top: 1px solid var(--line); }
.restore-form label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.restore-form input { width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid #cdd6ce; border-radius: 16px; color: var(--ink); background: white; font: 700 .88rem ui-monospace, monospace; text-transform: uppercase; }
.restore-form .button.secondary { border: 1px solid var(--line); background: var(--paper); }
.payment-status { margin: 0 !important; min-height: 1.4em; font-size: .82rem; font-weight: 750; }
.future-offers { margin: 12px 56px 0; padding: 34px; display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 14px; align-items: stretch; border-radius: 20px; background: var(--lime); }
.future-offers h2 { font-size: 2.5rem; }
.offer-card { display: flex; min-height: 180px; padding: 22px; flex-direction: column; align-items: flex-start; border: 1px solid #cfd9d0; border-radius: 20px; background: var(--card); text-align: left; cursor: pointer; }
.offer-card span { font-weight: 900; }
.offer-card strong { margin: auto 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.offer-card small { color: var(--muted); line-height: 1.45; }
.intent-message { margin: 14px 56px; padding: 12px; border-radius: 16px; color: #6c513b; background: var(--soft-warm); text-align: center; font-size: .8rem; }
.retake-button { display: block; margin: 22px auto 36px; }

.method { width: min(1120px, calc(100% - 48px)); margin: 0 auto 110px; display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; }
.method-grid article { display: grid; grid-template-columns: 42px 1fr; padding: 24px 0; border-top: 1px solid var(--line); }
.method-grid span { color: #949991; font-family: ui-monospace, monospace; font-size: .7rem; }
.method-grid h3, .method-grid p { grid-column: 2; }
.method-grid h3 { margin: 0 0 6px; }
.method-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
footer { min-height: 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

@media (max-width: 840px) {
  .site-header nav a, .privacy-chip { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-art { height: 300px; }
  .quiz-shell { padding: 24px; }
  .start-panel, .result-detail, .future-offers, .method { grid-template-columns: 1fr; }
  .compare-card { grid-template-columns: 1fr; }
  .premium-module { grid-template-columns: 1fr; }
  .premium-module .button { justify-self: start; }
  .unlock-actions { justify-items: start; }
  .access-center { grid-template-columns: 1fr; }
  .access-center .restore-form, .access-center .payment-status { grid-column: 1; }
  .compare-result { grid-column: 1; }
  .result-panel { margin: -24px; }
  .result-stage { padding: 28px 18px; }
  .result-card { min-height: 590px; padding: 24px 18px; }
  .result-detail { padding: 18px; }
  .split-card { grid-template-columns: 1fr; }
  .split-card > div + div { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .future-offers { margin: 0 18px; }
  .method { gap: 20px; }
  footer { padding: 24px 0; flex-direction: column; gap: 18px; text-align: center; }
}

@media (max-width: 520px) {
  .site-header, .hero, .method, footer { width: calc(100% - 28px); }
  .hero h1 { font-size: 3.25rem; }
  .hero-actions, .result-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > span { text-align: center; }
  .quiz-shell { width: calc(100% - 20px); }
  .question-panel h2 { font-size: 2.2rem; }
  .animal-avatar { width: 126px; height: 126px; font-size: 4rem; }
  .animal-avatar.has-art { width: 180px; height: 180px; }
  .shadow-card { grid-template-columns: 1fr; }
  .compare-input-row { grid-template-columns: 1fr; }
  .compare-result { grid-template-columns: 1fr; text-align: center; }
  .overlap-score { margin: auto; }
}

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