/* Lean Environmental Solutions: earthy take on the Lean Six Sigma Worldwide look.
   Warm paper with a faint measuring grid, white rounded cards with hairlines,
   pill buttons, one valley gradient (pine to straw) with light grain. No shadows.
   Rules: design/STYLE.md. Farmer pages use phone fonts; team, help and A3 pages
   add class "brand-font" to load Archivo. */
:root {
  --bg: #F1EFE7; --surface: #FFFDF8; --fg: #1B1A15; --muted: #625D52; --line: rgba(31, 61, 43, .16);
  --brand: #1F3D2B; --accent: #2F6B4A; --accent-fg: #FFFFFF; --accent-soft: #E3EBE0;
  --ochre: #8A6416; --ochre-soft: #F3E9CC; --red: #A54A26; --red-soft: #F5E2D8; --green: #2F6B34; --green-soft: #E1EDDC;
  --glacier: #3E8C93; --lcd: #F2EE3A; --grid: rgba(31, 61, 43, .07);
  --valley: linear-gradient(120deg, #1F3D2B 0%, #2F6B4A 28%, #6E9B4E 55%, #C7B26A 80%, #E7DDB4 100%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .32 -.13'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Georgian", sans-serif;
  --font-brand: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14130F; --surface: #1D1B16; --fg: #ECE8DD; --muted: #A39E90; --line: rgba(200, 220, 200, .14);
  --accent: #8FC7A0; --accent-fg: #10170F; --accent-soft: #1F2E24;
  --ochre: #E0B65C; --ochre-soft: #2E2615; --red: #E58B6A; --red-soft: #33201A; --green: #9ACF96; --green-soft: #1C2B1C;
  --glacier: #7DC3C8; --grid: rgba(200, 220, 200, .045); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #14130F; --surface: #1D1B16; --fg: #ECE8DD; --muted: #A39E90; --line: rgba(200, 220, 200, .14);
  --accent: #8FC7A0; --accent-fg: #10170F; --accent-soft: #1F2E24;
  --ochre: #E0B65C; --ochre-soft: #2E2615; --red: #E58B6A; --red-soft: #33201A; --green: #9ACF96; --green-soft: #1C2B1C;
  --glacier: #7DC3C8; --grid: rgba(200, 220, 200, .045); color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--fg); font: 17px/1.55 var(--font);
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px; background-position: -1px -1px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px;
  -webkit-font-smoothing: antialiased; }
body.brand-font { font-family: var(--font-brand); font-size: 16px; }
/* The valley band across the top of every page. */
body::before { content: ""; display: block; height: 6px; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); margin-bottom: 20px;
  background: var(--grain), var(--valley); }
.wrap { max-width: 34rem; margin: 0 auto; display: grid; gap: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 500; font-style: italic; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; font-weight: 500; font-style: italic; letter-spacing: -.01em; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; }
.brand { display: grid; gap: 4px; }
.brand small { color: var(--accent); font-weight: 500; font-size: .95rem; }
.muted { color: var(--muted); font-size: .92rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.q { display: grid; gap: 8px; }
.q label.title, .q .title { font-weight: 600; }
.hint { color: var(--muted); font-size: .9rem; }
.error { color: var(--red); font-size: .9rem; }
input[type=text], input[type=tel], input[type=number], input[type=email], textarea, select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
select { width: auto; padding: 10px 12px; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .btn:focus-visible, .opt:focus-within, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-height: 44px; display: flex; align-items: center; }
.opt input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
button, .btn { font: inherit; font-weight: 600; border-radius: 999px; padding: 12px 22px; min-height: 48px; border: 1px solid var(--accent); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--grain), var(--brand); color: #FFFFFF; border-color: var(--brand); flex: 1; }
.secondary { background: transparent; color: var(--accent); }
button[disabled] { opacity: .5; cursor: default; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: var(--valley); width: 0; transition: width .2s; }
@media (prefers-reduced-motion: reduce) { .progress div { transition: none; } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; display: grid; gap: 4px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; max-width: 100%; }
.thumbs button { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--ochre-soft); color: var(--fg); }
.ok { background: var(--green-soft); }
.langs { display: grid; gap: 10px; }
.langs button { width: 100%; justify-content: flex-start; background: var(--surface); color: var(--fg); border-color: var(--line); border-radius: 16px; min-height: 56px; font-size: 1.05rem; }
.link { word-break: break-all; font-family: var(--mono); font-size: .88rem; background: var(--bg); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.plan { white-space: pre-wrap; }
label.field { display: grid; gap: 6px; font-weight: 600; }
label.field select { font-weight: 400; }
.label { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
a { color: var(--accent); }
:lang(ka) h1, :lang(ka) h2 { font-style: normal; }
.logo-head { display: flex; gap: 14px; align-items: center; }
.logo-head img { flex: none; display: block; }
.logo-head .brand { min-width: 0; }
/* Header with a farm video behind it (lib/herovideo.mjs). */
.hero.has-video { position: relative; overflow: hidden; background: #1F3D2B; min-height: 360px; align-content: end; }
.hero.has-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-video > .hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,22,.15) 0%, rgba(20,30,22,.55) 45%, rgba(20,30,22,.85) 100%); }
.hero.has-video > :not(video):not(.hero-shade) { position: relative; }
