:root {
    --primary: #1A4D4D;
    /* Elegant Teal from logo */
    --primary-light: #2A6D6D;
    --primary-dark: #0D2D2D;
    --secondary: #F4A261;
    /* Warm Peach/Sand from logo */
    --secondary-dark: #E76F51;
    --bg-champagne: #FDF9F6;
    --white: #ffffff;
    --text-dark: #2D3436;
    --gray-light: #F1F2F6;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(26, 77, 77, 0.15);
    --card-radius: 24px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-champagne);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    /* Always white, even when var(--white) changes in dark mode */
    box-shadow: 0 4px 15px rgba(26, 77, 77, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 77, 77, 0.4);
}

/* Header */
.header {
    background: rgba(253, 249, 246, 0.7);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--secondary-dark);
}

/* Hero */
.hero {
    position: relative;
    padding-top: 120px;
    background-color: var(--bg-champagne);
    overflow: hidden;
}

.badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--secondary-dark);
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
}

.highlight {
    color: var(--secondary-dark);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
    color: var(--text-dark);
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-link {
    font-weight: 700;
    color: var(--primary);
}

.image-stack {
    position: relative;
}

.main-img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.app-mockup {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    border: 8px solid var(--white);
    border-radius: 40px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Services */
.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

/* Steps list */
.steps-list {
    margin-top: 40px;
}

.steps-list li {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.3;
    line-height: 1;
}

/* Comparison and why we are better */
.comparison-card {
    background: var(--primary);
    color: var(--white);
    padding: 80px;
    border-radius: 32px;
}

.comparison-card h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.checklist span {
    color: var(--secondary);
    font-weight: 800;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.stat {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--secondary);
}

/* Footer Section */
.footer {
    background: #111;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-links a {
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-card {
        padding: 40px 20px;
    }
}

.bg-light {
    background-color: var(--gray-light);
}

/* Screenshot Grid (Replaces Mosaic to prevent overlap) */
.screenshot-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    height: auto;
    width: 100%;
}

.mosaic-img {
    width: 100%;
    max-width: 250px;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    border: 4px solid var(--white);
    transition: all 0.3s ease;
    justify-self: center;
}

.mosaic-img:hover {
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .screenshot-mosaic {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages */
.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    padding: 60px 0;
}

.legal-toc {
    position: sticky;
    top: 140px;
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
}

.legal-toc-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-light);
}

.legal-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.legal-nav-item a {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.7;
    display: block;
    padding: 4px 0;
    line-height: 1.4;
}

.legal-nav-item a:hover,
.legal-nav-item a.active {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
    font-weight: 600;
}

.legal-document {
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
}

.legal-document h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.last-updated {
    display: inline-block;
    background: var(--gray-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 160px;
    /* Offset for sticky header */
}

.legal-document h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-document p {
    margin-bottom: 24px;
    color: #4a5568;
    line-height: 1.8;
}

.legal-document ul,
.legal-document ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-document li {
    margin-bottom: 12px;
    color: #4a5568;
    position: relative;
    padding-left: 10px;
}

.legal-document ul li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.legal-document hr {
    border: 0;
    height: 1px;
    background: var(--gray-light);
    margin: 40px 0;
}

.contact-box {
    background: var(--bg-champagne);
    padding: 32px;
    border-radius: 16px;
    margin-top: 40px;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

@media (max-width: 900px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-toc {
        display: none;
    }

    .legal-document {
        padding: 32px;
    }

    .legal-document h1 {
        font-size: 2.2rem;
    }
}

/* --- 2026 Upgrades --- */

/* Micro-interactions */
.btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy "magnetic" feel */
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(26, 77, 77, 0.25);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary);
}

/* Accessibility */
.checklist span {
    color: #DA6D25;
    /* Darker orange for better contrast on light backgrounds */
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-champagne: #0f172a;
        --white: #1e293b;
        --text-dark: #f1f5f9;
        --primary-dark: #e2e8f0;
        --gray-light: #334155;
        --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    body {
        background-color: var(--bg-champagne);
    }

    /* Adjust specific elements for dark mode */
    .header {
        background: rgba(15, 23, 42, 0.8);
    }

    .service-card,
    .legal-document,
    .legal-toc,
    .nav-links.active {
        background: var(--white);
        border-color: var(--gray-light);
    }

    h1,
    h2,
    h3,
    h4,
    .hero p,
    .legal-document p,
    .legal-document li {
        color: var(--text-dark);
    }

    .legal-nav-item a {
        color: var(--text-dark);
    }

    .stat-box {
        background: rgba(255, 255, 255, 0.05);
        /* Slight tint for dark mode */
    }

    .legal-document ul li::before {
        color: var(--secondary);
        border: 1px solid var(--gray-light);
    }

    .form-group input,
    .radio-option {
        background: rgba(255, 255, 255, 0.03);
        border-color: #334155;
        color: var(--text-dark);
    }

    .form-group input:focus {
        background: rgba(255, 255, 255, 0.05);
    }

    .form-group label {
        color: var(--text-dark);
    }
}

/* Beta Page Styles */
.beta-card {
    background: var(--white);
    padding: 60px;
    border-radius: 32px;
    box-shadow: var(--shadow-hover);
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--gray-light);
}

.beta-card h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.beta-card p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 40px;
}

.beta-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-champagne);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--secondary);
    background: rgba(244, 162, 97, 0.05);
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.radio-option input:checked~.radio-custom {
    border-color: var(--secondary);
}

.radio-option input:checked~.radio-custom::after {
    opacity: 1;
}

.radio-option input:checked {
    border-color: var(--secondary);
}

.radio-option:has(input:checked) {
    border-color: var(--secondary);
    background: rgba(244, 162, 97, 0.1);
}

.form-note {
    font-size: 0.8rem;
    margin-top: 20px;
    margin-bottom: 0 !important;
}

.form-note a {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Additional Dark Mode Overrides for Beta & Logo */
@media (prefers-color-scheme: dark) {
    .logo img {
        filter: brightness(1) invert(0);
    }

    .beta-card {
        background: var(--white);
        border: 1px solid var(--gray-light);
    }

    .form-group input,
    .radio-option {
        background: rgba(255, 255, 255, 0.03);
        border-color: #334155;
        color: var(--text-dark);
    }

    .form-group input:focus {
        background: rgba(255, 255, 255, 0.05);
    }

    .form-group label {
        color: var(--text-dark);
    }

    /* Fix Footer Contrast in Dark Mode */
    .footer {
        background: #0f172a;
        /* Match body style or keep distinct */
        color: #f1f5f9;
        /* Explicitly light text */
    }

    .footer-links a {
        color: #f1f5f9;
        opacity: 0.7;
    }
}

/* Notification Bar */
.notification-bar {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.notification-bar a {
    text-decoration: underline;
    margin-left: 8px;
    color: white;
}

.notification-bar a:hover {
    opacity: 0.9;
}