/* Nursery ERP website. Seedbed design system: warm neutral ground, one green, amber for "waiting on a person".
   Layout: left-aligned editorial columns on a 1120px measure; product screens are the pictures; the seedling
   tray (a grid of round cells) is the one recurring motif. */
:root {
  --bg: #F6F5F1; --surface: #FFFFFF; --surface-2: #ECEAE3; --ink: #1C211E; --muted: #58615B; --line: #DCD9CF;
  --brand: #1F6B45; --brand-ink: #17523A; --brand-soft: #E1EFE6; --on-brand: #FFFFFF;
  --amber: #8A4B00; --amber-soft: #FAEED6; --focus: #2E6FD1; --cell: #CFCCC1;
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px; --radius-sm: 6px; --shadow: 0 16px 40px rgba(20,30,25,.14);
  --measure: 1120px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #141816; --surface: #1C211E; --surface-2: #252B27; --ink: #ECEEE9; --muted: #A5ADA7; --line: #353C37;
  --brand: #4CB67F; --brand-ink: #82D2A6; --brand-soft: #1C3427; --on-brand: #0D1A12;
  --amber: #F0B45A; --amber-soft: #3A2C12; --focus: #8AB4F8; --cell: #3A423C; --shadow: 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #141816; --surface: #1C211E; --surface-2: #252B27; --ink: #ECEEE9; --muted: #A5ADA7; --line: #353C37;
  --brand: #4CB67F; --brand-ink: #82D2A6; --brand-soft: #1C3427; --on-brand: #0D1A12;
  --amber: #F0B45A; --amber-soft: #3A2C12; --focus: #8AB4F8; --cell: #3A423C; --shadow: 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font: 600 .8rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); }
.wrap { max-width: var(--measure); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.band { padding-block: clamp(40px, 7vw, 84px); }
.band.tint { background: var(--surface); border-block: 1px solid var(--line); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { top: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 8px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--font-display); color: var(--ink); text-decoration: none; margin-right: auto; padding: 8px 0; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.nav .btn { min-height: 40px; margin-left: 8px; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
  html:not(.js) .nav { display: flex; } html:not(.js) .menu-btn { display: none; }
}

/* hero */
.hero { padding-block: clamp(32px, 6vw, 72px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; padding-bottom: clamp(32px, 6vw, 72px); min-width: 0; }
.hero-shot { position: relative; align-self: end; min-width: 0; }
.hero-shot::before { content: ""; position: absolute; inset: -28px -400px -10px -28px; z-index: 0; border-radius: 16px 0 0 0;
  background: radial-gradient(circle at center, var(--cell) 0 7px, transparent 8px) 0 0 / 28px 28px, var(--surface-2); }
.shot { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.hero-shot .shot { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; width: 135%; max-width: none; }
.hero-shot .shot img { width: 100%; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-shot .shot { width: 100%; }
  .hero-shot::before { inset: -16px -16px 0 -16px; border-radius: 0; }
  .hero-shot { margin-top: 16px; }
}

/* the batch journey: a true sequence, drawn as one tray filling up */
.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.journey li { padding: 18px 16px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.journey li:first-child { border-left: 0; }
.journey strong { font: 700 1.02rem/1.2 var(--font-display); }
.journey span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.tray { display: grid; grid-template-columns: repeat(6, 10px); gap: 4px; margin-bottom: 4px; }
.tray i { width: 10px; height: 10px; border-radius: 50%; background: var(--cell); }
.tray i.on { background: var(--brand); }
.tray i.hold { background: var(--amber); }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey li { border-top: 1px solid var(--line); } .journey li:nth-child(odd) { border-left: 0; } .journey li:nth-child(-n+2) { border-top: 0; } }

/* app groups */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.group { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
a.group:hover { border-color: var(--brand); }
.group p { color: var(--muted); font-size: .95rem; }
.icons { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.icons span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; }
.icons img { width: 32px; height: 32px; border-radius: 8px; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature-copy p { color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
@media (max-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.flip .feature-copy { order: 0; } }
.phones { display: flex; gap: 16px; justify-content: center; }
.phones .shot { width: min(46%, 240px); border-radius: 22px; border-width: 4px; border-color: var(--ink); }

/* facts and cards */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px; }
.facts div { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--brand); padding-top: 14px; }
.facts p { color: var(--muted); font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { color: var(--muted); }
.note { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); }
.note.ok { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 40px); border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.cta > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }

/* features page */
.page-head { padding-block: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 32px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.chip:hover { border-color: var(--brand); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.app { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head img { width: 44px; height: 44px; border-radius: 10px; }
.app ul { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.app a { font-size: .9rem; font-weight: 600; margin-top: auto; }
.group-sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.group-sec > header { display: flex; flex-direction: column; gap: 6px; max-width: 62ch; }

/* forms */
form.f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form.f .full { grid-column: 1 / -1; }
@media (max-width: 600px) { form.f { grid-template-columns: minmax(0, 1fr); } }
label.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; min-width: 0; }
label.fld small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-height: 46px; }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }

/* help centre */
.help-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 5vw, 56px); }
.help-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.search { position: relative; max-width: 680px; }
.search input { min-height: 54px; padding-left: 46px; font-size: 1.05rem; border-color: var(--muted); }
.search svg { position: absolute; left: 14px; top: 16px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.results { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.results a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a:focus { background: var(--brand-soft); }
.results b { font-weight: 600; }
.results small { color: var(--muted); }
.results .empty { padding: 14px 16px; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; }
.cat:hover { border-color: var(--brand); }
.cat img, .cat .ph { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.cat .ph { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font: 700 1rem/1 var(--font-display); }
.cat span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cat b { font-weight: 600; }
.cat small { color: var(--muted); }
.crumbs { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.help-side { display: flex; flex-direction: column; gap: 2px; font-size: .93rem; }
.help-side b { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.help-side a { padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.help-side a:hover { background: var(--surface-2); }
.help-side a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
@media (max-width: 900px) { .help-layout { grid-template-columns: minmax(0, 1fr); } .help-side { display: none; } }
.qa { display: flex; flex-direction: column; gap: 8px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 12px; }
.qa summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 400 1.5rem/1 var(--font-body); color: var(--muted); }
.qa details[open] summary::after { content: "–"; }
.qa details[open] { border-color: var(--brand); }
.answer { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; overflow-wrap: anywhere; }
.answer ul, .answer ol, .prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.answer .src { font-size: .85rem; color: var(--muted); }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 72ch; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }
.prose h3 { margin-top: 6px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; }
.foot-grid > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot-grid b { font-family: var(--font-display); }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
