/* Fredoka Static Fonts - Full Polish language support */
/* Contains precomposed Polish diacritics (ą, ę, ć, ł, ń, ó, ś, ź, ż) */
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/Fredoka-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/Fredoka-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/Fredoka-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/Fredoka-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fredoka';
    src: url('assets/fonts/Fredoka-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --success: #10b981;
    /* PointUp Brand Colors */
    --pointup-mint: #1AC99E;
    --pointup-orange: #FA9D43;
}

/* Brand color utility classes */
.text-mint { color: var(--pointup-mint); }
.text-orange { color: var(--pointup-orange); }

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Lock body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

html {
    overflow-x: hidden;
}

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

/* Lordicon custom elements - ensure proper display on all devices */
lord-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
    gap: 1rem;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-left,
.nav-right {
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
}

.nav-center {
    justify-content: center;
}

.nav-right {
    justify-content: flex-end;
    gap: 1.5rem;
}

.nav-content .logo {
    position: relative;
    left: 0;
    transform: none;
    margin: 0;
}

.nav-content .hamburger {
    margin-left: 0;
}

.nav-content .nav-links {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-img,
.logo-lottie {
    height: 48px;
    width: auto;
}

.logo-lottie {
    display: block;
}

lottie-player.logo-lottie {
    height: 48px;
    width: auto;
}

.logo-fallback {
    height: 48px;
    width: auto;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    backdrop-filter: blur(2px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    /* Slide-in panel from right (all screen sizes) */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 85vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-white);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    padding: 5rem 1.5rem 2rem;
    gap: 0.25rem;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.nav-links.mobile-open {
    transform: translateX(0);
}

.nav-links a {
    opacity: 0;
    transform: translateX(20px);
}

/* Close button for slide menu - hidden since hamburger transforms to X */
.nav-close {
    display: none;
}

/* Version number at bottom of nav panel */
.nav-version {
    margin-top: auto;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Nav link styles for slide panel */
.nav-links a {
    text-decoration: none;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Staggered fade-in animation - starts hidden */
    opacity: 0;
    transform: translateX(20px);
}

/* Staggered animation delays for menu items */
.nav-links.mobile-open a {
    animation: menuItemFadeIn 0.4s ease forwards;
}

/* Use nth-of-type to skip the close button and only count <a> elements */
.nav-links.mobile-open a:nth-of-type(1) { animation-delay: 0.05s; }
.nav-links.mobile-open a:nth-of-type(2) { animation-delay: 0.1s; }
.nav-links.mobile-open a:nth-of-type(3) { animation-delay: 0.15s; }
.nav-links.mobile-open a:nth-of-type(4) { animation-delay: 0.2s; }
.nav-links.mobile-open a:nth-of-type(5) { animation-delay: 0.25s; }
.nav-links.mobile-open a:nth-of-type(6) { animation-delay: 0.3s; }
.nav-links.mobile-open a:nth-of-type(7) { animation-delay: 0.35s; }
.nav-links.mobile-open a:nth-of-type(8) { animation-delay: 0.4s; }

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav link hover styles */
.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.05));
    transform: translateX(4px);
}

.nav-links a:active {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.08));
    transform: translateX(2px);
}

/* Menu section divider */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

/* Mobile-only elements - hidden on desktop, shown in mobile menu */
.nav-mobile-only {
    display: none !important;
}

/* Mobile menu auth link styling */
.nav-mobile-login {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Mobile menu CTA button - prominent green button */
.nav-mobile-cta {
    background: linear-gradient(135deg, var(--pointup-mint), #15a882) !important;
    color: white !important;
    font-weight: 600 !important;
    text-align: center;
    border-radius: 12px !important;
    padding: 1rem 1.25rem !important;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(26, 201, 158, 0.3);
    transition: all 0.3s ease !important;
}

.nav-mobile-cta:hover,
.nav-mobile-cta:focus {
    background: linear-gradient(135deg, #15a882, var(--pointup-mint)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(26, 201, 158, 0.4) !important;
}

/* Show mobile-only elements when menu is open */
.nav-links.mobile-open .nav-mobile-only {
    display: flex !important;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.language-trigger:hover,
.language-trigger:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    transform: translateY(-1px);
    outline: none;
}

.language-trigger i,
.language-trigger lord-icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.language-trigger-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
}

.language-trigger-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
}

.language-trigger-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.language-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.language-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.language-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.language-modal-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--bg-white);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.language-modal.is-visible .language-modal-panel {
    transform: translateY(0);
}

.language-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.language-modal-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.language-modal-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.language-modal-subtitle {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.language-modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.language-modal-close:hover,
.language-modal-close:focus-visible {
    background: var(--bg-gray);
    color: var(--text-primary);
    outline: none;
}

.language-modal-body {
    padding: 1.25rem;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--border);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    background: var(--bg-white);
    font: inherit;
    text-align: left;
    width: 100%;
    color: inherit;
    border-width: 1.5px;
}

.language-option:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.language-option.selected {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.06);
}

.language-option-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.language-option-native {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.language-option-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.language-option-check {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
}

.language-option.selected .language-option-check {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #001f3f 0%, #013a63 50%, #014f86 100%);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    max-width: 100%;
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    text-align: left;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 720px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-subtitle-seo {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.seo-crosslink {
    color: var(--pointup-mint);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.seo-crosslink:hover {
    text-decoration: underline;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.hero-store-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 1.5rem 0;
    max-width: 100%;
}

.store-badge-link {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

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

.store-badge-link img {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Google Play badge has built-in padding, needs larger height to match visually */
#hero-play-store-link img {
    height: 56px;
    max-height: 56px;
}

/* App Store badge */
#hero-app-store-link img {
    height: 40px;
    max-height: 40px;
}

/* Amazon badge - match visual height of other badges */
#hero-amazon-store-link img {
    height: 40px;
    max-height: 40px;
}

/* Web app badge */
#hero-web-app-link img {
    height: 40px;
    max-height: 40px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    min-height: 260px;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
    /* Light protection against casual image downloading */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    /* Prevent overflow in narrow WebView browsers */
    object-fit: contain;
}

.app-preview-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.app-preview {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Live Stats Counter Section */
.stats-counter {
    padding: 3rem 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        min-height: 180px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .stats-counter {
        padding: 2rem 0;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

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

/* Pricing Page Styles */
.pricing-section {
    padding: 4rem 0;
    background: var(--bg-white);
    min-height: 80vh;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.02), var(--bg-white));
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features li.included svg {
    color: var(--success);
}

.pricing-features li.excluded {
    color: var(--text-secondary);
    opacity: 0.6;
}

.pricing-features li.excluded svg {
    color: var(--text-secondary);
}

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

.pricing-cta .btn {
    width: 100%;
    padding: 1rem 2rem;
}

.pricing-cta .btn-primary {
    background: var(--primary);
    color: white;
}

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

.pricing-cta .btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.pricing-cta .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Comparison Table */
.comparison-section {
    padding: 4rem 0;
    background: var(--bg-gray);
}

.comparison-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

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

.comparison-table thead {
    background: var(--primary);
    color: white;
}

.comparison-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th:not(:first-child) {
    text-align: center;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.02);
}

.comparison-table td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table .feature-name {
    font-weight: 500;
}

.comparison-table .check-icon {
    color: var(--success);
    font-size: 1.25rem;
}

.comparison-table .cross-icon {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 1.25rem;
}

.comparison-table .limit-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comparison-table .unlimited-text {
    color: var(--success);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Category rows in comparison table */
.comparison-table .category-row {
    background: var(--bg-gray);
}

.comparison-table .category-row td {
    font-weight: 700;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pricing FAQ */
.pricing-faq {
    padding: 4rem 0;
    background: var(--bg-white);
}

.pricing-faq-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 1rem;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card {
        padding: 2rem;
    }

    .pricing-price {
        font-size: 3rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

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

/* SEO Intro */
.seo-intro {
    padding: 2rem 0;
    background: var(--bg-white);
}

.seo-intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Video Showcase Section */
.video-showcase {
    padding: 5rem 0;
    background: var(--bg-white);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1.5rem;
}

@media (max-width: 768px) {
    .video-showcase {
        padding: 3rem 0;
    }

    .video-wrapper {
        border-radius: 1rem;
    }

    .video-wrapper iframe {
        border-radius: 1rem;
    }
}

@media (max-width: 480px) {
    .video-showcase {
        padding: 2rem 0;
    }

    .video-wrapper {
        border-radius: 0.75rem;
    }

    .video-wrapper iframe {
        border-radius: 0.75rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.2s;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(30, 64, 175, 0.08);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--primary);
    transition: color 0.2s;
}

.feature-card:hover .feature-icon svg {
    color: var(--primary-dark);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Calendar Sync Showcase Section */
.calendar-sync-showcase {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FDF3E6 0%, #E8F5F0 50%, #FDF3E6 100%); /* Soft Cream with hint of Mint */
}

.calendar-sync-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.calendar-sync-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 550px;
}

.calendar-sync-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.calendar-sync-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.calendar-sync-title {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-sync-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-sync-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-sync-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-sync-features li:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.calendar-sync-features li svg {
    width: 24px;
    height: 24px;
    color: var(--pointup-mint);
    flex-shrink: 0;
}

.calendar-sync-features li span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.calendar-sync-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.calendar-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.calendar-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

@media (min-width: 1024px) {
    .calendar-sync-wrapper {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        justify-content: space-between;
    }

    .calendar-sync-image {
        flex: 0 0 auto;
        max-width: 500px;
    }

    .calendar-sync-content {
        flex: 1;
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .calendar-sync-showcase {
        padding: 2.5rem 0;
    }

    .calendar-sync-wrapper {
        gap: 1.5rem;
    }

    .calendar-sync-image {
        max-width: 90%;
    }

    .calendar-sync-image img {
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .calendar-sync-title {
        text-align: center;
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .calendar-sync-subtitle {
        text-align: center;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .calendar-sync-features {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .calendar-sync-features li {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        border-radius: 0.75rem;
    }

    .calendar-sync-features li svg {
        width: 20px;
        height: 20px;
    }

    .calendar-sync-features li span {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .calendar-sync-badges {
        justify-content: center;
        gap: 0.75rem;
    }

    .calendar-badge {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        border-radius: 1.5rem;
    }

    .calendar-badge svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .calendar-sync-showcase {
        padding: 2rem 0;
    }

    .calendar-sync-wrapper {
        gap: 1.25rem;
    }

    .calendar-sync-title {
        font-size: 1.5rem;
    }

    .calendar-sync-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .calendar-sync-features {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .calendar-sync-features li {
        padding: 0.625rem 0.875rem;
    }

    .calendar-sync-features li span {
        font-size: 0.8rem;
    }

    .calendar-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

.testimonials {
    padding: 4rem 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    background: var(--bg-gray);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-title {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.testimonial-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Chores Showcase */
.chores-showcase {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.slideshow-track {
    display: flex;
    direction: ltr;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

.slide-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    background: var(--bg-white);
    padding: 1.25rem 2rem;
    text-align: center;
}

.slide-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.slide-caption h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.slide-caption p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.slideshow-btn {
    position: absolute;
    top: calc(50% - 3.5rem);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slideshow-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.slideshow-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
    left: 1.5rem;
}

.slideshow-next {
    right: 1.5rem;
}

.slideshow-btn i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.slideshow-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
    background: var(--bg-white);
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.slideshow-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 0;
    background: var(--bg-white);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero section - side-by-side layout on desktop */
    .hero-wrapper {
        flex-direction: row;
        gap: 3rem;
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        flex: 1;
        max-width: 600px;
    }

    .hero-image {
        flex: 0 0 auto;
        max-width: 700px;
    }
}

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

.screenshot-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover img {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.screenshot-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

.app-slideshow-container {
    position: relative;
    max-width: 450px;
    margin: 3rem auto 0;
    overflow: visible;
    padding: 0 50px;
}

.app-slideshow-track-wrapper {
    overflow: hidden;
}

.app-slideshow-track {
    display: flex;
    direction: ltr;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    position: relative;
}

.app-slide img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-slide:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.app-slide-text-overlay {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 200px;
    padding: 8px 12px;
    z-index: 10;
    text-align: center;
    transition: transform 0.3s;
    background: rgba(253, 248, 240, 0.95);
    border-radius: 8px;
}

.app-slide:hover .app-slide-text-overlay {
    transform: translateX(-50%) translateY(-8px) scale(1.02);
}

.app-slide-text {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

.app-slide-caption {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.app-slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-slideshow-btn:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.app-slideshow-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.app-slideshow-prev {
    left: 0;
}

.app-slideshow-next {
    right: 0;
}

.app-slideshow-btn i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.app-slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.app-slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.app-slideshow-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.app-slideshow-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;
    }

    .slideshow-btn {
        width: 40px;
        height: 40px;
        top: calc(50% - 3rem);
    }

    .slideshow-prev {
        left: 0.5rem;
    }

    .slideshow-next {
        right: 0.5rem;
    }

    .slide-caption {
        padding: 1rem 1.5rem;
    }

    .slide-caption h3 {
        font-size: 1.15rem;
    }

    .slide-caption p {
        font-size: 0.85rem;
    }

    .slide-icon {
        font-size: 1.75rem;
    }

    .app-slideshow-container {
        max-width: 100%;
    }

    .app-slideshow-btn {
        width: 38px;
        height: 38px;
    }

    .app-slideshow-prev {
        left: 0.25rem;
    }

    .app-slideshow-next {
        right: 0.25rem;
    }

    .app-slide {
        padding: 1rem;
    }

    .app-slide img {
        max-width: 280px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.faq-grid {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

details[open] .faq-question::after {
    content: '-';
}

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

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
    }
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #001f3f 0%, #013a63 50%, #014f86 100%);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 40px;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

/*
 * Badge Sizing Explanation:
 * - Apple badge: tightly cropped, visible button ≈ 95% of image height
 * - Google badge (SVG): has 33% vertical padding (viewBox 155x60, button 135x40)
 *
 * To match VISIBLE button heights:
 * - Apple at 40px → visible button ≈ 38px
 * - Google needs to be ~57px tall for visible button ≈ 38px (40 / 0.67 ≈ 57)
 *
 * Aspect ratios:
 * - Apple: 250:83 = 3.01:1
 * - Google: 155:60 = 2.58:1
 */
#app-store-link img {
    height: 40px;
    max-height: 40px;
    width: auto;
}

#play-store-link img {
    height: 56px;
    max-height: 56px;
    width: auto;
}

#web-app-link img {
    height: 40px;
    max-height: 40px;
    width: auto;
}

#amazon-store-link img {
    height: 40px;
    max-height: 40px;
    width: auto;
}

.download-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-bottom: 0;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-links lord-icon {
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.footer-company {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo-link {
    display: inline-block;
    transition: opacity 0.2s;
}

.company-logo-link:hover {
    opacity: 0.8;
}

.company-logo {
    max-height: 36px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Nav Auth Buttons - Login and Get Started CTAs */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-login {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    border: 2px solid var(--border);
    background: white;
    transition: all 0.2s ease;
}

.nav-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-cta.btn.btn-primary {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
    border-radius: 25px;
    background: linear-gradient(135deg, #001f3f 0%, #013a63 50%, #014f86 100%);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.nav-cta.btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(1, 63, 134, 0.4);
}

/* Hide on mobile - shown in hamburger menu */
@media (max-width: 768px) {
    .nav-auth {
        display: none;
    }
}

/* Hamburger Menu - Visible on all screen sizes */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    z-index: 101;
}

.hamburger:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hamburger active state - transforms to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    .nav-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
        padding: 0.75rem 0;
    }

    .nav-left,
    .nav-right {
        flex: 0 0 auto;
        min-width: 40px;
    }

    .nav-center {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    .nav-left {
        justify-content: flex-start;
    }

    .nav-center {
        justify-content: center;
    }

    .nav-right {
        justify-content: flex-end;
    }

    .language-trigger {
        min-width: auto;
        width: 48px;
        height: 48px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        gap: 0;
    }

    .language-trigger-text {
        display: none;
    }

    /* Mobile language icon - scale up for touch targets */
    .language-trigger .language-icon {
        transform: scale(1.45);
    }

    /* Language modal mobile styles */
    .language-modal {
        padding: 0.75rem;
    }

    .language-modal-panel {
        max-width: calc(100% - 1.5rem);
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 1.25rem;
        margin: 0 auto;
    }

    .language-modal-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .language-modal-title-group {
        gap: 0.5rem;
    }

    .language-modal-icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .language-modal-title-group h3 {
        font-size: 1.1rem;
    }

    .language-modal-subtitle {
        font-size: 0.8rem;
    }

    .language-modal-close {
        font-size: 1.25rem;
        padding: 0.25rem 0.375rem;
    }

    .language-modal-body {
        padding: 0.75rem;
        max-height: 70vh;
        max-height: 70dvh;
    }

    .language-list {
        gap: 0.5rem;
    }

    .language-option {
        padding: 0.75rem 0.875rem;
        border-radius: 0.75rem;
    }

    .logo {
        flex: 1;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .logo-img,
    .logo-lottie,
    .logo-fallback,
    lottie-player.logo-lottie {
        height: 48px !important;
    }

    .hero .container {
        align-items: center;
        text-align: center;
    }

    .hero-wrapper {
        align-items: center;
        text-align: center;
    }

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

    .hero-image {
        max-width: 500px;
    }

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

    .hero-badges {
        justify-content: center;
    }

    .hero-store-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section-title {
        font-size: 2rem;
    }

    /* Footer mobile styles */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 8px;
    }

    .nav-content {
        padding: 0.5rem 0;
    }

    /* Small screen language icon - slightly smaller scale */
    .language-trigger .language-icon {
        transform: scale(1.3);
    }

    /* Language modal small screen adjustments */
    .language-modal {
        padding: 0.5rem;
    }

    .language-modal-panel {
        max-width: calc(100% - 1rem);
        border-radius: 1rem;
    }

    .language-modal-header {
        padding: 0.875rem;
    }

    .language-modal-icon {
        width: 20px;
        height: 20px;
    }

    .language-modal-title-group h3 {
        font-size: 1rem;
    }

    .language-modal-subtitle {
        font-size: 0.75rem;
    }

    .language-modal-body {
        padding: 0.5rem;
    }

    .language-option {
        padding: 0.625rem 0.75rem;
    }

    .language-option-native {
        font-size: 0.925rem;
    }

    .language-option-name {
        font-size: 0.8rem;
    }

    .logo-img,
    .logo-lottie,
    .logo-fallback,
    lottie-player.logo-lottie {
        height: 48px !important;
    }

    /* Footer smaller screen adjustments */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section a {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .social-links lord-icon {
        width: 36px !important;
        height: 36px !important;
    }

    /* Slideshow adjustments for small screens */
    .slideshow-btn {
        width: 36px;
        height: 36px;
        top: calc(50% - 2.5rem);
    }

    .slideshow-prev {
        left: 0.25rem;
    }

    .slideshow-next {
        right: 0.25rem;
    }

    .slide-caption {
        padding: 0.75rem 1rem;
    }

    .slide-caption h3 {
        font-size: 1rem;
    }

    .slide-caption p {
        font-size: 0.8rem;
    }

    .slide-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .slideshow-dots {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }

    .slideshow-dot.active {
        width: 24px;
    }
}

/* Changelog Page Styles */
.changelog-section {
    padding: 4rem 0;
    background: var(--bg-white);
    min-height: 80vh;
}

.changelog-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.changelog-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.changelog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.changelog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.changelog-search {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

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

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.changelog-item {
    background: var(--bg-gray);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    max-width: 100%;
}

.changelog-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.changelog-item-recent {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.02), var(--bg-gray));
}

.changelog-item-recent:first-child {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.latest-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
    letter-spacing: 0.5px;
}

.changelog-version-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-major {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.type-minor {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.type-patch {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.changelog-title-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.changelog-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.changelog-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.changelog-features li {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
    font-weight: 500;
}

.changelog-full {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-top: 1.5rem;
}

.changelog-full h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.changelog-full h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}


.changelog-full h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}

.changelog-full h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.changelog-full ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.changelog-full ul li {
    margin: 1rem 0;
    color: var(--text-secondary);
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    line-height: 1.7;
}

.changelog-full ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.changelog-full p {
    margin: 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Category Styles */
.changelog-category {
    margin: 2.5rem 0;
    padding: 2rem;
    border-radius: 0.75rem;
    background: var(--bg-white);
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.changelog-category:first-child {
    margin-top: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.25rem;
}

.category-title {
    flex: 1;
}

.changelog-section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.changelog-section-heading:first-child {
    margin-top: 0;
}

/* Category-specific colors */
.category-new {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.category-fixes {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.category-improvements {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.category-changed {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.category-deprecated {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.category-removed {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.changelog-category ul {
    margin: 0.5rem 0;
}

.changelog-category ul li {
    margin: 0.5rem 0;
}

.changelog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.changelog-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.nav-active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Responsive Changelog */
@media (max-width: 768px) {
    .changelog-title {
        font-size: 2rem;
    }

    .changelog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .changelog-search {
        max-width: 100%;
    }

    .changelog-version {
        font-size: 1.5rem;
    }

    .changelog-item {
        padding: 1.5rem;
    }

    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .changelog-category {
        padding: 1rem;
    }

    .category-header {
        font-size: 1rem;
    }

    .changelog-full h3 {
        font-size: 1.25rem;
    }

    .changelog-full h4 {
        font-size: 1.125rem;
    }
}

/* ===== Smart App Banner (Android) ===== */
.smart-app-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.smart-app-banner.sab-visible {
    transform: translateY(0);
}

.smart-app-banner.sab-hiding {
    transform: translateY(-100%);
}

.sab-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.sab-close:hover {
    color: white;
}

.sab-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sab-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.sab-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.sab-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sab-rating {
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 0.125rem;
}

.sab-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sab-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-family: inherit;
}

.sab-btn:hover {
    transform: scale(1.05);
}

.sab-btn-open {
    background: white;
    color: #1e40af;
}

.sab-btn-get {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.sab-btn-get:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Adjust body padding when banner is visible */
body:has(.smart-app-banner.sab-visible) {
    padding-top: 72px;
}

/* ===== Website Loading Skeleton ===== */
/* Light theme matching website layout */
.app-transition-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeToWhite 0.3s ease-out;
    overflow: hidden;
}

.app-transition-loader .skeleton-content {
    animation: contentFadeIn 0.2s ease-out 0.15s both;
}

@keyframes fadeToWhite {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.skeleton-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* Navigation bar skeleton */
.skeleton-header {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 40px;
}

.skeleton-header::before {
    content: '';
    width: 120px;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.skeleton-header::after {
    content: '';
    width: 300px;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.1s;
}

/* Hero section skeleton */
.skeleton-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.skeleton-nav::before {
    content: '';
    width: 70%;
    max-width: 500px;
    height: 48px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.15s;
}

.skeleton-nav::after {
    content: '';
    width: 50%;
    max-width: 350px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

/* Feature cards skeleton */
.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.skeleton-card {
    height: 180px;
    background: linear-gradient(90deg, #f8f8f8 25%, #f0f0f0 50%, #f8f8f8 75%);
    background-size: 200% 100%;
    border-radius: 16px;
    animation: shimmer 1.5s infinite;
    border: 1px solid #f0f0f0;
}

.skeleton-card:nth-child(1) { animation-delay: 0.25s; }
.skeleton-card:nth-child(2) { animation-delay: 0.3s; }
.skeleton-card:nth-child(3) { animation-delay: 0.35s; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }

}

/* Mobile adjustments */
@media (max-width: 768px) {
    .skeleton-header::after {
        display: none;
    }

    .skeleton-nav::before {
        width: 90%;
        height: 36px;
    }

    .skeleton-nav::after {
        width: 70%;
        height: 20px;
    }

    .skeleton-cards {
        grid-template-columns: 1fr;
    }

    .skeleton-card:nth-child(3) {
        display: none;
    }
}

/* ==========================================================================
   Instagram & In-App Browser Compatibility Fixes
   ==========================================================================
   Fixes for Instagram, Facebook, Twitter, TikTok, and other in-app browsers
   that have issues with viewport height units, rem units, and CSS features.
   ========================================================================== */

/* 1. Viewport Height Fixes using CSS Custom Properties
   The JavaScript sets --vh to actual viewport height / 100
   Use calc(var(--vh, 1vh) * 100) instead of 100vh for full height
   ========================================================================== */

/* Body height fallbacks - most important fix */
body {
    min-height: 100%;
    min-height: -webkit-fill-available;
}

html {
    height: -webkit-fill-available;
}

/* Hero section with safe viewport height */
.in-app-browser .hero {
    min-height: 600px; /* px fallback for broken vh */
    min-height: calc(var(--80vh, 80vh));
}

/* Mobile menu with safe viewport height */
.in-app-browser .nav-links.active {
    height: calc(var(--full-height, 100vh));
    height: var(--app-height, 100vh);
}

/* Language modal with safe viewport height */
.in-app-browser .language-modal-content {
    max-height: calc(var(--60vh, 60vh));
}

/* 2. Backdrop Filter Fallbacks
   Instagram's WebView may not support backdrop-filter
   ========================================================================== */

.in-app-browser .nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.in-app-browser .nav-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.6);
}

/* 3. Fixed Position Fallbacks
   In-app browsers sometimes struggle with position: fixed
   ========================================================================== */

/* In-app browser banner fix — Android WebView's font boosting algorithm
   inflates text in full-viewport-width elements with dynamic height,
   causing the banner to render oversized. In-app browsers (Instagram,
   Facebook, TikTok, etc.) also handle safe-area insets via their own
   chrome, so env(safe-area-inset-top) padding is unnecessary.
   See: Chromium font boosting, WCAG F69 (no overflow:hidden). */
.in-app-browser .android-store-banner,
.in-app-browser .smart-app-banner {
    padding-top: 8px;
    /* Disable Android WebView font boosting — 'none' required on Android,
       '100%' is a no-op. max-height trick is a secondary defence as
       Chromium skips boosting on elements with a large explicit max-height. */
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    max-height: 999999px;
}

/* Override the JS-injected body padding to match the actual banner height
   (8px top + 48px icon + 8px bottom = 64px) when font boosting is disabled. */
.in-app-browser body.android-banner-visible {
    padding-top: 64px !important;
}

/* iOS smart app banner uses rem units which can inflate in in-app browsers
   where root font-size differs from the expected 16px. Convert to px. */
.in-app-browser .smart-app-banner {
    gap: 12px;
    padding: 12px 16px;
}

.in-app-browser .sab-close {
    top: 8px;
    right: 8px;
    font-size: 24px;
    padding: 4px;
}

.in-app-browser .sab-title {
    font-size: 16px;
    margin-bottom: 2px;
}

.in-app-browser .sab-subtitle {
    font-size: 13px;
}

.in-app-browser .sab-rating {
    font-size: 11px;
    margin-top: 2px;
}

.in-app-browser .sab-actions {
    gap: 8px;
}

.in-app-browser .sab-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Sticky nav should work better than fixed in WebViews */
.in-app-browser .nav {
    position: sticky;
    position: -webkit-sticky;
}

/* 4. rem to px Fallbacks for Critical Text
   Instagram browser has documented issues with rem units
   ========================================================================== */

.in-app-browser .hero-title {
    font-size: 42px; /* fallback from 3.5rem */
    font-size: clamp(32px, 8vw, 56px);
}

.in-app-browser .hero-subtitle {
    font-size: 18px; /* fallback from 1.25rem */
    font-size: clamp(16px, 4vw, 20px);
}

.in-app-browser .btn {
    font-size: 16px;
    padding: 14px 32px;
}

.in-app-browser .section-title {
    font-size: 32px; /* fallback from 2rem */
}

.in-app-browser .section-subtitle {
    font-size: 18px; /* fallback from 1.125rem */
}

/* 5. Flexbox and Grid Fallbacks
   Some WebViews have quirks with flex gap
   ========================================================================== */

.in-app-browser .hero-cta {
    gap: 16px;
    margin: -8px; /* negative margin fallback for gap */
}

.in-app-browser .hero-cta > * {
    margin: 8px; /* positive margin on children as gap fallback */
}

.in-app-browser .hero-badges {
    gap: 12px;
}

/* 6. Image Rendering Fixes
   Ensure images display correctly in WebViews
   ========================================================================== */

.in-app-browser .hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.in-app-browser img {
    -webkit-transform: translateZ(0); /* Force GPU acceleration */
    transform: translateZ(0);
}

/* 7. Scroll Behavior Fixes
   In-app browsers can have janky scrolling
   ========================================================================== */

.in-app-browser {
    -webkit-overflow-scrolling: touch;
}

.in-app-browser body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 8. Animation Reduction
   Reduce animations that may cause issues in WebViews
   ========================================================================== */

.in-app-browser .nav {
    transition: none;
}

.in-app-browser .btn:hover {
    transform: none; /* Disable hover transforms that may glitch */
}

/* 9. Safe Area Insets
   Handle notched devices properly in WebViews
   ========================================================================== */

@supports (padding: env(safe-area-inset-top)) {
    .in-app-browser body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .in-app-browser .nav {
        padding-top: env(safe-area-inset-top);
    }
}

/* 10. Instagram-Specific Fixes
    Additional fixes specifically for Instagram's browser
    ========================================================================== */

.instagram-browser .hero {
    /* Instagram has particularly bad vh support */
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

.instagram-browser .nav-links.active {
    /* Use fixed height as ultimate fallback */
    min-height: 100%;
}

/* Ensure text is legible with px-based line-height */
.instagram-browser body {
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 11. Facebook WebView Fixes
    Facebook's in-app browser has similar issues
    ========================================================================== */

.facebook-browser .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 12. Mobile-specific in-app browser fixes
    ========================================================================== */

@media (max-width: 768px) {
    .in-app-browser .hero {
        min-height: auto;
        padding: 48px 0;
    }

    .in-app-browser .hero-title {
        font-size: 28px;
        font-size: clamp(24px, 7vw, 36px);
    }

    .in-app-browser .hero-subtitle {
        font-size: 16px;
    }

    .in-app-browser .container {
        padding: 0 16px;
    }

    /* Ensure touch targets are large enough */
    .in-app-browser .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .in-app-browser a,
    .in-app-browser button {
        min-height: 44px;
    }
}

/* 13. Telegram WebView Fixes
    Telegram's in-app browser has a narrower viewport due to its own UI chrome
    and can cause horizontal overflow with non-wrapping flex layouts.
    ========================================================================== */

.telegram-browser .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
}

.telegram-browser .hero-store-badges {
    flex-wrap: wrap;
}

.telegram-browser .hero-wrapper,
.telegram-browser .hero-content,
.telegram-browser .hero-image,
.telegram-browser .container {
    max-width: 100%;
}

@media (max-width: 768px) {
    .telegram-browser .hero-store-badges {
        justify-content: center;
    }

    .telegram-browser .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .telegram-browser .btn {
        width: 100%;
        text-align: center;
    }
}

