/* Crop choice — picture tiles (shared .crop-tile styles live in soil.css) */
.what-it-finds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(var(--s-2) * -1); }
.what-it-finds span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.what-it-finds .icon { color: var(--teal); }
/* Same picture cards as Soil Doctor (size, spacing, plate) */
body[data-page='crop'] .crop-tiles { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px; }
@media (max-width: 420px) { body[data-page='crop'] .crop-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
body[data-page='crop'] .crop-tile { gap: 12px; min-height: 138px; padding: 20px 10px 16px; }
body[data-page='crop'] .crop-tile.skeleton { min-height: 138px; }
.crop-tile.is-soon { border-style: dashed; background: transparent; cursor: default; animation: none; opacity: 0.75; }
.crop-tile.is-soon:hover { transform: none; border-color: var(--line-strong); }
.crop-tile.is-soon .crop-plate { color: var(--muted); background: var(--surface-1); }
.crop-tile.is-soon .crop-name { color: var(--text-2); }

/* Crop choice (old big cards, kept for reference) */
.crop-cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.crop-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: var(--s-5);
  min-height: 300px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(90% 70% at 50% 20%, rgb(var(--green-rgb) / 0.12), transparent 70%),
    var(--bg-2);
  text-align: left;
  overflow: hidden;
  transition: transform 300ms var(--ease), border-color var(--dur), box-shadow 300ms var(--ease);
}
.crop-card.skeleton { border: 0; }
.crop-card:hover { transform: translateY(-3px); border-color: rgb(var(--teal-rgb) / 0.6); box-shadow: 0 24px 60px -30px rgb(var(--teal-rgb) / 0.7); }
.crop-card.is-selected { border-color: var(--teal); }
.crop-art { width: 140px; height: 140px; justify-self: center; margin-bottom: 6px; filter: drop-shadow(0 16px 30px rgb(var(--green-rgb) / 0.25)); transition: transform 500ms var(--ease); }
.crop-card:hover .crop-art { transform: scale(1.06) rotate(-3deg); }
.crop-art svg { width: 100%; height: 100%; }
.crop-card-name { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--text); }
.crop-card-sub { color: var(--text-2); font-size: var(--fs-sm); }
.crop-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--green); font-weight: 600; font-size: var(--fs-sm); }
.crop-card-go .icon { transition: transform var(--dur) var(--ease); }
.crop-card:hover .crop-card-go .icon { transform: translateX(4px); }

.kb-note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-1); border: 1px dashed var(--line-strong); justify-self: start; }
.kb-note .icon { color: var(--teal); }
.chosen-crop { gap: 8px; padding: 4px 12px 4px 4px; font-weight: 600; color: var(--text); }
.mini-plate { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); }
.mini-plate svg { width: 20px; height: 20px; }

/* Photo tips */
.leaf-tips { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .leaf-tips { grid-template-columns: repeat(4, 1fr); } }
.leaf-tips li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.leaf-tips .icon { width: 22px; height: 22px; color: var(--green); margin-bottom: 4px; }
.leaf-tips strong { font-size: var(--fs-sm); }
.leaf-tips span { font-size: var(--fs-xs); color: var(--muted); }

.leaf-chosen { display: grid; gap: var(--s-4); justify-items: center; }
.leaf-preview { margin: 0; width: min(100%, 520px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-1); }
.leaf-preview img { width: 100%; max-height: 380px; object-fit: cover; }
.leaf-preview figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: var(--fs-xs); color: var(--muted); }
.leaf-actions { display: grid; justify-items: center; gap: 10px; width: 100%; }
.leaf-actions .btn-lg { min-width: min(340px, 100%); }
.leaf-actions-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s-2); }
.magic-hint { color: var(--text-2); font-size: var(--fs-sm); text-align: center; }

/* The main button: a soft shine keeps passing over it, and the sparkle twinkles */
.btn-magic { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 14px 40px -12px rgb(var(--teal-rgb) / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn-magic::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: skewX(-20deg);
  animation: magic-shine 3.2s ease-in-out infinite;
}
.btn-magic .icon { animation: magic-twinkle 2.2s ease-in-out infinite; }
@keyframes magic-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes magic-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.22) rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .btn-magic::before, .btn-magic .icon { animation: none; } }

/* Retake guidance */
.retake {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgb(242 179 61 / 0.4);
  background: rgb(242 179 61 / 0.07);
}
.retake-head { display: flex; gap: 12px; align-items: flex-start; }
.retake-head > .icon { color: var(--deficient); width: 22px; height: 22px; margin-top: 2px; }
.retake-head div { display: grid; gap: 2px; }
.retake-head span { color: var(--text-2); font-size: var(--fs-sm); }
.retake ul { list-style: none; display: grid; gap: 8px; }
.retake li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-1); font-size: var(--fs-sm); }
.retake-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgb(242 179 61 / 0.14); color: var(--deficient); }

/* Compare */
.compare { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1000px) { .compare { grid-template-columns: 300px 1fr; } }
.your-photo {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
}
@media (min-width: 1000px) { .your-photo { position: sticky; top: calc(var(--header-h) + 16px); } }
@media (max-width: 999px) {
  .your-photo { grid-template-columns: 110px 1fr; align-items: center; }
  .your-photo .eyebrow { grid-column: 1 / -1; }
  .your-photo img { grid-row: span 2; }
}
.your-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.your-photo p { font-size: var(--fs-sm); color: var(--text-2); }
.options { display: grid; gap: var(--s-4); }
.options-head { display: grid; gap: 8px; margin-bottom: 4px; }
.options-head h2 { font-size: var(--fs-3xl); }
.options-head h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.options-head p { color: var(--text-2); max-width: 62ch; }

.option-card {
  display: grid;
  gap: 14px;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  animation: fade-up 520ms var(--ease) both;
}
.option-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.option-rank { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.cat .icon { width: 13px; height: 13px; }
.badge.cat::before { display: none; }
.option-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); line-height: 1.05; }
.option-sci { font-style: italic; color: var(--muted); font-size: var(--fs-sm); margin-top: -8px; }
.ref-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.ref-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.ref-main:hover img { transform: scale(1.03); }
.ref-main .zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(0 0 0 / 0.62); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.ref-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-thumb { width: 76px; padding: 0; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: 0.7; transition: opacity var(--dur), border-color var(--dur); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-thumb:hover, .ref-thumb[aria-current='true'] { opacity: 1; }
.ref-thumb[aria-current='true'] { border-color: var(--teal); }
.ref-empty { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 4 / 3; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: var(--surface-1); color: var(--muted); font-size: var(--fs-sm); }
.option-foot { padding-top: 4px; }

/* Compare card: a smaller photo on the left, what to look for and the other photos on the right */
.option-body { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 760px) { .option-body { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s-6); } }
.option-info { display: grid; gap: var(--s-5); align-content: start; }
.option-overview, .option-more { display: grid; gap: 8px; }
.option-overview .eyebrow, .option-more .eyebrow { color: var(--teal); }
.option-overview ul { list-style: none; display: grid; gap: 8px; }
.option-overview li { position: relative; padding-left: 16px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.option-overview li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.none-card {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border-style: dashed;
}
@media (min-width: 720px) { .none-card { grid-template-columns: 1fr auto; } }
.none-card p { color: var(--text-2); font-size: var(--fs-sm); margin-top: 4px; }

/* Remedy */
.remedy { display: grid; gap: var(--s-5); }
.remedy-head { display: grid; gap: var(--s-5); padding: var(--s-5); border-radius: var(--r-xl); align-items: center; }
@media (min-width: 860px) { .remedy-head { grid-template-columns: auto 1fr; padding: var(--s-6); } }
.remedy-photo { margin: 0; width: 220px; }
.remedy-photo img { width: 220px; height: 220px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line-strong); cursor: zoom-in; }
.remedy-photo figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; text-align: center; }
@media (max-width: 859px) { .remedy-photo { justify-self: center; } }
@media (max-width: 420px) { .remedy-photo, .remedy-photo img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; } }
.remedy-title { display: grid; gap: 10px; justify-items: start; }
.remedy-title h2 { font-size: var(--fs-3xl); }
.remedy-title .text-2 { font-size: var(--fs-sm); max-width: 70ch; }
.remedy-symptoms { display: grid; gap: 6px; margin-top: 4px; }
.remedy-symptoms .eyebrow { color: var(--teal); }
.symptom-list { list-style: none; display: grid; gap: 8px; max-width: 72ch; }
.symptom-list li { position: relative; padding-left: 18px; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.symptom-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.remedy-card { display: grid; gap: var(--s-4); border-radius: var(--r-lg); }
.remedy-h { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xl); }
.remedy-h .icon { color: var(--green); }
.remedy-list { list-style: none; display: grid; gap: 10px; counter-reset: rem; }
.remedy-list li {
  counter-increment: rem;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}
.remedy-list li::before {
  content: counter(rem);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(var(--green-rgb) / 0.14);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.none-result { display: grid; justify-items: center; gap: var(--s-4); text-align: center; padding: var(--s-6) 0; }
.none-result p { color: var(--text-2); max-width: 52ch; }


/* Progress bar stays pinned under the header while the page scrolls (Crop Doctor only) */
body[data-page='crop'] .stepper {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  margin-inline: -12px;
  padding-inline: 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* The progress bar only shows where you are; it is not a set of buttons */
body[data-page='crop'] .stepper li { cursor: default; }
.compare .panel-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Remedy: natural and chemical side by side, the small note and the three buttons */
.remedy-body { display: grid; gap: var(--s-4); }
.remedy-group { display: grid; gap: 8px; }
.remedy-sub { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.remedy-list li > div { display: grid; gap: 4px; min-width: 0; }
.remedy-eg { font-size: var(--fs-xs); color: var(--muted); }
.remedy-list.is-dots li { grid-template-columns: 12px 1fr; align-items: start; padding: 10px 14px; }
.remedy-list.is-dots li::before { content: ''; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--green); }
.remedy-foot { display: grid; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); }
.remedy-foot p { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); font-weight: 300; line-height: 1.55; color: var(--text-2); }
.remedy-foot .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--muted); }
.remedy-cols { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 760px) { .remedy-cols { grid-template-columns: 1fr 1fr; } }
.remedy-col { display: grid; gap: var(--s-3); min-width: 0; }
.remedy-col-h { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 600; }
.remedy-col-h .icon { width: 18px; height: 18px; color: var(--green); }

.remedy-note {
  max-width: 62ch; margin-inline: auto; text-align: center;
  font-size: var(--fs-xs); font-weight: 300; line-height: 1.6; color: var(--text-2);
}
.remedy-note .icon { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--muted); }

.remedy-actions { display: grid; gap: 10px; }
.remedy-actions .btn { width: 100%; justify-content: center; white-space: nowrap; }
@media (min-width: 640px) {
  .remedy-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; width: 100%; }
}
@media (max-width: 639px) { .remedy-actions .btn-primary { order: -1; } }

/* The buttons at the end of a result: all clearly buttons, with the main one standing out.
   Main = filled with the brand gradient; the others = solid white with a firm outline and a soft shadow. */
.remedy-actions .btn, .none-result .btn { --btn-h: 50px; font-weight: 600; transition: transform 200ms var(--ease), box-shadow 200ms, border-color 200ms, background 200ms; }
.remedy-actions .btn-ghost, .none-result .btn-ghost {
  background: var(--surface-1);
  border: 1.5px solid var(--line-bold);
  color: var(--text);
  box-shadow: 0 6px 14px -8px rgb(13 60 52 / 0.35);
}
.remedy-actions .btn-ghost:hover, .none-result .btn-ghost:hover { background: var(--surface-2); border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgb(var(--teal-rgb) / 0.6); }
.remedy-actions .btn-ghost .icon, .none-result .btn-ghost .icon { color: var(--teal); }
.remedy-actions .btn-primary, .none-result .btn-primary { --btn-h: 54px; }
.remedy-actions .btn:active, .none-result .btn:active { transform: translateY(0) scale(0.99); }

/* Causes and prevention: the first line, then a blur that leads to the app (nothing real sits behind it) */
.know { display: grid; gap: var(--s-4); }
.know-grid { display: grid; gap: var(--s-4); align-items: stretch; }
@media (min-width: 760px) { .know-grid { grid-template-columns: 1fr 1fr; } }
.know-card { display: grid; gap: 10px; align-content: start; padding: var(--s-5); border-radius: var(--r-lg); }
.know-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); font-weight: 600; }
.know-head .icon { width: 18px; height: 18px; color: var(--green); }
.know-first { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.know-blur { display: grid; gap: 9px; padding: 4px 0; user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.know-blur i { display: block; height: 11px; border-radius: 6px; background: var(--text-2); opacity: 0.35; filter: blur(4px); }
.know-blur i:nth-child(1) { width: 100%; }
.know-blur i:nth-child(2) { width: 92%; }
.know-blur i:nth-child(3) { width: 64%; }
.know-more { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.know-more .icon { color: var(--teal); }
.know-cta { display: flex; justify-content: center; }
.know-cta .btn { min-width: min(100%, 320px); justify-content: center; }

/* Matches and details left out of the website: empty blurred shapes with the way into the app (nothing real is behind them) */
.option-locked { cursor: pointer; }
.option-locked:hover { border-color: var(--teal); }
.ol-blur { filter: blur(6px); opacity: 0.75; pointer-events: none; user-select: none; }
.ol-photo { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--line-strong); }
.ol-title { display: block; width: 55%; height: 22px; border-radius: 8px; background: var(--text-2); opacity: 0.4; }
.more-locked { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.more-locked .know-blur { width: 100%; max-width: 72ch; }
button.know-more { cursor: pointer; font-family: inherit; }
button.know-more:hover { border-color: var(--teal); color: var(--text); }
