.crumbs {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.privacy-note {
    margin: 1.5rem 0;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border-left: 3px solid var(--brand);
    border-radius: 0 6px 6px 0;
    font-size: 0.9375rem;
}

.form-block {
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 10px;
}

.form-block h2 {
    margin-top: 0;
}

.hint {
    margin-top: -0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

fieldset {
    margin: 0 0 1rem;
    padding: 0.875rem 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
}

legend {
    padding: 0 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

fieldset label {
    display: inline-block;
    width: 100%;
    max-width: 18rem;
    margin: 0.5rem 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

fieldset label.wide {
    max-width: 100%;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.625rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: transparent;
}

.actions {
    margin-top: 1rem;
}

button {
    padding: 0.625rem 1.125rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--brand-fill, var(--brand));
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: var(--brand-fill-hover, var(--brand-hover));
}

button.secondary {
    margin-left: 0.5rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
}

button.secondary:hover {
    background: var(--surface);
}

.paper {
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
}

.paper p {
    margin: 0 0 0.625rem;
}

.paper h3 {
    margin: 1.375rem 0 0.625rem;
    font-size: 1rem;
}

.doc-title {
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.doc-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem !important;
}

.paper b[data-f] {
    font-weight: 600;
    color: var(--brand);
}

.paper b[data-f].empty {
    font-weight: 400;
    color: var(--text-secondary);
}

table.sign {
    width: 100%;
    margin-top: 0.75rem;
    border-collapse: collapse;
}

table.sign th,
table.sign td {
    width: 50%;
    padding: 0.5rem 0.75rem 0.75rem 0;
    text-align: left;
    vertical-align: top;
    font-size: 0.9375rem;
}

table.sign th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.disclaimer {
    padding: 1rem 1.125rem;
    background: var(--note-bg);
    border: 1px solid var(--note-border);
    border-radius: 10px;
}

.disclaimer h2 {
    margin-top: 0;
    font-size: 1.0625rem;
}

.faq h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.bridge .cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-fill, var(--brand));
    border-radius: 8px;
}

.bridge .cta:hover {
    color: #fff;
    background: var(--brand-fill-hover, var(--brand-hover));
}

.bridge.pitch {
    margin: 2rem 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background: var(--surface);
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
}

.bridge.pitch h2 {
    margin-top: 0;
}

.bridge .pain {
    font-size: 1.0625rem;
    font-weight: 600;
}

.bridge .pitch-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.bridge .cta-alt {
    display: inline-block;
    margin: 0.5rem 0 0 0.75rem;
    font-weight: 600;
}

.bridge .pro {
    display: inline-block;
    padding: 0 0.4375rem;
    border-radius: 6px;
    background: var(--brand-fill, var(--brand));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    vertical-align: 0.0625rem;
}

.app-hint {
    margin: 0.875rem 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.app-hint a {
    font-weight: 600;
}

.nudge {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
}

.nudge-box {
    width: 100%;
    max-width: 26rem;
    padding: 1.25rem 1.25rem 1rem;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nudge-box p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.nudge-box .nudge-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.nudge-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nudge-actions .secondary {
    margin-left: 0;
}

.nudge-cta {
    display: inline-block;
    padding: 0.625rem 1.125rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-fill, var(--brand));
    border-radius: 8px;
}

.nudge-cta:hover {
    color: #fff;
    background: var(--brand-fill-hover, var(--brand-hover));
}

.other ul {
    padding-left: 1.125rem;
}

@media (max-width: 34rem) {
    .doc-head {
        display: block;
    }

    .doc-head span {
        display: block;
    }

    table.sign,
    table.sign tr,
    table.sign th,
    table.sign td {
        display: block;
        width: 100%;
    }

    .paper {
        padding: 1rem;
    }
}

@media print {
    .screen-only,
    .form-block,
    .crumbs,
    .privacy-note,
    .nudge,
    h1 {
        display: none !important;
    }

    main {
        max-width: none;
        padding: 0;
    }

    .paper {
        padding: 0;
        border: 0;
        font-size: 11pt;
    }

    .paper b[data-f] {
        color: #000;
    }

    .paper h3 {
        break-after: avoid;
    }

    table.sign {
        break-inside: avoid;
    }

    @page {
        margin: 18mm 16mm;
    }
}

ul.cards {
    padding: 0;
    list-style: none;
}

ul.cards li {
    margin-bottom: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--surface);
    border-radius: 8px;
}

ul.cards a {
    font-weight: 600;
}

.muted {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

table.calc-out {
    width: 100%;
    margin-top: 0.5rem;
    border-collapse: collapse;
}

table.calc-out td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

table.calc-out td:last-child {
    text-align: right;
    white-space: nowrap;
}

table.calc-out tr:last-child td {
    border-bottom: 0;
}

table.calc-out tr.total td {
    font-size: 1.0625rem;
}

table.calc-out tr.total b {
    color: var(--brand);
}

.legal-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.app-aside {
    display: none;
}

@media (min-width: 86rem) and (min-height: 34rem) {
    .app-aside {
        position: fixed;
        top: 6rem;
        left: calc(50% + 24rem);
        display: block;
        width: 17rem;
        padding: 1.25rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .app-aside .aside-app {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .app-aside .aside-app img {
        flex: 0 0 auto;
        display: block;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .app-aside .aside-name {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .app-aside .aside-kind {
        margin: 0.125rem 0 0;
        font-size: 0.8125rem;
        color: var(--text-secondary);
    }

    .app-aside .aside-title {
        margin: 0 0 0.5rem;
        font-size: 1.0625rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .app-aside ul {
        margin: 0 0 1rem;
        padding-left: 1.125rem;
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .app-aside li + li {
        margin-top: 0.375rem;
    }

    .app-aside .cta {
        display: block;
        padding: 0.625rem 0.75rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        color: #fff;
        background: #0b6ba5;
        border-radius: 8px;
    }

    .app-aside .cta:hover {
        color: #fff;
        background: #095a8a;
    }

    .app-aside .aside-note {
        margin: 0.5rem 0 0;
        font-size: 0.8125rem;
        text-align: center;
        color: var(--text-secondary);
    }
}
