:root {
    /* Color Palette - Exactly matching Recallist iOS app (Royal Navy Update) */
    --bg-primary: #F7F8FB;
    --bg-secondary: #ffffff;
    --brand-primary: #1E3A8A;
    /* Midnight Navy */
    --brand-accent: #8B5CF6;
    /* Royal Amethyst */
    --brand-gradient: linear-gradient(135deg, #1E3A8A 0%, #8B5CF6 100%);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --status-warning: #F97316;

    /* Spacing & Radii */
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 20px;
    --sp-s: 8px;
    --sp-m: 16px;
    --sp-l: 24px;
    --sp-xl: 48px;
    --sp-xxl: 80px;

    /* Effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --border-light: 1px solid rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro", "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-l);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
nav {
    padding: var(--sp-l) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-s);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: var(--sp-l);
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding: var(--sp-xl) 0 var(--sp-xxl);
}

.promo-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    background: white;
    border: var(--border-light);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: var(--sp-m);
    box-shadow: var(--card-shadow);
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: var(--sp-m);
    font-family: "SF Pro Rounded", "SF Pro", "Outfit", sans-serif;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: var(--sp-l);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Forms */
.waitlist-container {
    background: white;
    padding: 6px;
    border-radius: 16px;
    border: var(--border-light);
    display: flex;
    box-shadow: var(--card-shadow);
    max-width: 450px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

input[type="email"] {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

button.primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.primary:hover {
    opacity: 0.9;
}

/* App Store Badge */
.app-store-badge-container {
    margin-top: var(--sp-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.app-store-badge {
    cursor: default;
    transition: transform 0.2s ease;
}

.coming-soon {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-app-store {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.coming-soon-mini {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-store-badge-mini {
    height: 36px;
    opacity: 0.8;
}

/* Hero Image & Mockups */
.hero-image-container {
    margin-top: var(--sp-xl);
    perspective: 1000px;
    position: relative;
}

.mockup-stack {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.mockup-main {
    width: 100%;
    height: auto;
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
}

.mockup-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, rgba(246, 246, 248, 0) 70%);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Product Showcases */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-xl);
    align-items: center;
    padding: var(--sp-xxl) 0;
}

.showcase-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.showcase-reverse .showcase-content {
    grid-column: 2;
}

.showcase-reverse .showcase-visual {
    grid-column: 1;
    grid-row: 1;
}

.section-tag {
    color: var(--brand-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-m);
    display: block;
}

.showcase h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--sp-m);
    line-height: 1.2;
}

.showcase p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: var(--sp-m);
}

.value-bullets {
    list-style: none;
    padding: 0;
    margin-top: var(--sp-m);
    text-align: left;
}

.value-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.value-bullets i {
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.showcase-reverse .value-bullets {
    margin-left: auto;
}

/* iPhone Frame Shell */
.iphone-frame {
    position: relative;
    width: 280px;
    max-width: 80vw;
    aspect-ratio: 1 / 2.17;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(0, 0, 0, 0.3),
        inset 0 0 2px 2px rgba(255, 255, 255, 0.1);
    border: 4px solid #333;
    margin: 0 auto;
}



.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Frame for Steps */
.iphone-frame-mini {
    position: relative;
    width: 180px;
    max-width: 60vw;
    aspect-ratio: 1 / 2.17;
    background: #1a1a1a;
    border-radius: 34px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 3px solid #333;
    margin: 0 auto var(--sp-l);
}

.iphone-frame-mini .iphone-screen {
    border-radius: 26px;
}

.iphone-frame-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

video,
.feature-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* How It Works */
.how-it-works {
    padding: var(--sp-xxl) 0;
}

.section-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: -10px;
    margin-bottom: var(--sp-xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-l);
    margin-top: var(--sp-xl);
}

.step-item {
    text-align: center;
    position: relative;
    padding: var(--sp-l);
    background: white;
    border-radius: var(--radius-l);
    border: var(--border-light);
    box-shadow: var(--card-shadow);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto var(--sp-m);
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
}

.step-image {
    margin: 0 auto;
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: var(--sp-s);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Feature Overrides */
.showcase-visual {
    display: flex;
    justify-content: center;
}

/* Features Grid */
.features {
    padding: var(--sp-xxl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-l);
    margin-top: var(--sp-xl);
}

.feature-card {
    background: white;
    padding: var(--sp-xl) var(--sp-l);
    border-radius: var(--radius-l);
    border: var(--border-light);
    box-shadow: var(--card-shadow);
    text-align: left;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(30, 58, 138, 0.05);
    /* Navy tint */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-bottom: var(--sp-l);
    font-size: 1.4rem;
}

/* Final CTA */
.final-cta {
    padding: var(--sp-xxl) 0;
}

.cta-card {
    background: white;
    padding: var(--sp-xxl) var(--sp-l);
    border-radius: 32px;
    border: var(--border-light);
    box-shadow: var(--card-shadow);
}

/* Footer */
footer {
    padding: var(--sp-xl) 0 var(--sp-l);
    border-top: var(--border-light);
    margin-top: var(--sp-xxl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    margin-bottom: var(--sp-l);
}

.footer-col.brand-col {
    display: flex;
    justify-content: flex-start;
}

.footer-col.appstore-col {
    display: flex;
    justify-content: center;
}

.footer-col.links-col {
    display: flex;
    justify-content: flex-end;
}

.footer-app-store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: var(--sp-l);
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Legal Pages */
.legal-page {
    background-color: var(--bg-secondary);
}

.legal-content {
    max-width: 800px;
    margin: var(--sp-xxl) auto;
    padding: 0 var(--sp-l);
    animation: fadeIn 0.6s ease-out;
}

.legal-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: var(--sp-m);
    color: var(--text-primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: var(--sp-xl);
    margin-bottom: var(--sp-m);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: var(--sp-l);
    margin-bottom: var(--sp-s);
    color: var(--text-primary);
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--sp-m);
}

.legal-content ul {
    margin-bottom: var(--sp-l);
    padding-left: var(--sp-l);
}

.legal-content li {
    margin-bottom: var(--sp-s);
    position: relative;
}

.legal-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--brand-primary), transparent);
    margin: var(--sp-xl) 0;
    opacity: 0.1;
}

.legal-content a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(123, 92, 250, 0.1);
    transition: all 0.2s;
}

.legal-content a:hover {
    border-bottom-color: var(--brand-primary);
    background: rgba(123, 92, 250, 0.05);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--sp-l);
    left: var(--sp-l);
    right: var(--sp-l);
    background: white;
    border: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.85rem;
    animation: slideUp 0.5s ease-out;
    line-height: 1.4;
}

.btn-small {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Animations & State */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.status-msg {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 1.2rem;
}

.success-text {
    color: #10b981;
}

.error-text {
    color: #f43f5e;
}

/* Responsive */
@media (max-width: 1024px) {

    .showcase,
    .showcase-reverse {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: var(--sp-l);
    }

    .showcase-reverse .showcase-content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        /* Text first on mobile */
    }

    .showcase-reverse .showcase-visual {
        grid-column: 1 !important;
        grid-row: 2 !important;
        /* Video second on mobile */
    }

    .showcase p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .steps-grid {
        display: block !important;
        width: 100% !important;
    }

    .feature-card,
    .step-item {
        width: 100% !important;
        margin-bottom: var(--sp-m) !important;
    }

    .nav-links {
        display: none !important;
    }

    nav {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .logo {
        margin: 0 auto 10px auto !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: var(--sp-l);
        text-align: center;
    }

    .footer-col.brand-col,
    .footer-col.appstore-col,
    .footer-col.links-col {
        justify-content: center !important;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        margin: 0;
    }

    .value-bullets li {
        flex-direction: column !important;
        gap: 4px !important;
    }

    .value-bullets li strong {
        display: block !important;
        margin-top: 4px;
    }

    .value-bullets i {
        margin-bottom: 4px;
    }

    .waitlist-container {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    input[type="email"] {
        background: white;
        border: var(--border-light);
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: var(--card-shadow);
    }

    button.primary {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }

    .showcase h2 {
        font-size: 1.5rem !important;
    }

    .section-lead {
        font-size: 1.1rem;
        margin-bottom: var(--sp-l);
    }

    .how-it-works {
        padding: var(--sp-xl) 0;
    }

    .container {
        padding: 0 var(--sp-m);
    }
}