/* Standalone brochure pages (/livestock, /crops). Tokens per site-assets-docs/nxtacre-design-system.md */
:root {
  --blue: #3B9FD4;
  --steel: #2272A3;
  --sky: #C6E4F5;
  --ivory: #FAF6F0;
  --sand: #F5EFE8;
  --blush: #EDD9D5;
  --rose: #D4A5A0;
  --gold: #C9A96E;
  --sage: #9BAF9B;
  --slate: #3D4A5C;
  --caramel: #8B6E52;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --shadow-card: 0 2px 16px rgba(34, 114, 163, 0.10);
  --shadow-elevated: 0 6px 32px rgba(34, 114, 163, 0.18);
  /* Main-site token names used by the shared css/cookie-consent.css */
  --primary-color: var(--blue);
  --secondary-color: var(--steel);
  --accent-color: var(--sky);
  --cream: var(--sand);
  --text-color: var(--slate);
  --muted-color: var(--caramel);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--steel); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; color: var(--slate); }
h4 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--caramel);
}

/* ---- Top bar ---- */
.topbar { padding: 20px 0; position: relative; z-index: 2; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a.site { color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 14px; opacity: 0.9; }
.topbar a.site:hover { opacity: 1; text-decoration: underline; }

/* ---- Cover ---- */
.cover {
  background: linear-gradient(135deg, #2272A3 0%, #3B9FD4 55%, #C6E4F5 100%);
  color: var(--ivory);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.cover::after {
  /* soft contour lines, a nod to field maps */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(250, 246, 240, 0.12) 0 40%, transparent 41%),
    radial-gradient(ellipse 70% 50% at 85% 110%, rgba(250, 246, 240, 0.08) 0 40%, transparent 41%),
    radial-gradient(ellipse 80% 60% at 85% 110%, rgba(250, 246, 240, 0.06) 0 40%, transparent 41%);
  pointer-events: none;
}
.cover .wrap { position: relative; z-index: 1; }
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 40px;
}
.cover .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 246, 240, 0.16);
  border: 1px solid rgba(250, 246, 240, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cover h1 {
  color: var(--ivory);
  font-size: 52px;
  line-height: 1.1;
  margin: 20px 0 20px;
}
.cover h1 em { font-style: italic; font-weight: 600; }
.cover .lead { font-size: 18px; max-width: 34em; color: #F3F8FC; }
.cover .note { margin-top: 20px; font-size: 14px; color: #E6F2FB; }

/* ---- Sign-up card ---- */
.signup {
  background: var(--ivory);
  color: var(--slate);
  border-radius: 20px;
  border-top: 3px solid var(--rose);
  box-shadow: var(--shadow-elevated);
  padding: 28px 26px;
}
.signup h2 { font-size: 24px; line-height: 1.3; margin: 6px 0 8px; }
.signup p.sub { font-size: 14px; margin-bottom: 18px; }
.signup label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 6px;
}
.signup .field { margin-bottom: 14px; }
.signup input,
.signup select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--slate);
  background: var(--blush);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
}
.signup input::placeholder { color: rgba(139, 110, 82, 0.6); }
.signup input:focus,
.signup select:focus { border-color: var(--blue); }
.signup input.invalid { border-color: #C0605A; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .status { min-height: 1.2em; margin-top: 10px; font-size: 14px; color: #C0605A; }
.signup .done { text-align: center; padding: 18px 0 6px; }
.signup .done i { font-size: 40px; color: var(--sage); }
.signup .done p { margin-top: 10px; font-size: 16px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: background 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-cta { background: #EC6F63; color: #fff; width: 100%; }
.btn-cta:hover { background: #DD5A4E; }
.btn-cta:disabled { opacity: 0.7; cursor: default; }
.btn-primary { background: var(--blue); color: var(--ivory); }
.btn-primary:hover { background: var(--steel); }
.btn-outline-primary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-outline-primary:hover { background: var(--sky); }

/* ---- At a glance ---- */
.glance { margin-top: -36px; position: relative; z-index: 2; }
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--sand);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.glance-item { padding: 22px 20px; border-right: 1px solid var(--blush); }
.glance-item:last-child { border-right: none; }
.glance-item i { font-size: 22px; color: var(--blue); }
.glance-item h4 { margin-top: 8px; }
.glance-item p { font-size: 14px; }

/* ---- Sections ---- */
.intro { padding: 72px 0 24px; }
.intro .wrap { max-width: 820px; }
.intro p { font-size: 18px; }
.intro p + p { margin-top: 14px; }

.chapter { padding: 64px 0; }
.chapter.alt { background: var(--sand); }
.chapter-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.chapter-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
}
.chapter-head h2 { font-size: 36px; line-height: 1.2; margin: 6px 0 12px; }
.chapter-head p { font-size: 17px; max-width: 44em; }

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-left: 120px;
}
.item {
  display: flex;
  gap: 16px;
  background: var(--ivory);
  border-radius: 20px;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
}
.chapter:not(.alt) .item { background: var(--sand); }
.item .ic {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.item.gold { border-top-color: var(--gold); }
.item.gold .ic { background: #F1E6D2; color: #8A6B33; }
.item.sage { border-top-color: var(--sage); }
.item.sage .ic { background: #E2EAE2; color: #56705A; }
.item.rose { border-top-color: var(--rose); }
.item.rose .ic { background: var(--blush); color: #9A5F59; }

/* ---- App Store links ---- */
.app-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0 120px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--slate);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.store-badge:hover { background: #2c3645; }
.store-badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.store-badge i { font-size: 26px; }
.store-badge small { display: block; font-size: 10px; font-weight: 600; opacity: 0.8; letter-spacing: 0.04em; }
.store-badge span { font-size: 16px; line-height: 1.1; }

/* ---- Closing ---- */
.closing {
  background: linear-gradient(to bottom, #3B9FD4, #2272A3);
  color: var(--ivory);
  padding: 64px 0;
  text-align: center;
}
.closing h2 { color: var(--ivory); font-size: 36px; margin-bottom: 12px; }
.closing p { font-size: 18px; max-width: 36em; margin: 0 auto 28px; color: #F3F8FC; }
.closing .btn { background: var(--ivory); color: var(--steel); }
.closing .btn:hover { background: var(--sand); }

.foot { padding: 28px 0; font-size: 13px; color: var(--caramel); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--caramel); margin-left: 16px; }
.foot a:first-child { margin-left: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cover h1 { font-size: 40px; }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-item:nth-child(2) { border-right: none; }
  .glance-item:nth-child(-n+2) { border-bottom: 1px solid var(--blush); }
  .items, .app-links { margin-left: 0; }
}
@media (max-width: 640px) {
  .cover h1 { font-size: 34px; }
  .cover { padding-bottom: 56px; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); }
  .glance-item { border-right: none; border-bottom: 1px solid var(--blush); }
  .glance-item:last-child { border-bottom: none; }
  .chapter { padding: 48px 0; }
  .chapter-head { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .chapter-num { font-size: 40px; }
  .chapter-head h2 { font-size: 28px; }
  .items { grid-template-columns: minmax(0, 1fr); }
  .closing h2 { font-size: 28px; }
}

/* ---- Print: these get handed out ---- */
@media print {
  body { background: none; font-size: 12px; }
  .cover, .closing { background: none !important; color: var(--slate); padding-bottom: 16px; }
  .cover h1, .cover .lead, .cover .note, .closing h2, .closing p { color: var(--slate); }
  .cover .tag { border-color: var(--slate); }
  .topbar a.site, .signup, .closing .btn, .glance { display: none; }
  .cover-grid { grid-template-columns: 1fr; }
  .chapter { padding: 20px 0; break-inside: avoid-page; }
  .items, .app-links { margin-left: 0; }
  .store-badge { background: none; color: var(--slate); padding: 0; }
  .item { box-shadow: none; border: 1px solid var(--blush); break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
