/* ENTOCULA download site. Inter (self-hosted, SIL OFL 1.1). No JavaScript. */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0d100f;
  --surface: #141816;
  --raised: #1b201e;
  --line: #2a312d;
  --line-strong: #3a433e;
  --ink: #eef2ee;
  --muted: #a3ada6;
  --faint: #737d76;
  --leaf: #8bc34a;
  --leaf-hi: #9ccf5f;
  --field: #2e7d32;
  --warn: #d8a648;
  --f: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f); font-feature-settings: 'cv11' 1; font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 16, 15, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #0b1406; padding: 0 14px; white-space: nowrap; }
.brand img { height: 30px; width: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font-weight: 600; font-size: 15.5px; text-decoration: none; }
.btn:hover { border-color: var(--faint); }
.btn-primary { background: var(--leaf); border-color: var(--leaf); color: #0b1406; }
.btn-primary:hover { background: var(--leaf-hi); border-color: var(--leaf-hi); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; }
.top .btn-sm { margin-left: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 420px at 85% 10%, rgba(139, 195, 74, 0.13), transparent 60%),
  repeating-linear-gradient(162deg, transparent 0 46px, rgba(139, 195, 74, 0.035) 46px 48px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-logo { width: min(520px, 100%); height: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 30px 0 16px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* phone frames */
.phones { position: relative; display: flex; justify-content: center; gap: 18px; }
.phone { width: 236px; border-radius: 34px; padding: 9px; background: #1d2321; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.phone img { border-radius: 26px; width: 100%; height: auto; }
.phone.back { transform: translateY(40px); opacity: 0.92; }
.caption { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 52px; }

/* sections */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; line-height: 1.2; margin: 10px 0 14px; font-weight: 700; }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { font-size: 17.5px; margin: 16px 0 6px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--leaf); }
.ico svg { width: 24px; height: 24px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--line-strong); padding-top: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 700; color: var(--leaf); font-feature-settings: 'tnum' 1; }
.steps h3 { margin: 8px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }

.road { display: grid; gap: 10px; }
.road div { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.road b { font-size: 15.5px; }
.road span { color: var(--muted); font-size: 14.5px; }
.stage { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.pill.live { color: var(--leaf); border-color: #4e7a2b; background: #182412; }
.pill.next { color: var(--warn); border-color: #5c4a21; border-style: dashed; }

.honest { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 20px; color: var(--muted); font-size: 15px; margin-top: 28px; }
.honest svg { width: 22px; height: 22px; color: var(--leaf); flex: none; margin-top: 2px; }
.honest b { color: var(--ink); }

/* downloads */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 10px 0 12px; letter-spacing: -0.02em; }
.dl { display: grid; gap: 16px; }
.dl .card { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: start; }
.dl .ico { width: 56px; height: 56px; border-radius: 14px; }
.dl .ico svg { width: 28px; height: 28px; }
.dl h3 { margin: 2px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dl ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.dl ol li { margin: 4px 0; }
.dl .side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 190px; }
.meta { font-size: 13px; color: var(--faint); text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
td { color: var(--muted); }
td b { color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }

.prose { max-width: 720px; padding: 56px 20px 80px; }
.prose h1 { font-size: 34px; letter-spacing: -0.02em; margin: 8px 0 18px; }
.prose h2 { font-size: 20px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--muted); }

/* footer */
footer { padding: 44px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
.ts { display: flex; align-items: center; gap: 12px; }
.ts img { height: 34px; width: auto; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 36px; }
  .phone { width: 190px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:last-child { display: none; }
}
@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
  .top nav { gap: 2px; }
  .top nav a { padding: 8px 7px; font-size: 14px; }
  .top .btn-sm { margin-left: 4px; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-size: 17px; }
  .brand img { height: 26px; }
  section { padding: 56px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .phone { width: 160px; border-radius: 26px; padding: 7px; }
  .phone img { border-radius: 20px; }
  .phones { gap: 12px; }
  .shots { grid-template-columns: 1fr; }
  .shots figure:last-child { display: block; }
  .shots .phone { width: 220px; }
  .road div { grid-template-columns: 1fr; gap: 6px; }
  .dl .card { grid-template-columns: 1fr; }
  .dl .side { min-width: 0; }
  .actions .btn { flex: 1 1 100%; }
  .lede { font-size: 16.5px; }
}

/* crop guides */
.crop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card.crop { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 18px 20px; }
.card.crop:hover { border-color: var(--line-strong); }
.card.crop span { color: var(--muted); font-size: 14px; }
.crop-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.crop-nav a { text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--muted); }
.crop-nav a[aria-current] { color: #0b1406; background: var(--leaf); border-color: var(--leaf); }
.pests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pest { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.pest-head { display: flex; gap: 14px; align-items: flex-start; }
.pest-head img, .noimg { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; background: var(--raised); }
.pest h3 { margin: 2px 0 2px; font-size: 18px; }
.pest h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.pest ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.pest li { margin: 3px 0; }
.pest .sci { margin: 0; color: var(--muted); }
.pest .local { margin: 2px 0 0; color: var(--leaf); font-size: 13.5px; }
.pest .limited { margin: 6px 0 0; color: var(--warn); font-size: 13px; }
.pest .credit { margin: 8px 0 0; font-size: 11.5px; color: var(--faint); }
.pest .chem { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.pest .src { color: var(--faint); font-size: 12.5px; }
.pest details { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pest summary { cursor: pointer; color: var(--muted); }
.pest .srcs a { color: var(--muted); }
@media (max-width: 900px) { .pests { grid-template-columns: 1fr; } .crop-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .crop-grid { grid-template-columns: 1fr; } .pest-head img, .noimg { width: 84px; height: 84px; } }
