/* Findr landing — mobile-first, brand colors match the iOS app:
   primary #4E6146 (forest green), dark #3C4C37, accent #944A2E (rust),
   background #FEF8F5 (cream). */

:root {
    --green: #4E6146;
    --green-dark: #3C4C37;
    --rust: #944A2E;
    --cream: #FEF8F5;
    --ink: #26291F;
    --ink-soft: #6B7263;
    --white: #FFFFFF;
    --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.01em; }

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 248, 245, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(78, 97, 70, 0.10);
}

.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(60, 76, 55, 0.25);
}

.brand-name { font-weight: 800; font-size: 19px; color: var(--green-dark); }

.topbar-cta {
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    transition: background 0.2s;
}

.topbar-cta:active, .topbar-cta:hover { background: var(--green-dark); }

/* ---------- Hero ---------- */

.hero {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 22px 40px;
    text-align: center;
}

.deal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(148, 74, 46, 0.10);
    color: var(--rust);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.deal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rust);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(38px, 9vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.hero h1 em { font-style: italic; color: var(--rust); }

.hero-sub {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 440px;
    margin: 0 auto 28px;
}

/* ---------- Signup form ---------- */

.signup {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.signup input {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px; /* prevents iOS zoom */
    font-family: inherit;
    border: 1.5px solid rgba(78, 97, 70, 0.25);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signup input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(78, 97, 70, 0.15);
}

.signup button {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(60, 76, 55, 0.3);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.signup button:active { transform: scale(0.98); }

.signup button:disabled { opacity: 0.6; cursor: default; }

.form-message {
    min-height: 22px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.form-message.ok { color: var(--green); }
.form-message.err { color: #B3402A; }

.hero-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}

/* ---------- Scarcity bar ---------- */

.spots { max-width: 320px; margin: 28px auto 0; }

.spots-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(78, 97, 70, 0.15);
    overflow: hidden;
}

.spots-fill {
    height: 100%;
    width: 82%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rust), #B85C3A);
    transition: width 0.8s ease;
}

.spots-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}

.spots-label strong { color: var(--rust); }

/* ---------- Deal card ---------- */

.deal { padding: 8px 20px 8px; }

.deal-card {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(150deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border-radius: 26px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 18px 44px rgba(60, 76, 55, 0.35);
}

.deal-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.deal-card h2 { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.15; margin-bottom: 12px; }

.deal-card > p { font-size: 15px; opacity: 0.9; max-width: 380px; margin: 0 auto 22px; }

.deal-list {
    list-style: none;
    text-align: left;
    max-width: 320px;
    margin: 0 auto 26px;
    display: grid;
    gap: 10px;
}

.deal-list li {
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    font-weight: 600;
}

.deal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.deal-cta {
    display: inline-block;
    background: var(--white);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.deal-cta:active { transform: scale(0.97); }

/* ---------- Features ---------- */

.features {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 22px 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(26px, 6.5vw, 34px);
    color: var(--green-dark);
    margin-bottom: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid rgba(78, 97, 70, 0.10);
    border-radius: var(--radius);
    padding: 24px 22px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(60, 76, 55, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.feature-icon.dating { background: rgba(148, 74, 46, 0.12); }
.feature-icon.friends { background: rgba(64, 88, 152, 0.12); }
.feature-icon.activities { background: rgba(78, 97, 70, 0.12); }

.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; color: var(--green-dark); }

.feature-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Giving back ---------- */

.giveback { padding: 32px 22px; }

.giveback-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: rgba(78, 97, 70, 0.07);
    border-radius: 26px;
    padding: 32px 24px;
}

.giveback-icon { font-size: 34px; margin-bottom: 10px; }

.giveback-inner h2 { font-size: 24px; color: var(--green-dark); margin-bottom: 8px; }

.giveback-inner p { font-size: 15px; color: var(--ink-soft); max-width: 400px; margin: 0 auto; }

.giveback-inner strong { color: var(--green-dark); }

/* ---------- Final CTA ---------- */

.final-cta {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 22px 64px;
    text-align: center;
    scroll-margin-top: 80px;
}

.final-cta h2 { font-size: clamp(28px, 7vw, 38px); color: var(--green-dark); margin-bottom: 8px; }

.final-cta > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; }

/* ---------- Footer ---------- */

footer {
    text-align: center;
    padding: 28px 20px 44px;
    border-top: 1px solid rgba(78, 97, 70, 0.10);
}

.footer-icon { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 10px; }

footer p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
    .signup { flex-direction: row; }
    .signup input { flex: 1; }
    .signup button { width: auto; white-space: nowrap; padding-inline: 26px; }

    .features {
        max-width: 960px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .features .section-title { grid-column: 1 / -1; }

    .feature-card { margin-bottom: 0; }
}
