:root {
    --primary: #125E63;
    --primary-dark: #0D474B;
    --primary-light: #1A7F85;
    --accent: #F2AE72;
    --accent-dark: #B5651D;
    --ivory: #F7F4EC;
    --danger: #C62828;
    --success: #1B7A4B;
    --bg-gradient: linear-gradient(135deg, #F6F8FA 0%, #E7EFEF 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --text-main: #1d1d1f;
    --text-muted: #5c636a;
    --glass-border: rgba(18, 94, 99, 0.12);
    --shadow: 0 8px 32px 0 rgba(18, 94, 99, 0.12);
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
}

/* ========================================
   ACCESSIBILITY UTILITIES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-brand img {
    height: 38px;
    width: 38px;
    border-radius: 9px;
    background: var(--ivory);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a,
.nav-dropdown>span {
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-dropdown:hover>span {
    background: rgba(255, 255, 255, 0.15);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    padding: 8px 0;
    margin-top: 8px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 0;
    font-weight: 500;
}

.nav-dropdown-content a:hover {
    background: #f2f6f6;
}

.nav-dropdown-content .dropdown-icon {
    font-size: 1.2rem;
}

.nav-cta {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
}

.nav-cta:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Menu */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-mobile-menu.active {
    display: block;
}

.nav-mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.nav-mobile-menu a:hover {
    background: #f2f6f6;
}

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

    .nav-hamburger {
        display: flex;
    }
}

/* Body offset for fixed navbar */
body.has-navbar {
    padding-top: var(--nav-height);
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero-blue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
}

.hero-blue h1 {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-blue p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.3rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ========================================
   STORE BADGES & COMING SOON
   ======================================== */
.store-badges-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.store-badges-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.badge-link.coming-soon {
    opacity: 0.9;
    cursor: default;
}

.badge-link.coming-soon:hover {
    transform: none;
    opacity: 0.9;
}

.coming-soon-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(247, 244, 236, 0.18);
    color: #ffffff;
    border: 1px solid rgba(242, 174, 114, 0.55);
}

.coming-soon-pill-light {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(18, 94, 99, 0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(18, 94, 99, 0.25);
}

/* ========================================
   PAGE CONTAINER (with navbar offset)
   ======================================== */
.page-content {
    flex: 1;
    padding: 40px 20px;
}

/* Glassmorphism Container */
.legal-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.faq-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.faq-layout > main {
    flex: 1;
    min-width: 0;
}

.faq-content {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.faq-sidebar {
    width: 250px;
    position: sticky;
    top: 110px;
    flex-shrink: 0;
}

.sidebar-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 15px;
}

.faq-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #e2e8e8;
}

.faq-sidebar li {
    margin: 0;
}

.faq-sidebar a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.faq-sidebar a:hover {
    color: var(--primary);
}

.faq-sidebar a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(18, 94, 99, 0.06);
}

main.with-sidebar {
    flex: 1;
    text-align: left;
}

main.with-sidebar h1 {
    text-align: left;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--primary), var(--accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    color: var(--primary);
}

p,
li {
    line-height: 1.65;
    font-size: 1.08rem;
    color: #3a3f44;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1rem;
    border-left: 5px solid transparent;
}

.alert-tip {
    background: #E8F4F4;
    color: #0D474B;
    border-left-color: var(--primary);
}

.alert-important {
    background: #FDF3E7;
    color: #8A4A0F;
    border-left-color: var(--accent);
}

.alert-warning {
    background: #FFF8E1;
    color: #7A5400;
    border-left-color: #FFB300;
}

/* ========================================
   FEATURES TABLE & PRICING CARDS
   ======================================== */
.features-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.features-intro {
    text-align: center;
    margin-bottom: 40px;
}

.features-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px 26px;
    border: 1px solid rgba(18, 94, 99, 0.12);
    box-shadow: 0 8px 26px rgba(18, 94, 99, 0.08);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 34px rgba(18, 94, 99, 0.16);
}

.pricing-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(18, 94, 99, 0.1);
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.pricing-card.featured .pricing-tag {
    background: var(--primary);
    color: white;
}

.pricing-card h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--text-main);
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0 6px;
}

.pricing-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.pricing-list {
    padding-left: 1.2em;
    margin: 0;
}

.pricing-list li {
    font-size: 1rem;
    margin-bottom: 8px;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.features-table th {
    background: #f5f8f8;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 2px solid #e4ecec;
}

.features-table th:first-child {
    text-align: left;
}

.features-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.features-table tr:nth-child(even) {
    background: #fafafa;
}

.features-table tr:hover {
    background: #f3f7f7;
}

.category-header td {
    background: var(--primary) !important;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 20px;
}

.status-check {
    color: var(--primary);
    font-size: 1.3rem;
    text-align: center;
    font-weight: 700;
}

.status-x {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

.features-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.features-table-wrap .features-table {
    min-width: 640px;
}

.features-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.price-row td {
    background: #f5f8f8 !important;
    border-top: 3px solid var(--primary);
    font-weight: 700;
    text-align: center;
}

.price-row td:first-child {
    text-align: left;
}

.price-amount {
    font-size: 1.4rem;
    color: var(--text-main);
}

.price-period {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(18, 94, 99, 0.08);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d7dfe0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 94, 99, 0.16);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast.error {
    background: var(--danger);
    color: white;
}

/* ========================================
   ACCORDION (FAQ)
   ======================================== */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.accordion-item {
    border-bottom: 1px solid #e6ecec;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary);
    background: none;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 20px;
}

.accordion-content p,
.accordion-content ul {
    margin: 0 0 12px;
    color: #444b52;
    font-size: 1.05rem;
}

.accordion-content p:last-child,
.accordion-content ul:last-child {
    margin-bottom: 0;
}

/* ========================================
   FAQ SEARCH
   ======================================== */
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 8px 0 4px;
}

.faq-search-icon {
    position: absolute;
    left: 16px;
    font-size: 1rem;
    opacity: 0.6;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 14px 44px;
    border-radius: 14px;
    border: 1px solid rgba(18, 94, 99, 0.2);
    background: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-input::-webkit-search-cancel-button {
    display: none;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(18, 94, 99, 0.16);
}

.faq-search-clear {
    position: absolute;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.faq-search-clear[hidden] {
    display: none;
}

.faq-search-clear:not([hidden]) {
    display: flex;
}

.faq-search-clear:hover {
    background: rgba(0, 0, 0, 0.15);
}

.faq-search-status {
    min-height: 1.4em;
    margin: 8px 2px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.faq-search-empty {
    margin: 20px 2px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(18, 94, 99, 0.06);
    color: var(--text-muted);
    font-size: 1rem;
}

.faq-section[hidden],
.accordion-item[hidden] {
    display: none;
}

/* ========================================
   WAVE FOOTER
   ======================================== */
.wave-footer {
    position: relative;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
    margin-top: auto;
}

.wave-footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23125E63' d='M0,30 C360,60 720,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: cover;
}

.wave-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.wave-footer .footer-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.wave-footer .footer-links a:hover {
    color: var(--accent);
}

.store-badge {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: scale(1.05);
}

.store-badge.apple-badge-hero,
.store-badge.google-badge-hero {
    height: 54px;
}

.store-badge.apple-badge,
.store-badge.apple-badge-footer,
.store-badge.google-badge,
.store-badge.google-badge-footer {
    height: 40px;
}

.wave-footer .store-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.wave-footer .store-badges img {
    height: 40px;
}

.wave-footer .logo-footer {
    height: 40px;
    opacity: 0.92;
    margin-bottom: 14px;
}

.wave-footer .copyright {
    font-size: 0.9rem;
    opacity: 0.85;
}

.wave-footer .company-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: opacity 0.2s, color 0.2s;
}

.wave-footer .company-link:hover {
    color: #ffffff;
    opacity: 1;
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */
@media (max-width: 900px) {
    .faq-layout {
        flex-direction: column;
    }

    .faq-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
        background: #f4f7f7;
        padding: 20px;
        border-radius: 16px;
    }

    .faq-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        border-left: none;
    }

    .faq-sidebar a {
        padding: 8px 16px;
        background: white;
        border: 1px solid #e2e8e8;
        border-radius: 20px;
    }

    .faq-sidebar a.active {
        border-color: var(--primary);
    }
}

@media (max-width: 768px) {
    .hero-blue {
        padding: 60px 20px;
    }

    .hero-blue h1 {
        font-size: 2.2rem;
    }

    .features-table th,
    .features-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .features-scroll-hint {
        display: block;
    }

    .price-amount {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .navbar {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .legal-container {
        margin: 20px;
        padding: 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .wave-footer .footer-links {
        flex-direction: column;
        gap: 14px;
    }
}
