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

:root {
    --pine: #1f2a22;
    --moss: #3f5f45;
    --moss-dark: #2c4732;
    --sage: #9fb59d;
    --clay: #c56a4a;
    --amber: #caa24b;
    --fog: #f2efe6;
    --sand: #e4ddd1;
    --chalk: #fbfaf6;
    --ink: #222721;
    --text: #343a33;
    --text-muted: #5f6a5e;
    --border: rgba(44, 71, 50, 0.16);
    --warm-shadow: rgba(31, 42, 34, 0.12);
    --heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(198, 162, 75, 0.12), transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(197, 106, 74, 0.12), transparent 50%),
        linear-gradient(180deg, var(--fog) 0%, var(--chalk) 40%, var(--fog) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* === Topographic Background === */
.topo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.028;
    background-image:
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            transparent 0deg,
            transparent 89deg,
            var(--pine) 89deg,
            var(--pine) 91deg,
            transparent 91deg
        ),
        radial-gradient(ellipse 600px 400px at 20% 30%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 500px 350px at 20% 30%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 400px 280px at 22% 32%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 300px 200px at 25% 35%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 550px 380px at 70% 60%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 450px 300px at 68% 58%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 350px 240px at 72% 62%, var(--pine) 0%, var(--pine) 1px, transparent 1px),
        radial-gradient(ellipse 250px 160px at 75% 65%, var(--pine) 0%, var(--pine) 1px, transparent 1px);
}

/* Grain overlay for printed feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Sections === */
section {
    padding: 4rem 1.5rem;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section + section {
    border-top: 1px solid var(--border);
}

h1, h2, h3 {
    font-family: var(--heading);
    color: var(--ink);
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

a {
    color: var(--moss);
    text-decoration-color: rgba(63, 95, 69, 0.35);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

a:hover {
    text-decoration-color: var(--moss);
}

/* === Scroll Animations === */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in steps */
.visible .step:nth-child(1) { transition-delay: 0s; }
.visible .step:nth-child(2) { transition-delay: 0.1s; }
.visible .step:nth-child(3) { transition-delay: 0.2s; }

.step {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.visible .step {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger feature items */
.visible .feature-list li:nth-child(1) { transition-delay: 0s; }
.visible .feature-list li:nth-child(2) { transition-delay: 0.08s; }
.visible .feature-list li:nth-child(3) { transition-delay: 0.16s; }
.visible .feature-list li:nth-child(4) { transition-delay: 0.24s; }

.feature-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.visible .feature-list li {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero === */
.hero {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
    border-bottom: none;
}

.hero + section {
    border-top: none;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    align-items: center;
}

.hero-copy {
    max-width: 420px;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(63, 95, 69, 0.35);
    border-radius: 999px;
    background: rgba(63, 95, 69, 0.08);
}

.subline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 162, 75, 0.2) 0%, rgba(198, 162, 75, 0) 70%);
    filter: blur(20px);
    z-index: -1;
}

.phone-mockup {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 12px 46px rgba(31, 42, 34, 0.22),
        0 4px 10px rgba(31, 42, 34, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-mockup:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 48px rgba(30, 42, 30, 0.2),
        0 4px 12px rgba(30, 42, 30, 0.1);
}

.preview-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* === CTA Button === */
.cta-button {
    display: inline-block;
    font-family: var(--body);
    background: linear-gradient(135deg, var(--moss) 0%, var(--moss-dark) 100%);
    color: var(--chalk);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.875rem 2.25rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 22px rgba(44, 71, 50, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(44, 71, 50, 0.28);
    filter: brightness(1.03);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(44, 71, 50, 0.2);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === How It Works === */
.how-it-works {
    border-top: none;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(251, 250, 246, 0.9);
    box-shadow: 0 10px 24px rgba(31, 42, 34, 0.06);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--pine);
    color: var(--chalk);
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50%;
    margin-bottom: 0.6rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Features === */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(251, 250, 246, 0.9);
    box-shadow: 0 12px 30px rgba(31, 42, 34, 0.06);
}

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(63, 95, 69, 0.12);
    color: var(--moss);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.15rem;
}

.feature-text strong {
    color: var(--ink);
    font-weight: 700;
}

.feature-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Who It's For === */
.who {
    text-align: center;
    padding: 3rem 1.5rem;
}

.who p {
    font-family: var(--heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: rgba(228, 221, 209, 0.5);
    border: 1px solid var(--border);
    border-radius: 18px;
}

/* === Signup === */
.signup {
    text-align: center;
    border-top: none;
}

.signup-card {
    background: var(--chalk);
    border: 1px solid rgba(63, 95, 69, 0.2);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    box-shadow:
        0 16px 36px rgba(31, 42, 34, 0.12),
        0 2px 6px rgba(31, 42, 34, 0.08);
    max-width: 440px;
    margin: 0 auto;
}

.signup-card h2 {
    margin-bottom: 1.25rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"] {
    font-family: var(--body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--fog);
    min-height: 48px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form input::placeholder {
    color: var(--text-muted);
}

.signup-form input:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(63, 95, 69, 0.12);
}

/* Honeypot — hidden from humans */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.signup-success p {
    color: var(--moss);
    font-family: var(--heading);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1rem 0;
}

.signup-error p {
    color: #9e3a2b;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.reassurance {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--heading);
    font-weight: 700;
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.footer p + p {
    margin-top: 0.25rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* === Desktop === */
@media (min-width: 768px) {
    section {
        max-width: 860px;
        padding: 5rem 2.5rem;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding-top: 6.5rem;
        text-align: left;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3.5rem;
    }

    .hero-copy {
        max-width: 460px;
    }

    .subline {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-glow {
        width: 380px;
        height: 380px;
    }

    .phone-mockup {
        max-width: 300px;
    }

    .steps {
        flex-direction: row;
        gap: 2.5rem;
    }

    .step {
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .signup-card {
        padding: 3rem 2.5rem;
    }

    .footer {
        max-width: 860px;
    }
}
