/* ── Replenly marketing — brand tokens from assets/replenly-brand.md ────── */
:root {
  --deepwater: #0C5B4A;
  --ink: #1A2421;
  --current: #2E9C7E;
  --copper: #C0763A;
  --signal: #C13E2C;
  --tint: #E4EFEA;
  --paper: #F7F5F1;
  --slate: #55635D;
  --mist: #DDE4E0;
  --heading: 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'Instrument Sans', system-ui, sans-serif; /* brand v2: data face */
  --wordmark: 'Schibsted Grotesk', system-ui, sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* faint paper grain */
  background-image: radial-gradient(rgba(26, 36, 33, 0.028) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wm { font-family: var(--wordmark); font-weight: 700; letter-spacing: -0.03em; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
a { color: var(--deepwater); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-weight: 500; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--mist);
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo svg { height: 26px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--deepwater); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--heading); font-weight: 600; font-size: 15px;
  padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--deepwater); color: #fff; }
.btn-primary:hover { background: #0A4C3E; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--mist); }
.btn-ghost:hover { border-color: var(--slate); text-decoration: none; }
.nav-links .btn { padding: 8px 16px; font-size: 14px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--deepwater); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--copper); }
.hero h1 { font-size: clamp(38px, 5.2vw, 56px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--deepwater); }
.hero-sub { font-size: 18.5px; color: var(--slate); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.hero-note { font-family: var(--mono); font-size: 12.5px; color: var(--slate); }

/* staggered reveal */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-note, .ledger {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.06s; }
.hero-sub { animation-delay: 0.12s; }
.hero-cta { animation-delay: 0.18s; }
.hero-note { animation-delay: 0.24s; }
.ledger { animation-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── The ledger artifact (hero) ────────────────────────────────────────── */
.ledger {
  background: #fff; border: 1px solid var(--mist); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(26, 36, 33, 0.18), 0 2px 6px rgba(26, 36, 33, 0.05);
  overflow: hidden;
  transform: rotate(0.4deg);
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--mist);
  font-family: var(--mono); font-size: 12px; color: var(--slate);
}
.ledger-head .dot { color: var(--current); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th {
  font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--slate); text-align: left;
  padding: 10px 18px 8px; border-bottom: 1px solid var(--mist);
}
.ledger td { padding: 12px 18px; border-bottom: 1px solid var(--mist); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: none; }
.ledger .sku { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.cover { display: flex; align-items: center; gap: 10px; }
.cover-bar { width: 84px; height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.cover-fill { height: 100%; border-radius: 4px; animation: fill 1.1s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fill { from { width: 0 !important; } }
.cover .mono { font-size: 12px; color: var(--slate); }
.act {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.act-ocean { background: var(--tint); color: var(--deepwater); }
.act-air { background: rgba(192, 118, 58, 0.14); color: var(--copper); }
.act-alert { background: rgba(193, 62, 44, 0.12); color: var(--signal); }
.ledger-foot {
  padding: 12px 18px; font-family: var(--mono); font-size: 12px; color: var(--slate);
  display: flex; justify-content: space-between; background: var(--paper);
}
.ledger-foot strong { color: var(--deepwater); font-weight: 600; }

/* ── Stat strip ─────────────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); background: #fff; }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  font-family: var(--mono);
}
.strip-cell { padding: 22px 18px; border-right: 1px solid var(--mist); }
.strip-cell:last-child { border-right: none; }
.strip-cell b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.strip-cell span { font-size: 12px; color: var(--slate); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 84px 0; }
.sec-head { max-width: 620px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.sec-head p { color: var(--slate); font-size: 17px; }

/* How it works — steps carry the restock-stack geometry (42 / 70 / 100%) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 26px; }
.step-bar { height: 10px; border-radius: 5px; margin-bottom: 22px; }
.step:nth-child(1) .step-bar { width: 42%; background: var(--copper); }
.step:nth-child(2) .step-bar { width: 70%; background: var(--current); }
.step:nth-child(3) .step-bar { width: 100%; background: var(--deepwater); }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--slate); margin-bottom: 8px; display: block; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 15.5px; }

/* Features */
.features { background: #fff; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mist); border: 1px solid var(--mist); border-radius: 14px; overflow: hidden; }
.feat { background: #fff; padding: 30px 28px; transition: background 0.15s ease; }
.feat:hover { background: var(--paper); }
.feat .glyph { font-family: var(--mono); font-size: 12px; color: var(--copper); margin-bottom: 14px; display: block; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--slate); font-size: 14.5px; }

/* Integrations */
.integrations .row { display: flex; gap: 16px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--mist); background: #fff; border-radius: 10px;
  padding: 14px 22px; font-weight: 600; font-size: 15px; font-family: var(--heading);
}
.chip .mono { font-size: 11px; color: var(--slate); font-weight: 400; }
.chip.soon { border-style: dashed; color: var(--slate); }

/* CTA block */
.cta-block {
  background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 64px 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.cta-block h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; margin-bottom: 14px; }
.cta-block p { color: rgba(247, 245, 241, 0.72); font-size: 16.5px; }
.cta-block .mono-line { font-family: var(--mono); font-size: 12.5px; color: rgba(247, 245, 241, 0.55); margin-top: 18px; }
.cta-right { text-align: right; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; text-decoration: none; transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--mist); padding: 40px 0 48px; margin-top: 84px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot-inner svg { height: 20px; width: auto; display: block; }
.foot-links { display: flex; gap: 24px; font-size: 14px; }
.foot-links a { color: var(--slate); }
.foot-copy { font-family: var(--mono); font-size: 12px; color: var(--slate); }

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--slate); margin-bottom: 40px; display: block; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: #2A3430; font-size: 15.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .lede { font-size: 17px; color: var(--slate); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .cta-block { grid-template-columns: 1fr; }
  .cta-right { text-align: left; }
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(2) { border-right: none; }
  .strip-cell:nth-child(-n+2) { border-bottom: 1px solid var(--mist); }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 60px 0; }
  .cta-block { padding: 44px 28px; }
}
