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

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

.hero-image {
    width: 90rem;
}

.hero-image.phone-demo {
    position: absolute;
    transform: translateX(-40rem) translateY(50rem);

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

.hero-image.envelope {
    width: 40rem;
}

.hero-image.dates {
    width: 40rem;
}

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

.hero-cards {
    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;
}

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

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

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

.hero-card-title {
    font-size: 2rem;
    padding-top: 25%;
}

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

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

.hero-plans {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-flow: row nowrap;
    overflow-x: auto;
    width: 100vw;
    justify-content: center;
}

.hero-plan-card {
    padding: 2rem;
    background: var(--navitem-tint);
    color: white;
    border-radius: 3rem;
    height: 30rem;
    width: 20rem;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.hero-plan-card-secondary {
    background: white;
    color: var(--text-tint);
}

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

.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: 10rem;
    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);
}

.nav-actions {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

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

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

.hero-slogan {
    border-radius: 10rem;
    background: var(--navitem-tint);
    color: white;
    font-weight: 500;
    font-size: 1rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
}


.hero-title {
    text-align: center;
    font-weight: 500;
    font-size: 4rem;
    width: fit-content;
    padding: 0.3rem 0rem;
    font-family: "Instrument Serif", serif;
    line-height: 1;
}

.hero-text {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-header {
    text-align: center;
    font-weight: 500;
    font-size: 3rem;
    width: fit-content;
    padding: 0.3rem 0rem;
    font-family: "Instrument Serif", serif;
    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;
}

/* Footer */
.footer {
    background: var(--navitem-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: 968px) {
    /* Nav */
    .nav {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo img {
        width: 7rem;
    }

    /* Hero sections */
    .hero,
    .hero-second {
        max-height: unset;
    }

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

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-header {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    /* Hide decorative phone image on tablet */
    .hero-image.phone-demo {
        display: none;
    }

    /* Cards */
    .hero-cards {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* Plans */
    .hero-plans {
        justify-content: flex-start;
        padding-left: 2rem;
        padding-right: 2rem;
    }

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

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

    .footer-nav {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

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

    .nav-actions .btn-secondary {
        display: none;
    }

    .logo img {
        width: 6rem;
    }

    /* Hero */
    .hero-content {
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-header {
        font-size: 1.75rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-slogan {
        font-size: 0.65rem;
    }

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

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

    /* Hero images */
    .hero-image {
        max-width: 100%;
        height: auto;
    }

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

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

    /* Plan cards */
    .hero-plans {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        flex-flow: column nowrap;
        align-items: center;
        overflow-x: visible;
    }

    .hero-plan-card {
        width: min(18rem, 80vw);
    }

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

    .footer-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .hero-title.footer-tagline,
    .footer-container > .hero-title {
        font-size: 1.75rem;
    }
}
