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

:root {
    --ink: #0f1117;
    --bg: #f5f2ec;
    --bgWhite: #ffffff;
    --accent: #f5862d;
    --accentB: #2b4fff;
    --accent-light: #dfe6ff;
    --least-col: #e8390e;
    --least-bg: #fde8e3;
    --muted: #6b6e7a;
    --card: #ffffff;
    --border: #e0dcd4;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
header {
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bgWhite);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.logo img{
    max-width: 258px;
    max-height: 80px;
}

.hero {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.hero3 {
    max-width: 900px;
    margin: 3rem auto 0rem;
    padding: 2rem 2rem 1rem;
    text-align: left;
    background: var(--bgWhite);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.hero3 h1 {
    /*font-family: 'DM Serif Display', serif;*/
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.5s 0.1s ease both;
}
.hero3 h2 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.hero3-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.3;
    margin: 0 auto 1.5rem;
}

.input-wrap input.input-error {
    border-color: var(--least-col);
    background: #fff8f7;
}

.input-error-msg {
    display: none;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--least-col);
    text-align: left;
}
.input-error-msg.visible { display: block; }

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.5s ease both;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.5s 0.1s ease both;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.5s 0.2s ease both;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.header-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--border);
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    animation: fadeUp 0.5s 0.3s ease both;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-val {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--ink);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}

.cards {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    animation: fadeUp 0.5s 0.35s ease both;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

.instructions {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0rem 3rem;
    animation: fadeUp 0.5s 0.4s ease both;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.step1 {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card);
    /*border: 1px solid var(--border);*/
    border-radius: 12px;
    /*padding: 1rem 1.25rem;*/
}

.step1-num {
    min-width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.step1-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.95;
}

.step1-text strong {
    font-weight: 600;
}

.example-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.example-box .example-label {
    padding: 0.7rem 1.25rem;
    background: #faf9f7;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.ex-col-header {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    padding: 0.45rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fdfcfa;
}

.ex-col-header span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
}

.ex-col-header span:first-child {
    text-align: left;
}

.ex-row {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0ede8;
    transition: background 0.15s;
}

.ex-row:last-child {
    border-bottom: none;
}

.ex-row.ex-most {
    background: var(--accent-light);
}

.ex-row.ex-least {
    background: var(--least-bg);
}

.ex-stmt {
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.45;
    padding-right: 0.75rem;
}

.ex-radio-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ex-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: #fff;
}

.ex-btn.ex-selected-most {
    border-color: var(--accentB);
    background: var(--accentB);
    color: white;
}

.ex-btn.ex-selected-least {
    border-color: var(--least-col);
    background: var(--least-col);
    color: white;
}

/* ── FORM ── */
.form-section {
    max-width: 480px;
    margin: 3rem auto 0;
    padding: 0 2rem 2rem;
    text-align: center;
    animation: fadeUp 0.5s 0.45s ease both;
}

.form-section h2 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.form-section p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.input-wrap input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
}

.input-wrap input:focus {
    border-color: var(--accent);
}

.input-wrap input::placeholder {
    color: #b0aaa0;
}

.btn-start {
    width: 100%;
    padding: 0.5rem 1.5rem;
    background: var(--accent);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-start:hover {
    background: #f5862d;
    transform: translateY(-1px);
}

.btn-start:active {
    transform: translateY(0);
}

.privacy-note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.privacy-note a {
    color: var(--accent);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* ── FOOTER ── */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--bgWhite);
}

footer a {
    color: var(--muted);
}

footer .sep {
    margin: 0 0.5rem;
    opacity: 0.4;
}

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    display: flex; align-items: center; gap: 1.25rem;
    position: sticky;
    top: 95px;
    z-index: 99;
}
.progress-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.progress-track { flex: 1; height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill {
    height: 100%; background: var(--accent); border-radius: 99px;
    width: 0%; transition: width 0.5s cubic-bezier(.4,0,.2,1);
}
.progress-pct { font-size: 0.75rem; font-weight: 700; color: var(--accent); min-width: 32px; text-align: right; }

/* ── STEPPER ── */
.stepper {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 1.5rem 2rem 0;
    overflow-x: auto; scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }

.step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.step-circle {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--card);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; color: var(--muted);
    transition: all 0.3s; position: relative; z-index: 1;
}
.step.active .step-circle { border-color: var(--accent); background: var(--accent); color: white; }
.step.done   .step-circle { border-color: #22c55e; background: #22c55e; color: white; }
.step-label {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted); transition: color 0.3s;
}
.step.active .step-label { color: var(--accent); }
.step.done   .step-label { color: #16a34a; }
.step-connector {
    width: 48px; height: 2px; background: var(--border);
    margin-bottom: 18px; flex-shrink: 0; transition: background 0.3s;
}
.step-connector.done { background: #22c55e; }

/* ── MAIN ── */
main {
    max-width: 900px;
    margin: 1.75rem auto 2rem;
    padding: 0 1.5rem;
    width: 100%; flex: 1;
}

/* ── PART PANEL ── */
.part-panel { display: none; }
.part-panel.active {
    display: block;
    animation: fadeSlide 0.35s ease both;
}

.part-heading {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem;
}
.part-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink);
}
.part-title-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; color: var(--muted); font-weight: 400;
}

/* ── LEGEND ── */
.legend { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.legend-item {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.78rem; color: var(--muted); font-weight: 500;
}
.legend-dot {
    width: 22px; height: 22px; border-radius: 6px;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.legend-dot.m { background: var(--accent-light); color: var(--accent); }
.legend-dot.l { background: var(--least-bg); color: var(--least-col); }

/* ── QUESTION GROUP ── */
.question-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.question-group.error {
    border-color: var(--least-col);
    box-shadow: 0 0 0 3px var(--least-bg);
}

.group-header {
    padding: 0.7rem 1.25rem;
    background: #faf9f7;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.group-num {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.group-status { display: flex; gap: 0.4rem; }
.status-pill {
    padding: 0.18rem 0.55rem; border-radius: 99px;
    font-size: 0.63rem; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.status-pill.m-p { background: var(--accent-light); color: var(--accentB); }
.status-pill.l-p { background: var(--least-bg); color: var(--least-col); }
.status-pill.done-p { background: #dcfce7; color: #16a34a; }

/* ── COLUMN HEADERS ── */
.col-headers {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fdfcfa;
}
.col-h {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); text-align: center;
}
.col-h:first-child { text-align: left; }

.m-p{color: var(--accentB);}
.l-p{color: var(--least-col);}

/* ── STATEMENT ROW ── */
.statement-row {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f0ede8;
    transition: background 0.15s;
}
.statement-row:last-child { border-bottom: none; }
.statement-row:hover { background: #fafaf8; }

/* Highlight row when Most selected */
.statement-row.row-most {
    background: var(--accent-light);
}
/* Highlight row when Least selected */
.statement-row.row-least {
    background: var(--least-bg);
}

.statement-text {
    font-size: 1.0rem; color: var(--ink);
    line-height: 1.45; padding-right: 0.75rem;
}

/* ── RADIO TOGGLE BUTTONS ── */
.radio-cell {
    display: flex; justify-content: center; align-items: center;
}
.radio-cell input[type="radio"] { display: none; }

.radio-cell label {
    width: 36px; height: 36px; border-radius: 9px;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 0.04em; color: var(--muted);
    transition: all 0.15s; user-select: none;
}

/* Most hover & selected */
.radio-cell.most-cell label:hover {
    border-color: var(--accentB); background: var(--accent-light); color: var(--accentB);
}
.radio-cell.most-cell input[type="radio"]:checked + label {
    border-color: var(--accentB); background: var(--accentB); color: white;
}

/* Least hover & selected */
.radio-cell.least-cell label:hover {
    border-color: var(--least-col); background: var(--least-bg); color: var(--least-col);
}
.radio-cell.least-cell input[type="radio"]:checked + label {
    border-color: var(--least-col); background: var(--least-col); color: white;
}

/* Error banner */
.error-banner {
    display: none;
    padding: 0.5rem 1.25rem;
    background: var(--least-bg); color: var(--least-col);
    font-size: 0.78rem; font-weight: 600;
    border-top: 1px solid #fca89a;
}
.question-group.error .error-banner { display: block; }

/* ── NAVIGATION ── */
.nav-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem; padding-bottom: 3rem;
    gap: 1rem;
}
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem; font-weight: 600;
    border-radius: 12px; cursor: pointer; border: none;
    transition: all 0.2s;
}
.btn-back {
    background: var(--card); color: var(--muted);
    border: 1.5px solid var(--border);
}
.btn-back:hover { border-color: var(--ink); color: var(--ink); }

.btn-next { background: var(--accent); color: white; margin-left: auto; }
.btn-next:hover:not(:disabled) { background: #1a35e0; transform: translateY(-1px); }
.btn-next:active:not(:disabled) { transform: translateY(0); }
.btn-next:disabled {
    background: var(--border); color: var(--muted);
    cursor: not-allowed; transform: none;
}

.next-error-msg {
    display: none;
    padding: 0.65rem 1rem;
    background: #fde8e3;
    border: 1px solid var(--least-col);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c42e08;
    line-height: 1.5;
    max-width: 420px;
}
.next-error-msg.visible { display: block; }
.next-error-msg ul { margin: 0.3rem 0 0 1.1rem; padding: 0; font-weight: 500; }
.next-error-msg ul li { margin-bottom: 0.15rem; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.lock-hint {
    font-size: 0.78rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.4rem;
    transition: opacity 0.3s;
}
.lock-hint.hidden { opacity: 0; pointer-events: none; }

/* ── ADDITIONAL QUESTIONS ── */
.section-divider {
    display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 1.1rem;
}
.section-divider span {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.add-question {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 0.6rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.add-q-text { font-size: 0.875rem; color: var(--ink); line-height: 1.5; }
.yes-no-group { display: flex; gap: 0.4rem; flex-shrink: 0; }
.yn-btn {
    padding: 0.4rem 1rem; border-radius: 8px;
    border: 1.5px solid var(--border);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    cursor: pointer; background: #faf9f7; color: var(--muted);
    transition: all 0.15s;
}
.yn-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.yn-btn.sel-yes { border-color: #22c55e; background: #dcfce7; color: #16a34a; }
.yn-btn.sel-no  { border-color: var(--least-col); background: var(--least-bg); color: var(--least-col); }

/* ── NOTICE ── */
.notice {
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 12px; padding: 1rem 1.25rem; margin: 1.25rem 0;
    display: flex; gap: 0.75rem; align-items: flex-start;
    font-size: 0.84rem; color: #92400e; line-height: 1.55;
}
.notice-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.notice a { color: #92400e; font-weight: 600; }

.btn-submit {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 1rem 2.5rem; background: var(--accent); color: white;
    font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
    border: none; border-radius: 12px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: #1a35e0; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.submit-area { text-align: center; padding: 1.25rem 0 0; }
.submit-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.6; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .progress-bar-wrap {
        padding: 0.75rem 1rem;
        top: 83px;
    }

    .stepper {
        padding: 1.25rem 1rem 0;
    }

    .step-connector {
        width: 24px;
    }

    main {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }

    .col-headers {
        grid-template-columns: 1fr 54px 54px;
        padding: 0.6rem 1rem;
    }

    .statement-row {
        grid-template-columns: 1fr 54px 54px;
        padding: 0.65rem 1rem;
    }

    .statement-text {
        font-size: 0.85rem;
    }

    .radio-cell label {
        width: 32px;
        height: 32px;
    }

    .add-question {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero { margin-top: 2.5rem; padding: 0 1.25rem; }
    .hero h1 { font-size: 2.2rem; }

    .hero3 { margin: 1.5rem; padding: 1rem 1.25rem 0; }
    .hero3 h1 { font-size: 1.6rem; }

    .cards {
        padding: 0 1.25rem 2rem;
        grid-template-columns: 1fr;
    }

    .instructions {
        padding: 0 1.25rem 2rem;
    }

    .form-section {
        padding: 0 1.25rem 4rem;
    }

    .example-choices {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 1.5rem;
    }
    .logo img{
        max-width: 160px;
        max-height: 50px;
    }
}