/* ============================================
   Ferra - Landing Page Styles
   Enhanced with Dixa-inspired improvements
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
    /* Colors */
    --bg: #fffdf8;
    --pill-bg: #ffffff;
    --pill-border: #e7e7e7;
    --text: #121726;
    --text-secondary: rgba(18, 23, 38, 0.6);
    --color-accent: #d9a540;
    --color-accent-dark: #8b5e3c;
    --color-accent-light: rgba(217, 165, 64, 0.08);
    
    /* Shadows */
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius: 28px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    /* Spacing */
    --gap: 16px;
    --gap-lg: 32px;
    --gap-xl: 56px;
}

/* ============================================
   Base Styles
   ============================================ */

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

/* Lucide Icon Styles */
.feature-icon i[data-lucide] {
    width: 48px;
    height: 48px;
    color: var(--color-accent-dark);
    stroke-width: 1.5;
}

.highlight-pill i[data-lucide] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    stroke-width: 2;
}

.benefit-icon i[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.benefit-item i[data-lucide] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
    stroke-width: 2;
}

.journey-card h3 i[data-lucide] {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    stroke-width: 2;
    color: var(--color-accent-dark);
}

.success-message i[data-lucide] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    stroke-width: 2.5;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(200% 120% at 20% 0%, rgba(217, 165, 64, 0.06) 0%, rgba(217, 165, 64, 0.04) 30%, rgba(217, 165, 64, 0.02) 60%, rgba(217, 165, 64, 0) 100%),
                linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, transform 0.15s ease;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header .wrapper {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

/* Left pill: logo + links */
.left-pill {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 5px 22px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Single centered pill header */
.header-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 22px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 auto;
    max-width: 1100px;
    min-height: 72px;
    position: relative;
}

.header-pill .nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.pill-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pill-actions .login {
    display: none; /* Hide "Learn More" on all screens for cleaner look */
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile dropdown menu */
.mobile-menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 12px);
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-menu a.cta {
    margin-top: 8px;
    color: #fff;
}

.header-pill.open .mobile-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .header-pill .nav a:nth-child(3) {
        display: none; /* Hide third nav item on tablets */
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    header .wrapper {
        padding: 0 16px;
    }

    .header-pill {
        padding: 14px 18px;
        min-height: 72px; /* Keep same height as desktop for consistency */
        border-radius: 24px; /* Slightly reduce radius proportionally */
    }

    .header-pill .nav,
    .pill-actions .login,
    .pill-actions .cta {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
    }

    .brand svg {
        width: 32px;
        height: 32px;
    }

    .brand .wordmark {
        font-size: 20px;
    }

    .mobile-menu {
        left: 16px;
        right: 16px;
        padding: 12px;
        border-radius: 20px;
    }

    .mobile-menu a {
        padding: 16px 18px;
        font-size: 17px;
        min-height: 52px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.brand svg {
    width: 28px;
    height: 28px;
    display: block;
}

.brand .wordmark {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 20px;
}

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

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 10px;
    min-height: 44px; /* Enhanced touch target for mobile */
    border-radius: 12px;
    transition: background 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
    position: relative;
}

.nav a:hover {
    background: #fff;
}

.nav a:active {
    transform: scale(0.98);
}

/* Enhanced visual feedback with underline animation */
.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav a:hover::after {
    transform: scaleX(1);
}

.chev {
    width: 16px;
    height: 16px;
}

/* Right pill: login + CTA */
.right-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 14px;
    transition: background 0.15s ease;
}

.login:hover {
    background: rgba(0, 0, 0, 0.03);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    min-height: 44px; /* Enhanced touch target */
    min-width: 44px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 16px rgba(217, 165, 64, 0.25);
    transition: transform 0.2s ease, filter 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Enhanced hover with shine effect */
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta:hover::before {
    left: 100%;
}

.cta:hover {
    filter: brightness(1.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 12px 24px rgba(217, 165, 64, 0.35);
    transform: translateY(-2px);
}

.cta:active {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 8px rgba(217, 165, 64, 0.2);
}

.arrow {
    width: 18px;
    height: 18px;
    background: #fff;
    color: var(--color-accent-dark);
    border-radius: 999px;
    display: grid;
    place-items: center;
}

.arrow svg {
    width: 12px;
    height: 12px;
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */

.main-hero {
    text-align: center;
    padding: 56px 20px;
    max-width: 1100px;
    margin: 24px auto;
}

.main-hero .kicker {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-hero h1 {
    margin: 0 0 18px 0;
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.02;
    font-weight: 800;
    color: #121212;
}

.main-hero p.lead-hero {
    max-width: 920px;
    margin: 0 auto 32px auto;
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.cta.primary {
    font-size: 18px;
    padding: 16px 28px;
}

.cta.secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--pill-border);
    box-shadow: none;
    font-weight: 700;
}

.cta.secondary:hover {
    background: var(--pill-bg);
    border-color: var(--color-accent);
}

.hero-badges {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-pill {
    display: inline-block;
    background: linear-gradient(90deg, rgba(217, 165, 64, 0.12), rgba(217, 165, 64, 0.06));
    color: var(--color-accent-dark);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   Container
   ============================================ */

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

/* ============================================
   Section Titles
   ============================================ */

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    text-align: center;
    margin: 0 0 12px 0;
    color: #121212;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 48px auto;
    line-height: 1.6;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: var(--gap-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    position: relative;
}

/* Enhanced interactive hover state */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent-light), transparent);
    opacity: 0;
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    animation: bounce 0.5s ease;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bounce animation for feature icons */
@keyframes bounce {
    0%, 100% { transform: scale(1.1) rotate(5deg) translateY(0); }
    50% { transform: scale(1.1) rotate(5deg) translateY(-10px); }
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #121212;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
    padding: var(--gap-xl) 0;
    background: var(--pill-bg);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    position: relative;
    padding: 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #121212;
}

.step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Journeys Section
   ============================================ */

.journeys-section {
    padding: var(--gap-xl) 0;
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.journey-card {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    cursor: pointer;
}

.journey-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.journey-card:active {
    transform: translateY(-2px);
}

.journey-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #121212;
}

.journey-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.journey-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-badge {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   Benefits Section
   ============================================ */

.benefits-section {
    padding: var(--gap-xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.benefits-text h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 32px 0;
    color: #121212;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefits-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 18px;
}

.benefits-list strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #121212;
}

.benefits-list p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.benefits-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview {
    width: 100%;
    max-width: 400px;
}

.preview-card {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-title {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
}

.health-badge {
    background: linear-gradient(135deg, #2f9e44, #51cf66);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    background: var(--color-accent-light);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* ============================================
   CTA / Waitlist Section
   ============================================ */

.cta-section {
    padding: var(--gap-xl) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent-light), rgba(217, 165, 64, 0.02));
}

/* Waitlist Form Styles */
.waitlist-form {
    max-width: 600px;
    margin: 32px auto 24px auto;
}

.form-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 280px;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid var(--pill-border);
    border-radius: var(--radius-sm);
    background: var(--pill-bg);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    min-height: 56px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.2s ease;
    box-shadow: 0 8px 16px rgba(217, 165, 64, 0.25);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 165, 64, 0.35);
    filter: brightness(1.05);
}

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

.success-message {
    display: none;
    margin-top: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e7f3ea, #d4edda);
    color: #1f6b33;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    animation: slideDown 0.4s ease;
}

.success-message.show {
    display: block;
}

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

.waitlist-benefits {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.download-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-section h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #121212;
}

.cta-section > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 32px 0;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    min-height: 56px; /* Enhanced touch target */
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Ripple effect on click */
.btn-download::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-download:active::after {
    width: 300px;
    height: 300px;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn-download:active {
    transform: translateY(-2px);
}

.btn-ios {
    background: linear-gradient(135deg, #000, #333);
}

.btn-android {
    background: linear-gradient(135deg, #3ddc84, #2bb968);
}

.download-icon {
    width: 32px;
    height: 32px;
}

.btn-small-text {
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    opacity: 0.9;
}

.btn-large-text {
    font-size: 18px;
    font-weight: 800;
    text-align: left;
}

.download-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--pill-bg);
    border-top: 1px solid var(--pill-border);
    padding: 56px 0 24px 0;
    margin-top: 64px;
}

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

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #121212;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--pill-border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-container {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 20px;
}

.legal-content {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #121212;
}

.last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 16px 0;
    color: #121212;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px 0;
    color: #121212;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 16px 0;
}

.legal-section ul {
    list-style: disc;
    padding-left: 24px;
    margin: 16px 0;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 8px;
}

.legal-section strong {
    font-weight: 700;
    color: #121212;
}

.legal-section a {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-accent);
}

.contact-info {
    background: var(--color-accent-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.contact-info p {
    margin: 8px 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    .nav a:nth-child(3) {
        display: none;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .benefits-visual {
        order: -1;
    }
}

@media (max-width: 620px) {
    .left-pill,
    .right-pill {
        justify-content: space-between;
    }
    
    .nav {
        gap: 12px;
    }
    
    .features-grid,
    .journeys-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .cta.primary,
    .cta.secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .legal-content {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .main-hero {
        padding: 32px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize rendering performance */
.feature-card,
.journey-card,
.step-card,
.btn-download,
.cta {
    will-change: transform;
}

/* Print styles */
@media print {
    header,
    .footer,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .feature-card,
    .journey-card {
        page-break-inside: avoid;
    }
}
