/* =====================================================================
   Pangea Player — v3 design layer (Nov 2026 facelift)
   Loaded AFTER styles.css on every page; everything is scoped to
   body.pangea-v3 so the player logic and old pages keep working.
   Direction (ui-ux-pro-max): Feature-Rich Showcase, cinematic navy hero,
   brand blue + indigo/violet accent, Heebo for Hebrew + Latin.
   ===================================================================== */

body.pangea-v3 {
    --pg-navy-950: #050b22;
    --pg-navy-900: #0a1534;
    --pg-navy-800: #0f1f4a;
    --pg-blue: #2563eb;
    --pg-blue-700: #1d4ed8;
    --pg-indigo: #4f46e5;
    --pg-violet: #7c3aed;
    --pg-cyan: #38bdf8;
    --pg-bg: #f4f6fb;
    --pg-card: #ffffff;
    --pg-border: #e3e8f2;
    --pg-text: #0b1530;
    --pg-muted: #556079;
    --pg-radius: 18px;
    --pg-radius-sm: 12px;
    --pg-shadow: 0 1px 2px rgba(10, 21, 52, 0.06), 0 12px 32px rgba(10, 21, 52, 0.08);
    --pg-shadow-lg: 0 24px 60px rgba(5, 11, 34, 0.28);
    --pg-gradient: linear-gradient(135deg, var(--pg-blue) 0%, var(--pg-indigo) 55%, var(--pg-violet) 100%);
    --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pg-band-height: 300px;

    font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background: var(--pg-bg);
    color: var(--pg-text);
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.pangea-v3.page-home {
    --pg-band-height: 720px;
}

/* The footer was 100vw wide (scrollbar included) → 8px sideways scroll.
   clip (not hidden) so position: sticky keeps working. */
body.pangea-v3 {
    overflow-x: clip;
}

body.pangea-v3 .site-footer {
    width: auto;
    max-width: 100%;
}

/* The dashboard wrapper was a second white card around the cards. */
body.pangea-v3 .main-dashboard {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

body.pangea-v3 .nav-link {
    white-space: nowrap;
}

/* Cinematic band behind the nav + hero */
body.pangea-v3::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: var(--pg-band-height);
    /* -1: behind all page content (body is not a stacking context, and its
       background is painted on the canvas, so the band stays visible). */
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(124, 58, 237, 0.45) 0%, transparent 60%),
        radial-gradient(50% 60% at 10% 30%, rgba(37, 99, 235, 0.55) 0%, transparent 60%),
        radial-gradient(40% 40% at 50% 100%, rgba(56, 189, 248, 0.18) 0%, transparent 70%),
        linear-gradient(180deg, var(--pg-navy-950) 0%, var(--pg-navy-900) 70%, var(--pg-navy-800) 100%);
    border-radius: 0 0 36px 36px;
}

body.pangea-v3 .page-outer {
    position: relative;
    z-index: 1;
}

body.pangea-v3 h1,
body.pangea-v3 h2,
body.pangea-v3 h3 {
    letter-spacing: -0.01em;
}

/* ---------- Navigation: floating glass bar ---------- */
body.pangea-v3 .top-nav {
    margin-top: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(5, 11, 34, 0.25);
    padding: 10px 18px;
}

body.pangea-v3 .top-nav .logo-img {
    max-height: 44px;
    width: auto;
}

body.pangea-v3 .nav-link {
    font-weight: 600;
    color: #2a3556;
    border-radius: 999px;
    padding: 8px 14px;
    transition: color 0.18s var(--pg-ease), background-color 0.18s var(--pg-ease);
}

body.pangea-v3 .nav-link:hover {
    color: var(--pg-blue-700);
    background: rgba(37, 99, 235, 0.08);
}

body.pangea-v3 .nav-link-active,
body.pangea-v3 .nav-pricing-link.nav-link-active {
    color: #fff;
    background: var(--pg-gradient);
    border: none;
    padding: 8px 16px;
}

body.pangea-v3 .lang-select {
    border-radius: 999px;
    border: 1px solid var(--pg-border);
    background-color: #f8faff;
    font-family: inherit;
}

body.pangea-v3 .user-btn {
    border-radius: 999px;
}

body.pangea-v3 :focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.9);
    outline-offset: 2px;
}

/* ---------- Hero ---------- */
body.pangea-v3 .hero-header {
    padding: 54px 16px 30px;
    text-align: center;
    color: #fff;
    box-shadow: none;
    background: transparent;
    border: none;
}

/* Nav content was wider than the bar (long language name) — the account
   button hung outside it. */
body.pangea-v3 .top-nav .language-switcher label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body.pangea-v3 .top-nav .lang-select {
    max-width: 170px;
    text-overflow: ellipsis;
}

body.pangea-v3 .nav-center {
    gap: 4px;
}

body.pangea-v3 .hero-header .hero-logo {
    display: none;
}

body.pangea-v3 .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #dbe6ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 18px;
}

body.pangea-v3 .hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

body.pangea-v3 .hero-title {
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin: 0 auto 16px;
    max-width: 16ch;
    text-wrap: balance;
}

body.pangea-v3 .hero-title .hero-title-accent,
body.pangea-v3 .hero-accent {
    background: linear-gradient(90deg, #7dd3fc 0%, #a5b4fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.pangea-v3 .hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.65;
    color: #c7d2ee;
    max-width: 60ch;
    margin: 0 auto 22px;
    text-wrap: pretty;
}

body.pangea-v3 .hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.pangea-v3 .hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #e6ecff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

body.pangea-v3 .hero-chips svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #93c5fd;
}

/* ---------- Cards / the loader ---------- */
body.pangea-v3 .dashboard-card {
    border-radius: 22px;
    border: 1px solid var(--pg-border);
    box-shadow: var(--pg-shadow);
}

body.pangea-v3.page-home .input-section.dashboard-card {
    box-shadow: var(--pg-shadow-lg);
    border-color: rgba(255, 255, 255, 0.7);
    padding: 24px 26px 22px;
}

body.pangea-v3 .section-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--pg-text);
}

body.pangea-v3 .input-box {
    border-radius: var(--pg-radius);
    transition: border-color 0.2s var(--pg-ease), box-shadow 0.2s var(--pg-ease), transform 0.2s var(--pg-ease);
}

body.pangea-v3 .input-box:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

body.pangea-v3 .video-url-input {
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    min-height: 48px;
}

body.pangea-v3 .video-url-input:focus {
    border-color: var(--pg-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
}

body.pangea-v3 .btn {
    font-family: inherit;
    border-radius: 12px;
    min-height: 44px;
    transition: transform 0.15s var(--pg-ease), box-shadow 0.2s var(--pg-ease), filter 0.2s var(--pg-ease);
}

body.pangea-v3 .btn-primary {
    background: var(--pg-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

body.pangea-v3 .btn-primary:hover:not(:disabled) {
    filter: brightness(1.07);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.38);
}

body.pangea-v3 .btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

/* ---------- Ads: invisible until a real ad network is live ---------- */
body.pangea-v3 .google-ad-rail,
body.pangea-v3 .inline-ad {
    display: none !important;
}

body.pangea-v3.ads-live:not(.ads-paid) .google-ad-rail {
    display: flex !important;
    margin-top: 118px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body.pangea-v3.ads-live:not(.ads-paid) .inline-ad {
    display: block !important;
    margin: 8px auto 28px;
    max-width: 728px;
    min-height: 90px;
}

body.pangea-v3.ads-live .inline-ad::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    color: #8a94ad;
    text-align: center;
    margin-bottom: 4px;
}

/* Live ads never show the old grey "Advertisement" placeholder: an unfilled
   slot simply collapses. */
body.pangea-v3.ads-live .google-ad-creative {
    display: none !important;
}

body.pangea-v3 ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

body.pangea-v3 .inline-ad {
    overflow: hidden;
    text-align: center;
}

@media (max-width: 1280px) {
    body.pangea-v3.ads-live:not(.ads-paid) .google-ad-rail {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.pangea-v3.ads-live:not(.ads-paid) .inline-ad {
        display: none !important;
    }
}

/* ---------- Landing sections ---------- */
body.pangea-v3 .landing {
    margin-top: 40px;
}

body.pangea-v3 .landing-section {
    margin: 0 0 56px;
}

body.pangea-v3 .landing-kicker {
    display: block;
    text-align: center;
    color: var(--pg-indigo);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

body.pangea-v3 .landing-h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 12px;
    max-width: 30ch;
    text-wrap: balance;
}

body.pangea-v3 .landing-lead {
    text-align: center;
    color: var(--pg-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 60ch;
    margin: 0 auto 28px;
}

body.pangea-v3 .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

body.pangea-v3 .step {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 24px 22px;
    box-shadow: var(--pg-shadow);
    position: relative;
}

body.pangea-v3 .step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pg-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

body.pangea-v3 .step h3,
body.pangea-v3 .feature h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    color: var(--pg-text);
}

body.pangea-v3 .step p,
body.pangea-v3 .feature p {
    color: var(--pg-muted);
    line-height: 1.6;
    margin: 0;
    font-size: 0.97rem;
}

body.pangea-v3 .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

body.pangea-v3 .feature {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 22px;
    transition: transform 0.25s var(--pg-ease), box-shadow 0.25s var(--pg-ease), border-color 0.25s var(--pg-ease);
}

body.pangea-v3 .feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--pg-shadow);
    border-color: #c9d5f2;
}

body.pangea-v3 .feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: var(--pg-indigo);
    margin-bottom: 14px;
}

body.pangea-v3 .feature-icon svg {
    width: 22px;
    height: 22px;
}

/* Extension band */
body.pangea-v3 .ext-band {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 34px 36px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(70% 90% at 0% 0%, rgba(124, 58, 237, 0.55), transparent 60%),
        linear-gradient(135deg, var(--pg-navy-900), var(--pg-navy-800));
    box-shadow: var(--pg-shadow-lg);
    overflow: hidden;
}

body.pangea-v3 .ext-band h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
}

body.pangea-v3 .ext-band p {
    color: #c7d2ee;
    line-height: 1.65;
    margin: 0 0 20px;
}

body.pangea-v3 .ext-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.pangea-v3 .btn-light {
    background: #fff;
    color: var(--pg-navy-900);
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.pangea-v3 .btn-light:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.pangea-v3 .btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
    padding: 12px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

body.pangea-v3 .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.pangea-v3 .ext-mock {
    border-radius: 18px;
    background: #000;
    aspect-ratio: 16 / 9;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    background-image:
        radial-gradient(60% 80% at 30% 30%, rgba(56, 189, 248, 0.35), transparent 70%),
        radial-gradient(60% 80% at 80% 70%, rgba(124, 58, 237, 0.4), transparent 70%),
        linear-gradient(160deg, #111a3a, #05081a);
}

body.pangea-v3 .ext-mock-cue {
    position: absolute;
    inset-inline: 10%;
    bottom: 9%;
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 8px;
    padding: 6px 10px;
}

body.pangea-v3 .ext-mock-play {
    position: absolute;
    top: 34%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    color: #fff;
}

/* Pricing teaser */
body.pangea-v3 .plans-teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

body.pangea-v3 .plan-card {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    padding: 24px;
    box-shadow: var(--pg-shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.pangea-v3 .plan-card.is-featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--pg-gradient) border-box;
}

body.pangea-v3 .plan-name {
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0;
}

body.pangea-v3 .plan-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--pg-text);
}

body.pangea-v3 .plan-price small {
    font-size: 0.95rem;
    color: var(--pg-muted);
    font-weight: 500;
}

body.pangea-v3 .plan-points {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: grid;
    gap: 8px;
    color: #334061;
}

body.pangea-v3 .plan-points li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

body.pangea-v3 .plan-points li::before {
    content: '';
    flex: 0 0 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

body.pangea-v3 .plan-card .btn {
    margin-top: auto;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
}

body.pangea-v3 .btn-outline {
    background: #fff;
    color: var(--pg-blue-700);
    border: 1px solid #c7d6f6;
    font-weight: 700;
}

body.pangea-v3 .btn-outline:hover {
    background: #f3f7ff;
}

/* FAQ */
body.pangea-v3 .faq {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

body.pangea-v3 .faq details {
    background: var(--pg-card);
    border: 1px solid var(--pg-border);
    border-radius: 14px;
    padding: 0 18px;
    transition: box-shadow 0.2s var(--pg-ease);
}

body.pangea-v3 .faq details[open] {
    box-shadow: var(--pg-shadow);
}

body.pangea-v3 .faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

body.pangea-v3 .faq summary::-webkit-details-marker {
    display: none;
}

body.pangea-v3 .faq summary::after {
    content: '';
    flex: 0 0 12px;
    height: 12px;
    border-right: 2px solid var(--pg-indigo);
    border-bottom: 2px solid var(--pg-indigo);
    transform: rotate(45deg);
    transition: transform 0.2s var(--pg-ease);
    margin-top: -4px;
}

body.pangea-v3 .faq details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

body.pangea-v3 .faq details p {
    margin: 0 0 16px;
    color: var(--pg-muted);
    line-height: 1.7;
}

/* Footer polish */
body.pangea-v3 .site-footer {
    font-family: inherit;
}

/* Reveal on scroll (progressive enhancement; see index.html script) */
body.pangea-v3 .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--pg-ease), transform 0.5s var(--pg-ease);
}

body.pangea-v3 .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    body.pangea-v3 .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    body.pangea-v3 .feature:hover {
        transform: none;
    }
}

/* Subpages: shorter band */
body.pangea-v3.v2-subpage {
    --pg-band-height: 260px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    body.pangea-v3 .steps,
    body.pangea-v3 .features {
        grid-template-columns: 1fr 1fr;
    }
    body.pangea-v3 .ext-band {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    body.pangea-v3.page-home {
        --pg-band-height: 600px;
    }
    body.pangea-v3::before {
        border-radius: 0 0 24px 24px;
    }
    body.pangea-v3 .top-nav {
        margin-top: 8px;
        border-radius: 14px;
    }
    body.pangea-v3 .hero-header {
        padding: 30px 8px 22px;
    }
    body.pangea-v3 .hero-chips li:nth-child(n+3) {
        display: none;
    }
    body.pangea-v3 .hero-sub {
        font-size: 0.98rem;
        margin-bottom: 16px;
    }
    body.pangea-v3 .hero-eyebrow {
        margin-bottom: 12px;
    }
    body.pangea-v3 .steps,
    body.pangea-v3 .features,
    body.pangea-v3 .plans-teaser {
        grid-template-columns: 1fr;
    }
    body.pangea-v3 .landing-section {
        margin-bottom: 40px;
    }
}
