@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --ink: #111611;
  --muted: #667064;
  --paper: #efede3;
  --surface: #fbfaf3;
  --surface-strong: #ffffff;
  --night: #09100c;
  --night-2: #111a14;
  --night-3: #1a241d;
  --line: rgba(17, 22, 17, 0.12);
  --line-dark: rgba(255, 255, 245, 0.12);
  --green: #4f8f64;
  --acid: #b9ff5c;
  --water: #7fcbd0;
  --amber: #d9ae68;
  --danger: #b85d52;
  --radius: 8px;
  --body: "DM Sans", "Avenir Next", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --shadow: 0 34px 80px rgba(22, 24, 19, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(90deg, rgba(17, 22, 17, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(17, 22, 17, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

section {
  scroll-margin-top: 96px;
}

.page-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 22, 17, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 243, 0.84);
  box-shadow: 0 18px 46px rgba(17, 22, 17, 0.11);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.nav-links a,
.nav-cta,
.button,
.text-button,
.filter-button,
.crop-add,
.tracker-actions {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 30%, var(--water) 0 9%, transparent 10%),
    linear-gradient(135deg, var(--acid), var(--green));
  box-shadow: inset 0 0 0 1px rgba(17, 22, 17, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 12px;
  height: 9px;
  border-top: 2px solid var(--night);
  border-radius: 50%;
  transform: rotate(18deg);
}

.nav-links {
  justify-content: center;
  gap: 3px;
}

.nav-links a,
.nav-cta {
  min-height: 38px;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(17, 22, 17, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--ink);
  background: rgba(17, 22, 17, 0.07);
}

.nav-cta {
  color: var(--night);
  background: var(--acid);
}

.nav-cta:hover {
  background: #cdfd82;
}

.product-shell {
  min-height: calc(100vh - 96px);
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(17, 22, 17, 0.16);
  border-radius: 8px;
  color: #f8faef;
  background:
    linear-gradient(180deg, rgba(255, 255, 245, 0.04), rgba(255, 255, 245, 0)),
    radial-gradient(circle at 72% 8%, rgba(185, 255, 92, 0.13), transparent 34rem),
    var(--night);
  box-shadow: var(--shadow);
}

.product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 12px 10px 22px;
  border-bottom: 1px solid var(--line-dark);
}

.title-lockup {
  min-width: 0;
}

.eyebrow,
.panel-label,
.crop-type {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-shell .eyebrow,
.product-shell .panel-label {
  color: var(--acid);
}

h1 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  font-weight: 800;
}

h4 {
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.head-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 8px;
}

.head-metrics div {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 245, 0.055);
}

.head-metrics strong {
  display: block;
  max-width: 132px;
  overflow: hidden;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(248, 250, 239, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 12px;
  padding-top: 12px;
}

.calendar-panel,
.grow-panel {
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 245, 0.055);
}

.calendar-panel {
  padding: 14px;
}

.grow-panel {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(185, 255, 92, 0.08), transparent 34%),
    rgba(255, 255, 245, 0.06);
}

.panel-top,
.panel-heading,
.form-head,
.crop-card-head,
.tracker-card-head,
.form-actions,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-top {
  padding: 2px 2px 16px;
}

.text-button {
  min-height: 38px;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #f8faef;
  font-size: 0.82rem;
  font-weight: 900;
  background: transparent;
}

.text-button:hover {
  color: var(--night);
  background: var(--acid);
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(58px, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.month-button {
  min-width: 0;
  min-height: 58px;
  padding: 8px 5px;
  border: 0;
  border-radius: 6px;
  color: rgba(248, 250, 239, 0.62);
  background: transparent;
}

.month-button span,
.month-button small {
  display: block;
}

.month-button span {
  font-size: 0.82rem;
  font-weight: 900;
}

.month-button small {
  margin-top: 5px;
  color: rgba(248, 250, 239, 0.38);
  font-size: 0.72rem;
  font-weight: 800;
}

.month-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 245, 0.08);
}

.month-button.active {
  color: var(--night);
  background: var(--acid);
}

.month-button.active small {
  color: rgba(9, 16, 12, 0.68);
}

.panel-heading.compact {
  padding: 18px 2px 12px;
  justify-content: flex-start;
}

.panel-heading.compact .panel-label {
  margin-bottom: 0;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 410px;
  overflow: auto;
  padding-right: 2px;
}

.crop-card,
.library-card,
.tracker-card,
.empty-state {
  border: 1px solid rgba(17, 22, 17, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

.crop-card {
  position: relative;
  min-height: 218px;
  padding: 14px;
  overflow: hidden;
  color: var(--ink);
}

.crop-orb {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acid), var(--green));
  box-shadow: inset 0 -8px 12px rgba(17, 22, 17, 0.16);
}

.crop-lettuce .crop-orb,
.crop-bok-choy .crop-orb,
.crop-swiss-chard .crop-orb {
  background: linear-gradient(135deg, #d7ff76, #4f8f64);
}

.crop-basil .crop-orb,
.crop-mint .crop-orb,
.crop-parsley .crop-orb {
  background: linear-gradient(135deg, #b9ff5c, #1f7c58);
}

.crop-cilantro .crop-orb,
.crop-spinach .crop-orb,
.crop-arugula .crop-orb,
.crop-kale .crop-orb {
  background: linear-gradient(135deg, #d9eab0, #466b48);
}

.crop-microgreens .crop-orb {
  background: linear-gradient(135deg, #f4d57a, #7bbf62);
}

.crop-tomatoes .crop-orb {
  background: linear-gradient(135deg, #ff8a66, #456f47);
}

.crop-peppers .crop-orb {
  background: linear-gradient(135deg, #d84236, #7a8f37);
}

.crop-cucumbers .crop-orb {
  background: linear-gradient(135deg, #c2f0a1, #2a7255);
}

.crop-type {
  color: rgba(17, 22, 17, 0.54);
}

.difficulty,
.stage-pill,
.date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.difficulty {
  padding: 0 8px;
  color: rgba(17, 22, 17, 0.72);
  background: rgba(17, 22, 17, 0.07);
}

.crop-note {
  display: none;
}

.crop-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}

.crop-meta div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(17, 22, 17, 0.08);
  border-radius: 6px;
  background: rgba(17, 22, 17, 0.035);
}

dt {
  color: rgba(17, 22, 17, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  font-weight: 900;
}

.button {
  min-height: 42px;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.button.primary,
.crop-add {
  color: var(--night);
  background: var(--acid);
}

.button.secondary {
  color: #f8faef;
  border-color: var(--line-dark);
  background: transparent;
}

.crop-add {
  width: 100%;
  border: 0;
}

.button.primary:hover,
.crop-add:hover {
  background: #cdfd82;
}

.plant-form {
  display: grid;
  gap: 13px;
}

.form-head {
  align-items: end;
  padding-bottom: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(248, 250, 239, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: #f8faef;
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 11px;
}

textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(185, 255, 92, 0.74);
  box-shadow: 0 0 0 3px rgba(185, 255, 92, 0.13);
}

.form-actions {
  justify-content: flex-start;
}

.form-hint {
  min-height: 38px;
  margin-bottom: 0;
  color: rgba(248, 250, 239, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 74px 0 18px;
}

.section-heading h2 {
  color: var(--ink);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 400;
}

.tracker-toolbar {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-button {
  min-height: 40px;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(17, 22, 17, 0.68);
  font-weight: 900;
  background: rgba(251, 250, 243, 0.68);
}

.filter-button.active {
  color: #f8faef;
  background: var(--night);
}

.tracker-list {
  display: grid;
  gap: 10px;
}

.tracker-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(22, 24, 19, 0.06);
}

.tracker-card p {
  color: var(--muted);
  line-height: 1.55;
}

.stage-pill {
  padding: 0 10px;
  color: var(--night);
  background: rgba(185, 255, 92, 0.8);
}

.stage-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
}

.stage-progress span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  color: transparent;
  background: rgba(17, 22, 17, 0.1);
}

.stage-progress span.filled {
  background: var(--green);
}

.tracker-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.date-chip {
  padding: 0 9px;
  color: rgba(17, 22, 17, 0.72);
  background: rgba(17, 22, 17, 0.06);
}

.tracker-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.icon-action {
  min-width: 82px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(17, 22, 17, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  background: transparent;
}

.icon-action:hover {
  color: var(--ink);
  background: rgba(17, 22, 17, 0.06);
}

.icon-action.danger:hover {
  color: #ffffff;
  border-color: var(--danger);
  background: var(--danger);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  font-weight: 700;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.library-card {
  padding: 16px;
}

.library-card p {
  color: var(--muted);
  line-height: 1.55;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.library-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  color: rgba(17, 22, 17, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(17, 22, 17, 0.06);
}

.site-footer {
  margin-top: 56px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.seo-article {
  max-width: 1080px;
  margin: 72px auto;
  padding: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(17, 22, 17, 0.56);
  font-size: 0.82rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.seo-hero {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(185, 255, 92, 0.14), transparent 38%),
    var(--surface);
  box-shadow: 0 22px 70px rgba(22, 24, 19, 0.08);
}

.seo-article h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 3.3rem;
}

.seo-hero > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
}

.seo-article h2 {
  margin-top: 34px;
  color: var(--ink);
  font-size: 1.6rem;
}

.seo-article p,
.seo-article li {
  color: var(--muted);
  line-height: 1.7;
}

.seo-section-block {
  margin-top: 34px;
}

.tool-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(17, 22, 17, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 244, 0.96)),
    var(--surface-strong);
  box-shadow: 0 16px 44px rgba(22, 24, 19, 0.06);
}

.tool-panel h2 {
  margin-top: 0;
}

.tool-eyebrow {
  margin: 0 0 8px;
  color: rgba(17, 22, 17, 0.52);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.stat-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.stat-card span,
.stat-card small {
  display: block;
  color: rgba(17, 22, 17, 0.58);
  font-weight: 850;
}

.stat-card span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.stat-card small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.timeline-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-rail li {
  position: relative;
  min-height: 170px;
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-rail li::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(119, 183, 72, 0.14);
}

.timeline-rail span {
  display: block;
  color: rgba(17, 22, 17, 0.52);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-rail strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-weight: 950;
}

.timeline-rail p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.decision-block,
.print-checklist {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.decision-block.good {
  border-color: rgba(119, 183, 72, 0.34);
  background: rgba(236, 255, 218, 0.5);
}

.decision-block.caution {
  border-color: rgba(210, 132, 45, 0.26);
  background: rgba(255, 247, 232, 0.65);
}

.decision-block h3,
.print-checklist h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.decision-block ul,
.print-checklist ul {
  margin: 0;
  padding-left: 18px;
}

.print-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-left: 0;
}

.print-checklist li span {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  border: 1px solid rgba(17, 22, 17, 0.28);
  border-radius: 4px;
  background: #fff;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 950;
  background: rgba(17, 22, 17, 0.08);
}

.fit-best,
.fit-strong {
  background: rgba(185, 255, 92, 0.42);
}

.fit-good,
.fit-moderate,
.fit-possible {
  background: rgba(129, 214, 255, 0.24);
}

.fit-advanced {
  background: rgba(255, 213, 122, 0.42);
}

.fit-avoid,
.fit-poor {
  color: #6d2218;
  background: rgba(255, 130, 102, 0.2);
}

.callout-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  color: var(--ink);
  background: rgba(185, 255, 92, 0.16);
}

.seo-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(17, 22, 17, 0.1);
  border-radius: var(--radius);
  color: #f8faef;
  background:
    linear-gradient(135deg, rgba(185, 255, 92, 0.12), transparent 46%),
    var(--night);
}

.seo-cta h2 {
  margin: 0 0 10px;
  color: #f8faef;
}

.seo-cta p {
  color: rgba(248, 250, 239, 0.7);
}

.seo-links,
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seo-links a,
.article-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  background: var(--surface-strong);
}

.article-card h2 {
  margin-top: 0;
}

.check-list {
  padding-left: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.seo-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.seo-table th,
.seo-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  color: rgba(17, 22, 17, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(17, 22, 17, 0.035);
}

.seo-table td {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.seo-table tr:last-child td {
  border-bottom: 0;
}

.seo-table a,
.related-links a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.related-links {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 17, 0.035);
}

.related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links a {
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.faq-list {
  margin-top: 34px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 16px 0;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-list details p {
  margin-bottom: 16px;
}

@media (max-width: 1120px) {
  .product-head,
  .workbench {
    grid-template-columns: 1fr;
  }

  .head-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .topbar {
    position: relative;
    top: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 8px;
  }

  .brand {
    justify-content: center;
  }

  .nav-links {
    justify-content: space-between;
  }

  .nav-links a,
  .nav-cta {
    width: 100%;
  }

  .product-shell {
    min-height: 0;
    padding: 13px;
  }

  .product-head {
    padding: 6px 4px 14px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .head-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .head-metrics div {
    min-height: 56px;
    padding: 9px;
  }

  .head-metrics strong {
    font-size: 1.25rem;
  }

  .head-metrics span {
    margin-top: 5px;
    font-size: 0.61rem;
  }

  .month-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .crop-grid,
  .library-grid,
  .seo-links,
  .article-grid,
  .stat-strip,
  .timeline-rail,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .tracker-card {
    grid-template-columns: 1fr;
  }

  .tracker-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section-heading {
    margin-top: 48px;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-article {
    margin: 24px auto;
    padding: 0;
  }

  .seo-article h1 {
    font-size: 2.45rem;
  }

  .seo-hero,
  .tool-panel {
    padding: 22px;
  }

  .stat-card {
    min-height: 0;
  }
}

@media (max-width: 430px) {
  .crop-meta {
    grid-template-columns: 1fr;
  }

  .crop-card {
    min-height: 0;
  }
}
