/**
 * Public landing — premium presentation. Design tokens match Portal.
 */
:root {
    --ts-landing-focus: 0 0 0 2px #08111d, 0 0 0 4px rgba(59, 130, 246, 0.75);
    --ts-landing-header: 4.25rem;
}

html {
    scroll-behavior: smooth;
}

.ts-landing-page {
    overflow-x: hidden;
    background-color: #08111d;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ts-landing-shell {
    overflow-x: hidden;
    max-width: 100%;
}

.ts-landing-bg {
    pointer-events: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ts-landing-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 18%, transparent 72%);
}

.ts-landing-bg-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.7;
}

.ts-landing-bg-glow--blue {
    width: 42rem;
    height: 42rem;
    left: -8rem;
    top: -10rem;
    background: rgba(59, 130, 246, 0.22);
}

.ts-landing-bg-glow--green {
    width: 32rem;
    height: 32rem;
    right: -6rem;
    top: 4rem;
    background: rgba(34, 197, 94, 0.16);
}

.ts-landing-bg-glow--cyan {
    width: 28rem;
    height: 28rem;
    left: 38%;
    top: 36rem;
    background: rgba(0, 175, 239, 0.1);
}

.ts-landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(10, 15, 28, 0.72);
}

.ts-landing-nav-panel[hidden] {
    display: none !important;
}

.ts-landing-page a:focus-visible,
.ts-landing-page button:focus-visible,
.ts-landing-page summary:focus-visible,
.ts-landing-page input:focus-visible,
.ts-landing-page textarea:focus-visible {
    outline: none;
    box-shadow: var(--ts-landing-focus);
}

.ts-landing-section {
    scroll-margin-top: calc(var(--ts-landing-header) + 0.75rem);
}

.ts-landing-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.ts-landing-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.ts-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.2rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.ts-landing-btn:hover {
    transform: translateY(-1px);
}

.ts-landing-btn:active {
    transform: translateY(0);
}

.ts-landing-btn--primary {
    border: 1px solid rgba(59, 130, 246, 0.65);
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.28);
}

.ts-landing-btn--primary:hover {
    background: #2563eb;
}

.ts-landing-btn--secondary {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
}

.ts-landing-btn--secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.55);
}

.ts-landing-btn--premium {
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.6));
    color: #bbf7d0;
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.12);
    min-height: 3.1rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
}

.ts-landing-btn--premium:hover {
    border-color: rgba(34, 197, 94, 0.7);
    color: #fff;
}

.ts-landing-btn--whatsapp {
    border: 1px solid rgba(37, 211, 102, 0.45);
    background: #128c7e;
    color: #fff;
}

.ts-landing-btn--whatsapp:hover {
    background: #075e54;
}

.ts-landing-btn--light {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: #fff;
    color: #0f172a;
}

.ts-landing-btn--light:hover {
    background: #e2e8f0;
}

.ts-landing-glass {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(8, 17, 29, 0.78));
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.ts-landing-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-landing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.38);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.ts-landing-hero-logo {
    display: block;
    height: 4.4rem;
    width: auto;
    max-width: min(100%, 22rem);
    object-fit: contain;
}

.ts-landing-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ts-landing-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
}

.ts-landing-highlight .ts-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: #4ade80;
}

.ts-landing-video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.12);
    aspect-ratio: 16 / 10;
}

.ts-landing-video,
.ts-landing-video-fallback,
.ts-landing-hero-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ts-landing-video-fallback[hidden],
.ts-landing-hero-shot[hidden] {
    display: none !important;
}

.ts-landing-preview {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.65);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), 0 0 70px rgba(0, 175, 239, 0.08);
}

.ts-landing-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.ts-landing-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 1rem;
}

.ts-landing-logo-slot {
    display: flex;
    min-height: 5.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    text-align: center;
}

.ts-landing-logo-slot img {
    max-height: 2.75rem;
    max-width: 100%;
    object-fit: contain;
}

.ts-landing-problem-icon {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.ts-landing-problem-icon .ts-icon {
    height: 1.35rem;
    width: 1.35rem;
}

.ts-landing-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto;
    max-width: 28rem;
    padding: 0;
    list-style: none;
}

.ts-landing-flow-step {
    width: 100%;
    text-align: center;
}

.ts-landing-flow-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #e2e8f0;
}

.ts-landing-flow-card--exclusive {
    border-color: rgba(34, 197, 94, 0.55);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.18), rgba(8, 17, 29, 0.8));
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    padding: 1.2rem 1rem;
    font-size: 1.05rem;
}

.ts-landing-flow-arrow {
    display: flex;
    justify-content: center;
    padding: 0.2rem 0;
    color: #64748b;
}

.ts-landing-flow-arrow .ts-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.ts-landing-platform-mark {
    display: flex;
    height: 3rem;
    width: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.8);
}

.ts-landing-platform-logo {
    display: block;
    height: 1.55rem;
    width: 1.55rem;
}

.ts-landing-whatsapp-icon {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
}

.ts-landing-whatsapp-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.ts-landing-faq details {
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.ts-landing-faq details:last-child {
    border-bottom: 0;
}

.ts-landing-faq summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}

.ts-landing-faq summary::-webkit-details-marker {
    display: none;
}

.ts-landing-faq-icon {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.22s ease;
}

.ts-landing-faq details[open] .ts-landing-faq-icon {
    transform: rotate(180deg);
    color: #60a5fa;
}

.ts-landing-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.ts-landing-faq details[open] .ts-landing-faq-panel {
    grid-template-rows: 1fr;
}

.ts-landing-faq-panel-inner {
    overflow: hidden;
}

.ts-landing-faq-panel p {
    padding: 0 1.35rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #94a3b8;
}

.ts-landing-support {
    border: 1px solid rgba(37, 211, 102, 0.28);
    background: linear-gradient(135deg, rgba(18, 140, 126, 0.18), rgba(8, 17, 29, 0.72) 48%, rgba(59, 130, 246, 0.08));
    box-shadow: 0 0 48px rgba(37, 211, 102, 0.08);
}

dialog#ts-catalog-compare {
    color: #e2e8f0;
}

@media (min-width: 640px) {
    .ts-landing-hero-logo {
        height: 5.1rem;
        max-width: 24rem;
    }
}

@media (min-width: 1024px) {
    .ts-landing-hero-logo {
        height: 5.6rem;
        max-width: 26rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ts-landing-reveal,
    .ts-landing-card,
    .ts-landing-btn,
    .ts-landing-faq-panel,
    .ts-landing-faq-icon {
        transition: none;
    }

    .ts-landing-reveal {
        opacity: 1;
        transform: none;
    }

    .ts-landing-card:hover,
    .ts-landing-btn:hover {
        transform: none;
    }
}
