:root {
    --ink: #203026;
    --muted: #647067;
    --forest: #214f31;
    --forest-2: #173d26;
    --forest-3: #0f2f1c;
    --moss: #718c4b;
    --sage: #dfe8d7;
    --sage-2: #eef3e9;
    --cream: #f6f0e4;
    --cream-2: #fbf8f1;
    --gold: #b57a31;
    --gold-soft: #efe0c3;
    --lavender: #71578c;
    --rose: #a5546b;
    --danger: #963f35;
    --line: rgba(31, 64, 39, .16);
    --card: rgba(255, 253, 248, .96);
    --white: #fff;
    --shadow: 0 24px 60px rgba(36, 48, 37, .12);
    --shadow-soft: 0 12px 30px rgba(36, 48, 37, .08);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 13px;
    color: var(--ink);
    background: var(--cream-2);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream-2); color: var(--ink); }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 20%, rgba(113, 140, 75, .08), transparent 25rem),
        radial-gradient(circle at 92% 70%, rgba(113, 87, 140, .07), transparent 28rem);
    z-index: -1;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; fill: currentColor; }
.shell { width: min(1220px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--forest); box-shadow: var(--shadow-soft); font-weight: 800; }
.skip-link:focus { top: 14px; }

.local-bar { background: var(--forest-3); color: rgba(255,255,255,.9); font-size: .78rem; }
.local-bar-inner { min-height: 34px; display: flex; align-items: center; gap: 12px; }
.local-bar-divider { width: 1px; height: 13px; background: rgba(255,255,255,.25); }
.local-bar a { margin-left: auto; color: #fff; font-weight: 800; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(250, 247, 239, .94); border-bottom: 1px solid rgba(36, 62, 39, .12); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(181,122,49,.45); box-shadow: 0 6px 18px rgba(25, 42, 29, .16); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; color: var(--forest-2); font-size: 1.32rem; letter-spacing: .02em; }
.brand-copy small { color: var(--gold); text-transform: uppercase; font-size: .62rem; font-weight: 850; letter-spacing: .12em; white-space: nowrap; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: 8px; }
.desktop-nav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; color: #405045; font-size: .87rem; font-weight: 740; }
.desktop-nav a:hover { background: rgba(33,79,49,.07); color: var(--forest); }
.desktop-nav a.active { color: #fff; background: var(--forest); box-shadow: 0 8px 18px rgba(33,79,49,.18); }
.header-action { padding: 11px 16px; border: 1px solid rgba(33,79,49,.28); border-radius: 999px; text-decoration: none; color: var(--forest); font-size: .86rem; font-weight: 850; }
.header-action:hover { background: var(--forest); color: #fff; }

.hero { position: relative; min-height: 470px; display: flex; align-items: end; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background-image: url("images/hero-secret-garden.jpg"); background-size: cover; background-position: center 51%; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,35,20,.88) 0%, rgba(12,41,23,.72) 42%, rgba(15,45,28,.2) 75%, rgba(0,0,0,.08) 100%), linear-gradient(0deg, rgba(7,25,15,.46), transparent 55%); }
.hero-content { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 94px; color: white; }
.eyebrow { margin: 0 0 10px; color: var(--forest); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow.light { color: #e8d6aa; }
.hero h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero p:not(.eyebrow) { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.9); font-size: 1.09rem; line-height: 1.67; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-tags span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 800; }

.identifier-wrap { position: relative; z-index: 5; margin-top: -48px; padding-bottom: 68px; }
.workflow-card { padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(33,79,49,.16); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.workflow-top { display: flex; align-items: start; justify-content: space-between; gap: 32px; }
.workflow-top h2, .learning-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--forest-2); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; }
.section-intro { max-width: 720px; margin: 14px 0 0; color: var(--muted); line-height: 1.65; }
.privacy-chip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 9px 12px; border-radius: 999px; background: var(--sage-2); color: var(--forest); font-size: .76rem; font-weight: 850; }
.privacy-chip svg { width: 17px; height: 17px; }

.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 14px; margin: 32px 0 30px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #f8f6ef; }
.step-item { display: grid; grid-template-columns: 34px auto; column-gap: 10px; align-items: center; min-width: 150px; color: #718078; }
.step-item > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6e9e4; color: #647168; font-weight: 900; }
.step-item strong { color: #56635a; font-size: .86rem; }
.step-item small { font-size: .7rem; }
.step-item.active > span { background: var(--forest); color: white; box-shadow: 0 7px 14px rgba(33,79,49,.2); }
.step-item.active strong { color: var(--forest); }
.step-line { height: 1px; background: linear-gradient(90deg, rgba(33,79,49,.18), rgba(33,79,49,.07)); }

.capture-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .65fr); gap: 22px; align-items: start; }
.drop-zone { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 32px; border: 2px dashed #9eb49f; border-radius: 24px; background:
    linear-gradient(rgba(250,252,247,.88), rgba(250,252,247,.92)),
    radial-gradient(circle at 20% 30%, rgba(113,140,75,.14), transparent 18rem);
    cursor: pointer; text-align: center; transition: .2s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--forest); background-color: var(--sage-2); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.camera-orbit { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; box-shadow: 0 0 0 12px rgba(33,79,49,.08), 0 15px 30px rgba(33,79,49,.22); }
.camera-orbit svg { width: 35px; height: 35px; }
.drop-zone > strong { max-width: 470px; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.2; }
.drop-subtitle { color: var(--muted); font-size: .84rem; }
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 7px; }
.drop-actions b { padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--forest); font-size: .76rem; box-shadow: 0 5px 12px rgba(34,53,39,.06); }

.capture-guide { min-height: 330px; padding: 22px; border-radius: 24px; background: linear-gradient(155deg, var(--forest-2), var(--forest-3)); color: white; box-shadow: 0 18px 36px rgba(18,49,29,.16); }
.guide-title { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.guide-title > span { flex: 0 0 auto; }
.leaf-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); color: #e8d6aa; }
.guide-title div { display: grid; gap: 2px; }
.guide-title strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.guide-title small { color: rgba(255,255,255,.7); font-size: .73rem; line-height: 1.35; }
.feature-list { display: grid; gap: 8px; margin-top: 14px; }
.feature-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 13px; background: rgba(255,255,255,.055); }
.feature-item.recommended { background: rgba(232,214,170,.13); border: 1px solid rgba(232,214,170,.18); }
.feature-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.1); color: #e8d6aa; font-size: 1.05rem; }
.feature-item div { min-width: 0; display: grid; gap: 2px; }
.feature-item strong { font-size: .82rem; }
.feature-item small { color: rgba(255,255,255,.64); font-size: .68rem; }
.feature-item em { padding: 4px 7px; border-radius: 999px; background: #e8d6aa; color: var(--forest-3); font-size: .61rem; font-style: normal; font-weight: 900; }
.guide-note { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.74); font-size: .72rem; line-height: 1.5; }

.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 2px 10px; }
.preview-header > div { display: grid; gap: 2px; }
.preview-header strong { color: var(--forest-2); }
.preview-header small { color: var(--muted); font-size: .74rem; }
.count { padding: 6px 10px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: .73rem; font-weight: 900; }
.preview-list { display: grid; gap: 10px; }
.preview-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 18px rgba(33,49,36,.05); }
.preview-item > img { width: 120px; height: 94px; object-fit: cover; border-radius: 12px; background: #e7ece5; }
.preview-main { min-width: 0; display: grid; gap: 7px; }
.preview-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.preview-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--forest-2); font-size: .85rem; }
.quality-badge { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #ecefeb; color: #617066; font-size: .63rem; font-weight: 900; }
.quality-badge.good { background: #e0eddc; color: #2e6437; }
.quality-badge.warn { background: #f4e9d4; color: #795314; }
.quality-badge.poor { background: #f3dcda; color: #873f36; }
.quality-detail { color: var(--muted); font-size: .68rem; }
.preview-main label { display: flex; align-items: center; gap: 10px; color: #68736b; font-size: .72rem; }
.preview-main select { min-width: 190px; min-height: 38px; border: 1px solid #cad5c9; border-radius: 10px; padding: 7px 10px; color: var(--ink); background: #fbfcfa; }
.remove-photo { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--danger); font-size: .7rem; font-weight: 800; cursor: pointer; }
.remove-photo svg { width: 17px; height: 17px; }
.remove-photo:hover { text-decoration: underline; }

.context-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; background: #faf8f1; overflow: hidden; }
.context-panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; cursor: pointer; }
.context-panel summary::-webkit-details-marker { display: none; }
.context-panel summary > span { display: flex; align-items: center; gap: 11px; }
.context-panel summary svg { width: 23px; height: 23px; color: var(--forest); }
.context-panel summary span span { display: grid; gap: 2px; }
.context-panel summary strong { color: var(--forest-2); font-size: .87rem; }
.context-panel summary small { color: var(--muted); font-size: .72rem; }
.context-panel summary > b { color: var(--forest); font-size: .71rem; text-transform: uppercase; letter-spacing: .08em; }
.context-panel[open] summary { border-bottom: 1px solid var(--line); }
.context-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; padding: 20px; }
.field-group { display: grid; gap: 8px; align-content: start; }
.field-group label, .field-label { color: var(--forest-2); font-size: .8rem; font-weight: 850; }
.field-group input[type="date"] { min-height: 44px; border: 1px solid #c8d3c7; border-radius: 11px; padding: 8px 11px; background: white; color: var(--ink); }
.field-group small, .field-help { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.secondary-button { width: fit-content; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid rgba(33,79,49,.28); border-radius: 11px; background: white; color: var(--forest); font-size: .78rem; font-weight: 850; cursor: pointer; }
.secondary-button:hover { background: var(--sage-2); }
.secondary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button svg { width: 18px; height: 18px; }

.submit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 22px; }
.source-note { min-width: 0; display: grid; gap: 3px; }
.source-note strong { color: var(--forest-2); font-size: .8rem; }
.source-note span { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.primary-button { min-width: 260px; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: #fff; box-shadow: 0 13px 24px rgba(33,79,49,.21); font-weight: 900; cursor: pointer; transition: .18s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(33,79,49,.25); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.button-arrow { width: 20px; height: 20px; }
.spinner, .large-spinner { display: none; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: currentColor; animation: spin .75s linear infinite; }
.spinner { width: 20px; height: 20px; }
.is-loading .spinner { display: block; }
.is-loading .button-arrow { display: none; }
.large-spinner { display: block; width: 46px; height: 46px; margin: 0 auto 20px; color: var(--forest); border-color: #dce6da; border-top-color: var(--forest); }
@keyframes spin { to { transform: rotate(360deg); } }
.safety-line { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #7b4b25; text-align: center; font-size: .7rem; font-weight: 760; }

.results-section { padding-bottom: 70px; scroll-margin-top: 110px; }
.loading-card, .error-card { padding: 46px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); text-align: center; }
.loading-card h2, .error-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--forest-2); font-size: 2rem; }
.loading-card p, .error-card p { color: var(--muted); }

.result-shell { overflow: hidden; border: 1px solid rgba(33,79,49,.16); border-radius: var(--radius-lg); background: #fffdf8; box-shadow: var(--shadow); }
.result-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: #f7f4eb; }
.result-topbar > div { display: flex; align-items: center; gap: 10px; }
.result-topbar .result-kicker { color: var(--forest); font-size: .71rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 900; }
.result-topbar .result-updated { color: var(--muted); font-size: .7rem; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-action { display: inline-flex; align-items: center; gap: 6px; min-height: 37px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--forest); font-size: .7rem; font-weight: 850; cursor: pointer; }
.result-action:hover { background: var(--sage-2); }
.result-action.map-action { background: var(--forest); color: #fff; border-color: var(--forest); box-shadow: 0 8px 18px rgba(33,79,49,.16); }
.result-action.map-action:hover { background: #2e6842; }
.result-action svg { width: 16px; height: 16px; }
.result-hero { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }
.result-image { position: relative; min-height: 490px; background: #e4e9e1; overflow: hidden; }
.result-image img { width: 100%; height: 100%; min-height: 490px; object-fit: cover; display: block; }
.result-image figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(11,31,18,.78); color: rgba(255,255,255,.86); font-size: .62rem; line-height: 1.4; }
.result-summary { padding: clamp(28px, 4vw, 48px); }
.result-name-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: start; }
.result-summary h2 { margin: 0; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .96; letter-spacing: -.045em; }
.scientific { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.score-ring { --score: 0; width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle closest-side, #fffdf8 75%, transparent 77% 100%), conic-gradient(var(--forest) calc(var(--score) * 1%), #dfe6dc 0); }
.score-ring strong { color: var(--forest-2); font-size: 1.38rem; }
.score-ring span { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.result-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.status-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 7px 10px; border-radius: 999px; background: var(--sage-2); color: var(--forest); font-size: .7rem; font-weight: 900; }
.status-badge.visual { background: var(--gold-soft); color: #6f4b14; }
.assessment { margin-top: 22px; padding: 15px 17px; border-radius: 14px; background: #eef3e9; border: 1px solid rgba(33,79,49,.11); }
.assessment strong { display: block; margin-bottom: 4px; color: var(--forest); text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; }
.assessment span { color: #536158; font-size: .83rem; line-height: 1.48; }
.evidence-title { margin: 26px 0 10px; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.evidence-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf5; }
.evidence-card span { display: block; color: var(--muted); font-size: .65rem; }
.evidence-card strong { display: block; margin-top: 4px; color: var(--forest-2); font-size: .94rem; }
.result-caution { margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.result-tabs { display: flex; gap: 6px; padding: 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #faf8f1; overflow-x: auto; scrollbar-width: none; }
.result-tabs::-webkit-scrollbar { display: none; }
.result-tab { flex: 0 0 auto; padding: 15px 14px 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 850; cursor: pointer; }
.result-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.result-panel { display: none; padding: 28px; }
.result-panel.active { display: block; }
.result-panel h3 { margin: 0; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.result-panel > p { color: var(--muted); line-height: 1.6; }
.source-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.source-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--forest); font-size: .7rem; font-weight: 850; }
.source-links a:hover { background: var(--sage-2); }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.candidate { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.candidate figure { position: relative; height: 220px; margin: 0; background: #e6ebe3; }
.candidate figure img { width: 100%; height: 100%; object-fit: cover; }
.candidate figure figcaption { position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 6px 8px; border-radius: 7px; background: rgba(12,31,18,.76); color: #fff; font-size: .55rem; }
.image-placeholder { height: 220px; display: grid; place-items: center; color: var(--muted); background: #e7ece4; font-size: .75rem; }
.candidate-body { padding: 17px; }
.candidate-rank { display: flex; justify-content: space-between; color: var(--forest); font-size: .68rem; font-weight: 900; }
.candidate-rank span { color: var(--muted); }
.candidate h4 { margin: 10px 0 4px; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.15; }
.candidate .common-names { margin: 0; color: var(--muted); font-size: .74rem; }
.candidate .family { margin: 6px 0 12px; color: #7b857f; font-size: .65rem; }
.score-lines { margin-top: 14px; }
.score-lines > span { display: block; height: 6px; border-radius: 99px; background: #e2e8df; overflow: hidden; }
.score-lines i { display: block; height: 100%; background: linear-gradient(90deg, var(--moss), var(--forest)); }
.score-lines small { display: block; margin-top: 5px; color: var(--muted); font-size: .63rem; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .76rem; }
.compare-table th, .compare-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: var(--forest); background: #f5f3eb; }
.compare-table td:first-child { font-weight: 850; color: var(--forest-2); }
.citizen-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #f2eadb, #faf6ec); border: 1px solid rgba(181,122,49,.2); }
.citizen-card .citizen-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: #76501c; font-size: 1.2rem; }
.citizen-card strong { color: #6d4a18; }
.citizen-card p { margin: 5px 0 0; color: #75654b; font-size: .78rem; line-height: 1.5; }
.result-meta { padding: 14px 24px 20px; color: var(--muted); text-align: center; font-size: .63rem; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 200; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 999px; background: var(--forest-3); color: #fff; box-shadow: var(--shadow-soft); font-size: .76rem; font-weight: 800; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.learning-section { padding: 72px 0 84px; background: linear-gradient(180deg, #f0ecdf, #f7f3e9); border-top: 1px solid rgba(33,79,49,.1); }
.learning-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.75fr); gap: 40px; align-items: end; }
.learning-heading > p { margin: 0; color: var(--muted); line-height: 1.65; }
.learning-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 32px; }
.learning-grid article { padding: 22px; border: 1px solid rgba(33,79,49,.12); border-radius: 18px; background: rgba(255,255,255,.58); }
.learning-grid article > span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.learning-grid h3 { margin: 18px 0 8px; color: var(--forest-2); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }
.learning-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.site-footer { padding: 28px 0; background: var(--forest-3); color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 28px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.footer-brand span { color: rgba(255,255,255,.66); font-size: .7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .72rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.plantnet-credit {
    display: grid;
    justify-items: end;
    gap: 4px;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.58);
    text-decoration: none;
    line-height: 1;
    isolation: isolate;
}
.plantnet-credit span { font-size: .5rem; letter-spacing: .045em; text-transform: uppercase; }
.plantnet-credit img {
    width: 104px;
    max-width: 28vw;
    height: auto;
    display: block;
    background: none !important;
    border: 0;
    border-radius: 0;
    opacity: .78;
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}
.plantnet-credit:hover img { opacity: 1; }
.mobile-nav { display: none; }

@media (max-width: 1060px) {
    .desktop-nav { display: none; }
    .header-inner { grid-template-columns: 1fr auto; }
    .capture-layout { grid-template-columns: minmax(0,1.25fr) minmax(270px,.75fr); }
    .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .learning-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 780px) {
    .shell { width: min(100% - 24px, 720px); }
    .local-bar-inner { min-height: 30px; overflow-x: auto; white-space: nowrap; }
    .local-bar-inner span:nth-of-type(2), .local-bar-inner span:nth-of-type(3) { display: none; }
    .site-header { top: 0; }
    .header-inner { min-height: 69px; gap: 12px; }
    .brand img { width: 46px; height: 46px; }
    .brand-copy strong { font-size: 1.03rem; }
    .brand-copy small { font-size: .5rem; }
    .header-action { padding: 9px 12px; font-size: .72rem; }
    .hero { min-height: 420px; }
    .hero-shade { background: linear-gradient(0deg, rgba(9,35,20,.9) 0%, rgba(12,42,24,.62) 60%, rgba(0,0,0,.12)); }
    .hero-content { padding-top: 92px; padding-bottom: 75px; }
    .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
    .hero p:not(.eyebrow) { font-size: .93rem; }
    .hero-tags { gap: 6px; }
    .hero-tags span { padding: 7px 9px; font-size: .67rem; }
    .identifier-wrap { margin-top: -34px; padding-bottom: 50px; }
    .workflow-card { padding: 20px 16px 24px; border-radius: 24px; }
    .workflow-top { display: block; }
    .privacy-chip { margin-top: 15px; }
    .stepper { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 9px; }
    .step-line { display: none; }
    .step-item { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); column-gap: 7px; }
    .step-item > span { width: 28px; height: 28px; }
    .step-item small { display: none; }
    .step-item strong { font-size: .69rem; }
    .capture-layout { grid-template-columns: 1fr; }
    .drop-zone { min-height: 285px; padding: 24px 16px; }
    .drop-zone > strong { font-size: 1.25rem; }
    .capture-guide { min-height: 0; }
    .preview-item { grid-template-columns: 86px minmax(0,1fr); align-items: start; }
    .preview-item > img { width: 86px; height: 86px; }
    .preview-main label { display: grid; gap: 5px; }
    .preview-main select { min-width: 0; width: 100%; }
    .remove-photo { grid-column: 2; justify-self: start; }
    .preview-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
    .context-panel summary { align-items: flex-start; }
    .context-panel summary > b { display: none; }
    .context-grid, .submit-row { grid-template-columns: 1fr; }
    .primary-button { width: 100%; min-width: 0; }
    .source-note { text-align: center; }
    .result-topbar { align-items: flex-start; flex-direction: column; }
    .result-hero { grid-template-columns: 1fr; }
    .result-image, .result-image img { min-height: 360px; }
    .result-summary { padding: 26px 20px; }
    .result-name-row { grid-template-columns: 1fr; }
    .score-ring { width: 92px; height: 92px; }
    .evidence-grid { grid-template-columns: 1fr 1fr; }
    .candidate-grid { grid-template-columns: 1fr; }
    .result-panel { padding: 22px 16px; }
    .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
    .learning-heading { grid-template-columns: 1fr; gap: 16px; }
    .learning-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; justify-items: start; }
    .plantnet-credit { justify-items: start; padding-left: 0; border-left: 0; }
    .footer-links { order: 3; }
    .site-footer { padding-bottom: 105px; }
    .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: grid; grid-template-columns: repeat(5,1fr); align-items: end; min-height: 70px; padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid rgba(33,79,49,.14); background: rgba(252,249,242,.96); backdrop-filter: blur(18px); box-shadow: 0 -8px 24px rgba(28,47,33,.09); }
    .mobile-nav a { display: grid; justify-items: center; gap: 3px; color: #657269; text-decoration: none; font-size: .59rem; font-weight: 800; }
    .mobile-nav a > svg { width: 20px; height: 20px; }
    .mobile-nav .active { color: var(--forest); }
    .nav-identify { display: grid; place-items: center; width: 43px; height: 43px; margin-top: -25px; border-radius: 50%; background: var(--forest); color: #fff; box-shadow: 0 8px 18px rgba(33,79,49,.28); }
    .nav-identify svg { width: 21px; height: 21px; }
}

@media (max-width: 430px) {
    .brand-copy small { display: none; }
    .header-action { display: none; }
    .header-inner { grid-template-columns: 1fr; }
    .hero { min-height: 390px; }
    .hero-content { padding-top: 74px; }
    .workflow-top h2 { font-size: 2rem; }
    .drop-actions b:first-child { display: none; }
    .capture-guide { padding: 18px; }
    .evidence-grid { grid-template-columns: 1fr; }
    .result-actions { width: 100%; }
    .result-action { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
