/* MAPAPP-AgTech landing page (landing/magtech.html). One stylesheet, no external fonts or frameworks, MAPAPP's
   font stacks (public/assets/css/app.css), the page's own cobalt / sprout colours, and dark mode. */
:root {
    --primary: #0037af;
    --primary-hover: #1b4ed8;
    --on-primary: #fff;
    --secondary: #006d30;
    --secondary-container: #92f5a4;
    --on-secondary-container: #00561f;
    --bg: #faf8ff;
    --surface: #fff;
    --surface-low: #f3f2fe;
    --surface-mid: #ededf9;
    --text: #1a1b23;
    --muted: #434655;
    --line: #c4c5d7;
    --scrim: rgba(26, 27, 35, .4);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --radius: 8px;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #b7c4ff;
        --primary-hover: #cad3ff;
        --on-primary: #002681;
        --secondary: #79db8d;
        --secondary-container: #007635;
        --on-secondary-container: #97faa8;
        --bg: #11131b;
        --surface: #1a1b23;
        --surface-low: #1e1f27;
        --surface-mid: #282a32;
        --text: #e2e1ed;
        --muted: #c4c5d7;
        --line: #434655;
        --scrim: rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
/* Comfort, as in MAPAPP: page text isn't selected by stray taps or drags; form fields, code and email/phone links still are.
   A convenience only, not a protection. The share window's link box selects all of the link in one tap (.link-box input). */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, [contenteditable], code, a[href^="mailto:"], a[href^="tel:"], .selectable { -webkit-user-select: text; user-select: text; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .stat-n { font-family: var(--display); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Text styles */
.eyebrow { font-size: 12px; line-height: 16px; letter-spacing: .4px; font-weight: 600; text-transform: uppercase; color: var(--primary); }
.eyebrow.green { color: var(--secondary); }
.h2 { font-size: 26px; line-height: 32px; letter-spacing: -.25px; }
.h3 { font-size: 20px; line-height: 28px; }
.lede { font-size: 16px; line-height: 24px; color: var(--muted); max-width: 65ch; }
.text { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) { .h2 { font-size: 36px; line-height: 42px; letter-spacing: -.5px; } .lede.big { font-size: 18px; line-height: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px;
       font: 600 15px/20px var(--font); cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text);
       transition: background-color .12s ease-out; }
.btn:hover { background: var(--surface-low); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-blue { color: var(--primary); }
.btn-sm { min-height: 0; padding: 10px 16px; font-size: 13px; line-height: 18px; }
.btn .icon.blue { color: var(--primary); }
.link-btn { background: none; border: 0; padding: 0; font: 600 13px/18px var(--font); color: var(--primary); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand b { display: block; font-family: var(--display); font-size: 16px; line-height: 1.1; }
.brand small { display: none; font-size: 12px; color: var(--muted); }
.nav { display: none; gap: 32px; }
.nav a { font-size: 13px; font-weight: 600; color: var(--muted); transition: color .12s ease-out; }
.nav a:hover { color: var(--primary); }
.head-actions { display: flex; gap: 8px; }
.head-actions .btn { padding: 8px 12px; }
.hide-sm { display: none; }
@media (min-width: 640px) { .brand img { height: 36px; } .brand small, .hide-sm { display: inline; } .head-actions { gap: 12px; } .head-actions .btn { padding: 8px 16px; } }
@media (min-width: 1024px) { .nav { display: flex; } }

/* Sections */
.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section.tint { background: var(--surface-low); }
.section.last { border-bottom: 0; }
@media (min-width: 1024px) { .section { padding: 64px 0; } }
.split { display: grid; gap: 32px; align-items: center; }
.split.top { align-items: start; }
@media (min-width: 1024px) {
    .split { grid-template-columns: repeat(12, 1fr); }
    .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; }
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.section-head .stack-sm { max-width: 42rem; }
.section-head .lede { max-width: 24rem; }
@media (min-width: 1024px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; } }

/* Hero */
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--secondary-container);
        color: var(--on-secondary-container); font-size: 12px; line-height: 16px; letter-spacing: .4px; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.hero h1 { font-size: 32px; line-height: 38px; letter-spacing: -.5px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-top: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 8px 0 0; margin: 0; list-style: none; font-size: 14px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .icon { color: var(--secondary); }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 640px) { .hero-copy { gap: 24px; } .hero-actions { flex-direction: row; flex-wrap: wrap; width: auto; gap: 16px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 52px; line-height: 58px; letter-spacing: -1px; } }

/* Stats strip */
.stats { padding: 32px 0; }
.stats .wrap { display: grid; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stat:last-child { padding-bottom: 0; border-bottom: 0; }
.stat-n { font-size: 26px; line-height: 32px; font-variant-numeric: tabular-nums; color: var(--primary); }
.stat-n.green { color: var(--secondary); }
.stat-n.plain { color: var(--text); }
.stat b { font-size: 16px; line-height: 24px; }
@media (min-width: 768px) {
    .stats .wrap { grid-template-columns: repeat(3, 1fr); }
    .stat { padding: 0 24px 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
    .stat:last-child { border-right: 0; }
}
@media (min-width: 1024px) { .stats { padding: 40px 0; } .stat-n { font-size: 36px; line-height: 42px; } }

/* Cards */
.cards { display: grid; gap: 24px; align-items: stretch; }
.card { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.card .tag { font-size: 12px; line-height: 16px; letter-spacing: .4px; font-weight: 500; color: var(--secondary); }
.card .tag.blue { color: var(--primary); }
.steps { display: grid; gap: 24px; }
.step { padding: 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }
.step-top .green { color: var(--secondary); }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 10px; border-radius: 999px;
       background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards .wide { grid-column: span 2; } .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards .wide { grid-column: auto; } }

/* Reasons (Why AgTech) */
.reason { flex-direction: row; align-items: flex-start; gap: 16px; }
.reason .icon { width: 28px; height: 28px; color: var(--primary); }
.reason .icon.green { color: var(--secondary); }
.reason div { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 640px) { .reason { padding: 24px; } }

/* Share card */
.share-card { background: var(--surface-low); }
.share-card .row { display: flex; align-items: center; gap: 10px; }
.share-card .row .icon { width: 24px; height: 24px; color: var(--primary); }
.share-card .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.share-card .buttons .btn:hover { background: var(--surface-mid); }
.status { font-size: 12px; font-weight: 500; color: var(--secondary); }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 24px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary); transition: transform .15s ease-out; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { padding-top: 12px; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0; }
.foot-row { display: flex; flex-direction: column; gap: 16px; }
.site-foot .brand img { height: 28px; }
.site-foot .brand span { font-size: 14px; color: var(--muted); }
.foot-links { display: flex; align-items: center; gap: 24px; }
.foot-links a { font-size: 13px; font-weight: 600; }
.foot-links a:hover { color: var(--primary); }
@media (min-width: 640px) { .foot-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } }

/* Share dialog (native <dialog>) */
.share-dialog { width: min(28rem, calc(100% - 48px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
                background: var(--surface); color: var(--text); }
.share-dialog::backdrop { background: var(--scrim); }
.share-dialog .stack { gap: 20px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px;
            border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-low); }
.link-box { display: flex; align-items: center; gap: 8px; border-radius: 6px; background: var(--surface-low); border: 1px solid var(--line); padding: 8px; }
.link-box input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 500 13px/18px var(--font); -webkit-user-select: all; user-select: all; }
.share-ways { display: flex; flex-wrap: wrap; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; }

/* Founder track (secondary to the pre-apprenticeship) */
.aside { font-size: 14px; line-height: 20px; color: var(--muted); }
.aside a, .faq p a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.founder-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
                border: 1px dashed var(--line); background: var(--surface); scroll-margin-top: 88px; }
.founder-note > .icon { width: 28px; height: 28px; color: var(--secondary); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--primary); }
.link-arrow:hover { text-decoration: underline; }
.faq { scroll-margin-top: 88px; }

/* Sponsors: logos on white tiles, so dark lettering stays readable in dark mode */
h2.eyebrow { font-family: var(--font); margin: 0; }
.sponsors .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.sponsor-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.sponsor { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px 24px; border-radius: var(--radius);
           background: #fff; border: 1px solid var(--line); }
.sponsor img { height: 56px; width: auto; }
@media (min-width: 768px) { .sponsor { height: 112px; } .sponsor img { height: 64px; } }

/* Copyright, under the footer row */
.copyright { margin-top: 20px; padding-top: 16px; padding-bottom: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
