.pl {
    --paper: #ffffff;
    --rule: #e6e1f0;
    --ink: #2b2340;
    --ink-soft: #6c6485;
    --current: #7353d6;
    --stripes: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 14px, transparent 14px 28px);
    padding: 56px 30px 90px;
    color: var(--ink);
}

.pl-dividers {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 4px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 96px;
}

.pl-divider {
    padding: 10px 20px 9px;
    border-radius: 9px 9px 0 0;
    background: var(--tab);
    box-shadow: inset 0 -6px 8px -6px rgba(0, 0, 0, 0.35);
    color: white;
    font: 600 1rem var(--font-primary);
}

.pl-divider.active {
    padding-top: 15px;
    background: var(--stripes), var(--tab);
    box-shadow: none;
}

.pl-book {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

.pl-rings {
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: -22px;
    z-index: 5;
    width: 52px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='36'%3E%3Ccircle cx='38' cy='18' r='5' fill='%23d9d3e6'/%3E%3Crect x='3' y='13' width='42' height='10' rx='5' fill='%232b2340'/%3E%3Crect x='9' y='15' width='24' height='2.5' rx='1.2' fill='%237d7496'/%3E%3C/svg%3E") 0 0 / 52px 36px repeat-y;
    pointer-events: none;
}

.pl-sheet {
    position: relative;
    padding: 0 48px 60px 92px;
    border-radius: 6px 18px 18px 18px;
    background: radial-gradient(circle, rgba(43, 35, 64, 0.11) 1px, transparent 1.4px) 0 0 / 20px 20px, var(--paper);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.pl-band {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin: 0 -48px 0 -92px;
    padding: 44px 48px 44px 92px;
    border-radius: 6px 18px 0 0;
    background: var(--stripes) right top / 40% 100% no-repeat, var(--current);
    color: white;
}

.pl-band-text {
    min-width: 0;
}

.pl-overline {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
    font: 800 0.78rem var(--font-secondary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pl-title {
    margin: 0;
    color: white;
    font: 600 clamp(2.4rem, 4.6vw, 3.8rem) / 1.12 var(--font-primary);
}

.pl-lead {
    max-width: 560px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.6;
}

.pl-button {
    display: inline-block;
    margin-top: 26px;
    padding: 12px 22px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.45);
    color: var(--current);
    font: 800 1.05rem var(--font-secondary);
    text-decoration: none;
    transition: transform 0.15s ease;
}

.pl-button:hover {
    transform: translateY(-2px);
}

.pl-note {
    flex-shrink: 0;
    width: 290px;
    padding: 16px 20px 10px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.45);
    color: var(--ink);
}

.pl-note-title {
    margin: 0 0 4px;
    color: var(--ink-soft);
    font: 800 0.76rem var(--font-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pl-todo {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pl-todo li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    font-weight: 700;
    line-height: 1.35;
}

.pl-todo li:last-child {
    border-bottom: 0;
}

.pl-check {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    color: white;
    font: 900 0.72rem / 12px var(--font-secondary);
    text-align: center;
}

.pl-todo .done {
    color: var(--ink-soft);
    text-decoration: line-through;
}

.pl-todo .done .pl-check {
    border-color: var(--current);
    background: var(--current);
}

.pl-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.pl-plan {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: 0 0 0 2px var(--card), 0 18px 32px -20px color-mix(in srgb, var(--card) 70%, black);
}

.pl-plan-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: var(--stripes), var(--card);
}

.pl-plan-media h2 {
    margin: 0;
    color: white;
    font: 600 3.2rem / 1 var(--font-primary);
}

.pl-plan-media em {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    color: white;
    font: normal 800 0.72rem var(--font-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pl-plan-body {
    padding: 16px 20px 20px;
}

.pl-plan p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
    line-height: 1.5;
}

.pl-blank {
    display: block;
    height: 108px;
    margin-top: 6px;
    background: linear-gradient(to bottom, transparent 35px, var(--rule) 35px) 0 0 / 100% 36px;
}

@media (max-width: 980px) {
    .pl {
        padding: 40px 14px 60px;
    }

    .pl-dividers {
        flex-wrap: nowrap;
        padding-left: 22px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pl-divider {
        flex-shrink: 0;
        padding: 8px 12px 7px;
        font-size: 0.88rem;
    }

    .pl-divider.active {
        padding-top: 12px;
    }

    .pl-rings {
        left: -16px;
        width: 34px;
        background-size: 34px 24px;
    }

    .pl-sheet {
        padding: 0 18px 40px 34px;
    }

    .pl-band {
        flex-direction: column;
        gap: 22px;
        margin: 0 -18px 0 -34px;
        padding: 28px 18px 26px 34px;
    }

    .pl-note {
        width: 100%;
    }
}

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