/* === Variables === */
:root {
    --bg-dark: #111827;
    --bg-card: #f3f4f6;
    --bg-card-hover: #e9edf2;
    --accent: #16a34a;
    --accent-soft: #22c55e;
    --accent-dark: #15803d;
    --accent-footer: #14532d;
    --accent-glow: rgba(22, 163, 74, 0.25);
    --bg-light-green: #f0fdf4;
    --text: #111827;
    --text-dark: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border: #d1d5db;
    --border-light: rgba(17, 24, 39, 0.1);
    --faq-bg: #f9fafb;
    --gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --gradient-subtle: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    --warm-brown: #16a34a;
    --container-max: 1280px;
    --section-gap: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Nav (Figma) === */
nav {
    padding: 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-light-green);
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-outline {
    padding: 10px 22px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: rgba(22, 163, 74, 0.05);
}

.btn-primary {
    padding: 10px 22px;
    background: var(--accent);
    border: 1.5px solid var(--accent-dark);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    font-family: 'Playfair Display', Georgia, serif;
}

.logo span {
    color: var(--accent);
}

/* === Hero === */
.hero {
    padding: var(--section-gap) 0;
    background: var(--bg-light-green);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--bg-light-green);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.hero-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    background: rgba(74, 140, 92, 0.12);
    border: 1px solid rgba(74, 140, 92, 0.25);
    padding: 6px 14px;
    border-radius: 4px;
}

.hero-content h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.hero-content > p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hero-signup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.hero-signup-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-download-link {
    align-self: flex-start;
    font-size: 15px !important;
}

.hero-visual {
    position: relative;
    min-height: 400px;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Forms === */
.signup-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.signup-form input {
    flex: 1;
    min-width: 220px;
    padding: 16px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.signup-form button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.signup-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-subtext {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
}

.success-message {
    background: rgba(74, 140, 92, 0.12);
    color: var(--accent-dark);
    padding: 20px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(74, 140, 92, 0.25);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

.signup-form input.error {
    border-color: #ef4444;
}

/* === Problem Statement === */
.problem-statement {
    padding: var(--section-gap) 0;
    background: #FAF8F5;
    text-align: center;
}

.problem-statement h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.problem-list {
    list-style: none;
    max-width: 560px;
    margin: 0 auto 24px;
    text-align: left;
}

.problem-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.9;
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.problem-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.problem-transition {
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--accent-dark);
}

.what-we-do-lead,
.what-we-do-collective {
    max-width: 640px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: left;
}

.what-we-do-collective {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* === Section Headers === */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header.light {
    color: var(--text-dark);
}

.section-header.light .section-tag {
    color: var(--text-muted);
    border-color: rgba(44, 39, 32, 0.2);
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Layout 379 / Solution Section === */
.layout-379.solution-section {
    padding: var(--section-gap) 0;
    background: #FAF8F5;
}

.layout-379 .section-header.light {
    color: var(--text-dark);
}

.layout-379 .section-tag {
    color: var(--accent-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.feature-card {
    background: #fff;
    border: 1px solid rgba(44, 39, 32, 0.08);
    border-radius: 12px;
    padding: 48px 24px 24px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(44, 39, 32, 0.12);
    box-shadow: 0 4px 20px rgba(44, 39, 32, 0.06);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-dark);
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.6;
}

/* === Who Section === */
.who-section {
    padding: 100px 0;
    background: #FAF8F5;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.who-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.who-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    filter: saturate(0.92);
}

.who-card:hover img {
    transform: scale(1.05);
}

.who-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    background: linear-gradient(0deg, rgba(44, 39, 32, 0.92) 0%, transparent 100%);
}

.who-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.who-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.social-proof-badge {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--accent-dark) !important;
    margin-top: 8px !important;
}

/* === Testimonials === */
.testimonials {
    padding: 100px 0;
    background: var(--bg-card);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(44, 39, 32, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(44, 39, 32, 0.04);
}

.testimonial-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-author strong {
    color: var(--text-dark);
}

/* === FAQ Section (Figma) === */
.faq-section {
    padding: var(--section-gap) 0;
    background: var(--faq-bg);
}

.faq-section .section-header {
    margin-bottom: 80px;
}

.faq-section .section-header h2 {
    color: var(--text-dark);
}

.faq-section .section-header p {
    color: var(--text-dark);
    opacity: 0.85;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: var(--faq-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.accordion-item:hover {
    border-color: var(--border-light);
}

.accordion-item.is-open {
    border-color: var(--border-light);
}

.accordion-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    cursor: pointer;
    min-height: 70px;
}

.accordion-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.accordion-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-icon {
    display: block;
    width: 14px;
    height: 14px;
    position: relative;
    transition: transform 0.2s;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--text-dark);
    transition: opacity 0.2s ease;
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
    top: 6px;
    left: 0;
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
    left: 6px;
    top: 0;
}

.accordion-item.is-open .accordion-icon::after {
    opacity: 0;
}

.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.accordion-item.is-open .accordion-answer {
    max-height: 400px;
}

.accordion-answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.faq-help {
    margin-top: 48px;
}

.faq-help h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.faq-help p {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.85;
    margin-bottom: 16px;
}

.faq-help .btn-outline {
    display: inline-block;
}

.faq-help .btn-outline:hover {
    background: rgba(74, 140, 92, 0.08);
}

/* === Newsletter Section === */
.newsletter-section {
    padding: 100px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, rgba(74, 140, 92, 0.12) 0%, rgba(74, 140, 92, 0.04) 100%);
    border: 1px solid rgba(74, 140, 92, 0.2);
    border-radius: 12px;
    padding: 80px 60px;
    text-align: center;
}

.newsletter-box h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.newsletter-box > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-subtext {
    font-size: 14px !important;
    margin-top: 16px !important;
    color: var(--text-muted) !important;
}

/* === How It Works === */
.how-section {
    padding: var(--section-gap) 0;
    background: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: #fff;
    border: 1px solid rgba(44, 39, 32, 0.08);
    border-radius: 12px;
    padding: 40px 32px 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(44, 39, 32, 0.08);
}

.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Footer === */
footer {
    padding: 80px 0 48px;
    background: var(--accent-footer);
    color: rgba(255, 255, 255, 0.95);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand .logo span {
    color: rgba(134, 239, 172, 0.95);
}

.footer-brand p {
    margin-top: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* === Responsive === */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-visual {
        height: 380px;
        min-height: unset;
    }

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

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

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Nav: hide text links, keep logo + CTA */
    .nav-links {
        display: none;
    }

    .nav-inner {
        min-height: 60px;
    }

    .btn-primary,
    .btn-outline {
        padding: 10px 18px;
        font-size: 15px;
    }

    /* Hero */
    .hero {
        padding: 32px 0 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Show image as a banner below content on mobile */
    .hero-visual {
        height: 280px;
        min-height: unset;
        order: 2;
    }

    .hero-content {
        padding: 32px 24px 28px;
        gap: 16px;
        order: 1;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.25;
    }

    .hero-content > p {
        font-size: 16px;
    }

    /* Forms */
    .signup-form {
        flex-direction: column;
        gap: 10px;
    }

    .signup-form input {
        min-width: unset;
        width: 100%;
        padding: 14px 16px;
    }

    .signup-form button {
        width: 100%;
        padding: 14px 20px;
        min-height: 48px;
    }

    .hero-download-link {
        align-self: stretch;
        text-align: center;
    }

    /* Sections */
    .problem-statement,
    .how-section,
    .solution-section,
    .who-section,
    .testimonials,
    .newsletter-section,
    .faq-section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Grids → single column */
    .features-grid,
    .features-grid.features-three,
    .steps-grid,
    .who-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card,
    .step-card {
        padding: 28px 20px;
    }

    .who-card {
        aspect-ratio: 4/3;
    }

    /* Newsletter */
    .newsletter-box {
        padding: 48px 24px;
        border-radius: 12px;
    }

    /* FAQ */
    .faq-section .section-header {
        margin-bottom: 40px;
    }

    .accordion-question {
        padding: 16px 20px;
        min-height: 60px;
    }

    /* Footer */
    footer {
        padding: 56px 0 32px;
    }

    .footer-inner {
        gap: 40px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
    .hero-visual {
        height: 240px;
    }

    .hero-content {
        padding: 28px 20px 24px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .step-number {
        font-size: 2.25rem;
    }

    .newsletter-box {
        padding: 36px 20px;
    }

    .cta-form {
        max-width: 100%;
    }
}

/* === Invite Code (inline success) === */
.invite-code-box-inline {
    margin-top: 12px;
    text-align: center;
}

.invite-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.invite-code-box-inline strong {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent-dark);
}

.invite-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* === Accessibility === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
