/* TaxBooks — strategies / freeze / 100-from-one lander */

.tx-strat-page .tx-strat-hero__bg {
    background:
        radial-gradient(820px 480px at 88% 12%, rgba(14, 116, 144, 0.28), transparent 55%),
        radial-gradient(640px 400px at 8% 88%, rgba(44, 160, 28, 0.18), transparent 52%),
        linear-gradient(165deg, #0c1618 0%, #142428 40%, #1a3228 100%);
}

/* —— Law radar (prominent) —— */
.tx-strat-law {
    position: relative;
    padding: clamp(64px, 10vh, 110px) 0;
    color: #ecfdf5;
    overflow: hidden;
}

.tx-strat-law__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 18% 20%, rgba(14, 116, 144, 0.35), transparent 58%),
        radial-gradient(700px 380px at 88% 70%, rgba(44, 160, 28, 0.22), transparent 55%),
        linear-gradient(180deg, #071214 0%, #0f1f24 45%, #0c1816 100%);
    z-index: 0;
}

.tx-strat-law__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(148, 163, 184, 0.045) 28px
        );
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.tx-strat-law__inner {
    position: relative;
    z-index: 1;
}

.tx-strat-law__head {
    max-width: 40rem;
    margin-bottom: clamp(36px, 6vw, 56px);
}

.tx-strat-law__head h2 {
    font-family: var(--tx-brand);
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 16px;
}

.tx-strat-law__lede {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.55;
    color: rgba(236, 253, 245, 0.78);
    max-width: 36rem;
}

.tx-strat-law-flow {
    display: grid;
    grid-template-columns: 1.15fr auto 1fr;
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
}

.tx-strat-law-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tx-strat-law-pillar {
    position: relative;
    padding: 20px 16px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    min-height: 220px;
}

.tx-strat-law-pillar.is-irs {
    border-color: rgba(56, 189, 248, 0.35);
    background:
        linear-gradient(165deg, rgba(14, 116, 144, 0.28) 0%, rgba(255, 255, 255, 0.03) 70%);
}

.tx-strat-law-pillar.is-state {
    border-color: rgba(134, 239, 172, 0.35);
    background:
        linear-gradient(165deg, rgba(44, 160, 28, 0.22) 0%, rgba(255, 255, 255, 0.03) 70%);
}

.tx-strat-law-pillar__seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.1rem;
    height: 1.55rem;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    color: #041016;
    background: #67e8f9;
}

.tx-strat-law-pillar.is-state .tx-strat-law-pillar__seal {
    background: #86efac;
}

.tx-strat-law-pillar h3 {
    font-family: var(--tx-brand);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    color: #fff;
}

.tx-strat-law-pillar > p {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.58);
}

.tx-strat-law-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans", ui-monospace, monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(186, 230, 253, 0.85);
    animation: tx-strat-law-scroll 18s linear infinite;
}

.tx-strat-law-scroll.is-alt {
    color: rgba(187, 247, 208, 0.85);
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes tx-strat-law-scroll {
    0% { transform: translateY(0); opacity: 0.55; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-28%); opacity: 0.55; }
}

.tx-strat-law-flow__mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.tx-strat-law-core {
    position: relative;
    width: min(100%, 220px);
    padding: 28px 20px 22px;
    text-align: center;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(134, 239, 172, 0.22), transparent 55%),
        rgba(8, 24, 28, 0.92);
    border: 2px solid rgba(94, 234, 212, 0.55);
    box-shadow:
        0 0 0 10px rgba(14, 116, 144, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.35);
}

.tx-strat-law-core__pulse {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(94, 234, 212, 0.35);
    animation: tx-strat-law-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes tx-strat-law-pulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.18); opacity: 0; }
}

.tx-strat-law-core__brand {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.tx-strat-law-core strong {
    display: block;
    font-family: var(--tx-brand);
    font-size: 1.05rem;
    font-weight: 800;
    color: #a7f3d0;
    letter-spacing: -0.02em;
}

.tx-strat-law-core em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
    max-width: 11rem;
}

.tx-strat-law-arrows {
    display: flex;
    gap: 6px;
}

.tx-strat-law-arrows span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5eead4;
    opacity: 0.35;
    animation: tx-strat-law-dot 1.4s ease-in-out infinite;
}

.tx-strat-law-arrows span:nth-child(2) { animation-delay: 0.2s; }
.tx-strat-law-arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tx-strat-law-dot {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(3px); }
}

.tx-strat-law-result {
    padding: 28px 24px;
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(44, 160, 28, 0.28) 0%, rgba(255, 255, 255, 0.05) 60%);
    border: 1px solid rgba(134, 239, 172, 0.45);
}

.tx-strat-law-result h3 {
    font-family: var(--tx-brand);
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
    color: #bbf7d0;
}

.tx-strat-law-result ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.tx-strat-law-result li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.02rem;
    line-height: 1.4;
    color: rgba(236, 253, 245, 0.9);
}

.tx-strat-law-result li i {
    color: #86efac;
    margin-top: 3px;
}

.tx-strat-law__foot {
    margin: clamp(28px, 5vw, 40px) 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 36rem;
}

@media (max-width: 980px) {
    .tx-strat-law-flow {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tx-strat-law-flow__mid {
        order: 2;
    }

    .tx-strat-law-flow__out {
        order: 3;
    }

    .tx-strat-law-core {
        width: 200px;
    }
}

@media (max-width: 560px) {
    .tx-strat-law-pillars {
        grid-template-columns: 1fr;
    }

    .tx-strat-law-pillar {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tx-strat-law-scroll,
    .tx-strat-law-core__pulse,
    .tx-strat-law-arrows span {
        animation: none;
    }
}

/* Hero visual: 1 → ~100 */
.tx-strat-stack {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
}

.tx-strat-stack__one,
.tx-strat-stack__many {
    flex: 1;
    min-width: 0;
    padding: 22px 20px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tx-strat-stack__many {
    background: rgba(44, 160, 28, 0.14);
    border-color: rgba(134, 239, 172, 0.35);
}

.tx-strat-stack__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.tx-strat-stack__many .tx-strat-stack__label {
    color: #bbf7d0;
}

.tx-strat-stack__one strong,
.tx-strat-stack__many strong {
    display: block;
    font-family: var(--tx-brand);
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.tx-strat-stack__many strong {
    color: #86efac;
}

.tx-strat-stack__one em,
.tx-strat-stack__many em {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
}

.tx-strat-stack__arrow {
    flex: 0 0 auto;
    color: #5eead4;
    font-size: 1.4rem;
    animation: tx-switch-arrow-pulse 1.8s ease-in-out infinite;
}

.tx-strat-spines {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 36px;
    margin-top: 16px;
}

.tx-strat-spines span {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #86efac 0%, #2ca01c 100%);
    opacity: 0.35;
    animation: tx-strat-spine 2.4s ease-in-out infinite;
}

.tx-strat-spines span:nth-child(1) { height: 40%; animation-delay: 0s; }
.tx-strat-spines span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.tx-strat-spines span:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.tx-strat-spines span:nth-child(4) { height: 90%; animation-delay: 0.15s; }
.tx-strat-spines span:nth-child(5) { height: 45%; animation-delay: 0.25s; }
.tx-strat-spines span:nth-child(6) { height: 75%; animation-delay: 0.05s; }
.tx-strat-spines span:nth-child(7) { height: 60%; animation-delay: 0.3s; }
.tx-strat-spines span:nth-child(8) { height: 85%; animation-delay: 0.12s; }
.tx-strat-spines span:nth-child(9) { height: 50%; animation-delay: 0.22s; }
.tx-strat-spines span:nth-child(10) { height: 95%; animation-delay: 0.08s; }
.tx-strat-spines span:nth-child(11) { height: 65%; animation-delay: 0.18s; }
.tx-strat-spines span:nth-child(12) { height: 80%; animation-delay: 0.28s; }

@keyframes tx-strat-spine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.92); }
    50% { opacity: 0.85; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tx-strat-spines span,
    .tx-strat-stack__arrow {
        animation: none;
    }
}

@media (max-width: 900px) {
    .tx-strat-stack {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tx-strat-stack__arrow {
        transform: rotate(90deg);
        align-self: center;
    }
}

/* Problem compare */
.tx-strat-problem {
    padding: clamp(56px, 9vh, 88px) 0;
    background:
        radial-gradient(700px 260px at 50% 0%, rgba(14, 116, 144, 0.08), transparent 55%),
        #f4f5f8;
}

.tx-strat-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 28px);
    max-width: 52rem;
}

.tx-strat-compare__col {
    padding: 28px 24px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d4d7dc;
}

.tx-strat-compare__col.is-win {
    border-color: #86efac;
    background: linear-gradient(165deg, #f0fdf4 0%, #fff 55%);
}

.tx-strat-compare__col h3 {
    font-family: var(--tx-brand);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #1a1b1e;
}

.tx-strat-compare__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.tx-strat-compare__col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #5c5d63;
}

.tx-strat-compare__col.is-lose li i {
    color: #c0392b;
    margin-top: 3px;
}

.tx-strat-compare__col.is-win li i {
    color: #2ca01c;
    margin-top: 3px;
}

.tx-strat-compare__col.is-win li em {
    font-style: normal;
    font-weight: 700;
    color: #166534;
}

@media (max-width: 720px) {
    .tx-strat-compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tx-strat-page {
        overflow-x: clip;
    }

    .tx-strat-stack__one,
    .tx-strat-stack__many {
        padding: 18px 16px 14px;
    }

    .tx-strat-stack__one strong,
    .tx-strat-stack__many strong {
        font-size: clamp(2.2rem, 12vw, 2.8rem);
    }

    .tx-strat-problem {
        padding: 40px 0;
    }

    .tx-strat-compare__col {
        padding: 20px 16px;
    }

    .tx-strat-compare__col li {
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }
}

.tx-strat-freeze-note {
    background: #ecfeff;
    border-color: #67e8f9;
}

.tx-strat-freeze-note strong {
    color: #0e7490;
}

.tx-strat-freeze-note p {
    color: #155e75;
}

.tx-strat-page .tx-switch-cta__actions .tx-btn-secondary {
    text-decoration: none;
}
