@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

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

:root {
    --primary: #0D9488;
    --primary-dark: #0A7A70;
    --primary-light: #E6F5F4;
    --text-dark: #1A1A1A;
    --text-gray: #4A5568;
    --text-light: #718096;
    --white: #FFFFFF;
    --bg-light: #F8FAFA;
    --border: #E2E8F0;
    --green: #22C55E;
    --amber: #F59E0B;
    --red: #EF4444;
    --crisis: #7C3AED;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Navigation */
.navbar {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo img {
    height: 104px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
}
.nav-item:not(:has(.dropdown)) > a::after {
    display: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 200;
}

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

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.9375rem;
}

.dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-section {
    padding: 8px 20px 4px;
}

.dropdown-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Nested dropdown (inline accordion) */
.dropdown-item-nested {
    position: relative;
}

.dropdown-item-nested .has-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-gray);
    font-size: 0.9375rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item-nested .has-submenu:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.submenu-arrow {
    font-style: normal;
    font-size: 0.8rem;
    opacity: 0.45;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    display: inline-block;
}

.dropdown-item-nested:hover .submenu-arrow {
    transform: rotate(90deg);
    opacity: 0.9;
}

.dropdown-item-nested .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0 20px 4px 28px;
    border-left: 2px solid var(--border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-bottom 0.25s ease;
}

.dropdown-item-nested:hover .submenu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    margin-bottom: 8px;
}

.dropdown-item-nested .submenu a {
    display: block;
    padding: 7px 14px;
    color: var(--text-gray);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.dropdown-item-nested .submenu a:hover {
    color: var(--primary);
    background: transparent;
}

/* Mega Menu */
.mega-dropdown {
    min-width: 520px;
    padding: 20px 0;
}

.mega-dropdown .dropdown-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.mega-dropdown .dropdown-column {
    padding: 4px 0;
}

.mega-dropdown .dropdown-column + .dropdown-column {
    border-left: 1px solid var(--border);
}

.mega-dropdown .dropdown-column h4 {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 9px 20px 7px;
    margin: 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mega-dropdown .dropdown-column h4:first-child {
    border-top: none;
}

.mega-dropdown .dropdown-column a {
    padding: 9px 20px;
    font-size: 0.9375rem;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right .sign-in {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-right .sign-in:hover {
    text-decoration: underline;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: var(--primary);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    position: relative;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 72px;
    align-items: center;
}

.hero-video {
    flex-shrink: 0;
    position: relative;
}

.hero-video video {
    display: block;
    height: 580px;
    width: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.hero-floating-badge {
    position: absolute;
    width: 177px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
    animation: floatBadge 3.5s ease-in-out infinite;
    pointer-events: none;
}

.hero-floating-badge.badge-bp     { bottom: 100px; right: -60px; animation-delay: 0s; }
.hero-floating-badge.badge-hr     { top: 60px;    right: -60px; animation-delay: 0.9s; }
.hero-floating-badge.badge-stress { top: 120px;   left: -60px;  animation-delay: 1.8s; }
.hero-floating-badge.badge-chol   { bottom: 60px; left: -60px;  animation-delay: 2.7s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.hero-content {
    color: var(--white);
    text-align: left;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    line-height: 1.5;
}

.hero-body {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    margin: 0;
    max-width: 520px;
}

.hero-actions {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: white;
    color: var(--primary);
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: opacity 0.2s;
    display: inline-block;
}

.hero-btn-primary:hover {
    opacity: 0.92;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-video {
        display: flex;
        justify-content: center;
    }
    .hero-video video {
        height: 300px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-body {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero .highlight {
    color: #FCD34D;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: none;
}

/* Section Styles */
.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.highlight-script {
    color: var(--primary);
    font-style: italic;
}

.section-intro {
    color: var(--text-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 48px;
}

/* Principles Section */
.principles {
    padding: 80px 0;
    background: var(--white);
}

.principles-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: center;
}

.principles-content img {
    border-radius: 24px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.14));
}

.principles-image {
    background: linear-gradient(135deg, var(--primary-light) 0%, #b2e4e0 100%);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 6rem;
    flex-shrink: 0;
}

.principles-text {
    padding: 20px 0;
}

.principles-list {
    list-style: none;
    margin: 32px 0;
}

.principles-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.principles-list li:last-child {
    border-bottom: none;
}

.principles-list strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.principles-list p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Whole Person Section */
.whole-person {
    padding: 100px 0;
    background: var(--bg-light);
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.care-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.care-card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.care-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.care-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.features-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* Journey Preview Section */
.journey-preview {
    padding: 100px 0;
    background: var(--white);
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.step {
    padding: 32px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

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

/* Risk Tiers Section */
.risk-tiers {
    padding: 100px 0;
    background: var(--bg-light);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tier-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tier-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.tier-green .tier-indicator {
    background: var(--green);
}

.tier-amber .tier-indicator {
    background: var(--amber);
}

.tier-red .tier-indicator {
    background: var(--red);
}

.tier-crisis .tier-indicator {
    background: var(--crisis);
}

.tier-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 8px;
}

.tier-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-grid-simple {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-brand p {
    color: #A0AEC0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.social-links a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #A0AEC0;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #A0AEC0;
    text-decoration: none;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .care-grid,
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-grid,
    .footer-grid-simple {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .mega-dropdown {
        min-width: 400px;
    }
}

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

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

    .principles-content {
        grid-template-columns: 1fr;
    }

    .principles-image {
        height: 250px;
    }

    .care-grid,
    .tiers-grid,
    .journey-steps {
        grid-template-columns: 1fr;
    }

    .features-highlight {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Page Header for Inner Pages */
.page-header {
    background: var(--primary);
    padding: 80px 24px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections for Inner Pages */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.content-section h2 {
    margin-bottom: 32px;
}

.content-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.content-section p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.content-section ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.content-section li {
    color: var(--text-gray);
    margin-bottom: 8px;
}

/* Screen Cards */
.screen-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.screen-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.screen-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 20px 0 8px;
}

/* Events Log */
.events-log {
    background: #F1F5F9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.events-log h4 {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.events-log code {
    display: block;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.8125rem;
    color: var(--primary-dark);
    line-height: 1.8;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

/* Flow Card */
.flow-card {
    background: var(--white);
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
}

.flow-card h4 {
    margin: 0 0 8px;
    color: var(--text-dark);
}

.flow-card p {
    margin: 0;
    color: var(--text-gray);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.tab-nav a {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
}

.tab-nav a:hover,
.tab-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Consent Toggle Display */
.consent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.consent-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.consent-list li:last-child {
    border-bottom: none;
}

.consent-toggle {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
}

.consent-toggle.required {
    background: var(--primary);
}

.consent-toggle::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.consent-toggle.required::after {
    left: auto;
    right: 2px;
}

.consent-label {
    font-size: 0.9375rem;
}

.consent-label span {
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.goal-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.goal-card:hover {
    border-color: var(--primary);
}

.goal-card h4 {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Questions List */
.questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions-list li {
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
    color: var(--text-gray);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-green {
    background: #DCFCE7;
    color: #166534;
}

.status-amber {
    background: #FEF3C7;
    color: #92400E;
}

.status-red {
    background: #FEE2E2;
    color: #991B1B;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light) !important;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-tab {
    padding: 10px 20px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.faq-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.faq-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:focus {
    outline: none;
}

.faq-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.faq-item[open] .faq-number {
    background: var(--primary);
    color: var(--white);
}

.faq-question {
    flex: 1;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon span {
    position: absolute;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.faq-icon span:first-child {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon span:last-child {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item summary:hover {
    background: rgba(13, 148, 136, 0.02);
}

.faq-answer {
    padding: 0 24px 24px;
    padding-left: 72px;
    animation: faqSlideIn 0.3s ease;
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.75;
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 8px 0 12px;
    padding-left: 20px;
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.faq-answer li {
    margin-bottom: 6px;
    color: var(--text-gray);
}

.faq-answer strong {
    color: var(--text-dark);
}

.faq-alert {
    background: #FEF2F2;
    border-left: 3px solid #EF4444;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #991B1B;
    font-weight: 500;
    line-height: 1.6;
}

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

    .faq-tabs {
        gap: 6px;
    }

    .faq-tab {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .faq-answer {
        padding-left: 24px;
    }
}

/* Language Switcher Dropdown */
.lang-switcher {
    position: relative;
    margin-right: 4px;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    padding: 5px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    font-family: inherit;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.lang-dropdown-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.lang-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform 0.2s;
    line-height: 1;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 130px;
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown-menu {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--primary-light);
}

.lang-option .lang-code {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 22px;
}

.lang-option.active .lang-code {
    color: var(--primary);
}

.lang-option .lang-name {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Indonesian nav — tighten spacing so longer text doesn't crowd */
html[lang="id"] .nav-links {
    gap: 20px;
}

html[lang="id"] .nav-links a,
html[lang="id"] .nav-item > a {
    font-size: 0.875rem;
}

html[lang="id"] .nav-right {
    gap: 10px;
}

html[lang="id"] .nav-right .btn-primary {
    padding: 10px 18px;
    font-size: 0.875rem;
}

html[lang="id"] .nav-right .sign-in {
    font-size: 0.875rem;
}
