@import url('plans.css');

/* Override body background for landing page */
body {
    overflow-x: hidden;
    background: var(--menu-tint);
}

/* Hero Section */
.hero {
    color: var(--text-tint);
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-image {
    width: 90vw;
    max-width: 70rem;
}

.hero-image.phone-demo {
    position: absolute;
    transform: translateX(-30vw) translateY(35rem);

    width: 20rem;
    pointer-events: none;
}

.hero-image.envelope {
    width: 50vw;
    max-width: 50rem;
}

.hero-image.dates {
    width: 90vw;
}

.hero-image.demo {
    width: 90vw;
}

.hero-second {
    background: var(--accent-tint);
    color: white;
    padding: 2rem 2rem;
    display: flex;
    max-height: 170vw;
    flex-direction: column;
    border-radius: 2rem 2rem 0rem 0rem;
    overflow: hidden;
}

.hero-third {
    background: var(--secondary-accent-tint);
    color: white;
    padding: 2rem 2rem;
    display: flex;
    max-height: 60rem;
    flex-direction: column;
    border-radius: 2rem 2rem 0rem 0rem;
    overflow: hidden;
}

.hero-cards,
.hero-plans {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-flow: row nowrap;
    overflow-x: auto;
    width: 100vw;
    padding-left: 5rem;
    padding-right: 5rem;

    /* Hide scrollbar for Firefox */
    scrollbar-width: none;

    /* Hide scrollbar for IE, Edge and older browsers */
    -ms-overflow-style: none;

    /* Prevent text selection when dragging */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    cursor: grab;
    touch-action: pan-y;
    will-change: transform;
}

.hero-plans {
    justify-content: flex-start;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hero-cards::-webkit-scrollbar,
.hero-plans::-webkit-scrollbar {
    display: none;
}

.hero-cards.is-dragging,
.hero-plans.is-dragging {
    cursor: grabbing;
}

.hero-cards.is-dragging *,
.hero-plans.is-dragging * {
    cursor: grabbing;
}

.hero-card {
    padding: 2rem;
    background: white;
    border-radius: 3rem;
    width: 30rem;
    height: auto;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-card-title {
    padding-top: 20%;
}

.hero-card-image {
    width: 10rem;
    height: 8rem;
    object-fit: contain;
    object-position: left;
}

.hero-card > p:last-child {
    min-height: calc(3 * 1.6em);
}

.nav {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding: 0rem 3rem;
    position: relative;
}

/* Hamburger button — mobile only */
.nav-hamburger {
    margin-left: auto;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(84, 12, 13, 0.08);
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-tint);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav actions — inline on desktop */
.nav-actions {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-actions {
        display: none;
    }
}

/* ── Full-screen mobile nav overlay ── */
.nav-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--menu-tint);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
}

.nav-overlay-logo img {
    width: 6rem;
    object-fit: contain;
}

.nav-overlay-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tint);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.3rem;
    border-radius: 0.5rem;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.nav-overlay-close:hover {
    background: rgba(84, 12, 13, 0.08);
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.nav-overlay-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: color 0.15s, background 0.15s;
    letter-spacing: -0.01em;
}

.nav-overlay-link:hover {
    color: var(--text-tint);
    background: rgba(84, 12, 13, 0.06);
}

.nav-overlay-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.nav-overlay-lang-btn {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-tint);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    transition: color 0.15s, background 0.15s;
}

.nav-overlay-lang-btn:hover {
    color: var(--primary-color, #540c0d);
    background: rgba(84, 12, 13, 0.06);
}

.nav-overlay-lang-divider {
    color: var(--text-tint);
    opacity: 0.35;
    font-size: 1rem;
}

.nav-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(20rem, 80vw);
}

.nav-overlay-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
}

.plan-discount-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: #2B4836;
    color: white;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1.4;
    margin-left: 0.5rem;
}

.logo {
    font-family: "Bagel Fat One", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tint);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    width: 6rem;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-tint);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-tint);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 5rem 14rem 0rem 14rem;
}

.hero-content-showcase {
    position: relative;
}

.hero-content-showcase {
    max-height: 70rem;
}

.hero-content-branding {
    max-height: 70rem;
}

.hero-content-demo {
    max-height: 70rem;
}

.hero-title {
    text-align: center;
    width: fit-content;
    padding: 0.3rem 0rem;
}

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

.hero-header {
    text-align: center;
    width: fit-content;
    padding: 0.3rem 0rem;
    line-height: 1;
}

/* Features Section */
.features {
    padding: 6rem 1rem;
    background: white;
    border-bottom: 3px solid #FFE5F0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-tint);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid #FFE5F0;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #FFBADF;
    background: white;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFBADF 0%, #FFD93D 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-tint);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-700);
    line-height: 1.7;
}

/* Analytics Section */
.analytics {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFFBEA 100%);
    border-bottom: 3px solid #FFBADF;
}

.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.analytics-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-tint);
    margin-bottom: 1.5rem;
}

.analytics-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.analytics-features {
    list-style: none;
    margin-bottom: 2rem;
}

.analytics-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--gray-800);
}

.analytics-features li svg {
    width: 24px;
    height: 24px;
    color: var(--text-tint);
    flex-shrink: 0;
    margin-top: 2px;
}

.analytics-chart-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 2px solid #FFBADF;
    box-shadow: 0 4px 20px rgba(255, 186, 223, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--menu-tint);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-tint);
}

.chart-badge {
    background: linear-gradient(135deg, #FFBADF 0%, #FFD93D 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.demo-chart-container {
    position: relative;
    height: 300px;
}

/* Simplicity Section */
.simplicity {
    padding: 6rem 1rem;
    background: var(--gray-50);
    border-bottom: 3px solid #FFE5F0;
}

.simplicity-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.simplicity-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-tint);
    margin-bottom: 1.5rem;
}

.simplicity-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.simplicity-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simplicity-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--gray-800);
    max-width: 600px;
}

.simplicity-features li svg {
    width: 24px;
    height: 24px;
    color: var(--green-600);
    flex-shrink: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #FFBADF 0%, #FFD93D 100%);
    color: white;
    padding: 6rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--frame-tint);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}


.features-container {
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-card {
    background:white;
    border-radius: 2rem;
    padding: 2rem;
}

.features-split-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
}

.features-split-content {
    display:flex;
    gap:2rem;
    flex-direction: column;
    width: 50%;
}

/* Features page layout with table of contents */
.features-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.features-page-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.features-toc {
    position: sticky;
    top: 2rem;
    flex-shrink: 0;
    width: 14rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1.5rem;
}

.features-toc-title {
    margin-bottom: 1rem;
}

.features-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.features-toc-list a {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    color: var(--text-tint);
    text-decoration: underline;
    line-height: 1.35;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.features-toc-list a:hover {
    background: var(--button-tint);
    color: var(--accent-tint);
}

.features-page .features-container {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.features-page .features-card {
    scroll-margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--accent-tint);
    color: var(--gray-300);
    padding: 3rem 1rem 1.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 3rem;
    padding: 5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFBADF;
}

.footer-tagline {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: opacity 0.1s ease-in-out;
}

.footer-links a:hover {
    opacity: 0.7;
}




/* Responsive */
@media (max-width: 900px) {
    /* Nav */
    .nav {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 2rem 1.25rem;
        gap: 1.25rem;
    }

    .hero-content-showcase {
        max-height: 50rem;
    }

    .hero-content-branding {
        max-height: 40rem;
    }

    .hero-content-demo {
        max-height: 50rem;
    }

    .hero-image.desktop-demo {
        display: none;
    }

    .hero-image.phone-demo {
        display: block;
        position: relative;
        transform: none;
        width: 30vh;
    }

    /* Hero images */
    .hero-image {
        height: auto;
    }

    .hero-image.demo {
        width: 40vh;
    }

    .hero-image.envelope {
        width: 80vw;
    }


    /* Cards & plan carousels */
    .hero-cards,
    .hero-plans {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Analytics */
    .analytics-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer */
    .footer-container {
        padding: 3rem 2rem;
    }


    /* Nav */
    .nav {
        padding: 0 1rem;
    }

    /* CTA buttons row */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .hero-content > div[style*="display: flex"] .btn {
        width: 15rem;
        text-align: center;
        justify-content: center;
    }



    /* Feature cards - slightly smaller */
    .hero-card {
        width: 20rem;
        height: auto;
        min-height: 20rem;
    }

    .hero-cards,
    .hero-plans {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Plan cards */
    .hero-plan-card {
        width: min(25rem, 80vw);
        height: 45rem;
    }

    .hero-plan-price {
        font-size: 2rem;
    }

    /* Footer */
    .footer-container {
        padding: 2rem 1.25rem;
        gap: 2rem;
    }

    .footer-nav {
        flex-wrap: wrap;

        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .features-page-layout {
        flex-direction: column;
    }

    .features-toc {
        position: static;
        width: 100%;
    }

    .features-toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
        gap: 0.5rem;
    }

    .features-split-container {
        flex-direction: column;
    }

    .features-split-content {
        width: 100%;
    }

}

@media (max-width: 1500px) {
    .hero-image.phone-demo {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-image.phone-demo {
        display: block;
    }
}
