:root {
    color-scheme: light;
    --ink: #182025;
    --muted: #5d6973;
    --line: #d9e1e5;
    --paper: #ffffff;
    --soft: #f4f8f7;
    --blue: #1e6091;
    --green: #2f7d65;
    --amber: #b86b20;
    --rose: #9f496e;
    --shadow: 0 18px 60px rgba(24, 32, 37, 0.12);
    --topbar-offset: 132px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fbfcfb;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}

main {
    padding-top: var(--topbar-offset);
}

.topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 10;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand,
.topbar nav,
.hero-actions,
.status-band,
.section-head,
.timeline {
    display: flex;
    align-items: center;
}

.brand {
    flex: 0 0 auto;
    gap: 12px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(150px, 14vw, 190px);
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar nav {
    gap: 6px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.topbar nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.nav-form {
    margin: 0;
}

.nav-form button {
    min-height: auto;
    padding: 10px 12px;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.topbar nav a:hover,
.topbar nav a:focus,
.nav-form button:hover,
.nav-form button:focus {
    color: var(--ink);
    background: var(--soft);
}

.hero {
    min-height: calc(100vh - var(--topbar-offset));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 32px 40px;
}

.public-hero {
    min-height: auto;
    padding-top: 34px;
}

.public-hero .hero-logo {
    width: min(300px, 72vw);
    margin-bottom: 16px;
}

.hero.public-hero h1 {
    font-size: clamp(3rem, 6.8vw, 6rem);
}

.public-hero .lead {
    margin-top: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    font-weight: 850;
    letter-spacing: 0;
}

.hero-logo {
    display: block;
    width: min(360px, 80vw);
    height: auto;
    margin: 0 0 22px;
    border-radius: 8px;
}

.lead {
    max-width: 780px;
    margin: 26px 0 16px;
    font-size: 1.35rem;
    color: #29343b;
}

.free-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 18px 0 0;
    padding: 6px 12px;
    border: 1px solid #cfe4dd;
    border-radius: 8px;
    color: #235f4e;
    background: #eef7f2;
    font-size: 0.95rem;
    font-weight: 850;
}

.method-formula {
    display: inline-block;
    max-width: 720px;
    margin: 12px 0 10px;
    padding: 10px 12px;
    border: 1px solid #cfe4dd;
    border-radius: 8px;
    color: #235f4e;
    background: #eef7f2;
    font-weight: 780;
    line-height: 1.45;
}

p,
li,
h1,
h2,
h3,
h4,
label,
legend,
button,
a,
span {
    overflow-wrap: anywhere;
}

.notice,
.warning {
    border-left: 4px solid var(--amber);
    padding: 12px 16px;
    background: #fff7eb;
    color: #4d3a24;
}

.notice.success {
    border-left-color: var(--green);
    background: #eef7f2;
    color: #235f4e;
}

.trust-strip {
    display: grid;
    gap: 10px;
    max-width: 620px;
    margin-top: 24px;
}

.trust-strip span,
.form-reassurance {
    border: 1px solid #d7e5df;
    border-radius: 8px;
    background: #f2f8f5;
}

.trust-strip span {
    display: block;
    padding: 12px 14px;
    color: #34444c;
}

.trust-strip strong {
    color: var(--ink);
}

.form-reassurance {
    margin: 0 0 22px;
    padding: 12px 14px;
    color: #34444c;
}

.author-trust {
    max-width: 640px;
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid #cfe4dd;
    border-radius: 8px;
    color: #34444c;
    background: #f2f8f5;
}

.author-trust strong {
    color: var(--ink);
}

.author-trust.compact {
    margin-top: 12px;
    font-size: 0.95rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.button.ghost {
    background: transparent;
}

.button.text {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.compass-visual {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.compass-ring {
    position: relative;
    width: min(74vw, 430px);
    aspect-ratio: 1;
    border: 18px solid #e4eceb;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 18%, transparent 18.5%),
        conic-gradient(from 45deg, rgba(30, 96, 145, 0.12), rgba(47, 125, 101, 0.16), rgba(184, 107, 32, 0.13), rgba(159, 73, 110, 0.13), rgba(30, 96, 145, 0.12));
    box-shadow: var(--shadow);
}

.compass-ring span {
    position: absolute;
    font-weight: 900;
    color: var(--ink);
}

.compass-ring span:nth-child(1) { top: 18px; left: 50%; transform: translateX(-50%); }
.compass-ring span:nth-child(2) { right: 24px; top: 50%; transform: translateY(-50%); }
.compass-ring span:nth-child(3) { bottom: 18px; left: 50%; transform: translateX(-50%); }
.compass-ring span:nth-child(4) { left: 24px; top: 50%; transform: translateY(-50%); }

.needle {
    position: absolute;
    inset: 19% 47% 19% 47%;
    border-radius: 999px;
    background: linear-gradient(var(--rose) 0 48%, var(--blue) 48% 100%);
    transform: rotate(var(--needle-angle, 32deg));
    transform-origin: center;
    transition: transform 120ms ease-out;
    will-change: transform;
}

.status-band {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 32px;
    background: #eaf2f1;
    border-block: 1px solid var(--line);
}

.status-band div {
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.status-band strong,
.status-band span {
    display: block;
}

.status-band span {
    color: var(--muted);
}

.public-mode-band {
    margin: 0 auto;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 32px;
    scroll-margin-top: calc(var(--topbar-offset) + 16px);
}

.auth-layout,
.private-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: start;
}

.auth-layout {
    min-height: calc(100vh - 88px);
    align-items: start;
}

.auth-layout h1,
.private-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 850;
    letter-spacing: 0;
}

.auth-panel {
    width: 100%;
}

.form-note {
    margin: 16px 0 0;
    color: var(--muted);
}

.form-note a {
    color: var(--blue);
    font-weight: 800;
}

.inline-link {
    color: var(--blue);
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.orientation-flow-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.orientation-flow {
    border-top: 1px solid var(--border);
}

.orientation-flow-row {
    display: grid;
    grid-template-columns: 64px minmax(160px, 0.36fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.orientation-flow-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #235f4e;
    background: #eef7f2;
    font-weight: 850;
}

.orientation-flow-row h3 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1.35rem;
}

.orientation-flow-row p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fit-panel {
    border-top: 5px solid var(--green);
}

.fit-panel.negative {
    border-top-color: var(--amber);
}

.report-preview-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.report-preview-section .section-head {
    align-items: end;
    margin-bottom: 28px;
}

.report-preview-section .section-head .lead {
    max-width: 690px;
    margin: 14px 0 0;
}

.report-preview-note {
    margin: 0 0 4px;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-preview-note span {
    display: inline-block;
    margin: 0 8px;
    color: var(--blue);
    font-size: 1rem;
}

.report-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.report-output-card {
    position: relative;
    min-height: 206px;
    padding: 24px 24px 22px;
    border-top: 3px solid var(--blue);
    box-shadow: 0 12px 26px rgba(21, 51, 67, 0.06);
}

.report-output-card:nth-child(2) {
    border-top-color: var(--green);
}

.report-output-card:nth-child(3) {
    border-top-color: var(--amber);
}

.report-output-card:nth-child(4) {
    border-top-color: #7b8ca0;
}

.report-card-index {
    display: block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.report-output-card h3 {
    max-width: 18ch;
    margin-bottom: 12px;
    font-size: 1.28rem;
    line-height: 1.14;
}

.report-output-card p {
    max-width: 34ch;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.55;
}

.result-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.result-example-card {
    border-top: 5px solid var(--blue);
}

.result-example-card:nth-child(2) {
    border-top-color: var(--green);
}

.result-example-card:nth-child(3) {
    border-top-color: var(--amber);
}

.report-mock {
    display: grid;
    place-items: center;
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f0f8f5;
    box-shadow: var(--shadow);
}

.report-sheet {
    width: min(78%, 380px);
    min-height: 330px;
    padding: 24px;
    border: 1px solid #d6e2e7;
    border-radius: 8px;
    background: var(--paper);
}

.report-headline {
    display: grid;
    gap: 4px;
    margin-bottom: 28px;
}

.report-headline span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.report-headline strong {
    font-size: 1.45rem;
    line-height: 1.1;
}

.mock-radar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 9px;
    height: 130px;
    padding: 14px;
    border-radius: 8px;
    background: #f4f8f7;
}

.mock-radar i {
    display: block;
    border-radius: 999px 999px 4px 4px;
    background: var(--blue);
}

.mock-radar i:nth-child(even) {
    background: var(--green);
}

.mock-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.mock-matrix span {
    min-height: 38px;
    padding: 9px;
    border-radius: 8px;
    background: #eef6fb;
    color: #31566f;
    font-size: 0.82rem;
    font-weight: 800;
}

.mock-lines {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.mock-lines span {
    height: 10px;
    border-radius: 999px;
    background: #dbe6eb;
}

.mock-lines span:nth-child(2) {
    width: 78%;
}

.mock-lines span:nth-child(3) {
    width: 56%;
}

.clean-list {
    margin: 0;
    padding-left: 20px;
}

.clean-list li + li {
    margin-top: 8px;
}

.verification-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cfe4dd;
    border-radius: 8px;
    background: #f2f8f5;
}

.verification-box h4 {
    margin-top: 0;
}

.verification-box h4 + .action-checklist,
.verification-box h4 + .clean-list {
    margin-top: 8px;
}

.verification-box p {
    margin-bottom: 0;
}

.action-checklist {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.action-checklist div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #d7e5df;
    border-radius: 8px;
    background: #ffffff;
}

.action-checklist strong {
    color: #235f4e;
    font-size: 0.88rem;
}

.action-checklist span {
    color: #2c3940;
    font-size: 0.92rem;
    line-height: 1.45;
}

.private-summary {
    min-height: 220px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.guest-hero {
    padding-bottom: 42px;
}

.guest-status {
    background: #eef7f2;
}

.guest-clear-form {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 18px;
}

.guest-clear-form .button {
    min-height: 38px;
}

.guest-import-section {
    padding-top: 0;
    padding-bottom: 28px;
}

.guest-import-panel {
    border-color: #cfe4dd;
    background: #f7fbf9;
}

.guest-import-panel form {
    margin: 0;
}

.admin-hero {
    padding-bottom: 34px;
}

.admin-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 850;
    letter-spacing: 0;
}

.admin-kpis {
    align-items: stretch;
    background: #eef6fb;
}

.admin-kpis div {
    display: grid;
    align-content: center;
    min-height: 86px;
}

.admin-kpis span {
    color: var(--blue);
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 850;
}

.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-metric {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(24, 32, 37, 0.06);
}

.admin-metric strong,
.admin-metric span,
.admin-metric small {
    display: block;
}

.admin-metric strong {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
}

.admin-metric span {
    margin: 8px 0 4px;
    color: var(--green);
    font-size: 2rem;
    line-height: 1;
    font-weight: 850;
}

.admin-metric small,
.admin-note-grid {
    color: var(--muted);
}

.admin-download {
    margin-top: 14px;
}

.admin-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.admin-note-grid span {
    padding: 12px;
    border-radius: 8px;
    background: #f4f8fa;
}

.admin-note-grid strong {
    display: block;
    color: var(--blue);
    font-size: 1.35rem;
}

.admin-dashboard {
    padding-top: 34px;
}

.admin-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 180px) 42px;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
}

.admin-bar span {
    font-weight: 700;
}

.admin-bar div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dde8ed;
}

.admin-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.admin-bar strong {
    text-align: right;
}

.muted {
    color: var(--muted);
}

.big-number {
    display: block;
    color: var(--blue);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 850;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 42px;
    align-items: start;
}

.section h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 850;
    letter-spacing: 0;
}

.section-head {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.panel,
.path-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 8px 28px rgba(24, 32, 37, 0.06);
}

.panel {
    padding: 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    color: var(--ink);
    border: 1px solid #bfcbd1;
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.check input {
    flex: 0 0 auto;
    width: 20px;
    margin-top: 2px;
}

.check a {
    color: var(--blue);
    font-weight: 800;
}

.consent-option {
    min-height: 58px;
    margin: 0;
    padding: 12px;
    border: 1px solid #d6e1e5;
    border-radius: 8px;
    background: #fff;
}

.consent-option input {
    margin-top: 4px;
}

.consent-option span,
.consent-option strong,
.consent-option small {
    display: block;
}

.consent-option strong {
    color: var(--ink);
    line-height: 1.25;
}

.consent-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
}

.consent-option small a {
    display: inline;
}

.consent-block {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
}

.consent-block h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.consent-block p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.optional-consents {
    background: #eef7f2;
}

.legal-page h1 {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.98;
}

.legal-page [id] {
    scroll-margin-top: calc(var(--topbar-offset) + 18px);
}

.legal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.legal-summary article {
    min-height: 116px;
    padding: 16px;
    border: 1px solid #cfe4dd;
    border-radius: 8px;
    background: #eef7f2;
}

.legal-summary strong,
.legal-summary span {
    display: block;
}

.legal-summary strong {
    color: #235f4e;
    font-size: 1rem;
    line-height: 1.25;
}

.legal-summary span {
    margin-top: 8px;
    color: #34444c;
    line-height: 1.4;
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

.legal-toc a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue);
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus {
    border-color: #cfe4dd;
    background: #f2f8f5;
}

.resource-index-section {
    padding-top: 40px;
    padding-bottom: 42px;
}

.resource-index {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.resource-index a {
    display: grid;
    gap: 8px;
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.resource-index a:hover,
.resource-index a:focus {
    border-color: #cfe4dd;
    background: #f2f8f5;
}

.resource-index strong {
    color: var(--blue);
    line-height: 1.25;
}

.resource-index span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.resource-topic {
    scroll-margin-top: calc(var(--topbar-offset) + 18px);
}

.resource-answer {
    max-width: 840px;
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    color: #235f4e;
    background: #eef7f2;
    line-height: 1.55;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.legal-grid .panel h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.progress {
    width: min(320px, 40vw);
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8eb;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--green);
}

.questionnaire {
    display: grid;
    gap: 24px;
}

.scale-legend {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.scale-legend span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px;
    border-radius: 7px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.scale-legend strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
}

.questionnaire-stepper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.questionnaire-step-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 40px;
    border-radius: 8px;
    color: var(--blue);
    background: #eef6fb;
    font-weight: 850;
}

.questionnaire-stepper > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.questionnaire-stepper button {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafb;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.questionnaire-stepper button.is-active {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.questionnaire-stepper button.is-complete:not(.is-active) {
    color: #235f4e;
    border-color: #cfe4dd;
    background: #eef7f2;
}

.step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.questionnaire.is-stepped .step[hidden],
.questionnaire-controls [hidden] {
    display: none;
}

.questionnaire-controls {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.questionnaire-controls .button {
    min-width: 150px;
}

.step h3,
.panel h3,
.path-card h3 {
    margin-top: 0;
    font-weight: 800;
}

.step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    flex-wrap: wrap;
    margin: 14px 0 20px;
    padding: 10px 12px;
    border: 1px solid #d7e5df;
    border-radius: 8px;
    color: #235f4e;
    background: #fff;
    font-size: 0.92rem;
    font-weight: 760;
}

.step-meta span:last-child {
    color: var(--muted);
    font-weight: 650;
}

.likert {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.likert legend {
    margin-bottom: 10px;
    font-weight: 750;
}

.likert div {
    display: grid;
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 8px;
}

.likert label {
    margin: 0;
}

.likert input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.likert span {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 42px;
    padding: 7px 4px;
    border: 1px solid #bfcbd1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
}

.likert span strong {
    line-height: 1;
}

.likert span small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.1;
}

.likert input:checked + span {
    color: #fff;
    border-color: var(--green);
    background: var(--green);
}

.likert input:checked + span small {
    color: #fff;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-forms h3 {
    margin-bottom: 16px;
}

.radar {
    width: 100%;
    max-width: 360px;
    height: auto;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 48px;
    gap: 12px;
    align-items: center;
    margin: 10px 0;
}

.context-row {
    align-items: start;
}

.context-row span,
.context-row small {
    display: block;
}

.context-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.25;
}

meter {
    width: 100%;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.recommendation-head {
    margin-top: 34px;
}

.recommendation-head .lead {
    margin-top: 10px;
    font-size: 1.05rem;
}

.highlighted-recommendations {
    margin-bottom: 30px;
}

.highlighted-recommendations .path-card {
    border-color: #cfe4dd;
    background: linear-gradient(180deg, #f7fbf9 0%, #fff 42%);
}

.guest-next-step {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #d7e5df;
    border-radius: 8px;
    background: #f2f8f5;
}

.guest-next-step strong {
    color: var(--green);
}

.guest-save-panel {
    margin-top: 28px;
}

.recommendation-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recommendation-card-head .eyebrow {
    margin: 0;
}

.recommendation-rank {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: #235f4e;
    box-shadow: 0 10px 22px rgba(35, 95, 78, 0.22);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.path-card {
    padding: 22px;
}

.riasec-fit {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 12px;
    padding: 5px 9px;
    border-radius: 7px;
    color: #235f4e;
    background: #eef7f2;
    font-size: 0.9rem;
    font-weight: 850;
}

.path-card h4 {
    margin: 18px 0 6px;
}

.path-card ul {
    padding-left: 18px;
}

.inline-diary-form {
    margin-top: 18px;
}

.inline-diary-form .button {
    width: 100%;
}

.button-help {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.context-note-list {
    color: #3b4a52;
}

.methodology-panel {
    margin-top: 22px;
}

.methodology-home .panel {
    border-color: #cfe4dd;
    background: #eef7f2;
}

.methodology-panel h4 {
    margin: 18px 0 8px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
}

.methodology-page .methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-hero {
    padding-bottom: 42px;
}

.method-reading-section {
    padding-top: 36px;
    padding-bottom: 36px;
}

.method-reading-list {
    border-top: 1px solid var(--border);
}

.method-reading-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.method-reading-row span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.method-reading-row h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.28rem;
    line-height: 1.25;
}

.method-reading-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.reference-list {
    display: grid;
    gap: 16px;
}

.methodology-grid ul {
    margin: 0;
    padding-left: 18px;
}

.methodology-grid li + li {
    margin-top: 10px;
}

.source-list a,
.source-list span {
    display: block;
}

.source-list a {
    color: var(--blue);
    font-weight: 800;
}

.source-list span {
    color: var(--muted);
    font-size: 0.92rem;
}

.diary-list {
    display: grid;
    gap: 16px;
}

.diary-section {
    padding-top: 84px;
}

.diary-guide {
    margin: 18px 0;
    border-color: #cfe4dd;
    background: #eef7f2;
}

.diary-guide h3 {
    margin-bottom: 8px;
}

.diary-guide ol {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 22px;
}

.diary-guide li {
    padding-left: 4px;
}

.diary-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.diary-summary span {
    min-height: 74px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.diary-summary strong {
    display: block;
    color: var(--blue);
    font-size: 1.75rem;
    line-height: 1;
}

.diary-card h3 {
    margin-bottom: 12px;
}

.diary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.diary-tags span {
    padding: 5px 8px;
    border-radius: 7px;
    background: #eef7f2;
    color: #235f4e;
    font-size: 0.82rem;
    font-weight: 800;
}

.diary-meta {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.diary-meta div {
    display: grid;
    grid-template-columns: minmax(136px, max-content) minmax(0, 1fr);
    align-items: start;
    gap: 8px 18px;
}

.diary-meta dt {
    color: var(--muted);
    font-weight: 800;
}

.diary-meta dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.diary-empty {
    color: var(--muted);
}

.diary-edit {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.diary-edit summary {
    color: var(--blue);
    font-weight: 850;
    cursor: pointer;
}

.diary-edit form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.diary-delete-form {
    margin-top: 14px;
    text-align: right;
}

.button.danger {
    color: #8f2f3a;
}

.button.danger:hover,
.button.danger:focus {
    background: #fff0f1;
}

.timeline {
    align-items: stretch;
    gap: 16px;
}

.timeline article {
    flex: 1;
    padding: 20px;
    border-left: 5px solid var(--green);
    border-radius: 8px;
    background: #eef7f2;
}

.timeline strong,
.timeline span {
    display: block;
}

.reset-form {
    max-width: 1180px;
    margin: 0 auto 48px;
    padding: 0 32px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f4f8f7;
}

.site-footer > div {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 32px;
}

.site-footer p {
    max-width: 920px;
    margin: 0;
}

.site-footer p + p {
    margin-top: 10px;
}

.site-footer a,
.footer-links a {
    color: var(--blue);
    font-weight: 800;
}

.footer-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    text-decoration: underline;
}

@media (max-width: 880px) {
    :root {
        --topbar-offset: 124px;
    }

    .topbar {
        padding: 12px 18px;
    }

    .brand-logo {
        width: min(170px, 38vw);
    }

    .topbar nav {
        width: auto;
        overflow-x: auto;
        justify-content: flex-end;
        -webkit-overflow-scrolling: touch;
    }

    .hero,
    .auth-layout,
    .private-hero,
    .two-col,
    .feature-grid,
    .resource-index,
    .fit-grid,
    .result-example-grid,
    .report-preview-grid,
    .report-output-grid,
    .legal-grid,
    .legal-summary,
    .methodology-grid,
    .dashboard,
    .dashboard.two,
    .admin-metric-grid,
    .recommendations {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 36px 20px 30px;
    }

    .compass-visual {
        min-height: 240px;
    }

    .compass-ring {
        width: min(58vw, 300px);
        border-width: 12px;
    }

    .section {
        padding: 52px 20px;
    }

    .section-head,
    .timeline {
        align-items: flex-start;
        flex-direction: column;
    }

    .orientation-flow-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .orientation-flow-row p {
        grid-column: 2;
        margin-top: 0;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .progress {
        width: 100%;
    }

    .questionnaire-stepper {
        grid-template-columns: 1fr;
    }

    .questionnaire-stepper > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bar-row {
        grid-template-columns: minmax(0, 1fr) 120px 44px;
    }

    .method-reading-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }
}

@media (max-width: 640px) {
    :root {
        --topbar-offset: 138px;
    }

    .topbar {
        min-height: 116px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 8px 14px;
    }

    .brand-logo {
        width: 118px;
    }

    .topbar nav {
        width: 100%;
        gap: 2px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 0 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .topbar nav a,
    .nav-form button {
        padding: 7px 9px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .hero {
        padding: 26px 16px 28px;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 13vw, 3.7rem);
        line-height: 0.98;
    }

    .auth-layout h1,
    .private-hero h1,
    .admin-hero h1,
    .legal-page h1 {
        font-size: clamp(2.2rem, 10.5vw, 3.1rem);
        line-height: 1.03;
    }

    .public-hero .hero-logo {
        display: none;
    }

    .hero-logo {
        width: min(230px, 68vw);
        margin-bottom: 12px;
    }

    .lead {
        margin-top: 18px;
        font-size: 1.1rem;
    }

    .notice,
    .warning {
        padding: 11px 12px;
    }

    .hero-actions,
    .section-head {
        gap: 10px;
    }

    .hero-actions .button {
        flex: 1 1 150px;
    }

    .auth-panel .button,
    .questionnaire > .button,
    .questionnaire-controls .button,
    .panel .button {
        width: 100%;
    }

    .compass-visual {
        min-height: 170px;
    }

    .compass-ring {
        width: min(52vw, 190px);
        border-width: 8px;
        box-shadow: 0 10px 34px rgba(24, 32, 37, 0.10);
    }

    .compass-ring span {
        font-size: 0.74rem;
    }

    .section {
        padding: 42px 16px;
        scroll-margin-top: calc(var(--topbar-offset) + 12px);
    }

    .diary-section {
        padding-top: 48px;
    }

    .site-footer > div {
        padding: 28px 16px;
    }

    .panel,
    .path-card,
    .step {
        padding: 18px;
    }

    .diary-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .status-band {
        gap: 10px;
        padding: 14px 16px;
    }

    .status-band div {
        width: 100%;
        min-width: 0;
    }

    .admin-note-grid {
        grid-template-columns: 1fr;
    }

    .scale-legend {
        grid-template-columns: 1fr;
    }

    .scale-legend span {
        grid-template-columns: 32px 1fr;
        align-items: center;
        text-align: left;
    }

    .questionnaire-step-count {
        min-width: 0;
        width: 100%;
    }

    .questionnaire-stepper > div {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
    }

    .questionnaire-stepper button {
        flex: 0 0 min(72vw, 210px);
        min-height: 42px;
        text-align: center;
    }

    .questionnaire-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .step-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin: 12px 0 16px;
    }

    .likert {
        margin: 16px 0 20px;
    }

    .likert div {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .likert span {
        min-height: 46px;
        border-radius: 7px;
    }

    .likert span small {
        display: none;
    }

    .bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-bar {
        grid-template-columns: 1fr 42px;
        gap: 6px 10px;
    }

    .admin-bar div {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .bar-row strong {
        justify-self: start;
    }

    .private-summary {
        min-height: 150px;
    }

    .big-number {
        font-size: clamp(3rem, 18vw, 5rem);
    }

    .report-preview-note {
        white-space: normal;
        line-height: 1.6;
    }

    .report-output-card {
        min-height: 0;
    }
}

@media (max-width: 360px) {
    :root {
        --topbar-offset: 136px;
    }

    .topbar {
        min-height: 116px;
    }

    .brand-logo {
        width: 112px;
    }

    .topbar nav {
        gap: 1px;
    }

    .topbar nav a,
    .nav-form button {
        padding: 7px 5px;
        font-size: 0.8rem;
    }
}

@media print {
    .topbar,
    .hero-actions,
    #onboarding,
    #questionario,
    #piano,
    .reset-form {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    .section {
        max-width: none;
        padding: 18px 0;
    }

    .panel,
    .path-card {
        break-inside: avoid;
        box-shadow: none;
    }
}
