:root {
  --ink: #183a36;
  --ink-soft: #49645f;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #d9d9cd;
  --sage: #829b87;
  --sage-dark: #375e55;
  --clay: #c9866b;
  --gold: #d6aa55;
  --blue: #6f93a4;
  --violet: #9386a3;
  --rose: #b98386;
  --shadow: 0 18px 55px rgba(31, 57, 52, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 45%, rgba(214,170,85,.18), transparent 19%),
    radial-gradient(circle at 88% 12%, rgba(111,147,164,.15), transparent 27%),
    linear-gradient(145deg, #edf0e7 0%, #f7f1e8 60%, #f0e6d7 100%);
  border-bottom: 1px solid rgba(24,58,54,.08);
}
.nav-shell, .section-shell, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.nav-shell { height: 86px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-icon { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.brand-name { max-width: 180px; line-height: 1.08; }
.privacy-pill { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid rgba(24,58,54,.17); border-radius: 99px; font-size: .8rem; color: var(--ink-soft); background: rgba(255,255,255,.38); backdrop-filter: blur(8px); }
.privacy-pill span { font-size: .45rem; color: var(--sage); }
.hero-content { position: relative; z-index: 2; width: min(710px, calc(100% - 40px)); margin: 92px auto 80px; text-align: center; }
.eyebrow { margin: 0 0 14px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .19em; color: var(--sage-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.7vw, 5.6rem); line-height: .97; letter-spacing: -.052em; margin-bottom: 26px; font-weight: 500; }
h1 em { color: var(--clay); font-weight: 400; }
.hero-copy { max-width: 630px; margin: 0 auto 28px; font-size: clamp(1rem, 1.7vw, 1.15rem); color: var(--ink-soft); }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 54px; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px rgba(24,58,54,.2); transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: #255149; }
.primary-button span { font-size: 1.1rem; }
.privacy-note { margin: 13px 0 0; font-size: .76rem; color: #6d7f7a; }
.hero-orbit { position: absolute; left: 50%; top: 73%; width: 900px; height: 900px; transform: translate(-50%, -50%); opacity: .33; pointer-events: none; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--sage); }
.orbit-two { inset: 110px; border-color: var(--clay); }
.orbit-three { inset: 220px; border-color: var(--gold); }

.assessment { padding: 96px 0 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 40px; }
.section-heading > div:first-child { max-width: 680px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.06; font-weight: 500; letter-spacing: -.04em; margin-bottom: 14px; }
.section-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); max-width: 650px; }
.progress-card { flex: 0 0 150px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.42); }
.progress-card strong { font-family: Georgia, serif; font-size: 1.55rem; margin-right: 5px; }
.progress-card span { color: var(--ink-soft); font-size: .77rem; }
.progress-track { height: 4px; margin-top: 10px; overflow: hidden; background: #dcded4; border-radius: 4px; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--clay); transition: width .35s ease; }
.assessment-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 28px; align-items: start; }
.areas-form { display: grid; gap: 14px; }
.group-card { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.group-heading { display: flex; align-items: center; gap: 10px; margin: 0; padding: 15px 18px 11px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.group-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--group-color); }
.area-row { display: grid; grid-template-columns: minmax(145px, 1fr) minmax(180px, 1.2fr) 44px; align-items: center; gap: 16px; min-height: 66px; padding: 10px 18px; border-top: 1px solid rgba(24,58,54,.08); }
.area-copy strong { display: block; font-size: .91rem; line-height: 1.25; }
.area-copy small { display: block; margin-top: 3px; color: #70807b; font-size: .72rem; line-height: 1.25; }
.slider-wrap { position: relative; display: flex; align-items: center; }
.area-slider { --fill: 0%; width: 100%; height: 28px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.area-slider::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, var(--group-color) var(--fill), #daddd5 var(--fill)); }
.area-slider::-moz-range-track { height: 5px; border-radius: 9px; background: #daddd5; }
.area-slider::-moz-range-progress { height: 5px; border-radius: 9px; background: var(--group-color); }
.area-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7.5px; border: 3px solid var(--paper); border-radius: 50%; background: var(--group-color); box-shadow: 0 1px 5px rgba(24,58,54,.25); }
.area-slider::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid var(--paper); border-radius: 50%; background: var(--group-color); box-shadow: 0 1px 5px rgba(24,58,54,.25); }
.area-slider:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 8px; }
.score-badge { width: 42px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; }
.score-badge.empty { color: #8d9894; font-family: inherit; font-weight: 500; }

.wheel-panel { position: sticky; top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.panel-topline { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.mini-label { margin: 0 0 5px; font-size: .63rem; font-weight: 800; letter-spacing: .17em; color: var(--clay); }
.panel-topline h3 { margin-bottom: 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.download-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--ink); color: white; cursor: pointer; font-size: .7rem; font-weight: 750; white-space: nowrap; transition: background .2s, transform .2s; }
.download-button:hover { background: #255149; transform: translateY(-1px); }
.download-button:disabled { cursor: wait; opacity: .65; transform: none; }
.download-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background .2s, transform .2s; }
.icon-button:hover { background: var(--cream); transform: rotate(-20deg); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wheel-wrap { max-width: 505px; margin: 12px auto 4px; }
#lifeWheel { display: block; width: 100%; overflow: visible; }
.grid-ring { fill: none; stroke: #d7ddd6; stroke-width: 1; }
.grid-ray { stroke: #e1e5df; stroke-width: 1; }
.wheel-segment { stroke: var(--paper); stroke-width: 2; opacity: .84; transition: d .45s cubic-bezier(.22,.61,.36,1), opacity .2s; }
.wheel-segment:hover { opacity: 1; }
.wheel-center { fill: var(--paper); stroke: #d8ddd7; stroke-width: 1.5; }
.wheel-average { fill: var(--ink); font: 600 27px Georgia, serif; }
.wheel-average-label { fill: var(--ink-soft); font: 600 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.wheel-number { fill: var(--ink-soft); font: 700 11px Inter, sans-serif; }
.wheel-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; padding-top: 9px; border-top: 1px solid #e5e5dc; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; color: var(--ink-soft); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--legend-color); }

.insights { padding: 96px 0; background: var(--ink); color: #f7f2e8; }
.insights .eyebrow { color: #b8cbbd; }
.insights-heading p:not(.eyebrow) { color: #b9c9c4; }
.score-summary { min-width: 180px; padding: 17px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; text-align: right; }
.score-summary span { display: block; color: #adc1bb; font-size: .73rem; }
.score-summary strong { display: block; font: 500 1.5rem Georgia, serif; color: white; margin-top: 4px; }
.empty-state { padding: 56px 20px; border: 1px dashed rgba(255,255,255,.24); border-radius: var(--radius); text-align: center; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--gold); }
.empty-state h3 { font: 500 1.55rem Georgia, serif; margin-bottom: 8px; }
.empty-state p { color: #b9c9c4; margin-bottom: 18px; }
.empty-state a { color: #f3d698; font-size: .86rem; }
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priority-card { position: relative; min-height: 265px; padding: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.055); }
.priority-rank { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.priority-rank span:first-child { color: #a9bbb5; font-size: .66rem; letter-spacing: .16em; }
.priority-score { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--priority-color); font: 600 1rem Georgia, serif; }
.priority-card h3 { font: 500 1.55rem Georgia, serif; margin-bottom: 11px; }
.priority-card p { color: #c3d0cc; font-size: .86rem; }
.priority-question { display: flex; gap: 10px; align-items: start; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: #f1d9a6 !important; }
.priority-question span { flex: 0 0 auto; }
.focus-choice { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: white; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 750; transition: background .2s, border-color .2s; }
.focus-choice:hover { border-color: #f1d9a6; background: rgba(241,217,166,.12); }
.closing-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; margin-top: 18px; padding: 34px; border-radius: 20px; color: var(--ink); background: #e9e2d2; }
.closing-kicker { display: block; margin-bottom: 10px; color: var(--clay); font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.closing-card h3 { margin: 0; font: 500 clamp(1.55rem, 3vw, 2.25rem) Georgia, serif; line-height: 1.13; }
.focus-setup > p { margin: 12px 0 22px; color: var(--ink-soft); font-size: .84rem; }
.action-progress { margin-bottom: 18px; }
.action-progress strong { font: 600 1.2rem Georgia, serif; }
.action-progress span { color: var(--ink-soft); font-size: .73rem; }
.action-progress-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 9px; background: rgba(55,94,85,.13); }
.action-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--clay); transition: width .3s ease; }
.action-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.action-area-button { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 8px 9px; border: 1px solid rgba(24,58,54,.14); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.36); cursor: pointer; text-align: left; font-size: .68rem; transition: border-color .2s, background .2s; }
.action-area-button:hover, .action-area-button.selected { border-color: var(--area-color); background: rgba(255,255,255,.72); }
.action-area-button.active { box-shadow: inset 0 0 0 1px var(--area-color); }
.action-area-button .area-status { flex: 0 0 16px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--area-color); font-size: .57rem; font-weight: 900; }
.action-area-button .area-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-area-button:not(.done) .area-status { background: transparent; border: 1px solid var(--area-color); }
.focus-response > .focus-area-label { display: block; margin-bottom: 15px; }
.focus-area-label > span { display: block; margin-bottom: 7px; font-size: .73rem; font-weight: 750; }
.focus-area-label select { width: 100%; min-height: 46px; padding: 10px 38px 10px 12px; border: 1px solid #bdc2b8; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.68); outline: none; }
.focus-area-label select:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(55,94,85,.12); }
.focus-question { margin-bottom: 18px; padding: 18px 20px; border-left: 3px solid var(--clay); border-radius: 0 12px 12px 0; background: rgba(255,255,255,.38); }
.focus-question > span { display: block; color: var(--ink-soft); font-size: .74rem; }
.focus-question blockquote { margin: 9px 0 8px; font: 500 1.13rem/1.35 Georgia, serif; color: var(--ink); }
.focus-question small { color: var(--clay); font-weight: 700; }
.reflection-label span { display: block; margin-bottom: 7px; font-size: .76rem; font-weight: 750; }
.reflection-label textarea { width: 100%; resize: vertical; min-height: 90px; padding: 13px 14px; border: 1px solid #bdc2b8; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.66); outline: none; }
.reflection-label textarea:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(55,94,85,.12); }
.reflection-label textarea:disabled { cursor: not-allowed; opacity: .65; }
.reflection-label small { display: block; margin-top: 4px; color: var(--ink-soft); text-align: right; }
.active-focus-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.set-focus-button { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; border: 0; border-radius: 99px; color: white; background: var(--ink); cursor: pointer; font-size: .71rem; font-weight: 750; }
.set-focus-button:hover { background: #255149; }
.set-focus-button:disabled { cursor: not-allowed; opacity: .45; }
.active-focus-row span { color: var(--ink-soft); font-size: .7rem; }

footer { display: flex; justify-content: space-between; align-items: center; min-height: 110px; color: var(--ink-soft); font-size: .78rem; }
footer p { margin: 0; }
footer a { font-weight: 700; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 100px); padding: 11px 17px; border-radius: 99px; background: #183a36; color: white; box-shadow: var(--shadow); font-size: .8rem; opacity: 0; transition: transform .3s, opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .assessment-layout { grid-template-columns: 1fr; }
  .wheel-panel { position: relative; top: 0; grid-row: 1; max-width: 620px; width: 100%; margin-inline: auto; }
  .areas-form { max-width: 720px; width: 100%; margin-inline: auto; }
  .priority-grid { grid-template-columns: 1fr; }
  .priority-card { min-height: 0; }
  .priority-rank { margin-bottom: 26px; }
}

@media (max-width: 640px) {
  .nav-shell, .section-shell, footer { width: min(100% - 24px, 1180px); }
  .hero { min-height: 610px; }
  .nav-shell { height: 72px; }
  .brand { gap: 8px; font-size: .78rem; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-name { max-width: 125px; }
  .privacy-pill { font-size: .68rem; padding: 7px 9px; }
  .hero-content { width: calc(100% - 28px); margin-top: 82px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-copy { font-size: .96rem; }
  .assessment, .insights { padding: 72px 0; }
  .section-heading { display: block; margin-bottom: 26px; }
  .progress-card { width: 155px; margin-top: 22px; }
  .assessment-layout { gap: 16px; }
  .wheel-panel { padding: 17px 12px 14px; border-radius: 19px; }
  .panel-topline { flex-wrap: wrap; }
  .download-button { padding-inline: 10px; }
  .wheel-wrap { margin-top: 2px; }
  .group-card { border-radius: 16px; }
  .area-row { grid-template-columns: 1fr 44px; gap: 6px 12px; padding: 12px 14px 13px; }
  .slider-wrap { grid-column: 1 / -1; grid-row: 2; }
  .score-badge { grid-column: 2; grid-row: 1; }
  .area-copy small { font-size: .68rem; }
  .wheel-legend { padding-inline: 4px; }
  .insights-heading .score-summary { width: fit-content; text-align: left; margin-top: 22px; }
  .priority-card { padding: 20px; }
  .closing-card { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .action-area-grid { grid-template-columns: 1fr 1fr; }
  .active-focus-row { align-items: flex-start; flex-direction: column; }
  footer { min-height: 130px; flex-direction: column; justify-content: center; gap: 9px; text-align: center; }
}

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