/* Liza Messenger Landing — mobile-first, adaptive */

:root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --success: #22c55e;
    --gradient: linear-gradient(135deg, #3b82f6, #6366f1 50%, #8b5cf6);
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --header-h: 3.75rem;
    --container: 72rem;
    --pad-x: 1rem;
    --gap: 1rem;
    --radius: 1rem;
    --radius-lg: 1.25rem;
}

[data-theme="dark"] {
    --bg: #070b14;
    --bg-alt: #0f1524;
    --surface: #151d30;
    --surface-hover: #1c2740;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.section {
    padding-block: 3.5rem;
}

.section--alt {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.grid {
    display: grid;
    gap: var(--gap);
    width: 100%;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    padding-top: env(safe-area-inset-top, 0);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 800;
    font-size: 1.0625rem;
    flex: 1;
    min-width: 0;
}

.logo img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    flex-shrink: 0;
    object-fit: contain;
}

.logo span {
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.header-actions .header-btn {
    min-height: 2.375rem;
    padding: 0.4rem 0.625rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .header-actions .header-btn {
        min-height: 2.5rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .header-btn {
        min-height: 2.75rem;
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
    }

    .header-actions a.header-btn,
    .header-actions .icon-btn.theme-toggle {
        display: inline-flex;
    }
}

.icon-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn.theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    opacity: 0.55;
    font-size: 0.9375rem;
}

.icon-btn.theme-toggle:hover,
.icon-btn.theme-toggle:focus-visible {
    opacity: 0.85;
    color: var(--text);
    background: transparent;
}

.menu-btn {
    display: inline-flex;
}

/* Mobile drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: min(18rem, 88vw);
    height: 100%;
    height: 100dvh;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0) + 0.5rem) 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

.drawer a:hover,
.drawer a:active {
    background: var(--surface-hover);
    color: var(--text);
}

.drawer-cta {
    margin-top: 0.75rem;
    justify-content: center;
    background: var(--gradient);
    color: #fff !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

/* Mobile header: logo + burger only */
.header-actions a.header-btn,
.header-actions .icon-btn.theme-toggle {
    display: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-lg {
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0) + 2rem);
    padding-bottom: 3rem;
    background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(59, 130, 246, 0.18), transparent);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    line-height: 1.4;
}

.hero-badge > span:first-child {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(1.75rem, 7vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hero-stat {
    padding: 0.875rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hero-stat strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.hero-stat span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.hero-visual {
    min-width: 0;
    max-width: 16rem;
    margin-inline: auto;
}

.hero-card {
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.14),
        0 8px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .hero-card {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.25);
}

.hero-card img {
    border-radius: calc(var(--radius-lg) - 0.25rem);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.2),
        0 6px 16px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .hero-card img {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero-float {
    display: none;
}

/* Cards */
.card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 0;
    overflow-wrap: anywhere;
}

.card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.benefit-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    font-size: 1.125rem;
}

/* Steps */
.step-card {
    counter-increment: step;
}

.steps-grid {
    counter-reset: step;
}

.step-card::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.35;
    margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 32px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--gradient);
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-price small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-renewal {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.75rem;
    min-height: 2.5rem;
    line-height: 1.4;
}

.pricing-users {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.25rem;
}

.pricing-features li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    line-height: 1.45;
}

.pricing-features li i {
    color: var(--success);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pricing-note {
    margin-top: 1.5rem;
    padding: 1rem 1.125rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

.pricing-note strong {
    color: var(--text);
}

/* Split / P2P */
.split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split .section-subtitle {
    margin-bottom: 1.25rem;
}

.diagram {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diagram-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.diagram-node {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.diagram-arrow {
    text-align: center;
    color: var(--accent);
    font-size: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.35rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.25s;
    color: var(--text-muted);
}

.faq-item.is-open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    padding-block: 2.5rem 3.5rem;
}

.cta-box {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #fff;
    background: var(--gradient);
    border-radius: 1.5rem;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(1.375rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cta-box p {
    font-size: 0.9375rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cta-box .btn-primary {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-box .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Footer */
.site-footer {
    padding: 1.75rem 0 calc(2rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Reveal animation — opacity only (no transform overflow) */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
}

/* Architecture page */
.page-hero {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0) + 2rem);
    padding-bottom: 2rem;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.page-hero .lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.arch-block {
    margin-bottom: 1rem;
}

.arch-block h2 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.arch-block h2 i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.arch-block p,
.arch-block li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.arch-block ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    list-style: disc;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.arch-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* Legal documents (EULA, etc.) */
.legal-doc {
    max-width: 48rem;
}

.legal-meta {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.legal-section p,
.legal-section li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.75rem;
    list-style: disc;
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-highlight {
    padding: 1rem 1.125rem;
    margin: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 0.5rem 0.5rem 0;
}

.legal-highlight strong {
    color: var(--text);
}

.legal-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0.75rem 0 0.5rem;
}

.legal-contact {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.legal-contact a {
    color: var(--accent);
}

.legal-contact a:hover {
    text-decoration: underline;
}

/* ========== TABLET ========== */
@media (min-width: 640px) {
    :root {
        --pad-x: 1.25rem;
        --gap: 1.25rem;
    }

    .section {
        padding-block: 4.5rem;
    }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-cta .btn {
        width: auto;
        flex: 1 1 auto;
        min-width: 10rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diagram-row--horizontal {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.25rem;
    }
}

/* ========== DESKTOP ========== */
@media (min-width: 1024px) {
    :root {
        --pad-x: 1.5rem;
        --gap: 1.25rem;
    }

    .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .section-header .section-subtitle {
        max-width: 40rem;
        margin-inline: auto;
    }

    .hero {
        padding-top: calc(var(--header-h) + 3rem);
        padding-bottom: 5rem;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        gap: 3rem;
    }

    .hero-visual {
        max-width: none;
        margin: 0;
        position: relative;
    }

    .hero-float {
        display: block;
        position: absolute;
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: 0.75rem;
        box-shadow: var(--shadow);
        animation: float 4s ease-in-out infinite;
    }

    .hero-float--one {
        top: 5%;
        right: -4%;
    }

    .hero-float--two {
        bottom: 10%;
        left: -6%;
        animation-delay: 1.5s;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
    }

    .split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .cta-box {
        padding: 3.5rem 2.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-lead {
        font-size: 1.0625rem;
    }
}
