/* Override page.css .content to allow section cards */
.content {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* ─── Section cards ─── */
.section-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--medium-gray);
    padding: 36px 32px;
    margin-bottom: 24px;
}

.section-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card h2 .icon {
    font-size: 20px;
}

.section-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.section-card p:last-child {
    margin-bottom: 0;
}

/* ─── Info table ─── */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--light-gray);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    font-size: 15px;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 200px;
    padding-right: 20px;
    white-space: nowrap;
}

.info-table td:last-child {
    color: var(--text-light);
}

/* ─── Flow diagram ─── */
.flow {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.flow-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.flow-step-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.flow-step-dot {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 1;
}

.flow-step-connector {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: var(--medium-gray);
}

.flow-step-content {
    padding: 6px 0 28px;
    flex: 1;
}

.flow-step-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.flow-step-content span {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.flow-step:last-child .flow-step-content {
    padding-bottom: 0;
}

.flow-step:last-child .flow-step-connector {
    display: none;
}

/* ─── Phone mockup & consent demo ─── */
.consent-demo {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: 20px;
}

.phone-frame {
    width: 260px;
    min-width: 260px;
    background: var(--light-gray);
    border-radius: 24px;
    border: 2px solid var(--medium-gray);
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.phone-screen-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.phone-screen {
    background: white;
    border-radius: 14px;
    padding: 16px;
}

.phone-screen .ps-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.phone-screen .ps-field {
    background: #f4f5f7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.phone-screen .ps-section-label {
    font-size: 11px;
    color: var(--primary-blue);
    font-weight: 500;
    margin: 12px 0 6px;
}

.phone-screen .ps-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-dark);
}

.phone-screen .ps-toggle .toggle {
    width: 34px;
    height: 20px;
    border-radius: 10px;
    position: relative;
}

.phone-screen .ps-toggle .toggle.on {
    background: var(--success-green);
}

.phone-screen .ps-toggle .toggle.off {
    background: #ccc;
}

.phone-screen .ps-toggle .toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
}

.phone-screen .ps-toggle .toggle.on::after {
    right: 2px;
}

.phone-screen .ps-toggle .toggle.off::after {
    left: 2px;
}

.phone-screen .ps-note {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.4;
}

/* ─── Verification phone mockup ─── */
.phone-screen .ps-verify-intro {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.phone-screen .ps-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.phone-screen .ps-consent-checkbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 1px;
    accent-color: var(--primary-blue);
    cursor: default;
}

.phone-screen .ps-consent-text {
    font-size: 9px;
    color: var(--text-dark);
    line-height: 1.45;
}

.phone-screen .ps-consent-links {
    font-size: 9px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.phone-screen .ps-consent-links a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.phone-screen .ps-button {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.consent-annotations {
    flex: 1;
    padding-top: 8px;
}

.annotation {
    background: #ebf3ff;
    border-left: 3px solid var(--primary-blue);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.annotation:last-child {
    margin-bottom: 0;
}

.annotation strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
}

/* ─── SMS examples ─── */
.sms-example {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.sms-example:last-child {
    margin-bottom: 0;
}

.sms-example-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sms-example-label.verification { color: var(--primary-blue); }
.sms-example-label.alert { color: #d97706; }
.sms-example-label.clear { color: #16a34a; }

.sms-example-body {
    background: white;
    border-radius: 14px 14px 14px 4px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.55;
    border: 1px solid var(--medium-gray);
}

/* ─── Compliance grid ─── */
.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.compliance-item {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 14px 16px;
}

.compliance-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.compliance-item span {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.45;
}

/* ─── Opt-out box ─── */
.optout-box {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.optout-box p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.optout-box p:last-child {
    margin-bottom: 0;
}

/* ─── Screenshots ─── */
.screenshot-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 24px 0 0;
}

.screenshot-row figure {
    flex: 1;
    max-width: 280px;
    margin: 0;
    text-align: center;
}

.screenshot-row img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.screenshot-row figcaption {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .section-card {
        padding: 28px 20px;
    }

    .info-table td:first-child {
        width: auto;
        display: block;
        padding-bottom: 2px;
    }

    .info-table td:last-child {
        display: block;
        padding-bottom: 12px;
    }

    .info-table tr {
        display: block;
        padding: 8px 0;
    }

    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .consent-demo {
        flex-direction: column;
        align-items: center;
    }

    .phone-frame {
        min-width: unset;
        width: 100%;
        max-width: 300px;
    }

    .screenshot-row {
        flex-direction: column;
        align-items: center;
    }
}
