/* ───────────────────────────────────────────────────────────────
   Wingwatch — Landing Page
   Palette and type matched to the birdcam dashboard
   Cool grey + soft cornflower blue · Inter throughout
   ─────────────────────────────────────────────────────────────── */

:root {
    /* Brand palette — mirrors birdcam app */
    --navy: #1F2A36;
    --soft-blue: #5FA8D3;
    --soft-blue-dim: #4a8fb8;
    --soft-blue-light: rgba(95, 168, 211, 0.12);

    --bg: #F5F7F9;
    --surface: #FFFFFF;
    --surface-soft: #F0F3F6;

    --slate: #6B7C8F;
    --slate-light: #9BA8B7;

    --border: #E2E7ED;
    --border-strong: #CFD6DF;

    --text: #1F2A36;
    --text-dim: #6B7C8F;

    --success: #5FA8D3;
    --danger: #D87676;
    --warning: #E5B75A;

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(31, 42, 54, 0.04);
    --shadow-md: 0 4px 12px rgba(31, 42, 54, 0.06);
    --shadow-lg: 0 8px 24px rgba(31, 42, 54, 0.08);

    /* Type */
    --font: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    /* Layout */
    --max-width: 1120px;
}

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p { max-width: 62ch; }

a {
    color: var(--soft-blue);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover { color: var(--soft-blue-dim); }

/* ─── Section container ─── */
section, footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--s-8) var(--s-5);
}

/* Eyebrow labels */
.eyebrow {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: var(--s-3);
}

/* ─── Site header / logo ─── */
.site-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--s-6) var(--s-5) 0;
}

.site-logo {
    height: auto;
    width: 240px;
    max-width: 50%;
    display: block;
}

/* ─── Hero ─── */
#hero {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--s-8);
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: var(--s-5);
    color: var(--navy);
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--text-dim);
    margin-bottom: var(--s-6);
    max-width: 48ch;
    line-height: 1.6;
}

/* ─── Signup form (used in hero + CTA) ─── */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
    max-width: 480px;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.signup-form input[type="email"]::placeholder {
    color: var(--slate-light);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--soft-blue);
    box-shadow: 0 0 0 3px var(--soft-blue-light);
}

.signup-form button {
    padding: 0.75rem 1.4rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: var(--soft-blue);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.signup-form button:hover {
    background: var(--soft-blue-dim);
    box-shadow: var(--shadow-md);
}

.signup-form button:active {
    transform: translateY(1px);
}

.form-note {
    font-size: 0.88rem;
    color: var(--text-dim);
    max-width: 48ch;
    margin-bottom: var(--s-2);
}

.form-gdpr {
    font-size: 0.8rem;
    color: var(--slate);
    max-width: 48ch;
}

/* ─── Hero photos ─── */
.hero-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

.hero-photos img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photos img:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── Hero photo cross-fade ─── */
.hero-photos.crossfade {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.hero-photos.crossfade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    animation: crossfade 36s infinite;
}

.hero-photos.crossfade img:nth-child(1) { animation-delay: 0s; }
.hero-photos.crossfade img:nth-child(2) { animation-delay: 6s; }
.hero-photos.crossfade img:nth-child(3) { animation-delay: 12s; }
.hero-photos.crossfade img:nth-child(4) { animation-delay: 18s; }
.hero-photos.crossfade img:nth-child(5) { animation-delay: 24s; }
.hero-photos.crossfade img:nth-child(6) { animation-delay: 30s; }

@keyframes crossfade {
    0%      { opacity: 0; }
    2%      { opacity: 1; }
    16.67%  { opacity: 1; }
    18.67%  { opacity: 0; }
    100%    { opacity: 0; }
}

/* ─── Section titles ─── */
.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: var(--s-6);
    max-width: 22ch;
    color: var(--navy);
}

/* ─── Section dividers ─── */
#features, #fit, #cta {
    border-top: 1px solid var(--border);
}

/* Alternating white-card sections */
#problem, #how {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding-left: var(--s-6);
    padding-right: var(--s-6);
    margin-bottom: var(--s-5);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

#problem .problem-list li,
#how .step {
    background: var(--surface-soft);
}

/* ─── Problem ─── */

.problem-body p {
    font-size: 1.02rem;
    margin-bottom: var(--s-4);
    color: var(--text-dim);
    line-height: 1.6;
}

.problem-list {
    list-style: none;
    margin: var(--s-5) 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
}

.problem-list li {
    background: var(--surface);
    padding: var(--s-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.55;
}

.problem-list strong {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--s-2);
    font-size: 0.98rem;
}

.problem-close {
    margin-top: var(--s-6);
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 500;
    padding: var(--s-4) var(--s-5);
    background: var(--soft-blue-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--soft-blue);
    max-width: 60ch;
}

/* ─── Features ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin-top: var(--s-5);
}

.feature {
    background: var(--surface);
    padding: var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature h3 {
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--s-3);
    color: var(--navy);
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 0.96rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ─── How it works ─── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin-top: var(--s-5);
}

.step {
    background: var(--surface);
    padding: var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--soft-blue);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--s-4);
    box-shadow: var(--shadow-sm);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--s-3);
    color: var(--navy);
}

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

.step-video {
    width: 100%;
    margin-top: var(--s-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: block;
}

/* ─── Who this is for ─── */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    margin-top: var(--s-5);
}

.fit-col {
    background: var(--surface);
    padding: var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.fit-col h3 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--border);
}

.fit-col ul {
    list-style: none;
    padding: 0;
}

.fit-col li {
    padding: var(--s-3) 0 var(--s-3) var(--s-6);
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
    position: relative;
}

.fit-col li + li {
    border-top: 1px solid var(--border);
}

.fit-yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--s-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    background: var(--soft-blue-light);
    color: var(--soft-blue);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
}

.fit-no li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: var(--s-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    background: rgba(216, 118, 118, 0.12);
    color: var(--danger);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ─── Early access CTA ─── */
#cta {
    padding-top: var(--s-9);
    padding-bottom: var(--s-9);
}

.cta-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    padding: var(--s-8) var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-5);
    color: var(--navy);
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: var(--s-6);
    margin-left: auto;
    margin-right: auto;
    max-width: 48ch;
    line-height: 1.6;
}

.signup-form--centered {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--s-3);
}

.form-gdpr--centered {
    margin-left: auto;
    margin-right: auto;
    max-width: 48ch;
}

/* ─── Footer ─── */
#foot {
    border-top: 1px solid var(--border);
    padding: var(--s-7) var(--s-5);
    margin-top: var(--s-6);
}

.footer-inner {
    text-align: center;
    color: var(--slate);
    font-size: 0.88rem;
}

.footer-attr {
    margin-bottom: var(--s-3);
}

.footer-links {
    margin-bottom: var(--s-3);
}

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

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

.footer-links .sep {
    margin: 0 var(--s-2);
    color: var(--slate-light);
}

.footer-copy {
    color: var(--slate-light);
    font-size: 0.8rem;
}

/* ─── Privacy page ─── */
.privacy-page {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--s-9) var(--s-5) var(--s-8);
}

.privacy-body {
    margin: var(--s-6) 0 var(--s-7);
    background: var(--surface);
    padding: var(--s-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.privacy-body p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: var(--s-4);
    max-width: none;
    line-height: 1.65;
}

.privacy-body p:last-child {
    margin-bottom: 0;
}

.privacy-body a {
    color: var(--soft-blue);
    text-decoration: underline;
    text-decoration-color: var(--soft-blue-light);
    text-underline-offset: 2px;
}

.privacy-body a:hover {
    text-decoration-color: var(--soft-blue);
}

.privacy-back {
    padding-top: var(--s-4);
    font-size: 0.9rem;
}

.privacy-back a {
    color: var(--slate);
}

.privacy-back a:hover { color: var(--soft-blue); }

/* ─── Thank you / confirmation pages ─── */
.thankyou-page {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--s-9) var(--s-5) var(--s-8);
    text-align: center;
}

.thankyou-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-6);
    color: var(--navy);
}

.thankyou-body {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: var(--s-4);
    margin-left: auto;
    margin-right: auto;
    max-width: 48ch;
    line-height: 1.6;
}

.thankyou-link {
    margin-top: var(--s-6);
    margin-bottom: var(--s-4);
}

.thankyou-link a {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    background: var(--soft-blue);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s, box-shadow 0.15s;
}

.thankyou-link a:hover {
    background: var(--soft-blue-dim);
    box-shadow: var(--shadow-md);
    color: white;
}

.thankyou-back {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.thankyou-back a { color: var(--slate); }
.thankyou-back a:hover { color: var(--soft-blue); }

/* ─── Responsive: tablet ─── */
@media (max-width: 900px) {
    section, footer {
        padding: var(--s-7) var(--s-5);
    }

    #hero, #cta {
        padding-top: var(--s-8);
        padding-bottom: var(--s-8);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    .hero-photos {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid,
    .steps,
    .problem-list {
        grid-template-columns: 1fr;
        gap: var(--s-4);
    }

    .fit-grid {
        grid-template-columns: 1fr;
        gap: var(--s-4);
    }
}

/* ─── Responsive: phone ─── */
@media (max-width: 600px) {
    body { font-size: 15px; }

    section, footer {
        padding: var(--s-6) var(--s-4);
    }

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

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

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-inner {
        padding: var(--s-6) var(--s-5);
    }

    .signup-form {
        flex-direction: column;
        gap: var(--s-2);
    }

    .signup-form button {
        width: 100%;
    }

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