:root {
  --bg: #07110c;
  --bg-2: #0c1a12;
  --card: rgba(18, 35, 25, 0.78);
  --card-solid: #102017;
  --line: rgba(226, 241, 228, 0.11);
  --text: #eaf2eb;
  --muted: #9bb0a2;
  --lime: #a3d95f;
  --lime-strong: #8fcb45;
  --lime-tint: rgba(163, 217, 95, 0.13);
  --sun: #e7b85a;
  --sun-tint: rgba(231, 184, 90, 0.12);
  --sky: #6db3e0;
  --sky-tint: rgba(109, 179, 224, 0.12);
  --earth: #c99062;
  --alert: #e8806b;
  --alert-tint: rgba(232, 128, 107, 0.12);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 12%, rgba(43, 87, 52, .16), transparent 34rem),
    radial-gradient(ellipse at 5% 55%, rgba(104, 79, 39, .09), transparent 28rem),
    radial-gradient(ellipse at 52% 100%, rgba(28, 73, 46, .12), transparent 42rem),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(166, 207, 151, .018) 96px, transparent 97px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
}

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.glass {
  background: linear-gradient(145deg, rgba(23, 43, 29, .86), rgba(10, 23, 15, .84));
  border: 1px solid rgba(226, 241, 228, .15);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--lime); color: #0a1a0f; }
.btn-primary:hover { background: #b4e473; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(163, 217, 95, 0.3); }
.btn:active { transform: translateY(1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: #5d7a45; color: #1a2a1a; cursor: progress; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.4); }
.btn-sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease;
  background: rgba(6, 16, 11, .38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 241, 228, .08);
}
.nav.scrolled { background: rgba(6, 16, 11, 0.9); border-color: var(--line); box-shadow: 0 8px 26px rgba(0,0,0,.16); }
.nav-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { width: 34px; height: 34px; color: var(--lime); filter: drop-shadow(0 0 10px rgba(163,217,95,.24)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text small { font-size: .7rem; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 1.75rem; font-size: .92rem; font-weight: 500; }
.menu a:not(.btn) { color: #d3dfd6; padding: .25rem 0; position: relative; transition: color .2s; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.menu a:not(.btn):hover { color: #fff; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }
.language-control select { min-height: 40px; margin: 0; padding: .35rem 2rem .35rem .75rem; border-radius: 999px; font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 3.5rem) 1.25rem 2rem; min-height: 690px; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.site-art { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; opacity: .56; filter: saturate(1.12) contrast(1.04); pointer-events: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,12,8,.82) 0%, rgba(5,12,8,.38) 43%, rgba(5,12,8,.04) 82%),
    linear-gradient(180deg, rgba(5,12,8,.08) 55%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .15;
  background-image: linear-gradient(rgba(196, 228, 186, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 228, 186, .2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 78% 48%, #000 0, transparent 68%);
}
.hero-observation-orbit { stroke: rgba(192, 224, 169, .8); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .82; }
.hero-satellite { fill: rgba(109,179,224,.55); stroke: rgba(206,232,193,.96); stroke-width: 1.5; opacity: .92; }
.hero-satellite rect { fill: rgba(205,231,184,.78); }
.site-network { fill: none; stroke: rgba(163, 217, 95, .62); stroke-width: 1.2; stroke-dasharray: 2 6; opacity: .7; }
.site-network circle { fill: var(--lime); stroke: none; }
.hero-inner, .hero-stats { position: relative; z-index: 2; max-width: 1200px; width: 100%; margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1rem; border: 1px solid rgba(163,217,95,.35); background: rgba(8, 24, 14, .56); border-radius: 999px; font-size: .8rem; color: #d7edc4; margin-bottom: 1.35rem; backdrop-filter: blur(8px); }
.hero .pill { box-shadow: 0 0 30px rgba(163,217,95,.08), inset 0 1px 0 rgba(255,255,255,.04); }
.hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 6vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; margin-bottom: 1.1rem; text-wrap: balance; }
.hero h1 span { color: var(--lime); text-shadow: 0 8px 40px rgba(163, 217, 95, .15); }
.hero-copy { max-width: 660px; animation: hero-rise .7s ease-out both; }
.hero-copy p { color: #d4dfd6; max-width: 43ch; margin-bottom: 1.75rem; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.insights { padding: 1.35rem; max-width: 370px; justify-self: end; width: 100%; background: linear-gradient(145deg, rgba(14, 33, 22, .9), rgba(7, 18, 12, .86)); border-color: rgba(223, 239, 218, .22); box-shadow: 0 26px 72px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.06); }
.insights-head { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.insights-title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.insights-src { color: var(--lime); font-size: .78rem; font-weight: 600; }
.insights-sub { color: var(--muted); font-size: .8rem; margin: .25rem 0 1rem; }
.meter { margin-bottom: .9rem; }
.meter-row { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .35rem; }
.meter-row span { color: #cdd9d0; }
.meter-row b { font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.track { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime-strong), var(--lime)); border-radius: 3px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.insights-foot { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 1.1rem 1.5rem; background: linear-gradient(110deg, rgba(10, 27, 17, .9), rgba(13, 30, 20, .72)); border-color: rgba(223, 239, 218, .2); box-shadow: 0 20px 56px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04); }
.hero-stats div { display: flex; flex-direction: column; padding: 0 1rem; border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats b { font-size: 1.6rem; font-weight: 800; color: var(--lime); line-height: 1.1; }
.hero-stats span { font-size: .8rem; color: var(--muted); }
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.25rem 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head h2::before { content: ""; display: block; width: 2.4rem; height: 3px; margin-bottom: .8rem; border-radius: 99px; background: linear-gradient(90deg, var(--lime), rgba(163,217,95,.12)); box-shadow: 0 0 18px rgba(163,217,95,.24); }
.section-head p { color: var(--muted); max-width: 42ch; }

.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { padding: 1.4rem; background: linear-gradient(150deg, rgba(24, 45, 30, .88), rgba(10, 23, 15, .84)); transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(163,217,95,.42); background: linear-gradient(150deg, rgba(31, 57, 37, .92), rgba(12, 27, 17, .88)); box-shadow: 0 24px 55px rgba(0,0,0,.28), 0 0 28px rgba(163,217,95,.06); }
.icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime); margin-bottom: 1rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.18); }
.icon svg { width: 24px; height: 24px; }
.icon-earth { background: rgba(201,144,98,.15); color: var(--earth); }
.icon-sky { background: var(--sky-tint); color: var(--sky); }
.icon-sun { background: var(--sun-tint); color: var(--sun); }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; }
.section-head { position: relative; }
.section-head h2 { text-wrap: balance; }
.section-head p { line-height: 1.55; }

/* ---------- Planner ---------- */
.planner { position: relative; isolation: isolate; max-width: 1340px; padding-top: 5rem; }
.planner::before { content: ""; position: absolute; inset: 3.5rem .5rem 0; z-index: -1; border: 1px solid rgba(187, 220, 169, .1); border-radius: 30px; background: radial-gradient(ellipse at 12% 18%, rgba(119, 164, 77, .17), transparent 40%), radial-gradient(ellipse at 92% 78%, rgba(77, 132, 105, .11), transparent 34%), linear-gradient(135deg, rgba(20, 43, 29, .5), rgba(8, 18, 12, .18)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 30px 90px rgba(0,0,0,.1); pointer-events: none; }
.planner-grid { display: grid; grid-template-columns: minmax(310px, .75fr) minmax(0, 1.45fr); gap: 1.35rem; align-items: start; }
.form-panel { padding: 1.35rem; position: sticky; top: calc(var(--nav-h) + 12px); border-radius: 24px; background: radial-gradient(ellipse at 0 0, rgba(163,217,95,.055), transparent 36%), linear-gradient(155deg, rgba(18, 38, 25, .76), rgba(8, 20, 13, .72)); border-color: rgba(199, 222, 190, .17); box-shadow: 0 28px 76px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.045); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }

fieldset { border: 1px solid rgba(226, 241, 228, .065); padding: .8rem; margin: 0 0 .85rem; min-width: 0; border-radius: 16px; background: rgba(255,255,255,.006); }
fieldset + fieldset { border-top: 1px solid rgba(226, 241, 228, .08); padding-top: .8rem; }
legend { font-weight: 800; font-size: .98rem; padding: 0 .35rem; margin-bottom: .5rem; color: #e7f2e7; }
label { display: block; font-size: .85rem; font-weight: 600; color: #cdd9d0; margin-bottom: .8rem; }

input[type="number"], input[type="date"], select {
  display: block; width: 100%; margin-top: .3rem; min-height: 46px; padding: .6rem .8rem;
  font: inherit; font-weight: 500; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
  transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}
input:hover, select:hover { border-color: rgba(255,255,255,.2); }
input:focus, select:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163,217,95,.2); background: rgba(255,255,255,.07); }
select option { background: #0e1b14; color: var(--text); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.hint { color: var(--muted); font-size: .82rem; margin-bottom: .75rem; }
.field-label { margin-bottom: .35rem; color: #cdd9d0; font-size: .85rem; font-weight: 700; }
.field-label span { margin-left: .35rem; color: var(--muted); font-size: .72rem; font-weight: 500; }
.preferred-crops { display: flex; flex-wrap: wrap; gap: .45rem; margin: .45rem 0 .65rem; }
.preferred-crop-option { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); color: #cdd9d0; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: transform .18s, background .18s, border-color .18s, color .18s; }
.preferred-crop-option:hover { border-color: rgba(163,217,95,.5); }
.preferred-crop-option:hover { transform: translateY(-1px); }
.preferred-crop-option.selected { border-color: var(--lime); background: linear-gradient(145deg, rgba(163,217,95,.2), rgba(163,217,95,.08)); color: #e7f2e7; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(163,217,95,.07); }
.preferred-crop-option input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--lime); }
.location-search-label { margin-bottom: .4rem; position: relative; }
input[type="search"] { display: block; width: 100%; margin-top: .3rem; min-height: 48px; padding: .65rem .8rem .65rem 2.6rem; font: inherit; font-weight: 500; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
input[type="search"]::placeholder { color: #8fa596; }
.location-search-label::after { content: "⌖"; position: absolute; left: .85rem; top: 2.05rem; color: var(--lime); font-size: 1.2rem; pointer-events: none; }
input[type="search"]:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(163,217,95,.2); }
.location-suggestions { position: relative; z-index: 3; margin-top: .45rem; overflow: hidden; border: 1px solid rgba(195, 220, 184, .3); border-radius: 15px; background: linear-gradient(145deg, rgba(18, 39, 25, .99), rgba(9, 23, 15, .99)); box-shadow: 0 22px 48px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05); }
.location-suggestions[hidden] { display: none; }
.location-option { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .55rem; width: 100%; padding: .8rem .9rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .18s ease, padding .18s ease; }
.location-option::before { content: "⌖"; grid-column: 1; grid-row: 1 / span 2; align-self: center; color: var(--lime); font-size: 1.1rem; }
.location-option span, .location-option small { grid-column: 2; overflow-wrap: anywhere; }
.location-option span { font-size: .9rem; font-weight: 700; }
.location-option:last-child { border-bottom: 0; }
.location-option:hover, .location-option[aria-selected="true"] { background: linear-gradient(90deg, rgba(163,217,95,.14), rgba(163,217,95,.04)); padding-left: 1.05rem; }
.location-option small { display: block; color: var(--muted); font-size: .76rem; }
.location-status, .location-attribution { min-height: 1.1rem; margin: .3rem 0 0; color: var(--muted); font-size: .74rem; }
.location-status:not(:empty) { padding: .35rem .55rem; border-radius: 8px; background: rgba(255,255,255,.035); }

.link-button { display: inline-flex; align-items: center; gap: .45rem; background: rgba(163,217,95,.08); border: 1px solid rgba(163,217,95,.24); border-radius: 999px; padding: .45rem .8rem; min-height: 40px; color: #c9e6aa; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.link-button::before { content: "◎"; color: var(--lime); font-size: 1.1rem; }
.link-button:hover { background: rgba(163,217,95,.15); border-color: rgba(163,217,95,.5); transform: translateY(-1px); }

.priority { margin-bottom: 1rem; }
.priority-name { font-size: .9rem; font-weight: 700; }
.priority-hint { font-size: .78rem; color: var(--muted); margin-bottom: .45rem; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .25rem; background: rgba(255,255,255,.035); border-radius: 999px; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: .5rem 0; min-height: 38px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--lime); color: #0a1a0f; }
.segmented input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }

.period { margin-bottom: 1.4rem; font-size: .9rem; }
.period summary { cursor: pointer; font-weight: 600; color: #cdd9d0; padding: .4rem 0; }
.period summary:hover { color: var(--lime); }
.period[open] summary { margin-bottom: .5rem; }

/* ---------- Result states ---------- */
.empty, .state { padding: 2rem; }
.empty { text-align: center; padding: 3.5rem 2rem; }
.empty-mark { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime); }
.empty-mark svg { width: 34px; height: 34px; }
.empty h3, .state h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.empty p, .state p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.state p { margin-left: 0; }

.state.loading { display: flex; align-items: center; gap: 1.1rem; }
.spinner { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(163,217,95,.18); border-top-color: var(--lime); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.state.error { border-color: rgba(232,128,107,.45); background: rgba(60, 24, 18, 0.55); }
.state.error h3 { color: var(--alert); }
.state.error p + p { margin-top: .5rem; }

#results { scroll-margin-top: calc(var(--nav-h) + 12px); }
.results-stack { display: grid; gap: .85rem; }

.selected-location-summary {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem;
  border-color: rgba(163,217,95,.32); background: rgba(17, 40, 25, .75);
}
.selected-location-summary .location-pin { color: var(--lime); font-size: 1.5rem; line-height: 1; }
.selected-location-summary small, .selected-location-summary strong { display: block; }
.selected-location-summary small { color: var(--muted); font-size: .78rem; }
.selected-location-summary strong { overflow-wrap: anywhere; }

.farm-indicators { display: flex; flex-wrap: wrap; gap: .55rem; }
.farm-indicator { display: flex; align-items: center; gap: .55rem; min-width: min(100%, 220px); padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.indicator-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; color: var(--lime); background: var(--lime-tint); }
.crop-indicator .indicator-icon { color: var(--earth); background: rgba(201,144,98,.14); }
.farm-indicator small, .farm-indicator strong { display: block; }
.farm-indicator small { color: var(--muted); font-size: .7rem; }
.farm-indicator strong { font-size: .85rem; overflow-wrap: anywhere; }
.preference-assessment { padding: .8rem 1rem; border-color: rgba(163,217,95,.2); }
.preference-assessment summary { color: var(--lime); cursor: pointer; font-size: .82rem; font-weight: 700; }
.preference-assessment ul { margin: .55rem 0 0; padding-left: 1.1rem; color: #cdd9d0; font-size: .8rem; }
.preference-assessment li + li { margin-top: .25rem; }

.notice { padding: .9rem 1.1rem; border-radius: 14px; background: var(--sky-tint); border: 1px solid rgba(109,179,224,.28); font-size: .9rem; color: #cfe3f2; }
.notice p + p { margin-top: .4rem; }

.rotation-plan { padding: 1.15rem; border-radius: 22px; background: linear-gradient(150deg, rgba(20, 39, 26, .92), rgba(9, 21, 14, .9)); box-shadow: 0 18px 46px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.035); transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.rotation-plan:hover { transform: translateY(-2px); border-color: rgba(163,217,95,.42); box-shadow: 0 24px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.045); }
.rotation-plan.top { border-color: rgba(163,217,95,.42); background: radial-gradient(ellipse at 100% 0, rgba(163,217,95,.09), transparent 45%), linear-gradient(150deg, rgba(20, 42, 27, .94), rgba(9, 21, 14, .92)); }
.rotation-plan.focused { border-color: rgba(163,217,95,.72); box-shadow: 0 0 0 1px rgba(163,217,95,.2), 0 22px 52px rgba(0,0,0,.3); background: radial-gradient(ellipse at 100% 0, rgba(163,217,95,.12), transparent 48%), linear-gradient(150deg, rgba(22, 46, 29, .96), rgba(10, 23, 15, .94)); }
.rotation-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.rotation-plan .badge { margin: 0; }
.rotation-plan.top .badge { background: var(--lime); border-color: var(--lime); color: #0a1a0f; }
.screening-score { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.rotation-plan-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-left: auto; }
.plan-focus { flex: none; min-height: 38px; padding: .4rem .8rem; border: 1px solid rgba(163,217,95,.35); border-radius: 999px; background: rgba(163,217,95,.08); color: #d7edc4; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.plan-focus:hover, .plan-focus[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: #0a1a0f; }
.speech-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.speech-button { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 36px; padding: .35rem .65rem; border: 1px solid rgba(163,217,95,.32); border-radius: 999px; background: rgba(163,217,95,.07); color: #d7edc4; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.speech-button svg { width: 15px; height: 15px; flex: none; }
.speech-button:hover { transform: translateY(-1px); border-color: var(--lime); background: rgba(163,217,95,.16); color: #fff; }
.speech-button:active { transform: translateY(0); }
.speech-button[hidden] { display: none; }
.speech-status { flex-basis: 100%; color: var(--alert); font-size: .7rem; line-height: 1.35; }
.speech-status:empty { display: none; }
.coverage-label { margin-top: .8rem; color: var(--lime); font-size: .78rem; font-weight: 700; }
.coverage-label.partial { color: var(--sun); }
.coverage-label.partial p { margin: 0; }
.coverage-label.partial small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 500; }
.season-phases { display: flex; align-items: stretch; gap: .55rem; margin-top: .65rem; }
.season-phase { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 22px rgba(0,0,0,.1); transition: border-color .18s, transform .18s, background .18s, box-shadow .18s; }
.season-phase:hover { border-color: rgba(211,231,195,.3); transform: translateY(-1px); }
.season-phase { flex: 1 1 0; }
.season-phase.winter { border-color: rgba(109,179,224,.36); background: linear-gradient(145deg, rgba(66,128,160,.2), rgba(31,69,87,.11)); }
.season-phase.summer { border-color: rgba(231,184,90,.38); background: linear-gradient(145deg, rgba(169,122,40,.2), rgba(92,62,20,.11)); }
.season-phase.monsoon { border-color: rgba(100,190,157,.4); background: linear-gradient(145deg, rgba(49,135,100,.2), rgba(22,75,54,.11)); }
.season-icon { flex: none; font-size: 1.25rem; line-height: 1.5; }
.season-phase h4 { margin: 0 0 .25rem; color: var(--muted); font-size: .78rem; }
.season-phase strong { display: block; color: var(--text); font-size: 1.1rem; overflow-wrap: anywhere; }
.season-phase small, .season-climate { display: block; color: var(--muted); font-size: .76rem; }
.season-dates { display: grid; gap: .12rem; margin-top: .25rem; }
.season-conditions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.season-condition { display: inline-flex; padding: .2rem .5rem; border: 1px solid rgba(226,241,228,.16); border-radius: 999px; background: rgba(0,0,0,.12); font-size: .67rem; line-height: 1.35; }
.season-reason { margin-top: .45rem; color: #d7e3d9; font-size: .74rem; line-height: 1.4; }
.phase-notes { margin-top: .35rem; }
.phase-notes summary { color: var(--lime); cursor: pointer; font-size: .74rem; font-weight: 700; }
.phase-notes ul { margin: .35rem 0 0; padding-left: 1rem; color: var(--muted); font-size: .72rem; }
.phase-notes li + li { margin-top: .2rem; }
.season-climate { margin-top: .3rem; }
.season-transition { display: flex; flex: 0 1 112px; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .45rem .3rem; border: 1px dashed rgba(226,241,228,.13); border-radius: 12px; background: rgba(4,13,8,.18); color: var(--muted); text-align: center; }
.transition-arrow { color: var(--lime); font-size: 1.3rem; line-height: 1; }
.season-transition small { font-size: .68rem; line-height: 1.3; }
.season-transition.overlap, .cycle-transition.overlap { color: var(--sun); }
.cycle-transition { margin-top: .55rem; color: var(--muted); font-size: .75rem; }
.calendar-note { display: block; margin-top: .65rem; color: var(--muted); font-size: .72rem; }
.rotation-benefit, .rotation-explanation { margin-top: .8rem; font-size: .88rem; }
.rotation-benefit strong { color: var(--lime); }
.rotation-explanation { color: var(--muted); }
.plan-details { margin-top: .65rem; border-top: 1px solid var(--line); }
.plan-details summary { padding: .65rem 0 .2rem; color: var(--lime); cursor: pointer; font-weight: 700; font-size: .85rem; }
.plan-details h4 { margin: .55rem 0 .25rem; font-size: .84rem; }
.plan-details ul { padding-left: 1.1rem; color: #cdd9d0; font-size: .84rem; }
.plan-details li { margin-bottom: .2rem; }

.overview { padding: 1.3rem; background: radial-gradient(ellipse at 100% 0, rgba(109,179,224,.07), transparent 42%), linear-gradient(145deg, rgba(19,38,25,.9), rgba(9,21,14,.86)); }
.overview h3, .results-title { font-size: 1.2rem; font-weight: 700; }
.overview .hint { margin: .2rem 0 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 0; }
.tile { padding: .85rem 1rem; border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018)); border: 1px solid rgba(226,241,228,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: border-color .2s, transform .2s, box-shadow .2s; }
.tile:hover { border-color: rgba(163,217,95,.4); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04); }
.tile dt { font-size: .76rem; color: var(--muted); }
.tile dd { margin: .1rem 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile dd small { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ---------- Recommendation card ---------- */
.rec { padding: 1.4rem; transition: border-color .25s ease, transform .25s ease; }
.rec:hover { border-color: rgba(163,217,95,.32); }
.rec.top { border-color: rgba(163,217,95,.55); box-shadow: 0 0 0 1px rgba(163,217,95,.25), 0 18px 50px rgba(0,0,0,.35); }

.rec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.badge { display: inline-block; padding: .22rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid rgba(255,255,255,.2); color: var(--muted); margin-bottom: .85rem; }
.rec.top .badge { background: var(--lime); border-color: var(--lime); color: #0a1a0f; }

.sequence { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .7rem; }
.chip { display: flex; flex-direction: column; padding: .55rem 1rem; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.chip b { font-size: 1.05rem; font-weight: 700; color: #cdd9d0; }
.chip small { font-size: .74rem; color: var(--muted); }
.chip.next { background: var(--lime-tint); border-color: rgba(163,217,95,.45); }
.chip.next b { font-size: 1.5rem; font-weight: 800; color: var(--lime); letter-spacing: -0.02em; }
.arrow { width: 26px; height: 2px; background: var(--lime); position: relative; border-radius: 2px; flex: none; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--lime); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.score { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: none; }
.ring { --p: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,.09) 0); transition: --p 1.1s cubic-bezier(.2,.7,.2,1); }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--card-solid); }
.ring span { position: relative; font-size: 1.35rem; font-weight: 800; }
.score-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-align: center; }

.explain { margin-top: 1.1rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--lime-tint); border: 1px solid rgba(163,217,95,.22); font-size: .92rem; }
.explain strong { display: block; color: var(--lime); font-size: .82rem; margin-bottom: .2rem; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.1rem; }
.cols h4 { margin: 0 0 .5rem; font-size: .95rem; }
.cols ul { padding-left: 1.1rem; font-size: .9rem; color: #cdd9d0; }
.cols li { margin-bottom: .35rem; }
.cols li::marker { color: var(--lime); }
.risks h4 { color: var(--sun); }
.risks li::marker { color: var(--sun); }

.breakdown { margin-top: 1rem; font-size: .85rem; }
.breakdown summary { cursor: pointer; font-weight: 600; color: var(--lime); padding: .3rem 0; }
.breakdown summary:hover, .more summary:hover, .plan-details summary:hover { color: #c9ec98; }
.breakdown-row { display: grid; grid-template-columns: 150px 1fr 40px; gap: .7rem; align-items: center; margin-top: .55rem; color: #cdd9d0; }
.breakdown-row .num { text-align: right; font-variant-numeric: tabular-nums; }

.flags { padding: .9rem 1.1rem; border-color: rgba(231,184,90,.35); background: rgba(48, 38, 14, 0.38); }
.flags summary { display: flex; align-items: center; gap: .5rem; color: var(--sun); cursor: pointer; font-weight: 800; }
.flags summary::before { content: "!"; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(231,184,90,.5); border-radius: 50%; font-size: .8rem; }
.flags[open] summary { margin-bottom: .6rem; }
.flags ul { padding-left: 1.1rem; font-size: .84rem; color: #e6dcc0; }
.flags li { margin-bottom: .3rem; }

.more { padding: 1.1rem 1.3rem; }
.more details { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.more details:last-child { border-bottom: 0; }
.more summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.more p, .more ul { font-size: .9rem; color: #cdd9d0; }
.more ul { padding-left: 1.1rem; }
.more pre { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; overflow: auto; max-height: 340px; font-size: .78rem; color: #cdd9d0; }
.kv { margin: .4rem 0; display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .88rem; }
.kv dt { font-weight: 600; color: var(--text); }
.kv dd { margin: 0; color: #cdd9d0; }

/* ---------- Data section ---------- */
.data-section { max-width: 1200px; }
.data-head { margin-bottom: 1.4rem; }
.data-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.data-method { display: flex; align-items: center; justify-content: center; gap: .65rem; max-width: max-content; margin: 1.1rem auto; padding: .55rem 1rem; border: 1px solid rgba(163,217,95,.24); border-radius: 999px; background: var(--lime-tint); color: #d7edc4; font-size: .84rem; font-weight: 600; }
.data-method svg { width: 20px; height: 20px; flex: none; color: var(--lime); }
.data-caveats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.data-caveats li { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; padding: .7rem .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.45; }
.data-caveats li > span:first-child { flex: none; color: var(--lime); font-size: 1rem; line-height: 1.2; }

/* ---------- Banner + footer ---------- */
.banner-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 4rem 1.25rem 1rem; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2rem 2.25rem; background: linear-gradient(120deg, rgba(47,107,79,.45), rgba(17,32,23,.75)); }
.banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .25rem; }
.banner p { color: var(--muted); }

.site-footer { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 2.5rem; color: var(--muted); font-size: .82rem; }
.site-footer p { max-width: 80ch; }
.site-footer { border-top: 1px solid rgba(226,241,228,.08); }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .planner-grid { grid-template-columns: 1fr; }
  .form-panel { position: static; }
  .planner::before { inset-inline: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute; top: var(--nav-h); left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; gap: 0; padding: .6rem;
    background: rgba(8, 18, 12, .96); border: 1px solid var(--line); border-radius: 16px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { background: rgba(6,16,11,.92); }
  .nav.open .menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .menu a:not(.btn) { padding: .9rem .9rem; border-radius: 10px; }
  .menu a:not(.btn)::after { display: none; }
  .menu a:not(.btn):hover { background: rgba(255,255,255,.06); }
  .menu-cta { margin-top: .5rem; min-height: 48px; }
  .language-control { padding: .5rem .85rem; }

  .hero { padding-top: calc(var(--nav-h) + 2rem); min-height: 0; gap: 2rem; }
  .hero::before { background: linear-gradient(180deg, rgba(5,12,8,.56) 0%, rgba(5,12,8,.4) 55%, var(--bg) 100%); }
  .hero::after { opacity: .12; background-size: 52px 52px; }
  .hero-observation-orbit { opacity: .72; }
  .hero-satellite { opacity: .82; }
  .hero-inner { grid-template-columns: 1fr; }
  .insights { justify-self: stretch; max-width: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .hero-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-actions .btn { flex: 1 1 auto; }

  .section { padding-top: 3.25rem; }
  .data-caveats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .planner { padding-top: 3.5rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .cols { grid-template-columns: 1fr; }
  .season-phases { flex-direction: column; }
  .season-transition { flex: none; flex-direction: row; min-height: 32px; }
  .transition-arrow { transform: rotate(90deg); }
  .rec-top { flex-direction: column-reverse; }
  .score { flex-direction: row; gap: .8rem; }
  .breakdown-row { grid-template-columns: 105px 1fr 36px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
  .banner .btn { width: 100%; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .cards4 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .overview { padding: .9rem; }
  .overview h3 { font-size: 1.05rem; }
  .overview .hint { margin: .2rem 0 .65rem; font-size: .72rem; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .tile { padding: .62rem .5rem; border-radius: 12px; }
  .tile dt { font-size: .68rem; line-height: 1.25; }
  .tile dd { font-size: 1.2rem; line-height: 1.1; overflow-wrap: anywhere; }
  .tile dd small { font-size: .64rem; }
  .chip.next b { font-size: 1.3rem; }
  .empty { padding: 2.5rem 1.25rem; }
  .hero .pill { margin-bottom: .9rem; padding: .3rem .7rem; font-size: .7rem; }
  .hero h1 { max-width: none; font-size: clamp(1.65rem, 7.2vw, 2.1rem); line-height: 1.16; letter-spacing: 0; }
  .section-head h2 { font-size: clamp(1.5rem, 6.5vw, 1.9rem); }
  .data-head h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .data-caveats li { padding: .65rem .45rem; font-size: .72rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { padding: 1rem; }
  .hero-stats div { padding: 0 .65rem; }
  .hero-stats b { font-size: 1.35rem; }
  .hero-stats span { font-size: .72rem; }
  .rotation-plan-heading { flex-wrap: wrap; }
  .rotation-plan-heading .screening-score { margin-left: auto; }
  .rotation-plan-actions { flex: 1 1 100%; }
  .rotation-plan-actions .plan-focus { flex: 1 1 auto; }
  .farm-indicator { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: 1.5s !important; }
  .hero-copy { animation: none; }
}
