/*
 * Lenaps Meet — public pages design system.
 * Mirrors the lenaps.com corporate identity (colors, type, spacing).
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #041e66;
    --primary-light: #1a3a99;
    --secondary: #8c8c8c;
    --accent: #2563eb;
    --accent-hover: #1d4fd0;
    --accent-glow: rgba(37, 99, 235, 0.35);

    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-soft: #eff4ff;
    --border: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #ffffff;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.06), 0 2px 4px -2px rgb(15 23 42 / 0.06);
    --shadow-lg: 0 10px 25px -5px rgb(4 30 102 / 0.1), 0 4px 10px -6px rgb(4 30 102 / 0.08);
    --shadow-xl: 0 25px 50px -12px rgb(4 30 102 / 0.22);

    --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --t-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.lm {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lm h1,
.lm h2,
.lm h3,
.lm h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
}

.lm p {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
}

.lm a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

.lm ul {
    list-style: none;
}

.lm-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lm-main {
    flex: 1;
}

/* ---------- Header ---------- */
.lm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.lm-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.lm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 1.5rem;
}

.lm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.lm-brand img {
    height: 34px;
    width: auto;
    display: block;
}

.lm-brand-tag {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    letter-spacing: 0.3px;
}

.lm-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lm-nav a.lm-nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.lm-nav a.lm-nav-link:hover {
    color: var(--primary);
}

/* ---------- Buttons ---------- */
.lm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
}

.lm-btn-primary {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 8px 20px var(--accent-glow);
}

.lm-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px var(--accent-glow);
}

.lm-btn-navy {
    background: var(--primary);
    color: #fff !important;
}

.lm-btn-navy:hover {
    background: var(--primary-light);
}

.lm-btn-outline {
    background: #fff;
    color: var(--primary) !important;
    border-color: var(--border);
}

.lm-btn-outline:hover {
    border-color: var(--primary);
}

.lm-btn-white {
    background: #fff;
    color: var(--primary) !important;
}

.lm-btn-white:hover {
    background: var(--bg-soft);
}

.lm-btn-block {
    width: 100%;
}

.lm-btn-sm {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
}

/* ---------- Hero ---------- */
.lm-hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(4, 30, 102, 0.08), transparent 60%),
        var(--bg-light);
}

.lm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(4, 30, 102, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 30, 102, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}

.lm-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.lm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.lm-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.lm-hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.lm-hero h1 .accent {
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lm-hero-lead {
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 2rem;
}

.lm-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.lm-checks li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.lm-checks i {
    color: var(--accent);
}

/* ---------- Card (join / forms) ---------- */
.lm-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.25rem;
}

.lm-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.lm-card-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(4, 30, 102, 0.25);
}

.lm-card-head h2,
.lm-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.15rem;
}

.lm-card-head p,
.lm-card-desc {
    font-size: 0.95rem;
}

.lm-card-desc {
    margin-bottom: 1.5rem;
}

.lm-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.lm-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lm-input-wrap {
    position: relative;
    flex: 1;
}

.lm-input-wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    pointer-events: none;
}

.lm-input-wrap > i.lm-input-action {
    left: auto;
    right: 1rem;
    pointer-events: auto;
    cursor: pointer;
}

.lm-input {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1rem 0.95rem 2.75rem;
    outline: none;
    transition: all var(--t-fast);
}

.lm-input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.lm-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.lm-icon-btn {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.05rem;
    transition: all var(--t-fast);
}

.lm-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lm-icon-btn.spin i {
    animation: lm-spin 0.6s ease;
}

@keyframes lm-spin {
    to {
        transform: rotate(360deg);
    }
}

.lm-btn-stack {
    display: grid;
    gap: 0.75rem;
}

.lm-last-room {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lm-last-room a {
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
}

.lm-card-note {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--secondary);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.lm-error {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.92rem;
}

/* ---------- Sections ---------- */
.lm-section {
    padding: 6rem 0;
}

.lm-section-alt {
    background: var(--bg-light);
}

.lm-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.lm-section-head .lm-kicker {
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.lm-section-head h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.lm-section-head p {
    font-size: 1.1rem;
}

.lm-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lm-feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--t-normal);
}

.lm-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.35);
}

.lm-feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--accent);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    transition: all var(--t-normal);
}

.lm-feature:hover .lm-feature-icon {
    background: var(--accent);
    color: #fff;
}

.lm-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lm-feature p {
    font-size: 0.98rem;
}

.lm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.lm-step {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--border);
}

.lm-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    margin-bottom: 1.1rem;
}

.lm-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.lm-step p {
    font-size: 0.97rem;
}

/* ---------- CTA band ---------- */
.lm-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.lm-cta::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transform: rotate(18deg);
}

.lm-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.lm-cta p {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Footer ---------- */
.lm-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 2rem;
}

.lm-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lm-footer-brand img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
    margin-bottom: 1rem;
}

.lm-footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 380px;
}

.lm-footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.lm-footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.lm-footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.lm-footer-links a:hover {
    color: #fff;
}

.lm-footer-links i {
    width: 18px;
    color: #93b4fb;
}

.lm-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

.lm-social {
    display: flex;
    gap: 0.6rem;
}

.lm-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lm-social a:hover {
    background: var(--accent);
}

/* ---------- Centered single-card pages ---------- */
.lm-center {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
    background:
        radial-gradient(800px 420px at 80% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
        radial-gradient(600px 380px at -10% 110%, rgba(4, 30, 102, 0.08), transparent 60%),
        var(--bg-light);
}

.lm-center .lm-card {
    width: 100%;
    max-width: 480px;
}

.lm-center-wide .lm-card {
    max-width: 860px;
}

.lm-big-code {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

/* Waiting room */
.lm-waiting-room {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.lm-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0 1rem;
}

.lm-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    animation: lm-bounce 1.2s infinite ease-in-out;
}

.lm-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.lm-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes lm-bounce {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.lm-status {
    font-weight: 600;
    color: var(--primary);
}

.lm-muted-sm {
    font-size: 0.88rem;
    color: var(--secondary);
}

.lm-audio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lm-audio-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}

.lm-audio-bar > div {
    height: 100%;
    width: 0;
    background: var(--accent);
}

.lm-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.lm-text-center {
    text-align: center;
}

/* Legal / long text */
.lm-prose h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.6rem;
}

.lm-prose p,
.lm-prose li {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.lm-prose ul {
    list-style: disc;
    padding-left: 1.25rem;
}

/* Reveal animation */
.lm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

/* SweetAlert in public pages */
.swal2-popup {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    border-radius: 18px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .lm-hero {
        padding: 3rem 0 4rem;
    }

    .lm-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .lm-features,
    .lm-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm-nav a.lm-nav-link {
        display: none;
    }
}

@media (max-width: 640px) {
    .lm-header-inner {
        height: 64px;
    }

    .lm-brand img {
        height: 26px;
    }

    .lm-brand-tag {
        font-size: 0.8rem;
    }

    .lm-nav .lm-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .lm-features,
    .lm-steps {
        grid-template-columns: 1fr;
    }

    .lm-card {
        padding: 1.5rem;
    }

    .lm-section {
        padding: 4rem 0;
    }

    .lm-cta {
        padding: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
