/* CS Agritech @26 — the leaf scanner.
   A dark viewing card, because a photograph is easier to judge against black
   than against paper cream; the reading below it returns to paper, because
   that is where advice is read. Gold only on the shutter: one thing to press. */

.scan { padding: 0 0 8px; --ink: #14261f; }

.scan__head {
  padding: 18px 18px 12px;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(201,162,39,.16), transparent 62%),
    linear-gradient(180deg, #0B3D2E 0%, #0A2E23 100%);
  color: #F4EFE1;
  position: relative;
  overflow: hidden;
}
.scan__head::after {
  content: '';
  position: absolute; inset: auto -30px -60px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,239,225,.06), transparent 66%);
  pointer-events: none;
}
.scan__kicker {
  font: 600 10.5px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .16em; text-transform: uppercase; color: #C9A227;
}
.scan__title {
  margin: 6px 0 4px;
  font: 600 26px/1.1 var(--serif, Georgia, serif);
  letter-spacing: -.01em;
}
.scan__lead { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(244,239,225,.78); max-width: 46ch; }
.scan__badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 5px 10px 5px 8px;
  border-radius: 999px; background: rgba(244,239,225,.1);
  border: 1px solid rgba(244,239,225,.16);
  font-size: 11.5px; color: rgba(244,239,225,.9);
}
.scan__badge i { width: 6px; height: 6px; border-radius: 50%; background: #7FD1A0; box-shadow: 0 0 0 3px rgba(127,209,160,.16); }

/* ---- the viewing card ------------------------------------------------ */
.scan__stage {
  position: relative;
  margin: 14px 14px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #08120E;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 40px -22px rgba(8,18,14,.9), inset 0 0 0 1px rgba(244,239,225,.08);
}
.scan__stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan__stage.is-blind::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244,239,225,.045) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 40%, #123024, #08120E 70%);
}
/* corner brackets: where to put the leaf */
.scan__frame i {
  position: absolute; width: 26px; height: 26px;
  border: 2px solid rgba(244,239,225,.72); border-radius: 3px;
  pointer-events: none;
}
.scan__frame i:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.scan__frame i:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.scan__frame i:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.scan__frame i:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.scan__hint {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(8,18,14,.66);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: rgba(244,239,225,.92); font-size: 12px; line-height: 1.4;
}
.scan__hint b { color: #F0D79A; }

/* the sweep that says "reading" */
.scan__sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(201,162,39,.28) 46%, rgba(201,162,39,.5) 50%, rgba(201,162,39,.28) 54%, transparent 100%);
  background-size: 100% 60%;
  background-repeat: no-repeat;
  animation: sweep 1.05s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes sweep {
  0% { background-position: 0 -60%; }
  100% { background-position: 0 160%; }
}

/* ---- the shutter ----------------------------------------------------- */
.scan__shutter {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 16px 18px 4px;
  position: relative;
}
.scan__shoot {
  width: 72px; height: 72px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: linear-gradient(180deg, #F0D79A, #C9A227);
  box-shadow: 0 10px 22px -12px rgba(201,162,39,.9), inset 0 1px 0 rgba(255,255,255,.5);
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.scan__shoot:active { transform: scale(.96); }
.scan__shoot span {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(20,38,31,.55);
  background: rgba(255,255,255,.12);
}
.scan__side { position: absolute; right: 18px; display: grid; gap: 8px; justify-items: end; }
.scan__mini {
  border: 1px solid rgba(20,38,31,.16); background: #fff; color: #14261f;
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.scan__mini.is-on { background: #C9A227; border-color: #C9A227; }

/* ---- the verdict ----------------------------------------------------- */
.scan__result { padding: 6px 14px 0; }

.vrd {
  border-radius: 16px; padding: 16px;
  background: #fff;
  border: 1px solid #E6E0CE;
  box-shadow: 0 12px 30px -24px rgba(11,61,46,.8);
  border-left: 5px solid #9AA69E;
}
.vrd__top { display: flex; gap: 12px; align-items: flex-start; }
.vrd__ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(20,38,31,.06); color: #33453C;
}
.vrd__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vrd__text { min-width: 0; }
.vrd__name { font: 600 18px/1.25 var(--serif, Georgia, serif); color: #14261f; }
.vrd__match { margin-top: 3px; font-size: 12px; color: #6B7A72; }
.vrd__bar { margin: 12px 0 10px; height: 8px; border-radius: 99px; background: #EFEADA; overflow: hidden; }
.vrd__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C9A227, #E4C55B); }
.vrd__what { margin: 0; font-size: 13px; line-height: 1.55; color: #3C4C44; }

.vrd--red { border-left-color: #A6392C; }
.vrd--red .vrd__ico { background: rgba(166,57,44,.1); color: #A6392C; }
.vrd--red .vrd__bar i { background: linear-gradient(90deg, #A6392C, #C8614F); }
.vrd--gold { border-left-color: #C79A1E; }
.vrd--gold .vrd__ico { background: rgba(199,154,30,.14); color: #9A7414; }
.vrd--slate { border-left-color: #6C7A6E; }
.vrd--slate .vrd__ico { background: rgba(108,122,110,.12); color: #55635A; }
.vrd--orange { border-left-color: #C2703A; }
.vrd--orange .vrd__ico { background: rgba(194,112,58,.12); color: #A85D2C; }
.vrd--green { border-left-color: #2E7D4F; }
.vrd--green .vrd__ico { background: rgba(46,125,79,.12); color: #2E7D4F; }
.vrd--green .vrd__bar i { background: linear-gradient(90deg, #2E7D4F, #6FBF91); }
.vrd--grey { border-left-color: #8A968C; }
.vrd--grey .vrd__ico { background: rgba(138,150,140,.14); color: #5F6C63; }

/* ---- cards under the verdict ----------------------------------------- */
.scan__card {
  margin-top: 12px; padding: 14px;
  background: #FFFDF7; border: 1px solid #E7E0CE; border-radius: 14px;
}
.scan__card h3 {
  margin: 0 0 10px; font: 600 13px/1.3 var(--sans, system-ui, sans-serif);
  letter-spacing: .06em; text-transform: uppercase; color: #6B7A72;
}

.bars { display: grid; gap: 8px; }
.bars__row { display: grid; grid-template-columns: 1fr 92px 28px; gap: 9px; align-items: center; font-size: 12px; color: #3C4C44; }
.bars__row.is-top { color: #14261f; font-weight: 700; }
.bars__t { height: 7px; border-radius: 99px; background: #EFEADA; overflow: hidden; }
.bars__f { display: block; height: 100%; border-radius: 99px; background: #9AA69E; }
.bars__f--red { background: #A6392C; }
.bars__f--gold { background: #C79A1E; }
.bars__f--slate { background: #6C7A6E; }
.bars__f--orange { background: #C2703A; }
.bars__f--green { background: #2E7D4F; }
.bars__v { text-align: right; font-variant-numeric: tabular-nums; }

.meas { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.meas li {
  position: relative; padding-left: 18px; font-size: 12.6px; line-height: 1.5; color: #3C4C44;
}
.meas li::before {
  content: ''; position: absolute; left: 2px; top: .52em;
  width: 6px; height: 6px; border-radius: 50%;
  background: #C9A227;
}
.meas__quiet { color: #7A887F !important; font-size: 11.6px !important; }
.meas__quiet::before { background: #CBD3CC !important; }

.todo { margin: 0; padding-left: 0; list-style: none; counter-reset: t; display: grid; gap: 9px; }
.todo li {
  counter-increment: t; position: relative; padding-left: 30px;
  font-size: 13px; line-height: 1.55; color: #26382F;
}
.todo li::before {
  content: counter(t);
  position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 6px;
  display: grid; place-items: center;
  background: #0B3D2E; color: #F0D79A;
  font: 700 11px/1 var(--sans, system-ui, sans-serif);
}

.scan__acts { display: grid; gap: 9px; margin-top: 14px; }
.scan__acts .btn { width: 100%; }

/* ---- kept scans ------------------------------------------------------ */
.scan__history { padding: 6px 14px 0; }
.scan__h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 9px; }
.scan__h3 h3 { margin: 0; font: 600 15px/1.2 var(--serif, Georgia, serif); color: #14261f; }
.scan__count { font-size: 11.5px; color: #6B7A72; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.strip__item {
  flex: 0 0 108px; border: 1px solid #E7E0CE; border-radius: 12px; background: #fff;
  padding: 0 0 8px; overflow: hidden; text-align: left; cursor: pointer;
  border-top: 3px solid #9AA69E;
}
.strip__item--red { border-top-color: #A6392C; }
.strip__item--gold { border-top-color: #C79A1E; }
.strip__item--slate { border-top-color: #6C7A6E; }
.strip__item--orange { border-top-color: #C2703A; }
.strip__item--green { border-top-color: #2E7D4F; }
.strip__item img { width: 100%; height: 62px; object-fit: cover; display: block; background: #0A1F18; }
.strip__name { display: block; padding: 7px 8px 0; font-size: 11.4px; font-weight: 650; color: #14261f; line-height: 1.3; }
.strip__when { display: block; padding: 2px 8px 0; font-size: 10.6px; color: #7A887F; }

/* ---- the honest line ------------------------------------------------- */
.scan__note {
  margin: 16px 18px 0; padding: 12px 13px;
  border-radius: 12px;
  background: #F6F1E4; border: 1px solid #E7DFC9;
  font-size: 11.8px; line-height: 1.6; color: #5A6A60;
}
.scan__note b { color: #26382F; }
.scan__sources { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; font-size: 11px; }
.scan__sources a { color: #0B3D2E; text-decoration: underline; text-underline-offset: 2px; }

/* seven doors now: one more icon on the shelf */
.tabs { grid-template-columns: repeat(7, 1fr); }
.tab { font-size: 10px; }
.tab svg { width: 21px; height: 21px; }

@media (min-width: 620px) {
  .scan__stage { aspect-ratio: 16 / 10; }
  .scan__acts { grid-template-columns: 1fr 1fr; }
  .scan__acts .btn { width: auto; }
}

.scan__warn {
  margin: 0 0 10px; padding: 9px 11px; border-radius: 10px;
  background: #FFF4DE; border: 1px solid #EBD8AC;
  font-size: 12px; line-height: 1.45; color: #6B4E14;
}

/* ---- what the model adds --------------------------------------------- */
.model__note {
  margin: 10px 0 0; font-size: 11.4px; line-height: 1.5; color: #7A887F;
}
.model__also {
  margin: 8px 0 0; padding: 9px 10px; border-radius: 9px;
  background: #F7F2E4; border: 1px solid #EADFC4;
  font-size: 12px; line-height: 1.5; color: #4B5B51;
}
.model__also b { color: #26382F; }
.bars__f--grey { background: #A9B3AC; }

/* ---- was this wrong ------------------------------------------------ */
.label__ask { margin: 0 0 10px; font-size: 12.2px; line-height: 1.55; color: #4B5B51; }
.label__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid #D9D2BE; background: #fff; color: #26382F;
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.chip:active { background: #F0EAD8; }
.label__done { flex: 1 0 100%; margin: 2px 0 4px; font-size: 12px; color: #2E7D4F; font-weight: 600; }

/* ---- how it works --------------------------------------------------- */
.steps {
  display: flex; align-items: flex-start; gap: 4px;
  margin: 14px 0 2px; padding: 12px 4px 0;
  border-top: 1px solid rgba(244,239,225,.14);
}
.step { flex: 1 1 0; display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.step__ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244,239,225,.10); color: #BFE3CE;
  border: 1px solid rgba(244,239,225,.14);
}
.step__ico svg { width: 21px; height: 21px; }
.step__t { font-size: 11.6px; font-weight: 650; color: #F4EFE1; line-height: 1.25; }
.step__s { font-size: 10.2px; color: rgba(244,239,225,.62); line-height: 1.3; max-width: 11ch; }
.step__arrow { color: rgba(244,239,225,.34); font-size: 15px; margin-top: 12px; }

/* percentages, not scores */
.bars__v { font-variant-numeric: tabular-nums; }
.bars__note { margin: 10px 0 0; font-size: 11.2px; line-height: 1.5; color: #7A887F; }
.scan__build { display: block; margin-top: 8px; font: 600 10px/1 ui-monospace, monospace; letter-spacing: .08em; color: #9AA69E; }

/* ---- the picture that was read --------------------------------------- */
.shot { margin: 0 0 12px; position: relative; }
.shot img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid #E6E0CE; background: #0A1F18;
  box-shadow: 0 10px 26px -20px rgba(11,61,46,.9);
}
.shot figcaption {
  margin-top: 6px; font-size: 11px; color: #7A887F; text-align: center;
}
.shot.is-zoom img {
  position: fixed; inset: 0; margin: auto; width: 100%; height: 100%;
  max-height: 100vh; object-fit: contain; border-radius: 0; border: 0;
  background: rgba(6,16,12,.97); z-index: 9999;
}
.shot.is-zoom figcaption { position: fixed; bottom: 14px; left: 0; right: 0; color: #E8E2D2; z-index: 10000; }

/* ---------------------------------------------------------------- the plan
   A verdict names a problem; the plan is what the farmer came for. It sits
   above the correction card because it is the thing to read first. */
.plan__head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.plan__head h3{margin:0}
.plan__when{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#7A5B12;
  background:#F6EAC4;border:1px solid #E6D49A;border-radius:999px;padding:3px 9px;white-space:nowrap}
.plan__why{font-size:.82rem;line-height:1.55;color:#4A5A4E;margin:8px 0 0}
.plan__steps{margin:12px 0 0}
.plan__local{margin:12px 0 0;padding:10px 12px;border-left:3px solid #C9A227;background:#FBF6E7;
  font-size:.78rem;line-height:1.55;color:#4A5A4E;border-radius:0 8px 8px 0}

/* ---------------------------------------------------------- local training
   The model has seen public photographs. This block is the honest gap, and
   the loop that closes it. */
.train__prov{font-size:.8rem;line-height:1.6;color:#4A5A4E;margin:8px 0 10px}
.train__bar{height:6px;border-radius:999px;background:#E7EBE4;overflow:hidden;margin:0 0 6px}
.train__bar i{display:block;height:100%;background:#2C7A5B;border-radius:999px}
.train__count{font-size:.74rem;color:#6C7A6F;margin:0 0 12px}
.train__lesson{border-top:1px solid #E4E6DF;padding:10px 0}
.train__lesson summary{cursor:pointer;font-size:.84rem;font-weight:600;color:#0E3B2E;list-style:none}
.train__lesson summary::-webkit-details-marker{display:none}
.train__lesson summary:before{content:"+ ";color:#C9A227;font-weight:700}
.train__lesson[open] summary:before{content:"– "}
.train__step{display:flex;gap:10px;margin:10px 0 0}
.train__step b{font-size:.82rem;color:#14231C}
.train__step p{font-size:.78rem;line-height:1.55;color:#5D6B60;margin:3px 0 0}
.train__n{flex:0 0 22px;height:22px;border-radius:50%;background:#0E3B2E;color:#FBF8F1;
  font-size:.7rem;display:flex;align-items:center;justify-content:center;font-weight:600}
.train__q{margin:10px 0 0}
.train__q b{font-size:.8rem;color:#14231C}
.train__q p{font-size:.78rem;color:#5D6B60;margin:2px 0 0}
.train__rec{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.train__label{display:flex;flex-direction:column;gap:4px;font-size:.7rem;color:#6C7A6F;flex:1 1 130px}
.train__label input,.train__label select{font:inherit;font-size:.82rem;padding:7px 9px;border:1px solid #E3DCCD;
  border-radius:8px;background:#fff;color:#14231C;width:100%}
.train__done{font-size:.74rem;color:#2C7A5B;margin:8px 0 0}

/* the response plan, standing on the page before any photograph is taken */
.scan__standing{margin:18px 0 0}
.plan--standing{border-left:3px solid #C9A227}

.spray{margin-top:0;border-left:3px solid #B0801C}
.spray__state{margin:0;font-size:.92rem;line-height:1.55}
.spray__hint{color:#5D6B60}

/* ---------------------------------------------------------- pest watch */
.watch__lead,.share__lead{margin:0 0 10px;font-size:.9rem;line-height:1.55;color:#33413A}
.watch__state{margin:10px 0 0;font-size:.88rem;color:#5D6B60;line-height:1.5}
.watch__list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.watch__list li{display:flex;flex-direction:column;gap:1px;padding:9px 11px;border-radius:10px;background:#F6F8F4;border-left:3px solid #B0801C}
.watch__list b{font-size:.92rem}
.watch__list span{font-size:.8rem;color:#5D6B60}
.watch__foot{margin:10px 0 0;font-size:.76rem;color:#5D6B60;line-height:1.5}
.share{border-left:3px solid #1F6B3F}
