/* =========================================
   DESIGN TOKENS
   Also duplicated in auth.css: login/signup/verify/complete_setup.html load ONLY
   auth.css (not this file), so these variables must be defined there too or var()
   references on those pages would resolve to nothing. Keep both blocks identical.
   ========================================= */
:root {
    /* Neutrals */
    --color-ink: #000;
    --color-white: #fff;
    --color-bg-grey: #d9d9d9;
    --color-bg-subtle: #f5f5f5;
    --color-bg-hover: #f0f0f0;
    --color-bg-faint: #f7f7f7;
    --color-text-muted-dark: #444;
    --color-text-muted: #555;
    --color-text-muted-light: #666;
    --color-text-muted-lighter: #888;

    /* Feedback text (canonical: consistent across auth/dashboard/eho feedback lines) */
    --color-text-error: #9d0000;
    --color-text-success: #005c2c;

    /* Traffic-light / status tones (canonical: dashboard.css's flat triplet) */
    --color-state-green: #cfeecf;
    --color-state-amber: #fce883;
    --color-state-red: #f6c2c2;

    /* Brand */
    --color-brand-pink: #dfa6a6;
    --color-brand-pink-alt: #e3acb5;
    --color-brand-pink-alt-2: #dfdedf;

    /* Radius scale */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-menu: 0 10px 0 rgba(0, 0, 0, 0.12);
    --shadow-tooltip: 0 10px 30px rgba(0, 0, 0, 0.18);
    --shadow-highlight: 0 8px 24px rgba(255, 222, 89, 0.2);
    --shadow-ring: 0 0 0 3px rgba(0, 0, 0, 0.08);
    --shadow-inset-active: inset 0 0 0 1.032px #000;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-handwritten: 'bamuelsarfitwo', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-ink);
}

/* Typography Utilities */
.font-sans {
    font-family: var(--font-sans);
    font-weight: 800;
}

@font-face {
    font-family: 'bamuelsarfitwo';
    src: url('bamuelsarfitwo.ttf') format('truetype');
}

.font-handwritten {
    font-family: var(--font-handwritten);
    font-weight: 200;
}

.bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }

/* Border Box Utility */
.border-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-ink);
    border-radius:var(--radius-sm);
}

/* Buttons */
.btn {
    background-color: var(--color-white);
    border: 1px solid var(--color-ink);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--color-bg-hover);
}

/* Links */
a {
    color: var(--color-ink);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* =========================================
   HERO & NAVBAR
   ========================================= */
.hero-section {
    background-color: var(--color-brand-pink);
    padding: 30px 40px 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allows menu to drop down on mobile */
}

.navbar .logo {
    font-size: 1.5rem;
}

/* Hamburger Menu Base (Hidden on Desktop) */
.menu-toggle {
    display: none;
}
.burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
}

.nav-links {
    display: flex;
}
.nav-links a {
    margin-left: 30px;
    font-size: 1.1rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}
.hero-content .hero-sub {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.main-content {
    background-color: var(--color-bg-grey);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 40px;
}
.container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.section-sub {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Adjusted for better alignment */
    gap: 20px;
}

.feature-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mockup-placeholder {
    width: 100%;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-subtle);
}

.language-selection {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.lang-btn {
    background-color: #e5e5e5;
    border: 1px solid var(--color-ink);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.lang-btn:hover {
    background-color: #d0d0d0;
}

.selected,
.lang-btn[aria-pressed="true"] {
    background-color: #c0c0c0;
}

/* CSS Flags */
.flag { width: 40px; height: 25px; display: inline-block; }
.bg-england { background: linear-gradient(90deg, transparent 40%, #ce1124 40%, #ce1124 60%, transparent 60%), linear-gradient(0deg, transparent 40%, #ce1124 40%, #ce1124 60%, transparent 60%), #ffffff; }
/* .bg-bangladesh { background: radial-gradient(circle at 45% 50%, #da291c 22%, transparent 22%), #006a4e; } */
.bg-poland { background: linear-gradient(180deg, #ffffff 50%, #dc143c 50%); }
.bg-arabic { background: linear-gradient(180deg, #ce1124 25%, #ffffff 25%, #ffffff 50%, #000000 50%, #000000 75%, #007a3d 75%); }
.bg-india { background: linear-gradient(180deg, #ff9933 33.33%, #ffffff 33.33%, #ffffff 66.66%, #138808 66.66%); }
.bg-spain { background: linear-gradient(180deg, #aa151b 25%, #f1bf00 25%, #f1bf00 75%, #aa151b 75%); }
/* .bg-france { background: linear-gradient(90deg, #002395 33.33%, #ffffff 33.33%, #ffffff 66.66%, #ed2939 66.66%); } */

.try-it-out {
    position: absolute;
    bottom: -30px;
    right: -20px;
    color: red;
    font-size: 1.2rem;
    transform: rotate(-10deg);
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-box {
    flex: 1 1 250px;
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-card {
    display: inline-block;
    padding: 30px 40px;
    text-align: left;
    max-width: 600px;
    width: 100%;
}

.price-header {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap; /* Wraps price details on tiny screens */
}

.price-header .price {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

.price-header .per-month {
    font-size: 1.1rem;
    color: #667;
}

.pricing-features {
    list-style: none;
    font-size: 1.1rem;
    line-height: 1.8;
}

.pricing-grid {
    /* display: grid; */
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 22px;
}

.pricing-card,
.pricing-sidecard {
    width: 100%;
    height: 100%;
}

.pricing-sidecard {
    display: grid;
    gap: 16px;
    padding: 30px 28px;
    text-align: left;
}

.pricing-side-title {
    font-size: 1.8rem;
    line-height: 1;
}

.pricing-side-note {
    font-size: 1rem;
    line-height: 1.5;
}

.pricing-daily-costs {
    display: grid;
    gap: 12px;
}

.pricing-daily-card {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-ink);
    padding: 14px;
}

.pricing-daily-figure {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.pricing-daily-label {
    font-size: 1rem;
    line-height: 1.45;
}

.pricing-value-list {
    list-style: none;
    line-height: 1.7;
    font-size: 1rem;
}

.pricing-value-list li + li {
    margin-top: 6px;
}

.pricing-terms {
    margin-top: 18px;
    padding: 18px 20px;
    background: #fff8eb;
    border: 1px solid var(--color-ink);
    text-align: left;
}

.pricing-terms-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.pricing-terms-list {
    list-style: none;
    font-size: 0.80rem;
    line-height: 1.5;
}

.pricing-terms-list li + li {
    margin-top: 8px;
}

.price-header .price.discount {
    font-size: 2.6rem;
    letter-spacing: -1px;
    color: #888888;
    text-decoration: line-through;
}

/* =========================================
   BOTTOM CTA & FOOTER
   ========================================= */
.bottom-cta {
    margin: 40px 0;
}
.cta-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding: 0 20px;
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
}

.footer-left .logo { font-size: 1.5rem; }
.footer-left .copyright { font-size: 0.8rem; margin-top: 5px; }

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 1rem;
}

/* =========================================
   RESPONSIVE QUERIES
   ========================================= */

@media (max-width: 768px) {

    /* Navbar & Hamburger */
    .burger {
        display: block; /* Show burger on mobile */
    }
    .nav-links {
        display: none; /* Hide links by default on mobile */
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        background: var(--color-white);
        /* border: 1px solid var(--color-ink); */
        border-radius: var(--radius-lg);
        padding: 10px 0;
    }
    /* Toggle logic: when checkbox is checked, show nav links */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    .nav-links a {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    /* General Containers */
    .container {
        padding: 20px;
    }
    .main-content, .hero-section {
        padding: 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Layout shifts */
    .features-grid {
        flex-direction: column;
    }
    .feature-mockup {
        margin-bottom: 20px;
    }
    .footer-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-right {
        align-items: center;
    }
    
    /* Hide manual breaks on mobile to allow natural wrapping */
    .mobile-hide {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .hero-sub {
        font-size: 1rem;
    }
    .main-content {
        padding: 20px 0 0 0;
        border: 0;
    }
    .container {
        padding: 20px;
        border: 0;
    }
    
    /* Collapse language grid to single column on very small phones */
    .language-selection {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.subdomain-input {
    width: auto;
    padding: 10px;
    font-size: 1.1rem;
    /* border: 1px solid var(--color-ink); */
    border-radius: var(--radius-lg);
}

/* EHO export page styling lives entirely in eho-export.css now (dedicated
   page-specific stylesheet, same pattern as dashboard.css). */

/* Testimonials Section */

/* =========================================
   TESTIMONIALS & SOCIAL PROOF SECTION
   ========================================= */
.testimonials-section {
    padding: 30px;
    margin-bottom: 30px;
}

.section-sub {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

/* Hero Quote Layout */
.testimonial-hero {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 30px;
    padding: 30px;
    background-color: var(--color-white);
    margin-bottom: 20px;
    align-items: center;
}

.hero-quote {
    font-size: 2rem;
    /* font-weight: 700; */
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

.hero-quote-right {
    border-left: 1px solid var(--color-ink);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.author-title {
    font-size: 0.85rem;
    color: var(--color-text-muted-light);
}

.author-company {
    font-size: 1rem;
    margin-top: 5px;
}

/* Metric / Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--color-white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted-dark);
    max-width: 70%;
    line-height: 1.3;
}

.stat-author {
    font-size: 0.85rem;
    white-space: nowrap;
}

.stat-number {
    font-size: 4rem;
    line-height: 1;
    margin: 0;
    padding-top: 10px;
}

/* Responsive Scaling */
@media (max-width: 850px) {
    .testimonial-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-quote {
        font-size: 1.5rem;
    }

    .hero-quote-right {
        border-left: none;
        border-top: 1px solid var(--color-ink);
        padding-left: 0;
        padding-top: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-form-actions button {
    padding: 5px 10px;
}