.btn {
    text-transform: none;
    box-sizing: border-box;
}

a.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus {
    color: var(--clean);
}

.divorce-prep-guide {
    max-width: 1040px;
    margin: 0 auto;
}

.divorce-prep-guide > section {
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
    padding-top: 0.5rem;
    gap: 1.25rem;
}

.article-header {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 4px 24px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.eyebrow-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--royal);
    background: var(--brand-blue-100);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.85rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4.2vw + 0.5rem, 3.15rem);
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: var(--abyss);
}

.article-subtitle {
    font-size: clamp(1.05rem, 0.8vw + 0.85rem, 1.25rem);
    line-height: 1.6;
    color: var(--slate);
    margin: 0 0 1.5rem 0;
}

.safety-disclaimer-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.safety-alert-card,
.legal-disclaimer-card {
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.safety-alert-card {
    background: var(--brand-pink-100);
    border-left: 4px solid var(--brand-pink-500);
    border-top: 1px solid var(--brand-pink-200);
    border-right: 1px solid var(--brand-pink-200);
    border-bottom: 1px solid var(--brand-pink-200);
}

.legal-disclaimer-card {
    background: var(--brand-blue-50);
    border-left: 4px solid var(--royal);
    border-top: 1px solid var(--brand-blue-200);
    border-right: 1px solid var(--brand-blue-200);
    border-bottom: 1px solid var(--brand-blue-200);
}

.safety-alert-card p,
.legal-disclaimer-card p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--abyss);
}

.alert-kicker {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.safety-alert-card .alert-kicker {
    color: var(--brand-pink-500);
}

.legal-disclaimer-card .alert-kicker {
    color: var(--royal);
}

.tldr-card {
    background: var(--clean);
    border: 1px solid var(--brand-blue-200);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.tldr-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--abyss);
    margin: 0 0 0.65rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tldr-list {
    margin: 0;
    padding-left: 1.25rem;
}

.tldr-list li {
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0.45rem 0;
    color: var(--abyss-80);
}

.hero-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.cta-microcopy {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--slate);
    margin: 0;
}

.prose-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: clamp(1.35rem, 2.5vw, 2rem);
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.prose-card h2 {
    margin-top: 0;
}

.checklist-shell {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: clamp(1.25rem, 2.8vw, 2.25rem);
    box-shadow: 0 6px 28px rgba(18, 38, 72, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.checklist-header-block h2 {
    margin: 0 0 0.5rem 0;
}

.checklist-header-block p {
    margin: 0;
}

.checklist-progress-panel {
    background: var(--brand-blue-50);
    border: 1px solid var(--brand-blue-200);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.progress-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.progress-stats-group {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.progress-count-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--abyss);
}

.progress-pct-pill {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clean);
    background: var(--royal);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

.readiness-stage-badge {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--abyss);
    background: var(--clean);
    border: 1px solid var(--brand-blue-200);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
}

.overall-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(18, 38, 72, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.overall-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-blue-500), var(--mint));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.privacy-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(18, 38, 72, 0.08);
}

.memory-toggle-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.memory-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--abyss);
    margin: 0;
    cursor: pointer;
}

.memory-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--royal);
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-status-text {
    font-size: 0.82rem;
    color: var(--slate);
    margin: 0;
}

.checklist-utility-btns {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.btn-utility {
    background: var(--clean);
    color: var(--abyss);
    border: 1px solid var(--cloud);
    border-radius: 8px;
    padding: 0.48rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-utility:hover {
    background: var(--brand-blue-100);
    border-color: var(--brand-blue-400);
    color: var(--abyss);
    transform: none;
}

.btn-wipe {
    background: var(--brand-pink-100);
    color: var(--brand-pink-500);
    border: 1px solid var(--brand-pink-300);
    border-radius: 8px;
    padding: 0.48rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-wipe:hover {
    background: var(--brand-pink-500);
    color: var(--clean);
    border-color: var(--brand-pink-500);
    transform: none;
}

.phases-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-phase {
    background: var(--clean);
    border: 1px solid var(--brand-blue-200);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checklist-phase.phase-complete {
    border-color: var(--mint);
    box-shadow: 0 2px 14px rgba(5, 183, 125, 0.12);
}

.phase-header-btn {
    width: 100%;
    background: rgba(239, 245, 254, 0.65);
    color: var(--abyss);
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    cursor: pointer;
    white-space: normal;
}

.phase-header-btn:hover {
    background: var(--brand-blue-100);
    color: var(--abyss);
    transform: none;
}

.phase-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.phase-num-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--royal);
    background: var(--clean);
    border: 1px solid var(--brand-blue-300);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    flex-shrink: 0;
}

.checklist-phase.phase-complete .phase-num-pill {
    color: var(--clean);
    background: var(--mint);
    border-color: var(--mint);
}

.phase-heading-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--abyss);
    line-height: 1.35;
}

.phase-meta-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.phase-mini-bar {
    width: 68px;
    height: 7px;
    background: rgba(18, 38, 72, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.phase-mini-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand-blue-500);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.checklist-phase.phase-complete .phase-mini-fill {
    background: var(--mint);
}

.phase-count-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate);
    min-width: 44px;
    text-align: right;
}

.phase-chevron {
    font-size: 1rem;
    color: var(--slate);
    transition: transform 0.2s ease;
}

.phase-header-btn[aria-expanded="false"] .phase-chevron {
    transform: rotate(-90deg);
}

.phase-body {
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(18, 38, 72, 0.06);
}

.phase-body[hidden] {
    display: none;
}

.phase-rationale {
    font-size: 0.92rem;
    color: var(--slate);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.phase-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    margin: 0;
    border-radius: 12px;
    background: rgba(239, 245, 254, 0.42);
    border: 1px solid rgba(164, 195, 238, 0.35);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
    font-weight: 400;
}

.checklist-item:hover {
    background: var(--brand-blue-50);
    border-color: var(--brand-blue-300);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.18rem;
    accent-color: var(--mint);
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item-copy {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--abyss);
}

.checklist-item-copy strong {
    font-weight: 600;
    color: var(--abyss);
}

.checklist-item.is-checked {
    background: rgba(5, 183, 125, 0.08);
    border-color: rgba(5, 183, 125, 0.35);
}

.checklist-item.is-checked .checklist-item-copy {
    color: var(--slate);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.checklist-cta-panel {
    background: linear-gradient(135deg, rgba(239, 245, 254, 0.95), rgba(255, 240, 248, 0.95));
    border: 1px solid var(--brand-pink-200);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.checklist-cta-context {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--abyss);
    margin: 0;
    line-height: 1.5;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
}

.mistake-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.mistake-number {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-pink-500);
    background: var(--brand-pink-100);
    border: 1px solid var(--brand-pink-200);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
}

.mistake-card h3 {
    font-size: 1.18rem;
    line-height: 1.32;
    margin: 0;
    color: var(--abyss);
}

.dont-box,
.do-box {
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.dont-box {
    background: rgba(255, 240, 248, 0.85);
    border-left: 4px solid var(--brand-pink-500);
}

.do-box {
    background: rgba(5, 183, 125, 0.08);
    border-left: 4px solid var(--mint);
}

.contrast-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.dont-box .contrast-label {
    color: var(--brand-pink-500);
}

.do-box .contrast-label {
    color: #048258;
}

.dont-box p,
.do-box p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--abyss-80);
}

.inline-cta-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--brand-blue-200);
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.inline-cta-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--abyss);
}

.inline-cta-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

.guardrails-table {
    min-width: 580px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(18, 38, 72, 0.07);
}

.log-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.log-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
}

.log-card-weak {
    border-top: 4px solid var(--apricot);
}

.log-card-strong {
    border-top: 4px solid var(--mint);
}

.log-card h3 {
    font-size: 1.08rem;
    margin: 0 0 0.6rem 0;
}

.log-sample {
    background: var(--brand-blue-50);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--abyss);
    margin: 0.5rem 0 0 0;
}

.timeline-svg-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.timeline-svg-card svg {
    display: block;
    width: 100%;
    height: auto;
}

.timeline-phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.timeline-phase-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border-top: 4px solid var(--brand-blue-500);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.timeline-phase-card:nth-child(2) {
    border-top-color: var(--lilac);
}

.timeline-phase-card:nth-child(3) {
    border-top-color: var(--mint);
}

.timeline-window-tag {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--royal);
}

.timeline-phase-card h3 {
    font-size: 1.12rem;
    margin: 0;
}

.timeline-phase-card p {
    font-size: 0.95rem;
    line-height: 1.58;
    margin: 0;
}

.timeline-phase-card ul {
    margin: 0.25rem 0 0 0;
    padding-left: 1.15rem;
}

.timeline-phase-card li {
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0.35rem 0;
}

.sources-section {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: clamp(1.35rem, 2.5vw, 2rem);
    box-shadow: 0 4px 20px rgba(18, 38, 72, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.sources-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
}

.sources-intro {
    font-size: 0.94rem;
    margin: 0 0 1rem 0;
}

.sources-list {
    margin: 0;
    padding-left: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sources-list li {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--slate);
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .mistakes-grid,
    .timeline-phases-grid,
    .log-comparison-grid,
    .safety-disclaimer-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 1.25rem;
    }

    .checklist-shell {
        padding: 1.1rem;
    }

    .phase-header-btn {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.95rem 1rem;
    }

    .phase-meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .phase-mini-bar {
        flex: 1;
        max-width: 180px;
    }

    .phase-body {
        padding: 0.75rem 0.95rem 1rem;
    }

    .privacy-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .checklist-utility-btns {
        width: 100%;
    }

    .btn-utility,
    .btn-wipe {
        flex: 1;
        text-align: center;
    }

    .hero-cta-wrap .btn,
    .checklist-cta-panel .btn,
    .inline-cta-card .btn {
        width: 100%;
        box-sizing: border-box;
    }
}
