@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --card: #fffdf8;
  --ink: #203229;
  --muted: #71796f;
  --line: #e4e3d9;
  --green: #315b47;
  --green-dark: #244534;
  --green-pale: #e7eee5;
  --orange: #c9784e;
  --orange-pale: #f5e9df;
  --shadow: 0 24px 70px rgb(40 53 40 / 8%);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 12% 22%, rgb(215 224 206 / 38%), transparent 33rem), radial-gradient(ellipse at 90% 78%, rgb(242 221 201 / 38%), transparent 30rem), var(--paper);
}
button, input { font: inherit; }
button { color: inherit; }
.topbar, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; }
.topbar { height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--green); color: white; font-family: Georgia, serif; font-size: 20px; }
.topbar-note, .site-footer { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.page-switch { display: flex; align-items: center; gap: 17px; }
.page-switch a { color: var(--green); font-size: 11px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-switch a:hover { color: var(--green-dark); }
.shell { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 142px); margin: 0 auto; display: grid; place-items: center; padding: 28px 0 48px; }
.site-footer { min-height: 60px; border-top: 1px solid rgb(76 89 73 / 12%); }
.intro-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; gap: 70px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { width: 23px; height: 1px; background: currentColor; content: ''; }
.intro-copy h1 { max-width: 650px; margin: 22px 0 20px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(42px, 5.1vw, 67px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.intro-copy h1 em { color: var(--green); font-weight: 500; }
.lead { max-width: 540px; margin-bottom: 27px; color: #5d685f; font-size: 16px; line-height: 1.75; }
.intro-details { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; padding: 0; list-style: none; }
.intro-details li { padding: 9px 12px; border: 1px solid #dedfd4; border-radius: 30px; color: #566354; font-size: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 0; border-radius: 7px; background: var(--green); color: white; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); background: var(--green-dark); }
.button:focus-visible, .quiet-button:focus-visible, input:focus-visible { outline: 3px solid #d18a5f; outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button .arrow { font-size: 19px; line-height: 1; }
.fine-print { max-width: 460px; margin: 15px 0 0; color: #85887d; font-size: 11px; line-height: 1.65; }
.profile-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgb(45 73 54 / 10%); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.card-kicker { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.profile-card h2 { position: relative; z-index: 1; margin: 9px 0 24px; font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 500; }
.profile-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 19px 0; }
.profile-row span { font-size: 13px; }
.profile-row strong { color: var(--green); font-size: 13px; }
.profile-row .poor-number { color: var(--orange); }
.mini-track, .comparison-track { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 9px; background: #eeeae0; }
.mini-track i, .comparison-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.profile-row .poor-track i { background: var(--orange); }
.card-foot { position: relative; z-index: 1; margin: 27px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.blind-card { min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.blind-card .blind-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 25px; border: 1px solid #dce2d6; border-radius: 50%; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 25px; }
.blind-card h2 { max-width: 330px; margin-bottom: 12px; font-size: 32px; line-height: 1.16; }
.blind-card p { max-width: 340px; margin: 0; color: #647066; font-size: 13px; line-height: 1.8; }
.blind-card .blind-prompt { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--green); font-weight: 600; }
.quiz-wrap { width: min(760px, 100%); }
.quiz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.quiz-head strong { color: var(--ink); font-weight: 600; }
.progress-track { height: 3px; overflow: hidden; margin-bottom: 22px; background: #dedfd5; }
.progress-track span { display: block; height: 100%; background: var(--green); transition: width .3s ease; }
.question-card { padding: clamp(25px, 5vw, 48px); border: 1px solid rgb(45 73 54 / 10%); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.question-index { margin-bottom: 15px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.question-title { min-height: 85px; margin-bottom: 27px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(27px, 4vw, 39px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 8px; background: #f7f6f0; }
.comparison-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: #687165; font-size: 11px; }
.comparison-item strong { color: var(--green); font-size: 12px; }
.comparison-item.poor strong { color: var(--orange); }
.comparison-track { height: 4px; }
.comparison-item.poor .comparison-track i { background: var(--orange); }
.scale-block { margin-top: 35px; }
.scale-question { margin-bottom: 17px; font-size: 14px; font-weight: 600; }
.range-value { display: flex; align-items: baseline; gap: 7px; margin-bottom: 12px; }
.range-value strong { color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 38px; font-weight: 500; }
input[type='range'] { width: 100%; height: 6px; margin: 0; border-radius: 9px; appearance: none; background: linear-gradient(to right, var(--green) 50%, #e3e2d8 50%); cursor: pointer; }
input[type='range']::-webkit-slider-thumb { width: 21px; height: 21px; border: 4px solid white; border-radius: 50%; appearance: none; background: var(--green); box-shadow: 0 1px 7px rgb(33 52 38 / 25%); }
input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 1px 7px rgb(33 52 38 / 25%); }
.scale-labels { display: flex; justify-content: space-between; gap: 15px; margin-top: 11px; color: #7b8177; font-size: 11px; }
.scale-labels span:last-child { text-align: right; }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.quiet-button { min-height: 45px; padding: 0 4px; border: 0; background: transparent; color: #667167; cursor: pointer; font-size: 13px; }
.quiet-button:disabled { cursor: default; opacity: .4; }
.quiz-note { margin: 19px 4px 0; color: #7d8278; font-size: 11px; line-height: 1.65; }
.result-wrap { width: min(900px, 100%); }
.result-banner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px 38px; border-radius: 12px; background: var(--green-dark); color: white; }
.result-banner .eyebrow { color: #c9d6bf; }
.result-banner h1 { max-width: 580px; margin: 13px 0 9px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 4vw, 43px); font-weight: 500; line-height: 1.13; }
.result-banner p { max-width: 540px; margin: 0; color: #d2dcd0; font-size: 13px; line-height: 1.65; }
.score-disc { width: 122px; height: 122px; display: grid; place-content: center; border: 1px solid rgb(255 255 255 / 36%); border-radius: 50%; text-align: center; }
.score-disc strong { font-family: 'Playfair Display', Georgia, serif; font-size: 39px; font-weight: 500; line-height: 1; }
.score-disc span { margin-top: 6px; color: #d2dcd0; font-size: 10px; }
.result-section { margin-top: 29px; padding: 27px 30px; border: 1px solid rgb(45 73 54 / 10%); border-radius: 10px; background: var(--card); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; }
.section-heading span { color: var(--muted); font-size: 11px; }
.profile-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 17px; padding: 15px 0; border-top: 1px solid var(--line); }
.habit-label { grid-column: 1 / -1; margin-bottom: -7px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.profile-side { font-size: 12px; }
.profile-side strong { display: block; margin-bottom: 9px; color: var(--green); font-size: 13px; }
.profile-side.poor strong { color: var(--orange); }
.profile-side .comparison-track { height: 5px; }
.profile-side.poor .comparison-track i { background: var(--orange); }
.self-score { text-align: center; color: var(--muted); font-size: 10px; }
.self-score strong { display: block; margin-bottom: 3px; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 500; }
.self-score span { display: block; line-height: 1.4; }
.self-score .profile-match { margin-top: 5px; color: var(--green); font-size: 9px; font-weight: 600; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.insight-card { padding: 23px; border-radius: 9px; background: var(--green-pale); }
.insight-card.weak { background: var(--orange-pale); }
.insight-card h3 { margin: 0 0 7px; font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 500; }
.insight-card > p { margin-bottom: 15px; color: #647066; font-size: 11px; line-height: 1.5; }
.insight-card.weak > p { color: #79695d; }
.insight-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.insight-list li { padding-top: 11px; border-top: 1px solid rgb(44 74 52 / 12%); }
.insight-list strong { display: block; margin-bottom: 4px; font-size: 12px; line-height: 1.45; }
.insight-list span { color: #6d776c; font-size: 10px; }
.result-disclaimer { margin: 19px 2px 0; color: #737c72; font-size: 11px; line-height: 1.7; }
.result-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 21px; }
.result-actions .secondary { border: 1px solid #d9ddd2; background: transparent; color: var(--ink); }
.result-actions .secondary:hover { background: #eaede5; }
.report-date { display: none; }

@media (max-width: 760px) {
  .topbar, .site-footer, .shell { width: min(100% - 34px, 540px); }
  .topbar { height: 70px; }
  .topbar-note { font-size: 10px; }
  .page-switch { gap: 11px; }
  .page-switch a { max-width: 108px; font-size: 10px; }
  .shell { min-height: calc(100vh - 126px); padding: 24px 0 38px; }
  .site-footer { min-height: 56px; gap: 10px; font-size: 10px; }
  .intro-layout { grid-template-columns: 1fr; gap: 30px; }
  .intro-copy h1 { max-width: 540px; font-size: clamp(40px, 10vw, 58px); }
  .profile-card { padding: 24px; }
  .blind-card { min-height: 0; }
  .question-card { padding: 25px 21px; }
  .question-title { min-height: 0; }
  .result-banner { padding: 26px 23px; }
  .score-disc { width: 88px; height: 88px; }
  .score-disc strong { font-size: 31px; }
  .score-disc span { font-size: 9px; }
  .result-section { padding: 23px 19px; }
}
@media (max-width: 520px) {
  .brand { font-size: 13px; }
  .topbar-note { max-width: 94px; text-align: right; }
  .page-switch { gap: 8px; }
  .page-switch a { max-width: 82px; text-align: right; }
  .intro-details { gap: 7px; }
  .intro-details li { font-size: 11px; }
  .comparison { gap: 11px; padding: 13px 10px; }
  .comparison-item { font-size: 10px; }
  .scale-labels { font-size: 10px; }
  .quiz-actions .button { min-height: 47px; padding-inline: 15px; font-size: 12px; }
  .result-banner { grid-template-columns: 1fr auto; gap: 8px; }
  .result-banner h1 { font-size: 29px; }
  .result-banner p { font-size: 11px; }
  .score-disc { width: 72px; height: 72px; }
  .score-disc strong { font-size: 26px; }
  .profile-compare-row { grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr); gap: 9px; }
  .profile-side { font-size: 10px; }
  .profile-side strong { font-size: 11px; }
  .self-score strong { font-size: 21px; }
  .insight-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body { min-width: 0; background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .topbar, .site-footer, .result-actions { display: none !important; }
  .shell { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; }
  .result-wrap { width: 100%; }
  .result-banner { padding: 24px; }
  .result-section { margin-top: 16px; padding: 20px; box-shadow: none; }
  .section-heading, .insight-card, .profile-compare-row, .result-banner { break-inside: avoid; }
  .report-date { display: block; margin: 14px 0 0; color: #666; font-size: 10px; }
  .result-disclaimer { font-size: 9px; }
  .insight-list strong { font-size: 10px; }
}
