@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #faf8f4;
  --white: #fff;
  --ink: #1a1a1b;
  --muted: #5e5a53;
  --line: #e4ded3;
  --gold: #b69354;
  --gold-dark: #725523;
  --sand: #f3ead8;
  --focus: #805d24;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 15px/1.6 "Poppins", system-ui, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.18; letter-spacing: -.04em; }
h1:focus { outline: none; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.site { display: flex; min-height: 100vh; flex-direction: column; }
.site-width { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 81px; }
.wordmark img { display: block; width: clamp(144px, 23vw, 168px); height: auto; border-radius: 6px; }
.header-label, .footer-inner { color: var(--muted); font-size: 12px; }
.header-label { font-weight: 500; }
main { flex: 1; }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 67px; }
.footer-inner span:first-child { font-weight: 600; color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 500px; margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 5vw, 66px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-size: 11px; font-weight: 700; letter-spacing: .115em; line-height: 1.45; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 7px; }
.hero h1 { margin: 18px 0; font-size: clamp(39px, 5.5vw, 68px); line-height: 1.04; letter-spacing: -.065em; font-weight: 700; }
.hero-copy p { max-width: 32rem; color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.7; }
.hero-copy p + p { margin-top: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 30px; }
.hero-cta > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hero-art { position: relative; isolation: isolate; display: grid; min-width: 0; place-items: center; overflow: hidden; color: #d8ba7e; background: radial-gradient(ellipse at center, #342c20 0%, var(--ink) 71%); }
.hero-art::before { position: absolute; z-index: -1; inset: 18px; border: 1px solid #d8ba7e42; border-radius: 11px; content: ""; }
.compass { display: block; width: 90%; max-width: 350px; }
.art-label, .art-caption { position: absolute; left: 31px; right: 31px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.art-label { top: 32px; }
.art-caption { bottom: 32px; text-align: right; }

.pillars-preview { margin: 39px 0 0; }
.pillars-preview h2 { margin-bottom: 15px; font-size: 19px; letter-spacing: -.03em; }
.pillar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pillar-preview { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 500; }
.pillar-preview span:first-child { color: var(--gold-dark); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.45; transition: background-color .15s, border-color .15s, color .15s; }
.button.primary { color: var(--white); background: var(--ink); }
.button.primary:hover:not(:disabled) { background: #383028; }
.button.primary:disabled { color: #6e685e; background: #eeeae2; cursor: default; }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.secondary:hover:not(:disabled) { border-color: var(--gold); background: #fbf8f2; }
.button.secondary:disabled { opacity: .58; cursor: default; }
.back-arrow { transform: rotate(180deg); }

.quiz { width: min(720px, 100%); margin: 38px auto 0; }
.quiz-progress { margin-bottom: 19px; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.progress-label span:first-child { font-weight: 600; color: var(--ink); }
progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 12px; color: var(--gold); background: #ebe4d7; appearance: none; }
progress::-webkit-progress-bar { background: #ebe4d7; border-radius: 12px; }
progress::-webkit-progress-value { background: var(--gold); border-radius: 12px; }
progress::-moz-progress-bar { background: var(--gold); border-radius: 12px; }

.quiz-card { padding: clamp(24px, 5vw, 43px); border: 1px solid var(--line); border-radius: 21px; background: var(--white); }
.quiz-card h1, .result-header h1 { margin: 11px 0 8px; font-size: clamp(26px, 4.2vw, 43px); }
.quiz-hint { color: var(--muted); font-size: 14px; }
.answers { display: grid; gap: 8px; min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.answer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 13.5px; line-height: 1.55; transition: background-color .15s, border-color .15s; }
.answer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer:hover { border-color: var(--gold); background: #fbf9f4; }
.answer:has(input:checked) { border-color: #a68040; background: #f8f0e0; }
.answer:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-mark { position: relative; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid #857c6b; border-radius: 50%; }
.answer input:checked + .radio-mark { border-color: var(--gold-dark); }
.answer input:checked + .radio-mark::after { position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-dark); content: ""; }
.not-applicable { color: var(--muted); border-style: dashed; }
.quiz-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 17px; }
.contact-fields label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.contact-fields input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bdb6aa; border-radius: 8px; color: var(--ink); background: var(--white); font-size: 16px; font-weight: 400; }
.privacy-note { color: var(--muted); font-size: 12px; }
.form-error { margin-top: 14px; padding: 10px 12px; border: 1px solid #f0c9c0; border-radius: 8px; color: #862d1f; background: #fff3ee; font-size: 13px; }

.result { width: min(870px, 100%); margin: 45px auto 0; }
.result-header p { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.result-header { margin-bottom: 25px; }
.result-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-nav .button { min-height: 42px; }
.insights { display: grid; gap: 14px; }
.insight { padding: clamp(20px, 3.4vw, 29px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.insight.featured { border-color: #decda7; background: #f6eddb; }
.insight h2 { margin: 7px 0 10px; font-size: 23px; }
.insight p { color: var(--muted); font-size: 13px; }
.insight .priority-skill { margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.answer-quote { margin: 16px 0 0; padding: 4px 12px; border-left: 2px solid var(--gold); }
.answer-quote strong, .weekly-action strong { display: block; margin-bottom: 3px; font-size: 13px; }
.weekly-action { margin-top: 13px; padding-top: 12px; border-top: 1px solid #d7c49b; }
.action-review { margin-top: 12px; }
.profile { margin-top: 24px; padding: clamp(20px, 3.4vw, 29px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.profile h2 { font-size: 21px; }
.profile-note { margin-top: 7px; color: var(--muted); font-size: 13px; }
.profile ul { display: grid; gap: 15px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; list-style: none; }
.profile li { padding: 11px 12px; border-radius: 9px; background: #f8f6f1; }
.profile-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; font-size: 12px; }
.profile-title h3 { margin: 0; font-size: 13px; font-weight: 600; }
.profile-title span { color: var(--gold-dark); font-size: 11px; font-weight: 600; }
.score-track { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #e9e0cf; }
.profile-cases { margin-top: 7px; color: var(--gold-dark); font-size: 11px; font-weight: 600; }
.profile-observation { margin-top: 4px; color: var(--muted); font-size: 13px; }
.detailed-profile { padding: 0; border: 0; background: transparent; }
.detailed-profile h2 { font-size: clamp(24px, 3vw, 31px); }
.detailed-profile ul { grid-template-columns: minmax(0, 1fr); }
.detailed-profile li { padding: clamp(17px, 3vw, 26px); border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.detailed-profile .profile-title h3 { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.3; letter-spacing: -.02em; }
.detailed-profile .profile-title span { padding: 3px 8px; border-radius: 5px; background: var(--sand); }
.pillar-summary { margin-top: 12px; font-size: 14px; }
.pillar-signals { margin-top: 18px; }
.pillar-signals h4, .pillar-practice h4 { margin: 0; font-size: 14px; line-height: 1.45; }
.pillar-signals dl { margin: 5px 0 0; }
.pillar-signals dl div { display: grid; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pillar-signals dt { font-size: 13px; font-weight: 600; }
.pillar-signals dd { margin: 0; color: var(--muted); font-size: 13px; }
.pillar-practice { margin-top: 16px; padding: 14px 16px; border: 1px solid #e8dbc0; border-radius: 10px; background: #fbf7ee; }
.pillar-practice h4 { margin: 3px 0 5px; }
.pillar-practice p { color: var(--muted); font-size: 13px; }
.practice-evidence { margin-top: 9px; }
.practice-evidence strong { display: block; margin-bottom: 2px; font-size: 13px; }
.action-plan { margin-top: 24px; padding: clamp(20px, 4vw, 36px); border: 1px solid #decda7; border-top: 3px solid var(--gold); border-radius: 16px; background: var(--white); }
.profile, .action-plan { scroll-margin-top: 16px; }
.profile:focus, .action-plan:focus { outline: none; }
.action-plan h2 { margin: 5px 0 8px; font-size: clamp(23px, 3vw, 30px); }
.plan-outcome { color: var(--muted); font-size: 14px; }
.plan-outcome strong { display: block; color: var(--ink); font-size: 13px; }
.plan-steps { margin: 15px 0 0; padding: 0; list-style: none; }
.plan-steps li { display: grid; align-items: start; gap: 5px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plan-when { justify-self: start; padding: 3px 8px; border-radius: 5px; color: var(--gold-dark); background: var(--sand); font-size: 12px; font-weight: 600; }
.plan-steps h3, .plan-follow-up h3 { margin: 0 0 3px; font-size: 14px; }
.plan-steps p, .plan-follow-up p { color: var(--muted); font-size: 13px; }
.plan-follow-up { margin-top: 16px; padding: 14px 16px; border-radius: 9px; background: #f8f5ed; }
.plan-follow-up h3 { margin-top: 3px; }
.result-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 12px; }

@media (min-width: 610px) {
  .pillar-signals dl div { grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr); }
  .plan-steps li { grid-template-columns: minmax(105px, .24fr) minmax(0, 1fr); }
}

@media (min-width: 761px) {
  .insights:has(.insight + .insight) { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-width { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin-top: 22px; border-radius: 18px; }
  .hero-copy { padding: 28px; }
  .hero h1 { font-size: clamp(36px, 7.3vw, 54px); }
  .hero-art { min-height: 166px; }
  .hero-art::before { inset: 10px; }
  .compass { width: 155px; }
  .art-label, .art-caption { left: 21px; right: 21px; font-size: 8px; }
  .art-label { top: 20px; }
  .art-caption { bottom: 20px; }
  .pillar-list { grid-template-columns: 1fr 1fr; }
  .pillars-preview { margin-top: 25px; }
  .quiz, .result { margin-top: 22px; }
  .site-footer { margin-top: 35px; }
}

@media (max-width: 470px) {
  .header-label { display: none; }
  .hero-cta { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero-copy { padding: 24px; }
  .pillar-preview { min-height: 49px; gap: 7px; padding: 8px 9px; font-size: 11px; }
  .quiz-card { padding: 19px; }
  .contact-fields, .profile ul { grid-template-columns: 1fr; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .footer-inner { font-size: 10px; }
}

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

@media print {
  body, .profile li, .insight.featured, .pillar-practice, .plan-follow-up { color: #000; background: #fff; }
  .site-header, .site-footer, .result-actions, .result-nav { display: none; }
  .site, main, .result { display: block; width: 100%; min-height: auto; margin: 0; }
  .result-header { margin-bottom: 15px; }
  .detailed-profile ul { display: block; }
  .detailed-profile li + li { margin-top: 12px; }
  .profile li, .insight, .plan-steps li, .plan-follow-up { break-inside: avoid; }
  .action-plan h2, .profile h2 { break-after: avoid; }
}

.hero-copy .access-note { margin-top: 12px; color: var(--gold-dark); font-size: 12px; }
