/* Replenly marketing site — shared styles.
   Palette: paper #f6f8f6 / ink #16241d / brand #007a5c / pine #0c3b2c
   amber #eba33b (stars) / muted #5f6f67 / line #dfe6e0 */

:root {
  color-scheme: light;
  --paper: #f6f8f6;
  --ink: #16241d;
  --brand: #007a5c;
  --brand-dark: #0c3b2c;
  --amber: #eba33b;
  --muted: #5f6f67;
  --line: #dfe6e0;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Instrument Sans", -apple-system, sans-serif;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}

a { color: var(--brand); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15.5px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  transition: background 0.15s ease;
}
.btn:hover { background: #00694f; }

.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand) !important; background: transparent; }

.btn.small { font-size: 14.5px; padding: 8px 15px; }

/* ---------- hero ---------- */

.grad {
  background: linear-gradient(92deg, var(--brand) 10%, #2fb98a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 122, 92, 0.13), transparent);
  pointer-events: none;
}

.hero > div { position: relative; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .sub {
  margin: 20px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero .fine {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

/* dashboard mock (pure CSS, honest representation of the reorder dashboard) */

.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -32px rgba(12, 59, 44, 0.35);
  overflow: hidden;
  font-size: 13.5px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.mock-title { font-weight: 600; font-size: 14px; }

.mock-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  background: #e3efe9;
  padding: 3px 10px;
  border-radius: 99px;
}

.mock-supplier {
  padding: 9px 16px 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fbfcfb;
}

.mock table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.mock th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.mock td {
  padding: 9px 16px;
  border-bottom: 1px solid #edf1ee;
}

.mock td.num, .mock th.num { text-align: right; }

.mock .qty {
  font-weight: 700;
  color: var(--brand-dark);
}

.mock .low {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4813a;
  margin-right: 8px;
  vertical-align: 1px;
}

.mock-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
}

.mock-btn {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 7px;
}

/* ---------- sections ---------- */

section { padding: 72px 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.section-intro {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

/* features: bento grid, each card carries its own mini visual */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.card {
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #bcd6ca;
  box-shadow: 0 18px 40px -24px rgba(12, 59, 44, 0.35);
}

.card.wide { grid-column: span 3; }
.card.full { grid-column: span 6; }

.card h3 { font-size: 18.5px; font-weight: 650; }

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* the visual strip at the top of each card */

.viz {
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f2f7f4, #eef4f0);
  border: 1px solid #e6ede8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  overflow: hidden;
  flex: none;
}

/* sparkline card */
.viz .spark { width: 100%; height: 100%; }

/* mini purchase order */
.viz-po {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 120px;
  padding: 10px 12px;
  box-shadow: 0 8px 18px -12px rgba(12, 59, 44, 0.4);
}
.viz-po i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #dfe6e0;
  margin: 5px 0;
}
.viz-po i:first-child { width: 60%; background: var(--brand); height: 6px; margin-bottom: 8px; }
.viz-po i:nth-child(3) { width: 85%; }
.viz-po i:nth-child(4) { width: 70%; }

.viz .chip {
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  letter-spacing: 0.04em;
}

/* receiving progress */
.viz-recv { width: 100%; }
.viz-recv .lbl {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.viz-recv .bar {
  height: 10px;
  border-radius: 6px;
  background: #dfe8e2;
  overflow: hidden;
}
.viz-recv .bar i {
  display: block;
  height: 100%;
  width: 67%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--brand), #2fb98a);
}
.viz-recv .sync {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
}

/* barcode */
.viz-barcode {
  width: 150px;
  height: 52px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 3px, transparent 3px 6px,
    var(--ink) 6px 8px, transparent 8px 13px,
    var(--ink) 13px 18px, transparent 18px 21px,
    var(--ink) 21px 23px, transparent 23px 28px
  );
  border-radius: 3px;
  position: relative;
}
.viz-barcode::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 2px;
  background: #e05252;
  box-shadow: 0 0 8px rgba(224, 82, 82, 0.7);
}

/* ingredient chips */
.viz .u {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 11px;
  font-variant-numeric: tabular-nums;
}
.viz .arrow { color: var(--muted); font-size: 15px; }

/* supplier chips */
.viz .sup {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px 5px 6px;
  font-size: 12px;
  font-weight: 600;
}
.viz .sup b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.viz .sup:nth-child(2) b { background: #3a7bd5; }
.viz .sup span { color: var(--muted); font-weight: 500; }

/* digest mini email */
.viz-mail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 170px;
  padding: 9px 12px;
  box-shadow: 0 8px 18px -12px rgba(12, 59, 44, 0.35);
  font-size: 10.5px;
}
.viz-mail .from { font-weight: 700; margin-bottom: 5px; }
.viz-mail .row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin: 3px 0;
}
.viz-mail .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4813a;
  flex: none;
}

/* stocky band */

.stocky {
  background: var(--brand-dark);
  color: #eef5f1;
  border-radius: 16px;
  padding: 48px;
}

.stocky h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.015em;
}

.stocky p {
  color: #c4d6cd;
  max-width: 64ch;
}

.stocky .btn { background: #fff; color: var(--brand-dark) !important; border-color: #fff; }
.stocky .btn:hover { background: #e8f0ec; }

.stocky ul {
  margin: 18px 0 26px;
  padding-left: 20px;
  color: #c4d6cd;
}
.stocky li { margin: 6px 0; }

/* review */

.review-quote {
  margin: 36px 0 0;
  padding: 0;
}

.stars {
  color: var(--amber);
  font-size: 22px;
  letter-spacing: 5px;
}

.review-quote blockquote {
  margin: 18px 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.review-quote figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15.5px;
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.plan {
  padding: 30px 28px 32px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plan:first-child { border-left: none; }

.plan.hot { background: #f2f7f4; }

.plan h3 { font-size: 18px; font-weight: 650; }

.plan .price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin: 12px 0 2px;
  letter-spacing: -0.02em;
}
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.plan .trial {
  font-size: 13.5px;
  color: var(--brand);
  font-weight: 600;
  min-height: 20px;
}

.plan ul {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  font-size: 15.5px;
  color: var(--muted);
  flex: 1;
}

.plan li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.pricing-fine {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}

/* final cta */

.final {
  text-align: left;
  border-top: 1px solid var(--line);
}

.final .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 56px;
  font-size: 14.5px;
  color: var(--muted);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--brand); }

/* reveal-on-scroll (respects prefers-reduced-motion above) */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin: 4px 0 32px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal .contact-box {
  background: #eaf2ee;
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 40px;
}
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: #eef1ef;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 40px 0 56px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.wide, .card.full { grid-column: span 2; }
  .card.half-sm { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: none; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: none; }
  .stocky { padding: 32px 26px; }
  .nav-links .hide-sm { display: none; }
  section { padding: 56px 0; }
}
