/* Landing page for /:app/. Scoped under body.page-landing. */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap');

/* Break out of Bootstrap's narrow .container so the gradient hero
   spans the full viewport. Also hide the legacy main-template footer
   — this page renders its own white footer (.ln-footer). */
body.page-landing .container { max-width: 100%; width: 100%; padding: 0; }
body.page-landing .row { margin-left: 0; margin-right: 0; }
body.page-landing .col-lg-12 { padding: 0; }
body.page-landing .footer { display: none; }
body.page-landing { background: #ffffff; }

.ln {
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    color: #1f1f1f;
    width: 100%;
}

.ln *,
.ln *::before,
.ln *::after { box-sizing: border-box; }

.ln p, .ln h1, .ln h2, .ln h3 { margin: 0; font-weight: 500; }

/* HERO --------------------------------------------------------------- */

.ln-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 100px 24px 0;
    /* gradient applied inline so it picks up $app->theme_primary */
}

/* Avatar block: agent photo (96px circle) with app icon (48px square) overlap */
.ln-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.ln-agent-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.ln-app-icon-overlay {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #ffffff;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 4px 40px rgba(0, 0, 0, 0.08);
}

/* Standalone app icon (when no agent) — same visual size as the agent avatar */
.ln-app-icon-solo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.ln-sent-by {
    text-align: center;
}

.ln-sent-label {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.28px;
    color: rgba(255, 255, 255, 0.6);
}

.ln-sent-name {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    color: #ffffff;
}

/* Title --------------------------------------------------------------- */

.ln-title {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.64px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.ln-title[hidden] { display: none; }

/* CTA ---------------------------------------------------------------- */

.ln-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
}

.ln-cta-email,
.ln-cta-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ln-cta-email[hidden],
.ln-cta-success[hidden] { display: none; }

.ln-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.ln-form-input {
    width: 100%;
    max-width: 360px;
    height: 56px;
    padding: 0 20px;
    border: 0;
    outline: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
}

.ln-form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ln-form-input:focus {
    background: rgba(255, 255, 255, 0.14);
}

/* Button — must beat global `button { width: 100% }` from style.css:146-152
   on every interaction state (focus, active, hover) using the same
   compound-selector specificity trick we used for .l2-btn. */
.ln .ln-form-btn,
.ln .ln-form-btn:focus,
.ln .ln-form-btn:active,
.ln .ln-form-btn:hover {
    width: auto;
    min-width: 140px;
    max-width: 100%;
    height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 28px;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ln .ln-form-btn { transition: opacity 0.15s ease; }
.ln .ln-form-btn:hover { opacity: 0.94; }
.ln .ln-form-btn:active { opacity: 0.86; }
.ln .ln-form-btn:disabled,
.ln .ln-form-btn--loading { opacity: 0.6; cursor: default; }

.ln-form-msg {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.28px;
    color: #ffd2d2;
    min-height: 18px;
    text-align: center;
}

.ln-form-msg:empty { display: none; }

/* Success-state badges */
.ln-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ln-badge img {
    height: 40px;
    width: auto;
    display: block;
}

/* Hero phones image -------------------------------------------------- */

.ln-hero-image-wrap {
    width: 100%;
    max-width: 512px;
    margin-top: 8px;
    padding: 0 8px;
}

.ln-hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Footer (white) ----------------------------------------------------- */

.ln-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 24px;
    background: #ffffff;
}

.ln-footer-logo {
    width: 122px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.ln-footer-copy {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.28px;
    color: rgba(67, 66, 66, 0.6);
    text-align: center;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 991.98px) {
    .ln-hero {
        padding: 64px 20px 0;
        gap: 20px;
    }

    .ln-title {
        font-size: 32px;
        line-height: 36px;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .ln-title {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: -0.56px;
    }
}
