:root {
    --sopq-ink: #151719;
    --sopq-muted: #65707a;
    --sopq-line: #e9edf1;
    --sopq-bg: #f7f9fb;
    --sopq-card: #ffffff;
    --sopq-primary: #246b58;
    --sopq-primary-2: #2f8a72;
    --sopq-primary-soft: #e8f4f0;
    --sopq-peach: #f6b18a;
    --sopq-peach-soft: #fff3eb;
    --sopq-blue: #304c89;
    --sopq-danger: #b42318;
    --sopq-danger-soft: #fff1f0;
    --sopq-warning: #aa5b00;
    --sopq-warning-soft: #fff7e6;
    --sopq-shadow: 0 18px 55px rgba(23, 31, 45, .08);
    --sopq-radius-xl: 28px;
    --sopq-radius-lg: 20px;
    --sopq-radius-md: 14px;
}

.sopq,
.sopq * {
    box-sizing: border-box;
}

.sopq {
    max-width: 1040px;
    margin: 34px auto;
    padding: 0 16px;
    color: var(--sopq-ink);
    font-family: inherit;
}

.sopq-shell {
    background:
        radial-gradient(circle at top left, rgba(47, 138, 114, .12), transparent 34%),
        radial-gradient(circle at top right, rgba(246, 177, 138, .18), transparent 30%),
        var(--sopq-bg);
    border: 1px solid var(--sopq-line);
    border-radius: var(--sopq-radius-xl);
    overflow: hidden;
    box-shadow: var(--sopq-shadow);
}

.sopq-hero {
    padding: clamp(26px, 5vw, 54px);
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.76));
    border-bottom: 1px solid var(--sopq-line);
}

.sopq-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sopq-logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 55px;
    height: 32px;
}

.sopq-logo-mark span {
    display: block;
    width: 18px;
    height: 28px;
    border-radius: 999px 999px 999px 999px;
}

.sopq-logo-mark span:nth-child(1) { background: var(--sopq-blue); border-radius: 999px 0 0 999px; }
.sopq-logo-mark span:nth-child(2) { background: #8cc7a6; }
.sopq-logo-mark span:nth-child(3) { background: #df744f; border-radius: 0 999px 999px 0; }

.sopq-eyebrow,
.sopq-card-tag {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--sopq-primary);
}

.sopq-hero h2 {
    max-width: 790px;
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: .98;
    letter-spacing: -.04em;
}

.sopq-lead {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--sopq-muted);
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.55;
}

.sopq-progress-wrap {
    margin-top: 26px;
    max-width: 760px;
}

.sopq-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--sopq-muted);
    font-weight: 700;
}

.sopq-progress-bar {
    width: 100%;
    height: 11px;
    background: #e8eef2;
    border-radius: 999px;
    overflow: hidden;
}

.sopq-progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--sopq-primary), var(--sopq-peach));
    border-radius: inherit;
    transition: width .25s ease;
}

.sopq-form {
    padding: clamp(18px, 3vw, 32px);
}

.sopq-card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--sopq-line);
    border-radius: var(--sopq-radius-lg);
    padding: clamp(18px, 3vw, 28px);
    margin-bottom: 18px;
    box-shadow: 0 12px 32px rgba(23,31,45,.045);
}

.sopq-card-intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    gap: 22px;
    align-items: end;
}

.sopq-card h3 {
    margin: 6px 0 8px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.sopq-card p {
    margin: 0;
    color: var(--sopq-muted);
    line-height: 1.55;
}

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

.sopq-input-label {
    display: block;
    font-weight: 800;
    color: var(--sopq-ink);
}

.sopq-input-label span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.sopq-input-label input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--sopq-line);
    border-radius: var(--sopq-radius-md);
    padding: 13px 15px;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}

.sopq-input-label input:focus {
    border-color: rgba(47, 138, 114, .55);
    box-shadow: 0 0 0 4px rgba(47, 138, 114, .12);
}

.sopq-input-label input.sopq-input-error {
    border-color: rgba(180, 35, 24, .7);
    background: var(--sopq-danger-soft);
}

.sopq-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sopq-line);
}

.sopq-question-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.sopq-question {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--sopq-line);
    border-radius: 18px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    transition: border .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sopq-question:hover {
    border-color: rgba(47, 138, 114, .28);
    box-shadow: 0 8px 20px rgba(23,31,45,.05);
}

.sopq-question legend {
    padding: 0;
    margin: 0;
    font-weight: 750;
    line-height: 1.35;
    color: var(--sopq-ink);
}

.sopq-choice-row {
    display: grid;
    grid-template-columns: repeat(3, 78px);
    gap: 8px;
}

.sopq-choice {
    position: relative;
    display: block;
    cursor: pointer;
    user-select: none;
}

.sopq-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sopq-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--sopq-line);
    border-radius: 999px;
    background: #f8fafb;
    color: #56616b;
    font-size: 14px;
    font-weight: 850;
    transition: background .18s ease, color .18s ease, border .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sopq-choice input:focus-visible + span {
    outline: 3px solid rgba(47, 138, 114, .22);
    outline-offset: 2px;
}

.sopq-choice input:checked + span {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(23,31,45,.08);
}

.sopq-choice-yes input:checked + span {
    background: var(--sopq-primary-soft);
    border-color: rgba(36, 107, 88, .55);
    color: var(--sopq-primary);
}

.sopq-choice-no input:checked + span {
    background: #eef2f5;
    border-color: #cdd6dd;
    color: #3d4851;
}

.sopq-choice-unknown input:checked + span {
    background: var(--sopq-peach-soft);
    border-color: rgba(223, 116, 79, .42);
    color: #a24f31;
}

.sopq-sticky-actions {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(233,237,241,.9);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(23,31,45,.1);
}

.sopq-action-note {
    color: var(--sopq-muted);
    font-size: 14px;
    line-height: 1.35;
    padding-left: 8px;
}

.sopq-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sopq-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 22px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sopq-btn:hover {
    transform: translateY(-1px);
}

.sopq-btn-primary {
    background: linear-gradient(135deg, var(--sopq-primary), var(--sopq-primary-2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(36,107,88,.23);
}

.sopq-btn-ghost {
    background: #f1f4f6;
    color: #31404b;
}

.sopq-result {
    margin: 0 clamp(18px, 3vw, 32px) clamp(18px, 3vw, 32px);
    padding: clamp(22px, 4vw, 34px);
    border-radius: var(--sopq-radius-xl);
    background: #fff;
    border: 1px solid var(--sopq-line);
    box-shadow: var(--sopq-shadow);
}

.sopq-result-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 22px;
    align-items: center;
}

.sopq-result h3 {
    margin: 6px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -.035em;
}

.sopq-result-head p[data-sopq-summary] {
    margin: 0;
    color: var(--sopq-muted);
    line-height: 1.55;
    font-size: 16px;
}

.sopq-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    background: conic-gradient(var(--sopq-primary) 0deg, #edf2f4 0deg);
    position: relative;
    margin-left: auto;
}

.sopq-score-circle::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #fff;
}

.sopq-score-circle span,
.sopq-score-circle small {
    position: relative;
    z-index: 1;
}

.sopq-score-circle span {
    font-size: 31px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.sopq-score-circle small {
    margin-top: -10px;
    color: var(--sopq-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

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

.sopq-result-box {
    background: #f8fafb;
    border: 1px solid var(--sopq-line);
    border-radius: 18px;
    padding: 18px;
}

.sopq-result-box h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.sopq-result-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--sopq-muted);
    line-height: 1.55;
}

.sopq-result-box li + li {
    margin-top: 6px;
}

.sopq-disclaimer {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #fbf6ed;
    color: #65523a;
    font-size: 14px;
    line-height: 1.55;
}

.sopq-level-low .sopq-eyebrow { color: var(--sopq-primary); }
.sopq-level-mid .sopq-eyebrow { color: var(--sopq-warning); }
.sopq-level-high .sopq-eyebrow { color: var(--sopq-primary); }
.sopq-level-alert .sopq-eyebrow { color: var(--sopq-danger); }

.sopq-level-low .sopq-score-circle { background: conic-gradient(#2f8a72 var(--sopq-score-deg), #edf2f4 0deg); }
.sopq-level-mid .sopq-score-circle { background: conic-gradient(var(--sopq-warning) var(--sopq-score-deg), #edf2f4 0deg); }
.sopq-level-high .sopq-score-circle { background: conic-gradient(var(--sopq-primary) var(--sopq-score-deg), #edf2f4 0deg); }
.sopq-level-alert .sopq-score-circle { background: conic-gradient(var(--sopq-danger) var(--sopq-score-deg), #edf2f4 0deg); }

@media (max-width: 860px) {
    .sopq-card-intro,
    .sopq-question,
    .sopq-result-main,
    .sopq-result-grid {
        grid-template-columns: 1fr;
    }

    .sopq-score-circle {
        margin: 0;
    }

    .sopq-sticky-actions {
        align-items: stretch;
        border-radius: 22px;
        flex-direction: column;
    }

    .sopq-buttons {
        width: 100%;
    }

    .sopq-btn {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .sopq {
        padding: 0 10px;
        margin: 18px auto;
    }

    .sopq-hero,
    .sopq-form,
    .sopq-card,
    .sopq-result {
        padding: 18px;
    }

    .sopq-choice-row {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .sopq-choice span {
        min-height: 44px;
    }

    .sopq-input-grid {
        grid-template-columns: 1fr;
    }

    .sopq-progress-meta {
        flex-direction: column;
        gap: 4px;
    }
}
