/* ==========================================================================
   TagShuttle — Premium Design System & Plans Showcase
   Award-winning dark studio craft · Baseline-safe · Reduced-motion first
   ========================================================================== */

:root {
    --ts-canvas: #07080c;
    --ts-surface-1: rgba(16, 18, 26, 0.78);
    --ts-surface-2: rgba(22, 25, 36, 0.84);
    --ts-surface-elevated: rgba(28, 32, 46, 0.9);
    --ts-border-hairline: rgba(255, 255, 255, 0.08);
    --ts-border-bright: rgba(255, 255, 255, 0.17);
    --ts-specular-top: inset 0 1px 0 rgba(255, 255, 255, 0.11);

    /* Tier Accents (WCAG AA on dark surfaces) */
    --ts-free: #cbd5e1;
    --ts-starter: #38bdf8;
    --ts-pro: #38bdf8;
    --ts-pro-deep: #1473e6;
    --ts-studio: #a5b4fc;
    --ts-studio-deep: #6366f1;
    --ts-emerald: #34d399;
    --ts-emerald-deep: #059669;

    --ts-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ts-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. Global Canvas, Atmospheric Aurora & Subtle Film-Grain Texture
   -------------------------------------------------------------------------- */
body {
    background-color: var(--ts-canvas);
    background-image:
        radial-gradient(ellipse 75% 42% at 50% -4%, rgba(20, 115, 230, 0.22) 0%, rgba(56, 189, 248, 0.07) 42%, transparent 72%),
        radial-gradient(ellipse 48% 34% at 88% 18%, rgba(99, 102, 241, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 45% 32% at 12% 38%, rgba(14, 165, 233, 0.08) 0%, transparent 65%);
    background-attachment: scroll;
}

/* CSS-only tactile grain overlay (zero external assets, zero layout impact) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.026;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Luminous section divider */
.ts-section-divider {
    height: 1px;
    width: min(100% - 3rem, var(--container-max, 78rem));
    margin-inline: auto;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.22) 25%,
        rgba(255, 255, 255, 0.16) 50%,
        rgba(129, 140, 248, 0.22) 75%,
        transparent 100%
    );
    border: 0;
}

/* --------------------------------------------------------------------------
   2. Elevated Frosted Navigation & Scroll Progress
   -------------------------------------------------------------------------- */
.site-header {
    background: rgba(7, 8, 12, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 12, 0.9);
    border-bottom-color: rgba(56, 189, 248, 0.18);
    box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.65);
}

.nav-list a {
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: 0.15rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ts-pro-deep), var(--ts-starter));
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.25s var(--ts-ease-expo), opacity 0.2s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-list a.nav-link-highlight {
    color: var(--ts-starter);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Hero Stage Elevation & Shimmer CTAs
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    isolation: isolate;
}

.hero-headline {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 58%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 12px 48px rgba(56, 189, 248, 0.12);
}

.hero-headline .hero-headline-accent {
    background: linear-gradient(125deg, #7dd3fc 0%, #38bdf8 45%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    margin: 2rem auto 1.75rem;
}

/* Shimmer Primary CTA */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1d8cf8 0%, #1473e6 55%, #0b5bc4 100%);
    color: #ffffff;
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow:
        0 10px 30px -6px rgba(20, 115, 230, 0.55),
        0 0 0 1px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-shimmer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        112deg,
        transparent 22%,
        rgba(255, 255, 255, 0.28) 48%,
        transparent 74%
    );
    transform: translateX(-135%);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .btn-shimmer::before {
        animation: tsBtnShimmer 5.5s ease-in-out infinite;
    }

    .btn-shimmer:hover::before {
        animation: none;
        transform: translateX(135%);
        transition: transform 0.65s var(--ts-ease-expo);
    }
}

@keyframes tsBtnShimmer {
    0%, 68% { transform: translateX(-135%); }
    100% { transform: translateX(135%); }
}

.btn-shimmer:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #1d8cf8 55%, #1473e6 100%);
    border-color: rgba(186, 230, 253, 0.72);
    box-shadow:
        0 16px 38px -6px rgba(56, 189, 248, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-shimmer:active {
    transform: translateY(0) scale(0.985);
}

/* Studio App Preview Elevation */
.studio-window {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 32px 90px -20px rgba(0, 0, 0, 0.85),
        0 0 90px -24px rgba(20, 115, 230, 0.28),
        var(--ts-specular-top);
}

/* --------------------------------------------------------------------------
   4. Pointer-Tracking Spotlight & Elevated Cards (Site-wide + Plans)
   -------------------------------------------------------------------------- */
[data-spotlight] {
    --spot-x: 50%;
    --spot-y: 0%;
    position: relative;
    overflow: hidden;
}

[data-spotlight]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        420px circle at var(--spot-x) var(--spot-y),
        var(--spot-color, rgba(56, 189, 248, 0.14)),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    [data-spotlight]:hover::before {
        opacity: 1;
    }
}

[data-spotlight] > * {
    position: relative;
    z-index: 1;
}

.bento-card {
    background: linear-gradient(165deg, rgba(22, 25, 36, 0.82) 0%, rgba(13, 15, 22, 0.9) 100%);
    border-color: var(--ts-border-hairline);
    box-shadow: var(--ts-specular-top), 0 14px 36px -22px rgba(0, 0, 0, 0.75);
    transition: transform 0.3s var(--ts-ease-expo), border-color 0.25s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: var(--ts-specular-top), 0 24px 48px -18px rgba(0, 0, 0, 0.85), 0 0 36px -16px rgba(56, 189, 248, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
    .bento-card:hover {
        transform: translateY(-3px);
    }
}

/* --------------------------------------------------------------------------
   5. Compositor-Only Scroll Reveal (Progressive Enhancement)
   Default is ALWAYS visible; JS opts in only when reduced-motion is off.
   -------------------------------------------------------------------------- */
html.ts-motion-ready .ts-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s var(--ts-ease-expo),
        transform 0.65s var(--ts-ease-expo);
    will-change: opacity, transform;
}

html.ts-motion-ready .ts-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

html.ts-motion-ready .ts-reveal-delay-1 { transition-delay: 80ms; }
html.ts-motion-ready .ts-reveal-delay-2 { transition-delay: 160ms; }
html.ts-motion-ready .ts-reveal-delay-3 { transition-delay: 240ms; }

/* --------------------------------------------------------------------------
   6. SHOWSTOPPING PLANS & CREDITS SECTION (#preise / #pricing)
   -------------------------------------------------------------------------- */
.plans-section {
    position: relative;
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    isolation: isolate;
}

/* Ambient halo behind the pricing stage */
.plans-section::before {
    content: "";
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 74rem);
    height: 36rem;
    background:
        radial-gradient(ellipse 52% 48% at 50% 35%, rgba(20, 115, 230, 0.2) 0%, transparent 72%),
        radial-gradient(ellipse 36% 40% at 82% 52%, rgba(99, 102, 241, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 34% 38% at 18% 55%, rgba(56, 189, 248, 0.11) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.plans-header {
    text-align: center;
    max-width: 48rem;
    margin-inline: auto;
    margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.plans-header .lead-copy {
    margin-inline: auto;
    margin-top: 1rem;
}

/* Transparent 1-Credit Rate Pill */
.credit-rate-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.credit-rate-pill svg {
    color: var(--ts-starter);
    flex-shrink: 0;
}

.credit-rate-pill strong {
    color: #ffffff;
    font-weight: 600;
}

/* --- 6A. Compact Free Plan Banner Strip --- */
.free-plan-strip {
    --spot-color: rgba(203, 213, 225, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.75rem;
    padding: 1.25rem 1.6rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg, 1.5rem);
    background: linear-gradient(125deg, rgba(24, 28, 40, 0.84) 0%, rgba(14, 17, 25, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: var(--ts-specular-top), 0 14px 34px -20px rgba(0, 0, 0, 0.8);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.free-plan-strip:hover {
    border-color: rgba(203, 213, 225, 0.28);
}

.free-plan-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    min-width: 0;
    flex: 1 1 28rem;
}

.free-plan-badge-group {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.free-plan-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.free-plan-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ts-starter);
    font-variant-numeric: tabular-nums;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.26);
}

.free-plan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
}

.free-plan-pills li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.free-plan-pills svg {
    color: var(--ts-emerald);
    flex-shrink: 0;
}

.free-plan-cta {
    flex-shrink: 0;
}

/* --- 6B. 3-Column Flagship Tier Grid (Starter, Pro, Studio) --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.75rem;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2rem 1.75rem 1.85rem;
    border-radius: var(--radius-lg, 1.5rem);
    background: linear-gradient(170deg, rgba(20, 23, 34, 0.88) 0%, rgba(11, 13, 20, 0.96) 100%);
    border: 1px solid var(--ts-border-hairline);
    box-shadow: var(--ts-specular-top), 0 22px 50px -24px rgba(0, 0, 0, 0.85);
    transition:
        transform 0.32s var(--ts-ease-expo),
        border-color 0.28s ease,
        box-shadow 0.32s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .plan-card:hover {
        transform: translateY(-5px);
    }
}

/* Starter Tier Accent */
.plan-card--starter {
    --spot-color: rgba(56, 189, 248, 0.16);
}

.plan-card--starter:hover {
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow:
        var(--ts-specular-top),
        0 28px 58px -22px rgba(0, 0, 0, 0.9),
        0 0 42px -16px rgba(56, 189, 248, 0.24);
}

/* Pro Tier (Featured / Recommended) */
.plan-card--pro {
    --spot-color: rgba(56, 189, 248, 0.24);
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(20, 115, 230, 0.28) 0%, transparent 70%),
        linear-gradient(170deg, rgba(18, 28, 48, 0.95) 0%, rgba(10, 14, 24, 0.98) 100%);
    border-color: rgba(56, 189, 248, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(186, 230, 253, 0.35),
        0 28px 70px -20px rgba(20, 115, 230, 0.5),
        0 0 0 1px rgba(56, 189, 248, 0.22);
    z-index: 2;
}

/* Luminous top edge aura on Pro */
.plan-card--pro::after {
    content: "";
    position: absolute;
    inset-inline: 12%;
    top: -1px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #7dd3fc, #38bdf8, #818cf8, transparent);
    pointer-events: none;
    z-index: 3;
}

@media (min-width: 961px) {
    .plan-card--pro {
        transform: translateY(-6px);
    }

    @media (prefers-reduced-motion: no-preference) {
        .plan-card--pro:hover {
            transform: translateY(-11px);
        }
    }
}

.plan-card--pro:hover {
    border-color: rgba(125, 211, 252, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 254, 0.45),
        0 34px 80px -18px rgba(20, 115, 230, 0.62),
        0 0 48px -12px rgba(56, 189, 248, 0.35);
}

/* Studio Tier (Fair Use Prestige Accent) */
.plan-card--studio {
    --spot-color: rgba(129, 140, 248, 0.2);
    background:
        radial-gradient(ellipse 85% 50% at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 68%),
        linear-gradient(170deg, rgba(22, 21, 38, 0.9) 0%, rgba(12, 12, 22, 0.97) 100%);
    border-color: rgba(129, 140, 248, 0.3);
}

.plan-card--studio:hover {
    border-color: rgba(165, 180, 252, 0.58);
    box-shadow:
        var(--ts-specular-top),
        0 28px 60px -20px rgba(99, 102, 241, 0.35),
        0 0 40px -16px rgba(129, 140, 248, 0.28);
}

/* Plan-Finder live highlight ring (no layout shift: uses outline + shadow) */
.plan-card.is-finder-match,
.free-plan-strip.is-finder-match {
    outline: 2px solid var(--ts-emerald);
    outline-offset: 3px;
    box-shadow:
        var(--ts-specular-top),
        0 0 0 6px rgba(52, 211, 153, 0.14),
        0 26px 60px -18px rgba(52, 211, 153, 0.28);
}

/* Card Header */
.plan-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.plan-name {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-badge--pro {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(20, 115, 230, 0.45));
    border: 1px solid rgba(125, 211, 252, 0.55);
    color: #e0f2fe;
    box-shadow: 0 4px 16px rgba(20, 115, 230, 0.35);
}

.plan-badge--studio {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.22), rgba(99, 102, 241, 0.35));
    border: 1px solid rgba(165, 180, 252, 0.45);
    color: #e0e7ff;
}

.plan-badge--starter {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: #7dd3fc;
}

/* Price Block */
.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}

.plan-price-amount {
    font-size: clamp(2.15rem, 1.7rem + 1.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.plan-price-unit {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Credit Allowance Pill */
.plan-credits-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-md, 1rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.plan-card--pro .plan-credits-box {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.28);
}

.plan-card--studio .plan-credits-box {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.28);
}

.plan-credits-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.plan-card--pro .plan-credits-main {
    color: #bae6fd;
}

.plan-card--studio .plan-credits-main {
    color: #c7d2fe;
}

.plan-credits-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.plan-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 1.35rem;
}

/* Features List */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1 1 auto;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.plan-features svg {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    color: var(--ts-emerald);
}

.plan-card--pro .plan-features svg {
    color: var(--ts-starter);
}

.plan-card--studio .plan-features svg {
    color: var(--ts-studio);
}

.plan-features li.plan-feature--muted {
    color: #94a3b8;
}

.plan-features li.plan-feature--muted svg {
    color: #64748b;
}

/* Plan Card Footer CTA */
.plan-card-footer {
    margin-top: auto;
}

.plan-card-footer .btn {
    width: 100%;
    min-block-size: 2.95rem;
    justify-content: center;
}

.btn-studio {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.24) 0%, rgba(99, 102, 241, 0.34) 100%);
    color: #eef2ff;
    border: 1px solid rgba(165, 180, 252, 0.42);
    box-shadow: 0 8px 24px -10px rgba(99, 102, 241, 0.45);
}

.btn-studio:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.36) 0%, rgba(99, 102, 241, 0.5) 100%);
    border-color: rgba(199, 210, 254, 0.72);
    transform: translateY(-1px);
}

/* --- 6C. Full-Width Credit-Boost Add-On Card --- */
.credit-boost-card {
    --spot-color: rgba(52, 211, 153, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.25rem;
    border-radius: var(--radius-lg, 1.5rem);
    background:
        radial-gradient(ellipse 60% 90% at 0% 50%, rgba(16, 185, 129, 0.16) 0%, transparent 65%),
        linear-gradient(135deg, rgba(13, 30, 28, 0.9) 0%, rgba(11, 16, 22, 0.96) 100%);
    border: 1px solid rgba(52, 211, 153, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(167, 243, 208, 0.22),
        0 20px 50px -22px rgba(5, 150, 105, 0.38);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.credit-boost-card:hover {
    border-color: rgba(110, 231, 183, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(167, 243, 208, 0.32),
        0 24px 56px -18px rgba(16, 185, 129, 0.45);
}

.credit-boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.24rem 0.72rem;
    border-radius: 9999px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.38);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.credit-boost-title {
    font-size: clamp(1.25rem, 1.05rem + 0.65vw, 1.6rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.credit-boost-desc {
    font-size: 0.9375rem;
    color: #cbd5e1;
    max-width: 58ch;
    margin-bottom: 0.95rem;
}

.credit-boost-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.credit-boost-perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    background: rgba(52, 211, 153, 0.09);
    border: 1px solid rgba(52, 211, 153, 0.22);
    color: #d1fae5;
    font-size: 0.8rem;
    font-weight: 500;
}

.credit-boost-perks svg {
    color: var(--ts-emerald);
    flex-shrink: 0;
}

.credit-boost-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    text-align: right;
}

.credit-boost-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.credit-boost-price strong {
    font-size: clamp(1.85rem, 1.5rem + 1vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.credit-boost-price span {
    font-size: 0.875rem;
    color: #6ee7b7;
    font-weight: 600;
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #031912;
    font-weight: 700;
    border: 1px solid rgba(167, 243, 208, 0.5);
    box-shadow: 0 10px 26px -8px rgba(16, 185, 129, 0.5);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #02140e;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -8px rgba(52, 211, 153, 0.58);
}

/* --- 6D. Interactive Plan-Finder / Credit-Bedarfsrechner --- */
.plan-finder {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 2rem;
    border-radius: var(--radius-lg, 1.5rem);
    background: linear-gradient(160deg, rgba(18, 22, 34, 0.88) 0%, rgba(11, 13, 20, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: var(--ts-specular-top), 0 20px 48px -24px rgba(0, 0, 0, 0.85);
}

.plan-finder-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.plan-finder-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.plan-finder-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

.plan-finder-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.finder-preset-btn {
    min-block-size: 2.75rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.finder-preset-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.38);
    color: #ffffff;
}

.finder-preset-btn[aria-pressed="true"] {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    color: #e0f2fe;
}

.plan-finder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 1.75rem 2.25rem;
    align-items: center;
}

.plan-finder-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.finder-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.finder-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.finder-label-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.finder-value-pill {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ts-starter);
    font-variant-numeric: tabular-nums;
}

/* Custom Range Input (Accessible 44px touch target) */
.finder-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.75rem;
    background: transparent;
    cursor: pointer;
}

.finder-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--ts-starter) 0%,
        var(--ts-starter) var(--range-pct, 30%),
        rgba(255, 255, 255, 0.14) var(--range-pct, 30%),
        rgba(255, 255, 255, 0.14) 100%
    );
}

.finder-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--ts-pro-deep);
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.finder-range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.22);
}

.finder-range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.finder-range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--ts-starter);
}

.finder-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--ts-pro-deep);
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.55);
}

.finder-range:focus-visible {
    outline: 2px solid var(--ts-starter);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Toggle Switch Control */
.finder-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-block-size: 3rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md, 1rem);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.finder-toggle-label:hover {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.06);
}

.finder-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.finder-toggle-text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}

.finder-toggle-text span {
    font-size: 0.78rem;
    color: #94a3b8;
}

.finder-toggle-input {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    width: 2.75rem;
    height: 1.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.finder-toggle-input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s var(--ts-ease-expo);
}

.finder-toggle-input:checked {
    background: var(--ts-pro-deep);
    border-color: var(--ts-starter);
}

.finder-toggle-input:checked::after {
    transform: translateX(1.12rem);
}

.finder-toggle-input:focus-visible {
    outline: 3px solid var(--ts-starter);
    outline-offset: 2px;
}

/* Live Result Card */
.plan-finder-result {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.45rem 1.5rem;
    border-radius: var(--radius-md, 1rem);
    background:
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 65%),
        rgba(8, 11, 18, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.32);
    min-width: 0;
}

.finder-result-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ts-emerald);
}

.finder-result-plan-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.finder-result-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.finder-result-plan-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ts-starter);
    font-variant-numeric: tabular-nums;
}

.finder-result-credits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.finder-result-credits strong {
    color: #ffffff;
}

.finder-result-reason {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.finder-result-cta {
    margin-top: 0.25rem;
    width: 100%;
}

/* --- 6E. Expandable Feature Comparison Matrix --- */
.plan-compare-details {
    border-radius: var(--radius-lg, 1.5rem);
    background: rgba(15, 18, 28, 0.78);
    border: 1px solid var(--ts-border-hairline);
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.plan-compare-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-block-size: 3.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: #f8fafc;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.plan-compare-details summary::-webkit-details-marker {
    display: none;
}

.plan-compare-details summary:hover {
    background: rgba(255, 255, 255, 0.035);
}

.plan-compare-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--ts-starter);
    flex-shrink: 0;
    transition: transform 0.25s var(--ts-ease-expo);
}

.plan-compare-details[open] .plan-compare-chevron {
    transform: rotate(180deg);
}

.plan-compare-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-compare-table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.plan-compare-table th,
.plan-compare-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.plan-compare-table thead th {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.03);
}

.plan-compare-table thead th.col-pro {
    color: #7dd3fc;
    background: rgba(20, 115, 230, 0.14);
}

.plan-compare-table tbody td.col-pro {
    background: rgba(20, 115, 230, 0.07);
    color: #f8fafc;
    font-weight: 600;
}

.plan-compare-table tbody th {
    font-weight: 600;
    color: #e2e8f0;
}

.plan-compare-table tbody td {
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
}

.plan-compare-table tbody tr:last-child th,
.plan-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-check {
    color: var(--ts-emerald);
    font-weight: 700;
}

.compare-dash {
    color: #64748b;
}

/* --- 6F. Plans Trust Bar --- */
.plans-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md, 1rem);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    list-style: none;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.plans-trust-bar li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.plans-trust-bar svg {
    color: var(--ts-starter);
    flex-shrink: 0;
}

/* --- 6G. Coming Soon Pill, Launch Callout Bar & Plan Launch Note --- */
.coming-soon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.42rem 1rem 0.42rem 0.72rem;
    border-radius: 9999px;
    background: linear-gradient(
        135deg,
        rgba(56, 189, 248, 0.14) 0%,
        rgba(20, 115, 230, 0.16) 55%,
        rgba(99, 102, 241, 0.14) 100%
    );
    border: 1px solid rgba(125, 211, 252, 0.42);
    box-shadow:
        0 8px 26px -10px rgba(56, 189, 248, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #e0f2fe;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-decoration: none;
    max-width: 100%;
}

.coming-soon-pill--hero {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.4rem;
    padding: 0.48rem 1.15rem 0.48rem 0.8rem;
    font-size: 0.85rem;
}

.coming-soon-pill--plans {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.15rem;
}

.hero-brand-spotlight {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

.plans-header .eyebrow {
    display: block;
}

.coming-soon-dot {
    position: relative;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 9999px;
    background: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .coming-soon-dot::after {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 9999px;
        border: 1.5px solid rgba(125, 211, 252, 0.75);
        animation: tsComingSoonPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    }
}

@keyframes tsComingSoonPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.85;
    }
    70%, 100% {
        transform: scale(2.05);
        opacity: 0;
    }
}

.coming-soon-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.55rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid rgba(125, 211, 252, 0.42);
    color: #f0f9ff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plans-coming-soon-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.15rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg, 1.5rem);
    background:
        radial-gradient(ellipse 55% 120% at 0% 50%, rgba(56, 189, 248, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 45% 120% at 100% 50%, rgba(99, 102, 241, 0.14) 0%, transparent 65%),
        linear-gradient(135deg, rgba(16, 23, 38, 0.92) 0%, rgba(12, 15, 24, 0.96) 100%);
    border: 1px solid rgba(125, 211, 252, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(186, 230, 253, 0.2),
        0 18px 42px -22px rgba(20, 115, 230, 0.42);
}

.plans-coming-soon-lead {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    min-width: 0;
    flex: 1 1 26rem;
}

.plans-coming-soon-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(20, 115, 230, 0.22));
    border: 1px solid rgba(125, 211, 252, 0.36);
    color: #7dd3fc;
}

.plans-coming-soon-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.plans-coming-soon-content strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.plans-coming-soon-content p {
    font-size: 0.86rem;
    line-height: 1.48;
    color: #cbd5e1;
    margin: 0;
}

.plans-coming-soon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.34);
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.plan-launch-note {
    display: block;
    margin-top: 0.55rem;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints (Zero horizontal overflow down to 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .plans-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 34rem;
        margin-inline: auto;
    }

    .credit-boost-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .credit-boost-action {
        align-items: flex-start;
        text-align: left;
    }

    .plan-finder-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .free-plan-strip {
        padding: 1.15rem 1.15rem;
    }

    .free-plan-cta,
    .free-plan-cta .btn {
        width: 100%;
    }

    .plan-card {
        padding: 1.5rem 1.25rem 1.45rem;
    }

    .credit-boost-card {
        padding: 1.35rem 1.25rem;
    }

    .credit-boost-action .btn {
        width: 100%;
    }

    .plan-finder {
        padding: 1.25rem 1.1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 22rem;
    }

    .coming-soon-pill {
        font-size: 0.78rem;
        padding: 0.42rem 0.85rem;
        text-align: center;
    }

    .plans-coming-soon-bar {
        padding: 1.05rem 1.15rem;
        gap: 0.85rem;
    }

    .plans-coming-soon-chip {
        width: 100%;
        justify-content: center;
    }
}
