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

:root {
    --green-dark: #0f3d13;
    --green: #1b5e20;
    --green-mid: #2e7d32;
    --green-bright: #27ae60;
    --text-dark: #2c3e50;
    --text-muted: #667085;
    --border: #e1e5e9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Nav ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.nav .wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

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

.lang-switch {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.lang-switch:hover { color: var(--green); background: #f2f7f2; }

/* Nav-only short labels ("FR"/"Sign Up") that swap in at narrow widths -
   the nav's logo + language switch + primary button were fighting for
   space on real phones (~360px and below): the full-length button text
   wrapped onto 3 lines and visually overlapped the logo and language
   link. Both spans exist in the markup always; only one is ever shown. */
.nav .lang-text-short,
.nav .btn-text-short {
    display: none;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27, 94, 32, 0.38); }

.btn-ghost {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--border);
}

.btn-ghost:hover { border-color: var(--green); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    padding: 72px 0 90px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.mission-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero p.lead {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-ctas .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-note {
    font-size: 13px;
    opacity: 0.8;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-trust-strip span::before {
    content: '\2713 ';
    font-weight: 700;
}

.install-app-btn {
    margin-top: 14px;
}

.hero-visual {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 28px;
}

.hero-visual-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.hero-visual-row:last-child { margin-bottom: 0; }

.hero-visual-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-visual-text strong { display: block; font-size: 14px; }
.hero-visual-text span { font-size: 12.5px; opacity: 0.82; }

/* ---- Sections ---- */
section { padding: 76px 0; }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--green);
    background: #e8f5e9;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ---- Public weather preview ---- */
.weather-preview {
    padding: 40px 0;
}

.weather-preview-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    background: #f8faf8;
    text-align: center;
}

.weather-preview-head h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.weather-preview-head p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.weather-preview-controls select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
    max-width: 100%;
}

.weather-preview-result {
    margin-top: 20px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-preview-temp {
    font-size: 40px;
    font-weight: 700;
    color: var(--green);
}

.weather-preview-desc {
    font-size: 15px;
    color: var(--text-dark);
    text-transform: capitalize;
    margin-top: 2px;
}

.weather-preview-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.weather-preview-loading,
.weather-preview-error {
    font-size: 14px;
    color: var(--text-muted);
}

.weather-preview .hero-note {
    margin-top: 18px;
}

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ---- How it works ---- */
.steps {
    background: #f8faf8;
}

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

.step-card { text-align: center; }

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); max-width: 260px; margin: 0 auto; }

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    max-width: 1140px;
    margin: 0 auto;
}

.price-card {
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 30px 26px;
}

.price-card.featured {
    border-color: var(--green);
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.12);
    position: relative;
}

.price-badge {
    position: absolute;
    top: -13px;
    left: 26px;
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.price-card h3 { font-size: 18px; margin-bottom: 4px; }
.price-amount { font-size: 28px; font-weight: 800; margin: 12px 0 4px; white-space: nowrap; }
.price-amount span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.price-unit { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: normal; }
.price-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }

.price-list { list-style: none; margin-bottom: 22px; }
.price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    padding: 6px 0;
    color: var(--text-dark);
}

.price-list li::before {
    content: '\2713';
    background: var(--green-bright);
    color: white;
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    margin-top: 1px;
}

.price-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 26px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Trust ---- */
.trust { background: #f8faf8; }

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.trust-chip {
    background: white;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ---- Final CTA ---- */
.final-cta {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    text-align: center;
}

.final-cta h2 { font-size: 28px; margin-bottom: 14px; }
.final-cta p { opacity: 0.9; margin-bottom: 26px; }

.final-cta .btn-primary {
    background: white;
    color: var(--green-dark);
    box-shadow: none;
}

/* ---- Footer ---- */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    margin-top: 8px;
}

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

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .nav-actions .btn-ghost { display: none; }
    .hero { padding: 48px 0 60px; }
    section { padding: 56px 0; }

    /* See the .lang-switch/.nav rule above - this is the other half of the
       nav-overflow fix: shrink what's left and swap in short labels so
       logo + language switch + button all actually fit on one line down
       to ~320px wide, instead of wrapping and overlapping each other. */
    .nav .wrap { padding: 0 16px; }
    .nav-logo { font-size: 15px; gap: 6px; }
    .nav-logo img { width: 28px; height: 28px; }
    .nav-actions { gap: 6px; }
    .lang-switch { padding: 6px 8px; font-size: 11.5px; }
    .nav-actions .btn { padding: 9px 12px; font-size: 12px; }

    .nav .lang-text-full,
    .nav .btn-text-full {
        display: none;
    }
    .nav .lang-text-short,
    .nav .btn-text-short {
        display: inline;
    }
}

/* ===== 2026-10 refresh: photo hero, real app in a phone, crop photos,
   drawn icons, checkable numbers ===== */
.hero {
    background:
        linear-gradient(135deg, rgba(27, 94, 32, 0.93) 0%, rgba(15, 61, 19, 0.95) 100%),
        url('/static/img/crops/tomato.webp') center / cover no-repeat;
}
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.hero-phone-frame {
    width: min(300px, 78vw);
    padding: 10px;
    border-radius: 38px;
    background: #10140f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a3328;
    transform: rotate(-2deg);
}
.hero-phone-frame img { display: block; width: 100%; height: auto; border-radius: 28px; }
.hero-phone-note { margin-top: 18px; font-size: 13px; opacity: 0.85; text-align: center; }

.crops-strip { background: #fff; }
.crop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crop-tile { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 1.25; background: #dfe9d8; }
.crop-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.crop-tile:hover img { transform: scale(1.04); }
.crop-tile figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
    color: #fff; font-weight: 700; font-size: 15px;
}

.feature-icon { color: var(--green); }
.feature-icon .fg-icon { display: block; }

.trust-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.trust-number { background: #fff; border: 1px solid #e3eadf; border-radius: 16px; padding: 18px 16px; }
.trust-number strong { display: block; font-size: 32px; color: var(--green); line-height: 1.1; }
.trust-number span { display: block; margin-top: 6px; font-size: 13.5px; color: #4d5a4a; line-height: 1.4; }

.photo-credits-link { text-align: center; font-size: 12px; margin: 10px 0 0; }
.photo-credits-link a { color: inherit; opacity: 0.75; }

@media (max-width: 860px) {
    .crop-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-numbers { grid-template-columns: repeat(2, 1fr); }
    .hero-phone { margin-top: 12px; }
}
@media (max-width: 560px) {
    .crop-grid { gap: 10px; }
    .trust-numbers { gap: 10px; }
    .trust-number { padding: 14px 12px; }
    .trust-number strong { font-size: 26px; }
}

.weather-preview-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.here-btn { display: inline-flex; align-items: center; gap: 6px; }

/* Endorsed brand: Farmer'sGuide by AgriConnect */
.nav-brand { display: inline-flex; flex-direction: column; line-height: 1.05; }
.nav-brand small { font-size: 11px; font-weight: 600; color: #6b7b68; letter-spacing: 0.2px; }
.ecosystem { background: #f6f8f4; }
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-card { background: #fff; border: 1px solid #e3eadf; border-radius: 16px; padding: 22px; }
.eco-card h3 { margin: 0 0 8px; font-size: 17px; }
.eco-card p { margin: 0; font-size: 14px; color: #4d5a4a; line-height: 1.5; }
@media (max-width: 860px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eco-grid { grid-template-columns: 1fr; } .nav-brand small { font-size: 10px; } }

/* Town/village weather search (static/js/place-search.js) */
.place-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.place-search input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid #cfd8cb; font: inherit; font-size: 15px; }
.place-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid #dfe6db; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); overflow: hidden; display: none; }
.place-result { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid #eef2ec; background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.place-result:first-child { border-top: 0; }
.place-result span { color: #6b7b68; font-size: 13px; }
.place-result:hover { background: #f2f7f0; }
.place-result.empty { color: #6b7b68; cursor: default; }

/* ---- Farm Planner band ---- */
.planner-band { background: #eef6ea; }
.planner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.planner-inner > div { flex: 1 1 420px; }
.planner-inner h2 { margin: 6px 0 10px; }
.planner-inner p { color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.planner-inner .btn { white-space: nowrap; }
