/* TwinCats subscriptions — listing + PDP chrome. Tokens from zarafa-redesign.css */

body:has(.sub-hero) .tc-top-marquee,
body:has(.pkg-hero) .tc-top-marquee {
    display: none;
}

.sub-hero {
    padding: 1.1rem 0 1.35rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(216, 95, 31, 0.12), transparent 46%),
        linear-gradient(180deg, #fff8ed 0%, var(--tc-bg, #fffaf3) 100%);
}
.sub-hero-grid {
    display: grid;
    gap: 1rem;
    align-items: center;
}
.sub-hero-copy {
    text-align: start;
}
.sub-hero-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tc-primary, #d85f1f);
    letter-spacing: 0.02em;
}
.sub-hero h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 4.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--tc-ink, #221a14);
}
.sub-hero-sub {
    margin: 0 0 0.55rem;
    max-width: 38rem;
    color: var(--tc-muted, #6f6257);
    font-size: 0.98rem;
    line-height: 1.65;
}
.sub-hero-trust {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tc-ink, #221a14);
}
.sub-hero-still {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tc-border, #f1dfc7);
    background: var(--tc-surface-soft, #fff8ed);
    max-height: 180px;
    height: 180px;
    position: relative;
    box-shadow: var(--tc-shadow, 0 8px 20px rgba(74, 38, 9, 0.07));
}
.sub-hero-still img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center;
    padding: 0.6rem;
}
.sub-hero-still:not(.pkg-slideshow) img {
    object-fit: cover;
    padding: 0;
    animation: subKen 18s ease-in-out infinite alternate;
}
@keyframes subKen {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .sub-hero-still img { animation: none; }
    .pkg-slide { transition: none; }
    .sub-card { animation: none; }
}

.sub-page {
    padding: 0.75rem 0 2.5rem;
}

.packages-bento {
    display: grid;
    gap: 1rem;
}
.sub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--tc-surface, #fff);
    border: 1px solid var(--tc-border, #f1dfc7);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--tc-shadow, 0 8px 20px rgba(74, 38, 9, 0.07));
    animation: subCardIn 0.5s ease both;
}
.sub-card:nth-child(2) { animation-delay: 0.08s; }
.sub-card:nth-child(3) { animation-delay: 0.16s; }
@keyframes subCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .sub-card { animation: none; }
}
.sub-card.is-featured {
    border-color: rgba(216, 95, 31, 0.35);
    background: linear-gradient(180deg, #fff0d7 0%, #ffffff 7.5rem);
    box-shadow: 0 16px 36px rgba(196, 78, 24, 0.12);
}
.sub-card-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    background: var(--tc-primary, #d85f1f);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}
.sub-trial-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    background: #fff8ed;
    color: var(--tc-primary-dark, #b94716);
    border: 1px solid rgba(216, 95, 31, 0.28);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}
.sub-card-media {
    position: relative;
    background: var(--tc-surface-soft, #fff8ed);
    min-height: 160px;
    height: 168px;
    overflow: hidden;
}
.sub-card-media img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: contain;
    padding: 0.75rem;
}
.sub-card.is-featured .sub-card-media,
.sub-card.is-featured .sub-card-media img {
    height: 168px;
}

.pkg-slideshow {
    position: relative;
    overflow: hidden;
}
.pkg-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
    background: var(--tc-surface-soft, #fff8ed);
}
.pkg-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
.pkg-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
}
.pkg-slide-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.pkg-slide-dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(34, 26, 20, 0.28);
    cursor: pointer;
}
.pkg-slide-dots button.is-active {
    background: var(--tc-primary, #d85f1f);
    width: 14px;
    border-radius: 99px;
}
.pkg-contents-slideshow {
    position: relative;
    height: 150px;
    margin: 0 0 0.85rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tc-border, #f1dfc7);
    background: var(--tc-surface-soft, #fff8ed);
}
.pkg-contents-slideshow img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 0.55rem;
}

.pkg-hero .hero-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.35rem 0.9rem !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: normal !important;
}
.hero-price-prefix {
    flex: 1 0 100%;
    margin-inline-start: 0 !important;
}
.hero-price-now,
.hero-price-was {
    flex: 0 0 auto;
    white-space: nowrap;
}
.hero-price-was {
    margin-inline-start: 0 !important;
    padding-inline-start: 0.75rem;
    border-inline-start: 1px solid var(--tc-border, #f1dfc7);
}
.sub-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1.1rem;
    flex: 1;
}
.sub-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tc-ink, #221a14);
}
.sub-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.55rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--tc-ink, #221a14);
}
.sub-price-was {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: line-through;
    color: var(--tc-muted, #6f6257);
}
.sub-price-meta,
.sub-tax {
    font-size: 0.8rem;
    color: var(--tc-muted, #6f6257);
}
.need-edits {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--tc-ink, #221a14);
}
.need-edits input {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--tc-primary, #d85f1f);
}
.need-edits-hint {
    display: block;
    color: var(--tc-muted, #6f6257);
    font-size: 0.75rem;
}
.need-edits.is-on {
    color: var(--tc-primary-dark, #b94716);
}
.btn-apple,
.pkg-buy-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--tc-cta, #c44e18);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    box-shadow: 0 10px 24px rgba(196, 78, 24, 0.22);
}
.pkg-buy-cta {
    min-height: 52px;
    line-height: 1.25;
    text-align: center;
}
.pkg-buy-cta:active {
    transform: scale(0.98);
}
.sub-card-body .sub-wa {
    margin-top: auto;
}
.sub-trust-row {
    display: grid;
    gap: 0.45rem;
}
.sub-trust-line {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--tc-ink, #221a14);
    text-decoration: none;
}
.sub-trust-line i {
    color: #f59e0b;
}
.items-list {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.items-list li {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--tc-ink, #221a14);
}
.item-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--tc-surface-soft, #fff8ed);
}
.items-list.is-collapsed li:nth-child(n+4):not(.items-toggle-row) {
    display: none;
}
.items-toggle-btn {
    border: 0;
    background: none;
    color: var(--tc-primary, #d85f1f);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.2rem 0;
}
.sub-wa {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tc-muted, #6f6257);
    text-decoration: none;
}
.sub-wa:hover {
    color: var(--tc-primary, #d85f1f);
}

.economy-link-section {
    margin-top: 0.85rem;
}
.economy-link {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--tc-border, #f1dfc7);
    background: var(--tc-surface, #fff);
    color: inherit;
    text-decoration: none;
}
.economy-link-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.economy-text {
    font-size: 0.85rem;
}

.sub-compare {
    margin-top: 0.85rem;
    border: 1px solid var(--tc-border, #f1dfc7);
    border-radius: 16px;
    background: var(--tc-surface, #fff);
    padding: 0 0.9rem;
}
.sub-compare summary {
    cursor: pointer;
    font-weight: 800;
    padding: 0.55rem 0;
    font-size: 0.92rem;
}
.sub-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.sub-compare-table th,
.sub-compare-table td {
    padding: 0.45rem 0.35rem;
    border-top: 1px solid var(--tc-border, #f1dfc7);
    text-align: start;
}
.sub-compare-table .is-featured-col {
    box-shadow: inset 0 0 0 1px rgba(216, 95, 31, 0.35);
}

.how-section {
    margin-top: 1.15rem;
}
.how-section h2 {
    font-size: 1.2rem;
    font-weight: 800;
}
.how-steps,
.how-zigzag {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.how-steps li,
.how-zigzag li {
    max-width: none;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: var(--tc-surface, #fff);
    border: 1px solid var(--tc-border, #f1dfc7);
}
.how-steps strong,
.how-zigzag strong {
    display: block;
    margin-bottom: 0.15rem;
}
.how-steps span,
.how-zigzag span {
    color: var(--tc-muted, #6f6257);
    font-size: 0.85rem;
}

.sub-faq {
    margin-top: 1.5rem;
}
.sub-faq h2 {
    font-size: 1.2rem;
    font-weight: 800;
}
.sub-faq details {
    border-bottom: 1px solid var(--tc-border, #f1dfc7);
    padding: 0.7rem 0;
}
.sub-faq summary {
    cursor: pointer;
    font-weight: 700;
}
.sub-faq p {
    margin: 0.4rem 0 0;
    color: var(--tc-muted, #6f6257);
}

.offer-countdown-bar {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(216, 95, 31, 0.1);
    color: #92400e;
}

@media (min-width: 768px) {
    .sub-hero {
        padding: 0.85rem 0 1rem;
    }
    .sub-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        min-height: 0;
        align-items: center;
    }
    .sub-hero-still,
    .sub-hero-still img {
        max-height: 200px;
        height: 200px;
    }
    .packages-bento {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .how-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .sub-card.is-featured {
        grid-column: auto;
        grid-row: auto;
    }
    .sub-card-media,
    .sub-card.is-featured .sub-card-media,
    .sub-card.is-featured .sub-card-media img,
    .sub-card-media img {
        height: 150px;
        max-height: 150px;
    }
    .sub-compare details {
        display: block;
    }
    .pkg-hero-stage {
        display: grid !important;
        grid-template-columns: minmax(280px, 1.05fr) minmax(240px, 0.95fr) !important;
        grid-template-areas: "copy media" !important;
        gap: 1rem 1.35rem !important;
        align-items: stretch !important;
        max-width: none !important;
    }
    .pkg-hero-copy-card {
        grid-area: copy !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: start !important;
    }
    .pkg-hero-banner {
        grid-area: media !important;
        margin: 0 !important;
        min-height: 240px !important;
        max-height: none !important;
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }
    .pkg-hero-banner .pkg-slide {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
    .pkg-hero-banner img,
    .pkg-hero-banner .pkg-slide img {
        aspect-ratio: auto !important;
        width: auto !important;
        max-width: 92% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 240px !important;
        object-fit: contain !important;
    }
    .pkg-hero {
        text-align: start !important;
        padding-block: 0.85rem 1rem !important;
    }
}

@media (min-width: 1100px) {
    .packages-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sub-card.is-featured {
        grid-column: auto;
        display: flex;
        flex-direction: column;
    }
    .sub-card-media,
    .sub-card.is-featured .sub-card-media,
    .sub-card.is-featured .sub-card-media img,
    .sub-card-media img {
        height: 150px;
        max-height: 150px;
    }
}

/* PDP extras */
.pkg-ticket-submit {
    width: 100%;
    margin-top: 0.75rem;
}
.pkg-tap-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.45rem;
}
.pkg-tap-marks img,
.pkg-tap-marks svg {
    height: 22px;
    width: auto;
}
.sub-sticky-pay,
#stickyPayBar {
    display: none !important;
}
@media (max-width: 991.98px) {
    :root {
        --tc-bottom-nav-h: 68px;
    }
    .sub-page,
    .pkg-detail-main,
    .page-bottom {
        padding-bottom: calc(var(--tc-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1.5rem);
    }
}

html[data-theme="dark"] .sub-hero,
html[data-theme="dark"] .sub-card,
html[data-theme="dark"] .sub-compare,
html[data-theme="dark"] .how-steps li,
html[data-theme="dark"] .how-zigzag li,
html[data-theme="dark"] .economy-link,
html[data-theme="dark"] .sub-sticky-pay {
    background: #1f2937;
    color: #f3f4f6;
    border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .sub-hero h1,
html[data-theme="dark"] .sub-card h3,
html[data-theme="dark"] .sub-price {
    color: #f3f4f6;
}

/* Old PDP chrome — hide even if leftover markup is still in an un-deployed cache */
body:has(.pkg-hero) .promo-banner-pro,
body:has(.pkg-hero) .pkg-bnpl-row,
body:has(.pkg-hero) .step-progress,
body:has(.pkg-hero) .step-labels {
    display: none !important;
}
