/* Modern landing page — WhatsApp SaaS */

:root {
    --landing-brand: #22c55e;
    --landing-brand-dark: #16a34a;
    --landing-accent: #6366f1;
    --landing-bg: #020617;
    --landing-surface: rgba(15, 23, 42, 0.72);
    --landing-border: rgba(255, 255, 255, 0.08);
    --landing-gutter: clamp(1rem, 4vw, 2rem);
    --landing-max: 72rem;
    --landing-radius: 1.25rem;
    --landing-header-h: 4rem;
}

html {
    scroll-behavior: smooth;
}

.landing-page {
    background: var(--landing-bg);
    color: #f1f5f9;
    overflow-x: hidden;
}

/* ---------- Header ---------- */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--landing-border);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
}

html.light .landing-header {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
}

.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: var(--landing-max);
    margin-inline: auto;
    min-height: var(--landing-header-h);
    padding: 0.5rem var(--landing-gutter);
    min-width: 0;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 0 1 auto;
    max-width: min(100%, 14rem);
    text-decoration: none;
    color: inherit;
}

.landing-brand > span {
    min-width: 0;
}

.landing-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
}

.landing-brand-tagline {
    display: block;
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10rem;
}

/* ---------- Landing nav panel ---------- */
.landing-nav-panel {
    min-width: 0;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.125rem;
    min-width: 0;
}

.landing-nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.landing-nav-links a:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

html.light .landing-nav-links a {
    color: #475569;
}

html.light .landing-nav-links a:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.375rem;
    flex-shrink: 0;
}

.landing-nav-actions .theme-toggle {
    flex-shrink: 0;
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
}

.landing-nav-actions .theme-toggle-label {
    display: none;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.landing-btn-sm {
    min-height: 2.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.landing-btn:hover {
    transform: translateY(-1px);
}

.landing-btn-primary {
    background: linear-gradient(135deg, var(--landing-brand) 0%, var(--landing-brand-dark) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.landing-btn-primary:hover {
    color: #ffffff !important;
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45);
}

.landing-btn-ghost {
    border: 1px solid var(--landing-border);
    color: #e2e8f0;
    background: transparent;
}

html.light .landing-btn-ghost {
    border-color: rgba(15, 23, 42, 0.15);
    color: #334155;
}

.landing-btn-lg {
    min-height: 3rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

/* ---------- Hero ---------- */
.landing-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) var(--landing-gutter) clamp(4rem, 10vw, 7rem);
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34, 197, 94, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.landing-hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    max-width: var(--landing-max);
    margin-inline: auto;
    align-items: center;
}

@media (min-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.landing-hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .landing-hero-content {
        text-align: left;
    }
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    color: #86efac;
    letter-spacing: 0.02em;
}

.landing-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--landing-brand);
    animation: landing-pulse 2s ease-in-out infinite;
}

@keyframes landing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.landing-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 50%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-sub {
    margin-top: 1.25rem;
    max-width: 36rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #94a3b8;
}

@media (min-width: 1024px) {
    .landing-hero-sub {
        margin-inline: 0;
    }
}

@media (max-width: 1023px) {
    .landing-hero-sub {
        margin-inline: auto;
    }
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .landing-hero-actions {
        justify-content: flex-start;
    }
}

.landing-hero-visual {
    position: relative;
    max-width: 22rem;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .landing-hero-visual {
        margin-inline: 0;
        max-width: none;
    }
}

.landing-mockup {
    position: relative;
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    max-height: 22.5rem;
}

.landing-mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--landing-border);
    background: rgba(0, 0, 0, 0.25);
}

.landing-mockup-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #475569;
}

.landing-mockup-dot:nth-child(1) { background: #ef4444; }
.landing-mockup-dot:nth-child(2) { background: #f59e0b; }
.landing-mockup-dot:nth-child(3) { background: #22c55e; }

.landing-mockup-body {
    padding: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 45%),
        #0b141a;
}

.landing-mockup-img {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
    padding: 1.25rem;
}

/* ---------- WhatsApp-style hero chat preview (compact) ---------- */
.landing-chat-preview {
    display: flex;
    flex-direction: column;
}

.landing-wa-topbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #1f2c34;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-wa-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.landing-wa-topbar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.landing-wa-topbar-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e9edef;
    line-height: 1.2;
}

.landing-wa-topbar-status {
    font-size: 0.625rem;
    color: #8696a0;
}

.landing-wa-thread {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.625rem 0.625rem 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.landing-wa-thread-foot {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.landing-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.landing-msg--in {
    align-self: flex-start;
}

.landing-msg--out {
    align-self: flex-end;
    align-items: flex-end;
}

.landing-msg-bubble {
    padding: 0.375rem 0.5rem;
    border-radius: 0.4375rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #e9edef;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.landing-msg--in .landing-msg-bubble {
    background: #1f2c34;
    border-top-left-radius: 0;
}

.landing-msg--out .landing-msg-bubble {
    background: #005c4b;
    border-top-right-radius: 0;
}

.landing-msg-bubble--selected {
    background: #1f2c34;
    border-left: 2px solid #00a884;
    padding-left: 0.4375rem;
    font-weight: 500;
}

/* Interactive message card */
.landing-wa-interactive {
    width: 100%;
    min-width: 11.5rem;
    max-width: 13.5rem;
    border-radius: 0.4375rem;
    overflow: hidden;
    background: #005c4b;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    border-top-right-radius: 0;
}

.landing-wa-interactive-body {
    padding: 0.4375rem 0.5rem 0.375rem;
}

.landing-wa-interactive-title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.landing-wa-reply-btns {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.landing-wa-reply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #53bdeb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-wa-reply-btn:first-child {
    border-top: none;
}

.landing-wa-reply-btn--active {
    background: rgba(0, 0, 0, 0.12);
    color: #7dd3fc;
}

.landing-wa-list-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    padding: 0.3125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #53bdeb;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.06);
}

.landing-wa-list-trigger svg {
    width: 0.75rem;
    height: 0.75rem;
}

.landing-wa-handoff {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem 0.5rem;
    border-radius: 0.4375rem;
    background: linear-gradient(135deg, #134e4a, #1a3a34);
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 0.625rem;
    color: #86efac;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    border-top-right-radius: 0;
    white-space: nowrap;
}

.landing-wa-handoff svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    color: #22c55e;
}

.landing-wa-handoff strong {
    color: #bbf7d0;
    font-weight: 600;
}

/* Legacy bubble classes (used elsewhere if any) */
.landing-chat-bubble {
    max-width: 85%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.landing-chat-in {
    align-self: flex-start;
    background: #1e293b;
    color: #e2e8f0;
    border-bottom-left-radius: 0.25rem;
}

.landing-chat-out {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-bottom-right-radius: 0.25rem;
}

.landing-float-card {
    position: absolute;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid var(--landing-border);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.landing-float-card strong {
    display: block;
    font-size: 1.125rem;
    color: var(--landing-brand);
}

.landing-float-card--stats {
    bottom: -0.5rem;
    left: -0.75rem;
}

.landing-float-card--uptime {
    top: 1rem;
    right: -0.75rem;
}

@media (max-width: 640px) {
    .landing-float-card {
        display: none;
    }
}

/* ---------- Stats bar ---------- */
.landing-stats {
    border-block: 1px solid var(--landing-border);
    background: rgba(15, 23, 42, 0.5);
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--landing-max);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .landing-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.landing-stat {
    padding: 1.75rem var(--landing-gutter);
    text-align: center;
    border-right: 1px solid var(--landing-border);
}

.landing-stat:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .landing-stat:nth-child(2) {
        border-right: none;
    }

    .landing-stat:nth-child(1),
    .landing-stat:nth-child(2) {
        border-bottom: 1px solid var(--landing-border);
    }
}

.landing-stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.landing-stat-label {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

/* ---------- Sections ---------- */
.landing-section {
    padding: clamp(3.5rem, 8vw, 5.5rem) var(--landing-gutter);
}

.landing-section-alt {
    background: rgba(15, 23, 42, 0.45);
    border-block: 1px solid var(--landing-border);
}

.landing-container {
    max-width: var(--landing-max);
    margin-inline: auto;
}

.landing-section-head {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.landing-section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.landing-section-head p {
    margin-top: 0.875rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #94a3b8;
}

/* ---------- Feature cards ---------- */
.landing-features-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-feature-card {
    padding: 1.75rem;
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.landing-feature-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(34, 197, 94, 0.15);
}

.landing-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: rgba(34, 197, 94, 0.12);
    color: var(--landing-brand);
}

.landing-feature-card h3 {
    margin-top: 1.125rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.landing-feature-card p {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* ---------- How it works ---------- */
.landing-steps {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .landing-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.landing-step {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    text-align: center;
}

.landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--landing-brand), var(--landing-brand-dark));
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.landing-step h3 {
    margin-top: 1.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.landing-step p {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #94a3b8;
}

/* ---------- Testimonials ---------- */
.landing-testimonials-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .landing-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.landing-testimonial {
    padding: 1.75rem;
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    display: flex;
    flex-direction: column;
}

.landing-stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

.landing-testimonial blockquote {
    flex: 1;
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #cbd5e1;
    font-style: normal;
}

.landing-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--landing-border);
}

.landing-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--landing-accent), #8b5cf6);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
}

.landing-testimonial-author strong {
    display: block;
    font-size: 0.875rem;
}

.landing-testimonial-author span {
    font-size: 0.75rem;
    color: #64748b;
}

/* ---------- Pricing ---------- */
.landing-pricing-grid {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .landing-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.landing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border-radius: var(--landing-radius);
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    transition: transform 0.2s, border-color 0.2s;
}

.landing-plan:hover {
    transform: translateY(-4px);
}

.landing-plan--featured {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, var(--landing-surface) 40%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 20px 50px -20px rgba(34, 197, 94, 0.25);
}

.landing-plan-badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--landing-brand);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
}

.landing-plan h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.landing-plan-price {
    margin-top: 0.75rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--landing-brand);
    letter-spacing: -0.02em;
}

.landing-plan-period {
    font-size: 0.8125rem;
    color: #64748b;
}

.landing-plan-features {
    flex: 1;
    margin-top: 1.25rem;
    list-style: none;
    padding: 0;
}

.landing-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.landing-plan-features li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--landing-brand);
    font-weight: 700;
}

.landing-plan-desc {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.landing-plan .landing-btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* ---------- FAQ ---------- */
.landing-faq {
    max-width: 42rem;
    margin-inline: auto;
}

.landing-faq-item {
    border-bottom: 1px solid var(--landing-border);
}

.landing-faq-item:first-child {
    border-top: 1px solid var(--landing-border);
}

.landing-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 0;
    border: none;
    background: none;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.landing-faq-q svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    transition: transform 0.2s;
}

.landing-faq-item.is-open .landing-faq-q svg {
    transform: rotate(180deg);
}

.landing-faq-a {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #94a3b8;
}

.landing-faq-item.is-open .landing-faq-a {
    display: block;
}

/* ---------- CTA banner ---------- */
.landing-cta-banner {
    margin-inline: var(--landing-gutter);
    max-width: calc(var(--landing-max) - 2 * var(--landing-gutter));
    margin-block: 0;
    padding: clamp(2.5rem, 6vw, 4rem);
    border-radius: calc(var(--landing-radius) + 0.25rem);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(34, 197, 94, 0.25);
    text-align: center;
}

.landing-cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-cta-banner p {
    margin-top: 0.75rem;
    max-width: 32rem;
    margin-inline: auto;
    color: #94a3b8;
    line-height: 1.6;
}

.landing-cta-banner .landing-btn {
    margin-top: 1.75rem;
}

/* ---------- Privacy & Footer ---------- */
.landing-privacy-body {
    max-width: 42rem;
    margin-inline: auto;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #94a3b8;
    white-space: pre-wrap;
}

.landing-footer {
    border-top: 1px solid var(--landing-border);
    padding: 2.5rem var(--landing-gutter);
    text-align: center;
}

.landing-footer-tagline {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.6;
}

.landing-footer-links {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.landing-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.landing-footer-links a:hover {
    color: #22c55e;
}

html.light .landing-footer-links a {
    color: #64748b;
}

html.light .landing-footer-links a:hover {
    color: #16a34a;
}

.landing-footer-copy {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #475569;
}

.landing-brand img {
    height: 2rem;
    width: auto;
    flex-shrink: 0;
}

/* ---------- Desktop header: horizontal scroll when cramped ---------- */
@media (min-width: 768px) {
    .landing-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(0.5rem, 1.5vw, 1.25rem);
        row-gap: 0;
    }

    .landing-brand {
        grid-column: 1;
        grid-row: 1;
        max-width: 11rem;
    }

    .portal-landing-nav-toggle {
        display: none !important;
    }

    .landing-nav-panel {
        display: flex !important;
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(0.375rem, 1vw, 0.75rem);
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
        padding-block: 0.125rem;
        mask-image: linear-gradient(to right, transparent, #000 0.5rem, #000 calc(100% - 0.5rem), transparent);
    }

    .landing-nav-panel::-webkit-scrollbar {
        height: 4px;
    }

    .landing-nav-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .landing-nav-panel::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.45);
        border-radius: 999px;
    }

    .landing-nav-panel:hover::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.7);
    }

    .landing-nav-links {
        flex: 0 0 auto;
        justify-content: flex-start;
        overflow: visible;
    }

    .landing-nav-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    .landing-brand-tagline {
        font-size: 0.4375rem;
        letter-spacing: 0.01em;
        max-width: 7.5rem;
    }

    .landing-brand {
        max-width: 9rem;
        gap: 0.5rem;
    }

    .landing-brand-name {
        font-size: 0.9375rem;
    }

    .landing-nav-links a {
        padding: 0.375rem 0.4375rem;
        font-size: 0.75rem;
    }

    .landing-nav-link-app .landing-nav-label-long {
        display: none;
    }

    .landing-nav-link-app .landing-nav-label-short {
        display: inline;
    }
}

@media (min-width: 900px) {
    .landing-brand {
        max-width: 14rem;
    }

    .landing-nav-links a {
        padding: 0.4375rem 0.625rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 1100px) {
    .landing-nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .landing-nav-actions .theme-toggle-label {
        display: inline;
    }

    .landing-btn-pwa-compact .js-pwa-install-label {
        display: inline;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .landing-btn-pwa-compact .js-pwa-install-label {
        display: none;
    }

    .landing-btn-pwa-compact {
        min-width: 2.375rem;
        padding-inline: 0.625rem;
    }

    .landing-nav-actions .landing-btn-primary {
        padding-inline: 0.75rem;
    }
}

@media (min-width: 1280px) {
    .landing-header-inner {
        column-gap: 1.5rem;
    }

    .landing-nav-panel {
        mask-image: none;
    }
}

.landing-nav-link-app .landing-nav-label-short {
    display: none;
}

/* ---------- Mobile nav dropdown ---------- */
@media (max-width: 767px) {
    .landing-header-inner {
        display: flex;
        flex-wrap: nowrap;
    }

    .landing-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 3rem);
        gap: 0.5rem;
    }

    .landing-brand-tagline {
        font-size: 0.4375rem;
        max-width: 100%;
    }

    .portal-landing-nav-toggle {
        display: inline-flex !important;
        flex-shrink: 0;
    }

    .portal-landing-header-inner {
        position: relative;
    }

    .landing-nav-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem var(--landing-gutter);
        border-bottom: 1px solid var(--landing-border);
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
        overflow: visible;
        mask-image: none;
    }

    html.light .landing-nav-panel {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(15, 23, 42, 0.12);
    }

    .landing-nav-panel.is-open {
        display: flex;
    }

    .landing-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        overflow: visible;
    }

    .landing-nav-links a {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }

    .landing-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--landing-border);
    }

    .landing-nav-actions .theme-toggle,
    .landing-nav-actions .landing-btn,
    .landing-nav-actions .js-pwa-install-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-nav-actions .theme-toggle-label {
        display: inline;
    }

    .landing-btn-pwa-compact .js-pwa-install-label {
        display: inline;
    }
}

html.light .landing-page {
    background: #f8fafc;
    color: #0f172a;
}

html.light .landing-hero-sub,
html.light .landing-section-head p,
html.light .landing-feature-card p,
html.light .landing-step p,
html.light .landing-testimonial blockquote,
html.light .landing-faq-a,
html.light .landing-privacy-body,
html.light .landing-cta-banner p {
    color: #475569;
}

html.light .landing-feature-card,
html.light .landing-step,
html.light .landing-testimonial,
html.light .landing-plan,
html.light .landing-mockup,
html.light .landing-stats {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

html.light .landing-section-alt {
    background: #f1f5f9;
}

html.light .landing-stat-value {
    color: #0f172a;
}

html.light .landing-chat-in {
    background: #e2e8f0;
    color: #0f172a;
}

/* ---------- PWA download ---------- */
.landing-btn-pwa {
    gap: 0.5rem;
    background: linear-gradient(135deg, #00a884 0%, #008069 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 168, 132, 0.35);
    border: none;
}

.landing-btn-pwa:hover {
    box-shadow: 0 8px 24px rgba(0, 168, 132, 0.45);
}

.landing-pwa-btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.landing-badge--pwa {
    border-color: rgba(0, 168, 132, 0.35);
    background: rgba(0, 168, 132, 0.12);
    color: #86efac;
    gap: 0.375rem;
}

.landing-pwa-promo {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: calc(var(--landing-radius) + 0.25rem);
    border: 1px solid rgba(0, 168, 132, 0.25);
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.08) 0%, rgba(15, 23, 42, 0.6) 50%);
}

@media (min-width: 900px) {
    .landing-pwa-promo {
        grid-template-columns: 1fr 280px;
        gap: 3rem;
    }
}

.landing-pwa-promo-content h2 {
    margin-top: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.landing-pwa-promo-content > p {
    margin-top: 0.75rem;
    max-width: 32rem;
    line-height: 1.65;
    color: #94a3b8;
}

.landing-pwa-features {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.landing-pwa-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #cbd5e1;
}

.landing-pwa-features li::before {
    content: '✓';
    color: #00a884;
    font-weight: 700;
}

.landing-pwa-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing-pwa-phone {
    justify-self: center;
    width: min(100%, 240px);
    padding: 0.75rem;
    border-radius: 2rem;
    background: #111b21;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.landing-pwa-phone-screen {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #fff;
}

.landing-pwa-phone-header {
    padding: 0.875rem 1rem;
    background: #008069;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.landing-pwa-phone-chats {
    padding: 0.75rem;
    background: #efeae2;
    min-height: 220px;
}

.landing-pwa-phone-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem;
    margin-bottom: 0.375rem;
    border-radius: 0.5rem;
    background: #fff;
}

.landing-pwa-phone-row.active {
    background: #f0f2f5;
}

.landing-pwa-phone-row .dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #00a884;
    flex-shrink: 0;
}

.landing-pwa-phone-row .line {
    flex: 1;
    height: 0.5rem;
    border-radius: 999px;
    background: #e9edef;
}

.landing-pwa-phone-row .line.short {
    max-width: 60%;
}

.landing-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.landing-pwa-modal[hidden] {
    display: none;
}

.landing-pwa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(4px);
}

.landing-pwa-modal-card {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    color: #111b21;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

html.light .landing-pwa-modal-card,
.landing-pwa-modal-card {
    background: #fff;
}

.landing-pwa-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #f0f2f5;
    color: #54656f;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.landing-pwa-modal-icon img {
    border-radius: 1rem;
}

.landing-pwa-modal-card h3 {
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.landing-pwa-modal-text {
    margin: 0.75rem 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #667781;
    white-space: pre-line;
    text-align: left;
}

.landing-pwa-modal-card .landing-btn {
    width: 100%;
}

body.landing-pwa-modal-open {
    overflow: hidden;
}

html.light .landing-pwa-promo {
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.08) 0%, #ffffff 60%);
}

html.light .landing-pwa-promo-content > p {
    color: #475569;
}

html.light .landing-pwa-features li {
    color: #334155;
}

html.pwa-is-installed .js-pwa-install-btn,
html.pwa-is-installed .js-pwa-install-nav {
    display: none !important;
}
