/* Global Variables */
:root {
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;

    /* Vibrant Accents */
    --accent-android: #10b981;
    --accent-android-hover: #059669;
    --accent-ios: #3b82f6;
    --accent-ios-hover: #2563eb;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-ios);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-ios-hover);
}

/* Layout */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start;
    /* Removed center to fix cutoff at top */
    justify-content: center;
    gap: 64px;
    padding: 60px 24px 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.hero-text {
    order: 1;
}

.download-section {
    order: 2;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 15px;
}

@media (min-width: 1025px) {
    html[lang="en"] .hero h1 {
        min-width: max-content;
    }
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-android), var(--accent-ios));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    color: white !important;
}

.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.play-store-link,
.app-store-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.play-store-link:hover,
.app-store-link:hover {
    transform: translateY(-2px);
}

.play-store-badge,
.app-store-badge {
    height: auto;
    width: 100%;
    max-width: 220px;
    display: block;
}

.btn-ios {
    background-color: var(--accent-ios);
}

.btn-ios:hover {
    background-color: var(--accent-ios-hover);
    transform: translateY(-2px);
}

/* App Mockup */
.hero-visual {
    flex: 1.5;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.mockup-img {
    max-width: 600px;
    width: 100%;
    margin-bottom: -200px;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.mockup-img:hover {
    transform: scale(1.02);
}

/* Features */
.features {
    padding: 240px 24px 80px 24px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 320px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: center;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--text-main);
}

.faq-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
    align-items: start;
}

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

.faq-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
}

.faq-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-ios);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-category-icon svg {
    width: 18px;
    height: 18px;
}

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

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-item summary {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-ios);
    transition: transform 0.3s ease;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.6;
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages Styling */
header {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-container p.date {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-container h2,
.legal-container h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #334155;
}

.legal-container p {
    margin-bottom: 16px;
    color: #475569;
}

.legal-container ul,
.legal-container ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #475569;
}

.legal-container li {
    margin-bottom: 8px;
}

/* Account Deletion Specific Components */
.deletion-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.deletion-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.deletion-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--accent-ios);
    flex-shrink: 0;
}

.card-title-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.deletion-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.deletion-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.deletion-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-ios);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.deletion-steps {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 16px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deletion-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-ios);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-danger {
    background-color: #ef4444;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.deletion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
}

.info-callout {
    background: rgba(59, 130, 246, 0.04);
    border-left: 3px solid var(--accent-ios);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 16px 0;
    color: var(--text-muted);
}

.info-callout p {
    margin: 0;
    font-size: 0.92rem;
    color: #334155;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.data-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
}

.data-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-ios);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.data-card-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.data-card h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 6px;
    font-weight: 600;
}

.data-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}


/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer .links,
footer .socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 24px;
}

footer .socials a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

footer .socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px 20px 20px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #0f172a;
}

/* Feedback Floating Trigger & Modal (Minimalist & Professional) */
.feedback-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-family);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    user-select: none;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
}

.feedback-trigger:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: var(--text-main);
}

.feedback-trigger:active {
    transform: translateY(0);
}

.feedback-trigger svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.feedback-trigger:hover svg {
    color: var(--text-main);
}

.feedback-trigger-text {
    line-height: 1;
    white-space: nowrap;
}

/* Feedback Modal Overlay & Card */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 100vw;
    box-sizing: border-box;
}

.feedback-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.feedback-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--card-border);
    padding: 24px;
    position: relative;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.2s ease;
}

.feedback-modal-overlay.active .feedback-modal-card {
    transform: scale(1) translateY(0);
}

.feedback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.feedback-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.feedback-modal-header {
    margin-bottom: 16px;
}

.feedback-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-ios);
    margin-bottom: 4px;
}

.feedback-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.feedback-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

.feedback-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.feedback-label-small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.feedback-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.feedback-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: var(--font-family);
}

.feedback-chip svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.feedback-chip:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.feedback-chip.active {
    background: #eff6ff;
    border-color: var(--accent-ios);
    color: var(--accent-ios);
    font-weight: 600;
}

.feedback-field {
    margin-bottom: 12px;
}

.feedback-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--font-family);
    font-size: 0.88rem;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    min-height: 95px;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--accent-ios);
}

.feedback-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--accent-ios);
}

.feedback-alert {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.feedback-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.feedback-alert-info {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #075985;
}

.feedback-alert-success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.feedback-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--accent-ios);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
    font-family: var(--font-family);
}

.feedback-btn-primary svg {
    stroke: currentColor;
}

.feedback-btn-primary:hover {
    background: var(--accent-ios-hover);
    transform: translateY(-1px);
}

.feedback-btn-primary:active {
    transform: translateY(0);
}

.feedback-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: #ffffff;
    color: #475569;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-family);
    white-space: nowrap;
}

.feedback-btn-secondary svg {
    stroke: currentColor;
}

.feedback-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.feedback-btn-secondary.copied {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.feedback-footer-note {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    padding-top: 2px;
}

.feedback-footer-note a {
    color: var(--accent-ios);
    font-weight: 500;
}

@media (max-width: 640px) {
    .feedback-trigger {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        font-size: 0.82rem;
        max-width: calc(100vw - 32px);
    }

    .feedback-modal-card {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .feedback-actions {
        flex-direction: column;
    }

    .feedback-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .download-section {
        order: 2;
        margin-top: 0;
        margin-bottom: 32px;
        width: 100%;
    }

    .qr-code {
        display: none;
        /* Hide QR codes on mobile since users can't scan their own screen */
    }

    .logo {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-content {
        margin-bottom: 0;
    }

    .download-card {
        flex-direction: column;
    }

    .mockup-img {
        max-width: 100%;
        margin-bottom: -50px;
    }

    .features {
        padding-top: 100px;
    }

    .gallery {
        overflow: hidden;
    }

    .gallery-container {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px 24px 34px 24px;
        margin: 0 -24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-container::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 60%;
        max-width: 300px;
        scroll-snap-align: center;
    }

    footer .socials {
        flex-direction: column;
        gap: 16px;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ==========================================================
   Shared helpers
   ========================================================== */
[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--accent-ios);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ==========================================================
   Homepage: Road Trip & Family Scavenger Hunt Section
   ========================================================== */
.roadtrip-section {
    padding: 80px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.roadtrip-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.roadtrip-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.roadtrip-header h2 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 16px;
}

.roadtrip-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.roadtrip-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.roadtrip-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roadtrip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.roadtrip-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-main);
}

.roadtrip-card-icon svg {
    width: 32px;
    height: 32px;
}

.roadtrip-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.roadtrip-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.roadtrip-mission-banner {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 36px 40px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.mission-quote-mark {
    font-size: 3.5rem;
    line-height: 0.9;
    font-family: Georgia, serif;
    color: var(--text-muted);
    opacity: 0.3;
    flex-shrink: 0;
    user-select: none;
}

.mission-content {
    flex: 1;
}

.mission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-ios);
    margin-bottom: 8px;
}

.mission-badge svg {
    width: 14px;
    height: 14px;
}

.mission-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.mission-content p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ==========================================================
   Homepage: worldwide coverage teaser
   ========================================================== */
.coverage {
    padding: 80px 24px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.coverage-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.coverage h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 16px;
}

.coverage p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.coverage-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.coverage-btn:hover svg {
    transform: translateX(3px);
}

.coverage-flags {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.coverage-flags img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   Supported Countries page
   ========================================================== */
.countries-header .logo {
    margin-bottom: 0;
}

.countries-hero {
    padding: 64px 24px 40px;
    text-align: center;
}

.countries-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.countries-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 16px;
}

.countries-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.countries-lead strong {
    color: var(--text-main);
}

.countries-updated {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.country-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 16px;
    backdrop-filter: blur(10px);
}

.country-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.country-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.country-legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.country-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sticky toolbar */
.countries-toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.countries-toolbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.continent-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.continent-nav::-webkit-scrollbar {
    display: none;
}

.continent-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--card-border);
    transition: all 0.15s ease;
}

.continent-nav a span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.continent-nav a:hover {
    color: var(--text-main);
    border-color: #cbd5e1;
}

.continent-nav a.active {
    background: var(--text-main);
    border-color: var(--text-main);
    color: #ffffff;
}

.continent-nav a.active span {
    color: rgba(255, 255, 255, 0.7);
}

.country-search {
    position: relative;
    flex: 0 0 280px;
}

.country-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.country-search input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--text-main);
    transition: border-color 0.15s ease;
}

.country-search input:focus {
    outline: none;
    border-color: var(--accent-ios);
}

/* Continent sections */
.countries-list {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 24px 40px;
}

.search-status {
    min-height: 1.5em;
    margin-top: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-ios);
}

.continent-section {
    padding-top: 32px;
    scroll-margin-top: 72px;
}

.continent-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.continent-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.continent-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-ios);
    font-size: 0.82rem;
    font-weight: 600;
}

.continent-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.country-group + .country-group {
    margin-top: 28px;
}

.country-group-title {
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.country-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.country-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    scroll-margin-top: 96px;
    transition: border-color 0.15s ease;
}

.country-card:hover {
    border-color: #cbd5e1;
}

.country-card:target {
    border-color: var(--accent-ios);
    background: rgba(59, 130, 246, 0.03);
}

.country-card.is-territory {
    border-color: rgba(16, 185, 129, 0.35);
}

.country-flag {
    flex-shrink: 0;
    width: 36px;
    height: 27px;
    margin-top: 2px;
    object-fit: cover;
    border-radius: 4px;
    background: #e2e8f0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.country-flag-fallback {
    display: block;
    background: #e2e8f0;
}

.country-info {
    flex: 1;
    min-width: 0;
}

.country-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
}

.country-local {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    color: #94a3b8;
}

.country-desc {
    margin-top: 4px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.country-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-regional {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--accent-ios);
}

.badge-national {
    background: rgba(100, 116, 139, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.16);
    color: #64748b;
}

.badge-territory {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-android-hover);
}

.countries-empty {
    padding: 64px 24px;
    text-align: center;
    color: var(--text-muted);
}

.countries-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: var(--text-main);
}

/* Bottom call to action (clean light card) */
.countries-cta {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto 80px;
    padding: 0 24px;
}

.countries-cta-card {
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.countries-cta-card h2 {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
}

.countries-cta-card > p {
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text-muted);
}

.cta-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-badges a {
    transition: transform 0.2s ease;
}

.cta-badges a:hover {
    transform: translateY(-2px);
}

.cta-badges img {
    display: block;
    height: 52px;
    width: auto;
}

.countries-cta-card .missing-country {
    margin: 24px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.missing-country a {
    font-weight: 600;
    color: var(--accent-ios);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.missing-country a:hover {
    color: var(--accent-ios-hover);
}

@media (max-width: 1024px) {
    .coverage-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 32px 24px;
        gap: 28px;
    }

    .roadtrip-card-grid {
        grid-template-columns: 1fr;
    }

    .roadtrip-mission-banner {
        padding: 28px 24px;
        flex-direction: column;
        gap: 16px;
    }

    .mission-quote-mark {
        display: none;
    }
}

@media (max-width: 768px) {
    .countries-header {
        padding: 16px 20px;
    }

    .countries-header .logo {
        font-size: 1rem;
    }

    .countries-hero {
        padding: 48px 20px 32px;
    }

    .country-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .country-legend {
        flex-direction: column;
        align-items: center;
    }

    .countries-toolbar-inner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        padding: 10px 16px;
    }

    .country-search {
        flex: none;
    }

    .continent-section {
        scroll-margin-top: 120px;
    }

    .country-card {
        scroll-margin-top: 140px;
    }

    .countries-list {
        padding: 0 16px 32px;
    }

    .continent-header h2 {
        font-size: 1.4rem;
    }

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

    .countries-cta-card {
        padding: 36px 20px;
    }

    .cta-badges img {
        height: 44px;
    }

    .coverage {
        padding: 48px 16px 0;
    }

    .roadtrip-section {
        padding: 48px 16px 0;
    }

    .roadtrip-header h2 {
        font-size: 1.65rem;
    }

    .coverage-flags {
        gap: 8px;
    }
}