/* ===================================
   Landing Page Styles
   Exact replica of the Next.js landing
   =================================== */

/* Override CMS theme for landing page */
.template-homepage {
    background-color: #121620;
    color: #ededed;
    font-family: "Urbanist", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Running Line / Marquee ---- */
.lp-running-line {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.lp-running-line-track {
    display: inline-block;
    white-space: nowrap;
    animation: lp-marquee 100s linear infinite;
}

.lp-running-line-track span {
    margin: 0 1rem;
    text-transform: uppercase;
}

@keyframes lp-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Title ---- */
.lp-title {
    font-size: clamp(2rem, 8vw, 56px);
    font-weight: 400;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.1;
}

/* ---- Buttons ---- */
.lp-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid #A07347;
    border-radius: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    color: #ededed;
    background: transparent;
    font-family: inherit;
}

.lp-btn:hover {
    border-color: #6D4C2E;
}

.lp-btn-primary {
    background-color: #A07347;
    color: #ededed;
}

.lp-btn-primary:hover {
    background-color: #6D4C2E;
    border-color: #6D4C2E;
}

.lp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---- Header ---- */
.lp-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 2rem;
}

.lp-header img {
    max-width: 100%;
    height: auto;
}

.lp-header-right {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.lp-header-desc {
    text-align: center;
    width: 100%;
    max-width: 20rem;
    font-size: 0.875rem;
    margin: 0;
}

/* ---- Hero / Central Block ---- */
.lp-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.lp-hero-desc {
    text-align: center;
    width: 100%;
    max-width: 32rem;
    font-size: 1.25rem;
    padding: 0 0.5rem;
    margin: 0;
}

.lp-hero-image {
    width: 100%;
}

/* ---- Store Badges ---- */
.lp-store-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.lp-store-badge {
    height: 48px;
    transition: opacity 0.2s;
}

.lp-store-badge:hover {
    opacity: 0.8;
}

/* ---- Feature Block ---- */
.lp-features {
    padding: 5rem 0;
}

.lp-features-title-wrap {
    padding: 0 2rem;
}

.lp-features-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    margin-top: 1.5rem;
}

.lp-feature {
    width: 100%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    justify-content: center;
}

.lp-feature-icon {
    width: 60px;
    height: 60px;
}

.lp-feature-name {
    font-weight: 500;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.lp-feature-desc {
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.25rem;
    margin-bottom: 0;
}

/* ---- Join Block ---- */
.lp-join {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lp-join-content {
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
}

.lp-subscribe-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 3.5rem;
    gap: 1.5rem;
}

.lp-subscribe-input {
    padding: 1rem 2rem;
    border: 2px solid #A07347;
    border-radius: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    background: transparent;
    color: #ededed;
    width: 100%;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.lp-subscribe-input:hover,
.lp-subscribe-input:focus {
    border-color: #6D4C2E;
}

.lp-subscribe-input::placeholder {
    color: #9ca3af;
}

.lp-privacy {
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.lp-join-car {
    width: 100%;
}

/* ---- Footer ---- */
.lp-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0;
    gap: 1.5rem;
}

.lp-footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.lp-social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: center;
}

.lp-social-icons a {
    cursor: pointer;
    display: inline-flex;
}

.lp-social-icons a:hover {
    opacity: 0.8;
}

.lp-footer-right {
    text-align: center;
    padding-top: 5rem;
}

.lp-footer-right p {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.lp-footer-right a {
    color: #ededed;
}

.lp-footer-right a:hover {
    color: #A07347;
}

/* ---- Toast Notifications ---- */
.lp-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: lp-toast-in 0.3s ease;
}

.lp-toast-success {
    background-color: #22c55e;
}

.lp-toast-error {
    background-color: #ef4444;
}

@keyframes lp-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.lp-loading {
    text-align: center;
    margin-top: 0.5rem;
}

/* ---- Responsive (md: 768px) ---- */
@media (min-width: 768px) {
    .lp-features-title-wrap {
        padding: 0 2rem;
    }

    .lp-features-grid {
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
    }

    .lp-feature {
        max-width: 24rem;
    }

    .lp-join {
        flex-direction: row;
        padding-top: 6rem;
    }

    .lp-join-content {
        padding: 0 2rem;
    }

    .lp-subscribe-form {
        flex-direction: row;
        gap: 0.5rem;
    }

    .lp-join-car {
        max-width: 50%;
    }

    .lp-footer {
        flex-direction: row;
        padding: 4rem 2rem;
        justify-content: space-between;
    }
}

/* ---- Responsive (lg: 1024px) ---- */
@media (min-width: 1024px) {
    .lp-header-right {
        display: flex;
    }

    .lp-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 2rem;
    }

    .lp-features-title-wrap {
        padding: 0 7rem;
    }

    .lp-join-content {
        padding: 0 6rem;
    }

    .lp-footer {
        padding: 4rem 5rem;
    }
}

/* ---- Responsive (2xl: 1536px) ---- */
@media (min-width: 1536px) {
    .lp-header-desc {
        font-size: 1rem;
    }

    .lp-privacy {
        font-size: 1rem;
    }
}
