:root {
    --ink: #171717;
    --muted: #626262;
    --paper: #f7f3ea;
    --surface: #ffffff;
    --surface-soft: #fffaf0;
    --yellow: #f9c61c;
    --yellow-dark: #d8a700;
    --red: #b83b35;
    --red-soft: #fff0ee;
    --green: #1e7356;
    --line: #ded8cd;
    --line-dark: #b8b1a5;
    --shadow: 0 22px 60px rgba(31, 26, 19, 0.09);
    --radius: 22px;
    --radius-small: 13px;
    --max-width: 1180px;
    color-scheme: light;
    font-family: Aptos, Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.no-js .screen,
html.no-js .methodology,
html.no-js .privacy-section,
html.no-js .site-footer,
html.no-js .site-header {
    display: none !important;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.58;
}

body.is-testing {
    background: #f4f0e7;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.print-only {
    display: none;
}

:focus-visible {
    outline: 3px solid #171717;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #f9c61c;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    transform: translateY(-180%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.shell {
    width: min(calc(100% - 36px), var(--max-width));
    margin-inline: auto;
}

.shell-narrow {
    width: min(calc(100% - 36px), 780px);
}

.shell-test {
    width: min(calc(100% - 36px), 990px);
}

.shell-result {
    width: min(calc(100% - 36px), 1040px);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.13);
    background: rgba(247, 243, 234, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #4d4a43;
    font-size: 14px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-link:hover {
    background: rgba(23, 23, 23, 0.06);
    color: var(--ink);
}

.site-nav-link.is-current {
    background: var(--ink);
    color: #fff;
}

.site-nav-link.is-current:hover {
    background: #343434;
    color: #fff;
}

.site-nav-action {
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.site-nav-action:hover {
    background: #ffda56;
}

.site-menu-button {
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 13px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
}

.menu-icon {
    display: grid;
    gap: 4px;
    width: 19px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu-button[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.site-menu-button[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.text-button,
.back-link {
    min-height: 44px;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.text-button:hover,
.back-link:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

.screen {
    min-height: calc(100vh - 82px);
}

.hero-screen {
    display: grid;
    align-items: center;
    padding: 52px 0 92px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.87fr);
    gap: clamp(48px, 7vw, 100px);
    align-items: center;
}

.eyebrow,
.step-label {
    margin: 0 0 12px;
    color: #795d00;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(42px, 6.4vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin: 0;
    font-size: clamp(29px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.038em;
}

h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.lead {
    max-width: 750px;
    margin: 26px 0 0;
    color: #383838;
    font-size: clamp(20px, 2.3vw, 25px);
    line-height: 1.45;
}

.lead-small {
    font-size: 20px;
}

.fact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.fact-list li {
    display: grid;
    gap: 2px;
    padding: 15px 17px;
    border: 1px solid rgba(23, 23, 23, 0.12);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.56);
}

.fact-list strong {
    font-size: 16px;
}

.fact-list span {
    color: var(--muted);
    font-size: 14px;
}

.hero-actions,
.form-actions,
.result-actions,
.result-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-actions {
    margin-top: 28px;
}

.positioning-note {
    max-width: 760px;
    margin: 22px 0 0;
    padding: 15px 17px;
    border-left: 5px solid var(--yellow-dark);
    background: #fff8dd;
    color: #4a4335;
    font-size: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 19px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:disabled {
    border-color: var(--line-dark);
    background: #e7e2d9;
    color: #777169;
    cursor: not-allowed;
}

.button-primary {
    background: var(--yellow);
    box-shadow: 0 7px 0 var(--ink);
}

.button-primary:hover:not(:disabled) {
    background: #ffd847;
    box-shadow: 0 9px 0 var(--ink);
}

.button-ghost {
    background: transparent;
}

.button-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.7);
}

.button-danger {
    border-color: var(--red);
    background: transparent;
    color: var(--red);
}

.button-danger:hover {
    background: var(--red-soft);
}

.button-large {
    min-height: 57px;
    padding-inline: 24px;
}

.microcopy {
    max-width: 680px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.author-line {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    z-index: -3;
    inset: 8% -16% 0 0;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    content: "";
}

.hero-visual::after {
    position: absolute;
    z-index: -2;
    right: -14%;
    bottom: -5%;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red);
    content: "";
}

.visual-card {
    position: absolute;
    display: grid;
    gap: 4px;
    width: min(76%, 340px);
    padding: 22px 24px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 7px 7px 0 var(--ink);
    transform: rotate(var(--tilt));
}

.visual-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.visual-card strong {
    font-size: 22px;
    line-height: 1.15;
}

.visual-card-a {
    --tilt: -5deg;
    top: 8%;
    left: 2%;
}

.visual-card-b {
    --tilt: 3deg;
    top: 36%;
    right: 0;
}

.visual-card-c {
    --tilt: -2deg;
    bottom: 9%;
    left: 8%;
}

.visual-number {
    position: absolute;
    z-index: -1;
    top: 4%;
    right: 5%;
    color: rgba(23, 23, 23, 0.13);
    font-size: 190px;
    font-weight: 950;
    line-height: 1;
}

.hero-visual > p {
    position: absolute;
    right: 3%;
    bottom: -2%;
    max-width: 230px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
}

.form-screen {
    padding: 55px 0 100px;
}

.form-screen .back-link {
    margin-bottom: 30px;
}

.choice-group,
.ranking-fieldset {
    min-width: 0;
    margin: 35px 0 0;
    padding: 0;
    border: 0;
}

.choice-group {
    display: grid;
    gap: 13px;
}

.radio-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    min-height: 98px;
    padding: 20px;
    border: 2px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    cursor: pointer;
    transition: border 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.radio-card:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.radio-card:has(input:checked) {
    border-color: var(--ink);
    background: var(--surface-soft);
    box-shadow: 5px 5px 0 var(--yellow);
}

.radio-card input {
    width: 22px;
    height: 22px;
    margin: 3px 0 0;
    accent-color: var(--ink);
}

.radio-card span {
    display: grid;
    gap: 5px;
}

.radio-card strong {
    font-size: 19px;
}

.radio-card small {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.form-error {
    min-height: 26px;
    margin: 13px 0 0;
    color: var(--red);
    font-weight: 800;
}

.form-actions {
    margin-top: 24px;
}

.instruction-example {
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.instruction-example > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.rank-badge {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
}

.rank-first {
    background: var(--yellow);
}

.rank-second {
    background: #fff;
}

.rank-third {
    border-color: var(--line-dark);
    background: #efebe3;
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 32px;
}

.check-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow);
    content: "✓";
    font-size: 13px;
    font-weight: 950;
}

.notice {
    padding: 18px 20px;
    border-left: 5px solid var(--yellow-dark);
    border-radius: 0 12px 12px 0;
    background: #fff5d2;
}

.notice p {
    margin: 5px 0 0;
    color: #403b31;
    font-size: 15px;
}

.notice-error {
    margin-top: 24px;
    border-color: var(--red);
    background: var(--red-soft);
}

.notice-error h1 {
    font-size: 32px;
}

.test-screen {
    padding: 35px 0 90px;
}

.test-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.context-reminder,
.progress-copy {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.progress-copy {
    white-space: nowrap;
    font-weight: 800;
}

.progress-track {
    height: 8px;
    margin: 14px 0 40px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcd6cc;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow-dark);
    transition: width 260ms ease;
}

.progress-step-0 { width: 0 !important; }
.progress-step-1 { width: 6.67% !important; }
.progress-step-2 { width: 13.33% !important; }
.progress-step-3 { width: 20% !important; }
.progress-step-4 { width: 26.67% !important; }
.progress-step-5 { width: 33.33% !important; }
.progress-step-6 { width: 40% !important; }
.progress-step-7 { width: 46.67% !important; }
.progress-step-8 { width: 53.33% !important; }
.progress-step-9 { width: 60% !important; }
.progress-step-10 { width: 66.67% !important; }
.progress-step-11 { width: 73.33% !important; }
.progress-step-12 { width: 80% !important; }
.progress-step-13 { width: 86.67% !important; }
.progress-step-14 { width: 93.33% !important; }
.progress-step-15 { width: 100% !important; }

.ranking-fieldset {
    margin: 0;
}

.ranking-fieldset legend {
    max-width: 850px;
    padding: 0;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ranking-help {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.statement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    padding: 22px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.statement-card:hover:not(:disabled) {
    border-color: var(--ink);
    transform: translateY(-3px);
}

.statement-card:disabled {
    cursor: default;
}

.statement-card.is-first {
    border-color: var(--ink);
    background: #fff8dd;
    box-shadow: 6px 6px 0 var(--yellow);
}

.statement-card.is-second {
    border-color: var(--ink);
    background: #fff;
    box-shadow: 5px 5px 0 #c9c3b8;
}

.statement-card.is-third {
    border-color: #d7d1c8;
    background: #eeebe5;
    color: #5e5952;
}

.statement-text {
    display: block;
    margin: 0 0 24px;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.42;
}

.statement-rank {
    display: flex;
    align-items: center;
    min-height: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.is-first .statement-rank,
.is-second .statement-rank {
    color: var(--ink);
}

.test-actions {
    position: sticky;
    z-index: 10;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding: 12px;
    border: 1px solid rgba(184, 177, 165, 0.7);
    border-radius: 999px;
    background: rgba(247, 243, 234, 0.9);
    box-shadow: 0 12px 34px rgba(30, 26, 20, 0.12);
    backdrop-filter: blur(14px);
}

#previous-button {
    margin-right: auto;
}

.result-screen {
    padding: 52px 0 95px;
}

.result-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 32px;
}

.result-heading h1 {
    font-size: clamp(40px, 6vw, 70px);
}

.result-actions {
    margin-top: 28px;
}

.report-personalization {
    margin-top: 34px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.65);
}

.report-personalization > summary {
    cursor: pointer;
    font-weight: 900;
}

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

.personalization-fields > div {
    display: grid;
    gap: 7px;
}

.report-personalization label {
    font-size: 14px;
    font-weight: 850;
}

.report-personalization label span {
    color: var(--muted);
    font-weight: 500;
}

.report-personalization input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 9px;
    background: var(--surface);
}

.report-personalization > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.print-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.print-meta p {
    margin: 0;
}

.result-summary-card {
    position: relative;
    margin-top: 40px;
    padding: clamp(26px, 5vw, 52px);
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--yellow);
    box-shadow: 8px 8px 0 var(--ink);
}

.result-summary-card::after {
    position: absolute;
    right: -45px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    border: 32px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    content: "";
}

.result-summary-card > * {
    position: relative;
    z-index: 1;
}

.result-summary-card .eyebrow {
    color: #4f3d00;
}

.result-summary-card > p:not(.eyebrow) {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 20px;
}

.top-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.top-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--surface);
    font-weight: 850;
}

.top-role-chip span {
    display: grid;
    place-items: center;
    min-width: 29px;
    height: 29px;
    padding-inline: 7px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
}

.result-section {
    margin-top: 70px;
}

.result-section-intro {
    max-width: 850px;
    margin: 8px 0 24px;
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.profile-shape {
    max-width: 300px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.score-chart {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.score-row {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(180px, 1fr) minmax(155px, auto);
    gap: 16px;
    align-items: center;
}

.score-name {
    display: grid;
    gap: 1px;
}

.score-name strong {
    font-weight: 850;
}

.score-name span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

.score-track {
    height: 22px;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #e8e3da;
}

.score-fill {
    display: block;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--role-color, var(--yellow));
}

.score-0 { width: 0; }
.score-1 { width: 10%; }
.score-2 { width: 20%; }
.score-3 { width: 30%; }
.score-4 { width: 40%; }
.score-5 { width: 50%; }
.score-6 { width: 60%; }
.score-7 { width: 70%; }
.score-8 { width: 80%; }
.score-9 { width: 90%; }
.score-10 { width: 100%; }

[data-role="A"] { --role-color: #f9c61c; }
[data-role="B"] { --role-color: #ef8a2f; }
[data-role="C"] { --role-color: #70839e; }
[data-role="D"] { --role-color: #d85a3f; }
[data-role="E"] { --role-color: #b83b35; }
[data-role="F"] { --role-color: #3f8065; }
[data-role="G"] { --role-color: #497ca8; }
[data-role="H"] { --role-color: #795fa5; }
[data-role="I"] { --role-color: #2f7375; }

.score-value {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.score-value strong {
    color: var(--ink);
}

.interpretation-note {
    margin: 27px 0 0;
    padding: 17px 19px;
    border-left: 5px solid var(--ink);
    background: #ece8e0;
    color: #45413b;
    font-size: 14px;
}

.role-details {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.role-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(35, 31, 24, 0.06);
}

.role-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 34px);
    cursor: pointer;
    list-style: none;
}

.role-card-header::-webkit-details-marker {
    display: none;
}

.role-card-header::after {
    flex: 0 0 auto;
    content: "+";
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.role-card[open] .role-card-header {
    border-bottom: 1px solid var(--line);
}

.role-card[open] .role-card-header::after {
    content: "−";
}

.role-card-title {
    display: flex;
    min-width: 0;
    gap: 15px;
    align-items: center;
}

.role-card-heading {
    font-size: 24px;
    font-weight: 900;
    hyphens: auto;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.role-dot {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--role-color, var(--yellow));
}

.role-score {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 900;
}

.role-card-content {
    padding: 0 clamp(24px, 4vw, 38px) clamp(24px, 4vw, 38px);
}

.role-definition {
    max-width: 850px;
    margin: 17px 0 0;
    color: #393939;
    font-size: 18px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 25px;
}

.role-grid > div {
    padding: 17px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.role-grid strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.role-grid p {
    margin: 0;
    color: #4d4942;
    font-size: 15px;
}

.role-experiment {
    margin: 17px 0 0;
    padding: 17px;
    border-radius: 12px;
    background: #fff4c9;
}

.role-experiment strong {
    display: block;
    margin-bottom: 5px;
}

.role-experiment p {
    margin: 0;
}

.reflection-question {
    margin: 17px 0 0;
    font-size: 18px;
    font-weight: 800;
}

.quiet-section {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
}

.quiet-section > p:not(.eyebrow) {
    max-width: 800px;
}

.lower-roles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.lower-role {
    padding: 16px;
    border-radius: 12px;
    background: #ece8e0;
}

.lower-role strong {
    display: block;
}

.lower-role p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.action-plan {
    padding: clamp(24px, 4vw, 38px);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--surface);
}

.write-in-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.write-in-grid {
    display: grid;
    gap: 26px;
    margin-top: 28px;
}

.write-in-grid > div {
    display: grid;
    gap: 15px;
}

.write-in-grid span {
    display: block;
    height: 34px;
    border-bottom: 1px solid var(--line-dark);
}

.team-use ol {
    display: grid;
    gap: 12px;
    max-width: 850px;
    padding-left: 24px;
}

.team-rule {
    max-width: 850px;
    margin-top: 22px;
    padding: 17px 19px;
    border-left: 5px solid var(--yellow-dark);
    background: #fff5d2;
    color: #403b31;
}

.report-disclaimer {
    margin-top: 55px;
    padding: 22px 24px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-small);
    background: #e9e5dd;
}

.report-disclaimer h2 {
    font-size: 22px;
}

.report-disclaimer p {
    margin: 10px 0 0;
    color: #4c4841;
    font-size: 14px;
}

.result-bottom-actions {
    margin-top: 55px;
}

.print-help,
.copy-status {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.clipboard-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.methodology {
    padding: 90px 0;
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
}

.methodology .eyebrow {
    color: #f4d66f;
}

.methodology-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(42px, 7vw, 90px);
    align-items: start;
}

.methodology-grid p {
    color: #d7d3cb;
}

.role-boundaries {
    margin-top: 32px;
    padding-top: 25px;
    border-top: 1px solid #5b574f;
}

.role-boundaries h3 {
    font-size: 20px;
}

.role-boundaries ul {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
    padding-left: 20px;
    color: #d7d3cb;
}

.methodology-card {
    padding: 26px;
    border: 1px solid #5b574f;
    border-radius: var(--radius);
    background: #232323;
}

.methodology-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding-left: 20px;
    color: #ddd8cf;
}

.methodology-source {
    margin: 22px 0 0;
    font-size: 14px;
}

.methodology-source a {
    color: #fff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.privacy-section {
    padding: 35px 0 55px;
    background: var(--ink);
    color: #fff;
}

.privacy-section details {
    border-top: 1px solid #5b574f;
}

.privacy-section summary {
    min-height: 62px;
    padding: 18px 2px;
    cursor: pointer;
    font-weight: 850;
}

.details-body {
    max-width: 880px;
    padding: 0 0 20px;
    color: #d7d3cb;
}

.details-body a,
.site-footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.details-body a:hover,
.site-footer a:hover {
    color: #fff;
}

.site-footer {
    background: var(--ink);
    color: #d7d3cb;
}

.footer-promo {
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid rgba(23, 23, 23, 0.25);
    background: var(--yellow);
    color: var(--ink);
}

.footer-promo-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    padding-block: 34px;
}

.footer-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-promo h2 {
    max-width: 720px;
    margin: 5px 0 0;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.1;
}

.footer-promo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 11px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.footer-promo-link:hover {
    background: #343434;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(140px, 0.7fr)) minmax(230px, 1fr);
    gap: clamp(32px, 5vw, 66px);
    padding-block: 56px 46px;
}

.footer-about > p {
    max-width: 420px;
    margin: 20px 0;
    color: #bdb8af;
    font-size: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand .brand-mark {
    color: var(--ink);
}

.footer-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.footer-brand p {
    margin: 3px 0 0;
    color: #aaa59d;
    font-size: 13px;
}

.footer-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 800;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 7px;
    color: #f4d66f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer-column a {
    width: fit-content;
    color: #d7d3cb;
    font-size: 14px;
}

.footer-contact address {
    display: grid;
    gap: 6px;
    margin-bottom: 7px;
    color: #bdb8af;
    font-size: 14px;
    font-style: normal;
}

.footer-contact address strong {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-block: 22px 28px;
    border-top: 1px solid #3b3935;
    color: #8f8a82;
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:last-child {
    max-width: 560px;
    text-align: right;
}

@media (max-width: 980px) {
    .site-menu-button {
        display: inline-flex;
    }

    .site-navigation {
        position: absolute;
        top: calc(100% - 2px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 12px;
        border: 2px solid var(--ink);
        border-radius: 18px;
        background: var(--surface);
        box-shadow: 8px 8px 0 var(--ink);
    }

    .site-navigation.is-open {
        display: grid;
    }

    .site-nav-link {
        width: 100%;
        border-radius: 10px;
    }

    .site-nav-action {
        width: 100%;
        margin-top: 4px;
    }

    .hero-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        width: min(100%, 560px);
        min-height: 450px;
        margin-inline: auto;
    }

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

    .statement-card {
        min-height: auto;
        padding: 18px;
    }

    .statement-text {
        margin-bottom: 18px;
    }

    .result-heading,
    .section-heading {
        display: grid;
    }

    .result-actions {
        justify-content: flex-start;
    }

    .profile-shape {
        max-width: 700px;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(140px, 0.7fr));
    }

    .footer-contact {
        grid-column: 1 / -1;
        padding-top: 28px;
        border-top: 1px solid #3b3935;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-copy small {
        display: none;
    }

    .screen {
        min-height: calc(100vh - 70px);
    }

    .hero-screen {
        padding-top: 34px;
    }

    h1 {
        font-size: clamp(39px, 12vw, 58px);
    }

    .fact-list,
    .personalization-fields,
    .role-grid,
    .lower-roles {
        grid-template-columns: 1fr;
    }

    .hero-actions .button,
    .form-actions .button,
    .result-actions .button,
    .result-bottom-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .visual-card {
        width: 84%;
        padding: 18px;
    }

    .visual-card strong {
        font-size: 18px;
    }

    .visual-number {
        font-size: 140px;
    }

    .test-topline {
        align-items: start;
    }

    .score-row {
        grid-template-columns: 1fr auto;
        gap: 7px 12px;
    }

    .score-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .score-value {
        grid-column: 2;
        grid-row: 1;
    }

    .role-card-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
        gap: 10px;
    }

    .role-card-title {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .role-score {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
    }

    .role-card-header::after {
        grid-column: 2;
        grid-row: 2;
    }

    .test-actions {
        bottom: 8px;
        padding: 9px;
        border-radius: 18px;
    }

    .test-actions .button {
        min-height: 46px;
        padding-inline: 14px;
        font-size: 14px;
    }

    #reset-ranking-button {
        order: 4;
        width: 100%;
    }

    .footer-promo-inner,
    .footer-bottom {
        display: grid;
    }

    .footer-promo-link {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-block: 44px 38px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-bottom p:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    :root {
        --ink: #000;
        --muted: #333;
        --paper: #fff;
        --surface: #fff;
        --line: #aaa;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 10.5pt;
        line-height: 1.4;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .print-only {
        display: block;
    }

    .no-print,
    .site-header,
    .site-footer,
    .methodology,
    .privacy-section,
    #start-screen,
    #context-screen,
    #instructions-screen,
    #test-screen {
        display: none !important;
    }

    body:not(.is-result)::before {
        display: block;
        max-width: 170mm;
        margin: 20mm auto;
        content: "A nyomtatható eredménylaphoz előbb töltsd ki a csapatszerep-önértékelőt.";
        font-size: 16pt;
        font-weight: 700;
    }

    body:not(.is-result) #result-screen {
        display: none !important;
    }

    body.is-result #result-screen {
        display: block !important;
        min-height: 0;
        padding: 0;
    }

    .shell-result {
        width: 100%;
    }

    h1 {
        font-size: 28pt;
    }

    h2 {
        font-size: 19pt;
    }

    h3 {
        font-size: 14pt;
    }

    .lead-small {
        font-size: 12pt;
    }

    .result-heading,
    .section-heading {
        display: block;
    }

    .print-meta {
        margin-top: 10mm;
    }

    .print-meta .print-only {
        flex-basis: 100%;
        overflow-wrap: anywhere;
    }

    .result-summary-card {
        margin-top: 9mm;
        padding: 8mm;
        border: 1.5pt solid #000;
        box-shadow: none;
        break-inside: avoid;
    }

    .result-summary-card::after {
        display: none;
    }

    .result-summary-card > p:not(.eyebrow) {
        font-size: 11pt;
    }

    .top-role-chip {
        padding: 5px 9px;
        border-width: 1pt;
        font-size: 9pt;
    }

    .result-section {
        margin-top: 11mm;
    }

    .profile-shape {
        max-width: none;
        margin-top: 3mm;
        text-align: left;
    }

    .score-chart {
        gap: 5px;
        margin-top: 5mm;
    }

    .score-row {
        grid-template-columns: 42mm 1fr 42mm;
        gap: 4mm;
    }

    .score-track {
        height: 14px;
    }

    .interpretation-note {
        padding: 4mm;
        font-size: 9pt;
        break-inside: avoid;
    }

    .role-card {
        border: 1pt solid #999;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .role-card-header {
        grid-template-columns: 1fr auto;
        padding: 5mm 6mm;
    }

    .role-card-header::after {
        display: none;
    }

    .role-card-heading {
        font-size: 14pt;
    }

    .role-card-content {
        display: block !important;
        padding: 0 6mm 6mm;
    }

    .role-definition,
    .reflection-question {
        font-size: 10.5pt;
    }

    .role-grid {
        gap: 3mm;
        margin-top: 4mm;
    }

    .role-grid > div,
    .role-experiment {
        padding: 3.5mm;
    }

    .quiet-section,
    .action-plan {
        padding: 6mm;
        break-inside: avoid;
    }

    .write-in-grid {
        gap: 6mm;
        margin-top: 6mm;
    }

    .write-in-grid > div {
        gap: 2mm;
    }

    .write-in-grid span {
        height: 10mm;
    }

    .team-use {
        break-before: page;
    }

    .report-disclaimer {
        padding: 5mm;
        border: 1pt solid #777;
        break-inside: avoid;
    }

    .report-disclaimer h2 {
        font-size: 14pt;
    }

    .report-disclaimer p {
        font-size: 9pt;
    }
}
