.sr-prototype {
    --sr-ink: #12233f;
    --sr-muted: #61708a;
    --sr-gold: #c8962e;
    --sr-gold-dark: #9a6d15;
    --sr-border: #dce3ec;
    --sr-soft: #f6f8fb;
    --sr-danger: #a12a2a;
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    color: var(--sr-ink);
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(9, 25, 49, 0.12);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

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

.sr-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 28px;
    background:
        radial-gradient(circle at 90% 10%, rgba(226, 183, 79, 0.24), transparent 30%),
        linear-gradient(135deg, #08162c 0%, #132b4f 62%, #19395e 100%);
    color: #fff;
}

.sr-hero::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.sr-hero h1,
.sr-result h2 {
    margin: 0.2rem 0 0.75rem;
    line-height: 1.12;
}

.sr-hero h1 {
    max-width: 720px;
    margin-top: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: 0.015em;
}

.sr-result h2 {
    color: var(--sr-ink);
    font-size: 14px;
}

.sr-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sr-eyebrow {
    margin: 0;
    color: var(--sr-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sr-hero .sr-eyebrow {
    color: #efc86e;
}

.sr-premium-badge {
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(239, 200, 110, 0.55);
    border-radius: 999px;
    color: #f6d98f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sr-intro {
    max-width: 760px;
    margin: 6px 0 0;
    color: #dfe8f5;
    font-size: 14px;
    line-height: 1.55;
}

.sr-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 16px;
}

.sr-trust-row span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #f5f8fc;
    font-size: 11px;
}

.sr-trust-row strong {
    color: #efc86e;
    font-size: 10px;
}

.sr-privacy-note {
    margin-top: 10px;
    color: #bfcde0;
    font-size: 10px;
}

.sr-form,
.sr-progress,
.sr-result {
    margin-right: clamp(1rem, 5vw, 4rem);
    margin-left: clamp(1rem, 5vw, 4rem);
}

.sr-progress {
    margin: 18px clamp(1rem, 5vw, 4rem);
}

.sr-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf3;
}

.sr-progress-bar {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sr-gold), #e8bd5a);
    transition: width 180ms ease;
}

.sr-progress p {
    margin: 0.55rem 0 0;
    color: var(--sr-muted);
    font-size: 11px;
}

.sr-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sr-step legend {
    width: 100%;
    margin-bottom: 16px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--sr-border);
    color: var(--sr-ink);
    font-size: 14px;
    font-weight: 750;
}

.sr-grid,
.sr-check-grid,
.sr-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.sr-prototype label {
    display: grid;
    gap: 0.45rem;
    color: var(--sr-ink);
    font-weight: 650;
}

.sr-prototype input,
.sr-prototype select,
.sr-prototype textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #b8c3d1;
    border-radius: 10px;
    background: #fff;
    color: var(--sr-ink);
    font: inherit;
}

.sr-prototype textarea {
    resize: vertical;
}

.sr-prototype input:focus,
.sr-prototype select:focus,
.sr-prototype textarea:focus {
    outline: 3px solid rgba(200, 150, 46, 0.22);
    border-color: var(--sr-gold-dark);
}

.sr-prototype small,
.sr-help {
    color: var(--sr-muted);
    font-size: 10px;
    font-weight: 400;
}

.sr-calculation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 1rem;
    margin: 1rem 0 1.25rem;
    padding: 12px 14px;
    border: 1px solid rgba(200, 150, 46, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffaf0 0%, #f5f7fa 100%);
    color: var(--sr-ink);
}

.sr-calculation-panel span {
    font-size: 11px;
    font-weight: 700;
}

.sr-calculation-panel strong {
    color: var(--sr-gold-dark);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.sr-calculation-panel small {
    grid-column: 1 / -1;
}

.sr-check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 10px;
    border: 1px solid var(--sr-border);
    border-radius: 10px;
    background: var(--sr-soft);
    font-weight: 600;
}

.sr-check-grid input {
    width: 18px;
    min-height: 18px;
    margin-top: 0.15rem;
}

.sr-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-bottom: clamp(1.5rem, 5vw, 3.5rem);
}

.sr-button {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--sr-gold-dark);
    border-radius: 10px;
    background: var(--sr-gold-dark);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.sr-button:hover,
.sr-button:focus {
    background: #78520e;
}

.sr-button-secondary {
    border-color: #aeb9c8;
    background: #fff;
    color: var(--sr-ink);
}

.sr-button-secondary:hover,
.sr-button-secondary:focus {
    background: var(--sr-soft);
}

.sr-error {
    margin: 1rem 0 0;
    color: var(--sr-danger);
    font-weight: 700;
}

.sr-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 22px;
}

.sr-result-lead {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 12px 14px;
    border: 1px solid #d9e3ef;
    border-radius: 14px;
    background: linear-gradient(90deg, #f7f9fc, #fff);
}

.sr-result-lead p {
    margin: 0.2rem 0 0;
    color: var(--sr-muted);
    font-size: 11px;
}

.sr-result-seal {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--sr-ink);
    color: #efc86e;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

.sr-result-grid article {
    padding: 14px;
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    background: var(--sr-soft);
}

.sr-result-grid .sr-decision-card {
    padding: 18px;
    border-color: #253f63;
    background: linear-gradient(145deg, #0f2341, #19395f);
    color: #f5f8fc;
}

.sr-decision-card h3 {
    color: #fff;
    font-size: 14px;
}

.sr-decision-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sr-card-kicker {
    margin: 0 0 0.2rem;
    color: #efc86e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sr-readiness {
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(239, 200, 110, 0.5);
    border-radius: 999px;
    color: #f6d98f;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.sr-orientation {
    max-width: 820px;
    margin: 0.5rem 0 1.2rem;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.sr-strategy-steps {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    counter-reset: sr-strategy;
    list-style: none;
}

.sr-strategy-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0.7rem;
    align-items: start;
}

.sr-strategy-steps li::before {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: #d2a13d;
    color: #0f2341;
    content: counter(sr-strategy);
    counter-increment: sr-strategy;
    font-size: 10px;
    font-weight: 850;
}

.sr-result-grid h3 {
    margin-top: 0;
    color: var(--sr-ink);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.sr-result-grid ul,
.sr-result-grid ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.sr-result-grid li + li {
    margin-top: 0.5rem;
}

.sr-result-wide {
    grid-column: 1 / -1;
}

.sr-result dl {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 0.55rem 0.8rem;
    margin: 0;
}

.sr-result dt {
    color: var(--sr-muted);
    font-weight: 650;
}

.sr-result dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.sr-qualification-card,
.sr-analysis-card,
.sr-professional-card {
    background: #fff !important;
}

.sr-section-heading {
    margin-bottom: 12px;
}

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

.sr-condition {
    padding: 12px;
    border: 1px solid #dbe3ed;
    border-radius: 10px;
    background: #f8fafc;
}

.sr-condition span {
    display: block;
    margin-bottom: 4px;
    color: var(--sr-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sr-condition strong {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f5ee;
    color: #16623b;
    font-size: 11px;
}

.sr-condition strong[data-status*="contest"],
.sr-condition strong[data-status*="renforcer"],
.sr-condition strong[data-status*="recalculer"] {
    background: #fff3da;
    color: #805b0e;
}

.sr-condition strong[data-status*="non"] {
    background: #fdeaea;
    color: #8f2f2f;
}

.sr-condition p {
    margin: 8px 0 0;
    color: #41526b;
    font-size: 11px;
}

.sr-legal-analysis {
    margin-bottom: 0;
    color: #263a57;
    font-size: 12px;
    line-height: 1.7;
}

.sr-source-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-source-list li {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #fff;
    font-size: 11px;
}

.sr-source-list span {
    color: #53647b;
}

.sr-source-list a,
.sr-case-list a {
    color: #8a641c;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

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

.sr-case-list article {
    padding: 12px;
    border-left: 3px solid var(--sr-gold);
    border-radius: 8px;
    background: #fff;
}

.sr-case-list h4 {
    margin: 0 0 4px;
    color: var(--sr-ink);
    font-size: 12px;
}

.sr-case-list p {
    margin: 6px 0;
    color: #41526b;
    font-size: 11px;
}

.sr-case-list .sr-case-meta {
    margin-top: 0;
    color: #7a8798;
    font-size: 10px;
}

.sr-professional-card {
    border: 1px solid #d8b563 !important;
    box-shadow: inset 3px 0 0 #c8962e;
}

.sr-professional-card p:last-child {
    margin-bottom: 0;
    color: #263a57;
    font-size: 12px;
}

.sr-legal-footnote {
    margin: 1rem 0 0;
    padding: 0 0 clamp(1.5rem, 5vw, 3rem);
    color: var(--sr-muted);
    font-size: 10px;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .sr-prototype {
        border-radius: 14px;
    }

    .sr-trust-row {
        grid-template-columns: 1fr;
    }

    .sr-hero-topline,
    .sr-decision-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sr-grid,
    .sr-check-grid,
    .sr-result-grid {
        grid-template-columns: 1fr;
    }

    .sr-condition-grid,
    .sr-case-list {
        grid-template-columns: 1fr;
    }

    .sr-source-list li {
        grid-template-columns: 1fr;
    }

    .sr-result-wide {
        grid-column: auto;
    }

    .sr-result-heading,
    .sr-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sr-result dl {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .sr-result dd + dt {
        margin-top: 0.7rem;
    }
}
