/* Design tokens - Zebra striping + enhancements */
:root {
    --color-green: #1a4d2e;
    --color-linen: #F7F6F2;
    --color-green-subtle: rgba(26, 77, 46, 0.2);
    --color-green-light: rgba(26, 77, 46, 0.08);
    --section-padding-y: 6rem;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 8px 32px rgba(27, 77, 62, 0.12);
    --shadow-card-hover: 0 16px 48px rgba(27, 77, 62, 0.18);
}

/* Utility: Linen & Green backgrounds (Task 3) */
.bg-linen {
    background-color: #F7F6F2;
    color: #1a4d2e;
}

.bg-green {
    background-color: #1a4d2e;
    color: #ffffff;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: var(--color-green);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: letter-spacing 0.3s var(--ease-out), opacity 0.3s ease;
}

.header:hover .logo {
    letter-spacing: 0.12em;
    opacity: 0.95;
}

/* Main content - full width for zebra stripes */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
}

/* Break out to full viewport width when inside constrained container */
body .container .main-content {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Section inner - constrain content width, no double borders */
.main-content section {
    padding-left: max(1.5rem, calc(50% - 400px));
    padding-right: max(1.5rem, calc(50% - 400px));
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

/* 1. HERO - Dark green, white text */
#hero.hero {
    background: #1a4d2e;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.hero-accent {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 2rem;
    border-radius: 2px;
    animation: heroFadeIn 0.8s var(--ease-out) forwards;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    animation: heroFadeIn 0.8s var(--ease-out) 0.1s both;
}

.hero-subhead {
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.98;
    animation: heroFadeIn 0.8s var(--ease-out) 0.2s both;
}

.hero .hero-body,
.hero .hero-subhead {
    color: #ffffff;
}

.hero-body {
    font-size: 1.15rem;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0.92;
    animation: heroFadeIn 0.8s var(--ease-out) 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: heroFadeIn 0.8s var(--ease-out) 0.4s both;
}

.badge--pulse {
    animation: heroFadeIn 0.8s var(--ease-out) 0.4s both, badgePulse 3s ease-in-out 1.2s infinite;
}

@keyframes badgePulse {
    0%, 100% { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
    50% { border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

/* 2. WHAT IT DOES - Linen, body left-aligned */
#what-it-does.content-section {
    background: #F7F6F2;
    color: #1a4d2e;
    margin-bottom: 0;
}

#what-it-does .section-headline,
#what-it-does .section-body,
#what-it-does .section-body p {
    color: #1a4d2e;
}

#what-it-does .section-body {
    text-align: left;
}

/* Content Sections - base (overridden per section) */
.content-section {
    margin: 0;
    color: white;
}

.section-headline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-headline--accent {
    position: relative;
    padding-bottom: 1rem;
}

.section-headline--accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--color-green);
    border-radius: 2px;
}

.section-subhead {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.95;
}

/* 3. HOW IT WORKS - Green with alternating Linen / Green / Linen cards */
#how-it-works.content-section {
    background: var(--color-green);
    color: #ffffff;
}

#how-it-works .section-headline {
    color: #ffffff;
}

/* Cards 1 & 3: Linen */
#how-it-works .step-card:nth-child(1),
#how-it-works .step-card:nth-child(3) {
    background: var(--color-linen);
    color: var(--color-green);
    border-left-color: var(--color-green);
}

#how-it-works .step-card:nth-child(1) .step-title,
#how-it-works .step-card:nth-child(1) .step-description,
#how-it-works .step-card:nth-child(1) .step-list li,
#how-it-works .step-card:nth-child(3) .step-title,
#how-it-works .step-card:nth-child(3) .step-description,
#how-it-works .step-card:nth-child(3) .step-list li {
    color: var(--color-green);
}

#how-it-works .step-card:nth-child(1) .step-number,
#how-it-works .step-card:nth-child(3) .step-number {
    background: var(--color-green);
    color: var(--color-linen);
}

/* Card 2: Green (white text) - breaks up flat green */
#how-it-works .step-card:nth-child(2) {
    background: var(--color-green);
    color: #ffffff;
    border-left: 4px solid var(--color-linen);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#how-it-works .step-card:nth-child(2) .step-title,
#how-it-works .step-card:nth-child(2) .step-description {
    color: #ffffff;
}

#how-it-works .step-card:nth-child(2) .step-number {
    background: var(--color-linen);
    color: var(--color-green);
}

#how-it-works .step-card:nth-child(2):hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.section-body {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.section-body p {
    margin-bottom: 1rem;
}

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

/* How It Works - Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* How It Works cards: rounded corners, proper padding (Task 3) */
.step-card {
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-green);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-left-color 0.35s ease;
}

#how-it-works .step-card {
    padding: 2rem;
    border-radius: 16px;
}

#how-it-works .step-card:nth-child(1):hover,
#how-it-works .step-card:nth-child(3):hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

#how-it-works .step-card:nth-child(2):hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.step-card:hover {
    border-left-color: inherit;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
    flex-grow: 1;
}

.step-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.step-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.step-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 4. WHAT MAKES THIS DIFFERENT - Linen */
#different.content-section {
    background: var(--color-linen);
    color: var(--color-green);
}

#different .section-headline,
#different .section-body,
#different .section-body p {
    color: var(--color-green);
}

/* Pull quote - grabs attention */
.pull-quote {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-green);
    margin: 0 auto 2rem;
    max-width: 520px;
    text-align: center;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-green);
    background: var(--color-green-light);
    border-radius: 0 12px 12px 0;
    font-style: normal;
}

/* 5. CURRENT SCOPE - Green + linen accent */
#scope.content-section {
    background: var(--color-green);
    color: #ffffff;
}

#scope .section-headline,
#scope .section-subhead,
#scope .section-body,
#scope .section-body p {
    color: #ffffff;
}

#scope .section-subhead {
    opacity: 0.95;
}

#scope .section-subhead::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: rgba(247, 246, 242, 0.35);
    margin: 0.75rem auto 0;
    border-radius: 1px;
}

/* 6. FAQ - Linen, subtle green dividers */
#faq.content-section {
    background: var(--color-linen);
    color: var(--color-green);
}

#faq .section-headline {
    color: var(--color-green);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-green-subtle);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item {
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-radius: 8px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.faq-item:hover {
    background: var(--color-green-light);
    padding-left: 0.75rem;
}

#faq .faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

#faq .faq-item:last-child {
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-green);
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-green);
    opacity: 0.95;
}

/* 7. BOTTOM CTA - Green */
#cta.cta-section {
    background: var(--color-green);
    margin-bottom: 0;
    text-align: center;
    color: #ffffff;
}

#cta .cta-headline,
#cta .cta-subhead {
    color: #ffffff;
}

#cta .cta-subhead {
    opacity: 0.95;
}

.cta-urgency {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    animation: ctaUrgency 2.5s ease-in-out infinite;
}

@keyframes ctaUrgency {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.cta-section {
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.cta-form-container::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: rgba(247, 246, 242, 0.5);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.cta-headline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subhead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-form-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Waitlist form */
/* Form: white background, dark green text and borders (match image) */
.waitlist-form-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(26, 77, 46, 0.15);
}

.waitlist-form-wrapper:hover {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(26, 77, 46, 0.2);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a4d2e;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid #1a4d2e;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a4d2e;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: rgba(26, 77, 46, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #1a4d2e;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.15);
}


/* Submit button - sharp, high-contrast (dark green, white text) */
.submit-btn {
    background: #1a4d2e;
    color: #ffffff;
    border: 2px solid #1a4d2e;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.submit-btn:hover {
    background: #0d3d24;
    border-color: #0d3d24;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.4);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--color-linen);
    outline-offset: 2px;
}

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

/* Success message */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.success-message.hidden {
    display: none;
}

.success-checkmark {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.success-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.success-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: white;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subhead {
        font-size: 1.3rem;
    }
    
    .hero-body {
        font-size: 1rem;
    }
    
    .section-headline {
        font-size: 1.5rem;
    }
    
    .section-subhead {
        font-size: 1.1rem;
    }
    
    .section-body {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 0 1rem;
        margin-bottom: 0;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 0 1rem;
    }
    
    .cta-headline {
        font-size: 1.5rem;
    }
    
    .cta-subhead {
        font-size: 1rem;
    }
    
    .waitlist-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subhead {
        font-size: 1.1rem;
    }
    
    .waitlist-form-wrapper {
        padding: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
    }
    
    .section-headline {
        font-size: 1.3rem;
    }
    
    .cta-headline {
        font-size: 1.3rem;
    }
}

/* PWA specific styles */
@media (display-mode: standalone) {
    .container {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}
