/* Drover website: same colors and fonts as the app. */

/* Fonts live in the /fonts folder so the site never depends on another service. */
@font-face { font-family: 'Cormorant'; src: url('fonts/Cormorant_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/Newsreader_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --cream: #f7f5ef;
  --white: #ffffff;
  --green: #2f4a3a;
  --sage: #e6ede4;
  --wash: rgba(47, 74, 58, 0.07);
  --rust: #9c4521;
  --ink: #1f2a22;
  --muted: #4e554d;
  --line: #dad8cf;

  --name: 'Cormorant', Georgia, serif; /* product-name style headlines */
  --read: 'Spectral', Georgia, serif; /* longer reading lines */
  --ui: 'Inter', system-ui, -apple-system, sans-serif; /* buttons, small text */
  --mark: 'Newsreader', Georgia, serif; /* the Drover wordmark */

  --page: min(1120px, 100% - 40px);
  --r-image: 28px;
  --r-block: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--page); margin-inline: auto; }

/* ── Header ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.mark {
  font-family: var(--mark);
  font-size: 34px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--green); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: #fff;
  font: 600 16px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #253d2f; }
.btn.small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn.soft { background: var(--wash); color: var(--green); }
.btn.soft:hover { background: rgba(47, 74, 58, 0.13); }
.btn.light { background: #fff; color: var(--green); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 90px;
}
.hero h1 {
  font-family: var(--name);
  font-weight: 600;
  font-size: clamp(46px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -1px;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero .lead {
  font-family: var(--read);
  font-size: 20px;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 30px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.phones { position: relative; height: 620px; }
.phone {
  position: absolute;
  width: 280px;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  border: 8px solid #fff;
  box-shadow: 0 30px 60px -20px rgba(31, 42, 34, 0.28);
}
.phone img { width: 100%; height: auto; border-radius: 32px; }
.phone.one { left: 0; top: 0; }
.phone.two { right: 0; top: 70px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 60px; }
  .phones { height: 520px; max-width: 460px; width: 100%; margin-inline: auto; }
  .phone { width: 230px; }
}
@media (max-width: 480px) {
  .phones { height: 420px; }
  .phone { width: 185px; border-width: 6px; border-radius: 30px; }
  .phone img { border-radius: 24px; }
}

/* ── Sections ── */
section { padding: 80px 0; }
h2 {
  font-family: var(--name);
  font-weight: 600;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
}
.intro { font-family: var(--read); font-size: 19px; max-width: 46ch; margin: 0 0 40px; }

/* The route: the signature section */
.route {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  grid-template-areas: "head map" "list map";
  column-gap: 48px;
  align-items: center;
}
.route-head { grid-area: head; align-self: end; }
.route-list { grid-area: list; align-self: start; }
.map { grid-area: map; }
.route h2 { max-width: 13ch; }
.route .intro { margin-bottom: 28px; }
.stops { list-style: none; padding: 0; margin: 0; }
.stops li {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.stops li:last-child { border-bottom: 0; }
.stops .t { font-weight: 600; font-size: 15px; color: var(--rust); font-variant-numeric: tabular-nums; }
.stops .p { font-family: var(--name); font-weight: 600; font-size: 23px; line-height: 1.2; }
.stops .you .p { color: var(--green); }
.route-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.map { margin: 0; background: var(--white); border-radius: var(--r-image); padding: 18px 10px 14px; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }

.map .zone { fill: var(--sage); }
.map .fields path { stroke: var(--green); stroke-width: 2; stroke-linecap: round; opacity: 0.22; fill: none; }
.map .road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .road.out { stroke: var(--rust); stroke-width: 4; stroke-dasharray: 2 12; }
.map .road.back { stroke: var(--green); stroke-width: 3; stroke-dasharray: 2 12; opacity: 0.55; }
.map .hwy { font-family: var(--read); font-style: italic; font-size: 19px; fill: var(--muted); }
.map .stop circle { fill: #fff; stroke: var(--rust); stroke-width: 4; }
.map .town { font-family: var(--name); font-weight: 600; font-size: 30px; fill: var(--ink); }
.map .time { font-family: var(--ui); font-size: 17px; font-weight: 500; fill: var(--muted); }
.map .hub circle { fill: var(--green); }
.map .hub .dot { fill: #fff; }
.map .north path { fill: var(--ink); opacity: 0.7; }
.map .north text { font-family: var(--ui); font-size: 15px; font-weight: 600; fill: var(--ink); opacity: 0.7; }

/* The one moment of motion: the roads draw themselves once. */
.map .reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map.drawn .reveal { transition: stroke-dashoffset 2.4s cubic-bezier(.45, 0, .2, 1); stroke-dashoffset: 0; }
.map.drawn .reveal.back { transition-duration: 1.6s; transition-delay: 2.2s; }
.map .stop, .map .hub ~ .town { transition: opacity .4s ease; }
@media (prefers-reduced-motion: reduce) {
  .map .reveal { stroke-dashoffset: 0; }
  .map.drawn .reveal { transition: none; }
}
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; grid-template-areas: "head" "map" "list"; row-gap: 8px; }
  .map { margin: 8px -10px 28px; padding: 14px 4px 12px; }
}
@media (max-width: 600px) {
  .map .town { font-size: 44px; }
  .map .time, .map .hwy, .map .north { display: none; }
}

/* Farms */
.farms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.farm {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--r-block);
  padding: 14px;
}
.farm img, .farm .ph {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.farm .ph { display: grid; place-items: center; font: 30px var(--mark); color: var(--green); }
.farm h3 { font-family: var(--name); font-weight: 600; font-size: 25px; margin: 0; line-height: 1.1; }
.farm p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.south { margin-top: 34px; font-family: var(--read); font-size: 18px; color: var(--muted); max-width: 60ch; }
@media (max-width: 720px) { .farms { grid-template-columns: 1fr; } }

/* Fair split */
.fair {
  background: var(--green);
  color: #fff;
  border-radius: var(--r-image);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
}
.fair h2 { color: #fff; margin: 0; }
.fair p { font-family: var(--read); font-size: 19px; color: #dde6da; margin: 0; }
@media (max-width: 820px) { .fair { grid-template-columns: 1fr; } }

/* For farmers */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.phone-solo {
  width: min(300px, 80%);
  margin-inline: auto;
  border-radius: 40px;
  overflow: hidden;
  border: 8px solid #fff;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(31, 42, 34, 0.28);
}
.phone-solo img { width: 100%; height: auto; border-radius: 32px; }
.perks { list-style: none; padding: 0; margin: 0 0 30px; }
.perks li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.perks li:last-child { border-bottom: 0; }
.perks strong { display: block; font-weight: 600; }
.perks span { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Waitlist */
.waitlist {
  background: var(--white);
  border-radius: var(--r-image);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}
.waitlist .intro { margin-inline: auto; }
.form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto;
}
.form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form input {
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0 20px;
  font: 16px var(--ui);
  color: var(--ink);
  flex: 1 1 220px;
  min-width: 0;
}
.form input[name='zip'] { flex: 0 1 140px; }
.form .btn { flex: 0 0 auto; }
.small-print { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Footer */
footer { padding: 60px 0 50px; color: var(--muted); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--green); }

/* Plain text pages (privacy, support) */
.doc { max-width: 720px; padding: 30px 0 80px; }
.doc h1 { font-family: var(--name); font-weight: 600; font-size: clamp(42px, 6vw, 64px); line-height: 1; margin: 10px 0 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 32px; margin-top: 44px; }
.doc p, .doc li { font-family: var(--read); font-size: 18px; line-height: 1.7; }
.doc details { background: var(--white); border-radius: var(--r-block); padding: 18px 22px; margin-bottom: 12px; }
.doc summary { cursor: pointer; font-weight: 600; font-family: var(--ui); font-size: 17px; }
.doc details p { margin: 12px 0 0; }
