.prototype-badge {
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 8px 12px;
    color: #4f555e;
    font-size: 12px;
    font-weight: 650;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.prototype-page {
    display: grid;
    grid-template-columns:
        minmax(300px, 0.72fr)
        minmax(560px, 1.28fr);
    gap: 28px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 90px;
}

.prototype-intro {
    position: sticky;
    top: 100px;
    padding: 44px 34px;
}

.prototype-intro h1 {
    max-width: 620px;
    margin: 16px 0 20px;
    font-size: clamp(44px, 5.5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.prototype-intro > p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.prototype-steps {
    display: grid;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.prototype-steps li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding: 15px 0;
}

.prototype-steps li > span {
    color: #686e77;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 11px;
}

.prototype-steps strong {
    font-size: 14px;
}

.prototype-steps p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.prototype-security-note {
    margin-top: 24px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    padding: 20px;
}

.prototype-security-note--compact {
    margin: 0 0 24px;
}

.prototype-security-note strong {
    font-size: 13px;
}

.prototype-security-note p {
    margin: 7px 0 0;
    color: #d4d8de;
    font-size: 13px;
    line-height: 1.55;
}

.prototype-security-note a {
    color: #fff;
    font-weight: 700;
}

.prototype-card,
.result-card {
    border: 1px solid #e1e4e8;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.prototype-card {
    min-width: 0;
    padding: clamp(26px, 4vw, 48px);
}

.prototype-card__header {
    margin-bottom: 26px;
}

.prototype-card__header h2 {
    margin: 9px 0 9px;
    font-size: 34px;
    letter-spacing: -0.045em;
}

.prototype-card__header p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.form-alert {
    margin-bottom: 22px;
    border: 1px solid #d9baba;
    border-radius: 14px;
    background: #fff7f7;
    padding: 15px 17px;
    color: #7b2929;
    font-size: 13px;
}

.form-alert strong {
    font-weight: 750;
}

.form-alert ul {
    display: grid;
    gap: 5px;
    margin: 9px 0 0;
    padding-left: 20px;
}

.form-alert a {
    color: inherit;
}

.form-alert:focus {
    outline: 3px solid #7b2929;
    outline-offset: 3px;
}

.wizard-progress {
    margin-bottom: 28px;
}

.wizard-progress ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-progress li {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8f9fa;
    padding: 8px;
    color: var(--muted);
}

.wizard-progress li > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff;
    color: #4f555e;
    font-size: 12px;
    font-weight: 750;
}

.wizard-progress strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-progress li[aria-current="step"] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.wizard-progress li[aria-current="step"] > span {
    background: #fff;
    color: var(--ink);
}

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

.wizard-step + .wizard-step {
    margin-top: 36px;
    border-top: 1px solid var(--border-soft);
    padding-top: 32px;
}

.js .wizard-step + .wizard-step {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.wizard-step__legend {
    width: 100%;
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.wizard-step__legend > span {
    color: #686e77;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wizard-step__legend > strong {
    width: fit-content;
    border-radius: 8px;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.wizard-step__legend > strong:focus {
    outline: 3px solid #4f555e;
    outline-offset: 4px;
}

.wizard-step__hint {
    max-width: 620px;
    margin: 8px 0 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.form-field label,
.link-box label {
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.link-box input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfd4dc;
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    padding: 0 14px;
    font: inherit;
}

.form-field select {
    cursor: pointer;
    padding-right: 40px;
}

.form-field input[readonly] {
    background: #f2f4f6;
    color: #4f555e;
}

.form-field input[type="file"] {
    min-height: 58px;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
}

.form-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    padding: 8px 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.link-box input:focus-visible,
.consent-field input:focus-visible,
.prototype-security-note a:focus-visible {
    outline: 3px solid #4f555e;
    outline-offset: 3px;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.link-box input:focus-visible {
    border-color: #4f555e;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
    border-color: #9d2f2f;
}

.field-hint,
.field-error {
    font-size: 12px;
    line-height: 1.45;
}

.field-hint {
    color: #686e77;
}

.field-error {
    color: #8f2727;
}

.field-error--standalone {
    display: block;
    margin-top: -8px;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.signing-method {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    margin: 4px 0 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #f8f9fa;
    padding: 15px;
}

.signing-method__mark {
    width: 54px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.signing-method strong {
    font-size: 14px;
}

.signing-method p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.delivery-channel {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #f8f9fa;
    padding: 18px;
}

.delivery-channel[data-channel-ready="true"] {
    border-color: #b7dfc5;
    background: #f5fbf7;
}

.delivery-channel__header,
.delivery-channel__header > div {
    display: flex;
    align-items: center;
}

.delivery-channel__header {
    justify-content: space-between;
    gap: 14px;
}

.delivery-channel__header > div {
    min-width: 0;
    gap: 10px;
}

.delivery-channel__icon {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.delivery-channel h3 {
    margin: 0;
    font-size: 16px;
}

.delivery-channel > p {
    margin: 12px 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.delivery-channel .form-field:last-child {
    margin-bottom: 0;
}

.channel-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 750;
}

.channel-status--ready {
    border: 1px solid #9fd2b1;
    background: #e9f7ee;
    color: #185c35;
}

.channel-status--unavailable {
    border: 1px solid #d7dbe1;
    background: #fff;
    color: #5c626b;
}

.whatsapp-details {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.consent-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 20px;
    color: #4f555e;
    font-size: 13px;
    line-height: 1.5;
}

.consent-field--choice {
    margin: 0;
    border: 1px solid #cfd4dc;
    border-radius: 13px;
    background: #fff;
    padding: 13px;
    color: var(--ink);
    font-weight: 700;
}

.consent-field--separate {
    margin-bottom: 14px;
    border-left: 3px solid var(--ink);
    background: #fff;
    padding: 12px 13px;
}

.consent-field--final {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8f9fa;
    padding: 14px;
    color: var(--ink);
}

.consent-field input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--ink);
}

.wizard-controls {
    display: none;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 26px;
}

.js .wizard-controls {
    display: flex;
}

.wizard-final-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 22px;
}

.wizard-back {
    display: none;
}

.js .wizard-final-actions {
    grid-template-columns: auto 1fr;
}

.js .wizard-back {
    display: inline-flex;
}

.prototype-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.no-js-review {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.wizard-review {
    display: none;
    margin: 0;
    border-top: 1px solid var(--border-soft);
}

.js .no-js-review {
    display: none;
}

.js .wizard-review {
    display: block;
}

.wizard-review div {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 0;
}

.wizard-review dt {
    color: #686e77;
    font-size: 12px;
}

.wizard-review dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.form-footnote {
    margin: 14px 0 0;
    color: #686e77;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.result-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding-top: 40px;
    padding-bottom: 70px;
}

.result-card {
    width: min(820px, 100%);
    padding: clamp(30px, 6vw, 66px);
}

.result-mark {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.result-card h1 {
    margin: 16px 0 16px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.result-lead {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.result-details {
    margin: 32px 0;
    border-top: 1px solid var(--border-soft);
}

.result-details div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
}

.result-details dt,
.result-channel-statuses dt {
    color: #686e77;
    font-size: 12px;
}

.result-details dd {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.result-channel-statuses {
    margin: 0 0 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8f9fa;
    padding: 16px;
}

.result-channel-statuses h2 {
    margin: 0;
    font-size: 16px;
}

.result-channel-statuses > p {
    margin: 6px 0 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.result-channel-statuses dl {
    margin: 0;
}

.result-channel-statuses dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--border-soft);
    padding: 11px 0;
}

.result-channel-statuses dd {
    margin: 0;
    text-align: right;
    font-size: 12px;
    font-weight: 750;
}

.delivery-state--queued,
.delivery-state--accepted {
    color: #374151;
}

.delivery-state--delivered {
    color: #185c35;
}

.delivery-state--failed {
    color: #8f2727;
}

.delivery-state--disabled,
.delivery-state--unknown {
    color: #686e77;
}

.link-box {
    display: grid;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8f9fa;
    padding: 18px;
}

.link-box__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.link-box input {
    min-width: 0;
    background: #fff;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
    font-size: 11px;
}

.link-box .button {
    min-height: 50px;
    cursor: pointer;
}

.copy-status {
    min-height: 18px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.capability-warning {
    margin-top: 28px;
    border-left: 3px solid var(--ink);
    background: #f2f4f6;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.capability-warning strong {
    color: var(--ink);
}

@media (max-width: 1040px) {
    .prototype-page {
        grid-template-columns: 1fr;
    }

    .prototype-intro {
        position: static;
        padding: 32px 22px 6px;
    }

    .prototype-intro h1 {
        max-width: 760px;
    }

    .prototype-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .prototype-steps li {
        grid-template-columns: 1fr;
        border: 1px solid var(--border);
        border-radius: 13px;
        padding: 12px;
    }
}

@media (max-width: 680px) {
    .prototype-badge {
        display: none;
    }

    .prototype-page {
        padding-top: 10px;
        padding-right: 12px;
        padding-bottom: 48px;
        padding-left: 12px;
    }

    .prototype-intro {
        padding: 24px 6px 4px;
    }

    .prototype-intro h1 {
        margin: 12px 0 15px;
        font-size: clamp(38px, 12vw, 54px);
    }

    .prototype-intro > p {
        font-size: 15px;
        line-height: 1.5;
    }

    .prototype-steps {
        grid-template-columns: 1fr 1fr;
        margin-top: 24px;
    }

    .prototype-steps p {
        display: none;
    }

    .prototype-security-note {
        margin-top: 16px;
        padding: 16px;
    }

    .prototype-card,
    .result-card {
        border-radius: 18px;
    }

    .prototype-card {
        padding: 20px 16px;
    }

    .prototype-card__header {
        margin-bottom: 20px;
    }

    .prototype-card__header h2 {
        font-size: 29px;
    }

    .wizard-progress {
        margin-right: -4px;
        margin-bottom: 22px;
        margin-left: -4px;
    }

    .wizard-progress ol {
        gap: 5px;
    }

    .wizard-progress li {
        grid-template-columns: 1fr;
        place-items: center;
        gap: 4px;
        padding: 6px 3px;
        text-align: center;
    }

    .wizard-progress li > span {
        width: 25px;
        height: 25px;
    }

    .wizard-progress strong {
        width: 100%;
        font-size: 9px;
    }

    .wizard-step__legend > strong {
        font-size: 24px;
    }

    .wizard-step__hint {
        margin-bottom: 18px;
    }

    .form-grid,
    .link-box__row,
    .js .wizard-final-actions {
        grid-template-columns: 1fr;
    }

    .delivery-channel {
        padding: 15px;
    }

    .wizard-controls {
        flex-direction: column-reverse;
    }

    .wizard-controls .button,
    .wizard-final-actions .button,
    .link-box .button,
    .result-actions,
    .result-actions .button {
        width: 100%;
    }

    .wizard-review div,
    .result-details div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .result-channel-statuses dl > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .result-channel-statuses dd {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }
}
