:root {
  --ink: #0e2233;
  --harbor: #155a75;
  --tide: #2a8c8c;
  --buoy: #e4572e;
  --fog: #eaf0f3;
  --paper: #fbfcfc;
  --white: #ffffff;
  --line: #cdd9df;
  --muted: #4a6070;
  --pill-green-bg: #ddf1e6;
  --pill-green: #175c3a;
  --pill-blue-bg: #dcebf2;
  --pill-blue: #0f4a63;
  --pill-red-bg: #fbe3da;
  --pill-red: #9c2f0f;
  --pill-amber-bg: #fbefd0;
  --pill-amber: #7a4e00;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--buoy);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 20;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--body);
  padding: 15px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--harbor); border-color: var(--harbor); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn.small { padding: 10px 16px; font-size: 0.9375rem; }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: var(--fog); border-color: var(--fog); }

/* Header */
.site-header {
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.375rem/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
}
.nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  background: var(--fog);
  padding: 72px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.375rem, 5.2vw, 3.875rem);
  font-weight: 700;
  max-width: 14ch;
}
.hero .lede {
  margin-top: 24px;
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

/* Shipment journey */
.journey {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px 28px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(14, 34, 51, 0.35);
}
.journey-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.journey-head strong { font: 600 1.0625rem var(--display); }
.journey-head span { font-variant-numeric: tabular-nums; color: var(--muted); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; }
.step {
  position: relative;
  padding: 0 0 22px 40px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: var(--line);
}
.step:last-child::before { display: none; }
.step::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  width: 2px;
  height: 0;
  background: var(--tide);
}
.node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
}
.step h3 { font: 600 1.0625rem/1.3 var(--body); letter-spacing: 0; }
.step p { font-size: 0.9375rem; color: var(--muted); }

.js-motion .node { animation: fill 0.4s ease forwards; animation-delay: calc(var(--i) * 0.7s + 0.3s); border-color: var(--line); }
.js-motion .step::after { animation: run 0.5s ease forwards; animation-delay: calc(var(--i) * 0.7s + 0.6s); }
.js-motion .step:last-child::after { display: none; }
.step .node { border-color: var(--tide); background: var(--tide); }
.js-motion .step .node { border-color: var(--line); background: var(--white); }
@keyframes fill {
  to { border-color: var(--tide); background: var(--tide); }
}
@keyframes run { to { height: calc(100% - 20px); } }
.step::after { height: calc(100% - 20px); }
.js-motion .step::after { height: 0; }
.step:last-child .node { border-color: var(--buoy); background: var(--buoy); }
.js-motion .step:last-child .node { border-color: var(--line); background: var(--white); animation-name: fillLast; }
@keyframes fillLast {
  to { border-color: var(--buoy); background: var(--buoy); }
}

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* Features as ledger rows */
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.row h3 { font-size: 1.5rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row p { color: var(--muted); max-width: 58ch; }
.tag {
  font: 600 0.8125rem/1 var(--body);
  letter-spacing: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pill-blue-bg);
  color: var(--pill-blue);
}
.tag.soon { background: var(--pill-amber-bg); color: var(--pill-amber); }

/* Screens */
.screens { background: var(--ink); color: var(--white); }
.screens .section-head p { color: #b8c9d3; }
.app {
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.app-bar .brand { font-size: 1.0625rem; padding: 14px 0; flex: none; }
.tabs { display: flex; gap: 4px; }
.tab {
  font: 500 0.9375rem var(--body);
  background: none;
  border: 0;
  padding: 16px 12px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.panel { padding: 24px; min-height: 380px; }
.panel[hidden] { display: none; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-title h3 { font: 600 1.25rem var(--display); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.metric { background: var(--fog); border-radius: 10px; padding: 14px 16px; }
.metric small { display: block; color: var(--muted); font-size: 0.875rem; }
.metric strong { font: 700 1.75rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 480px; }
th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
td { padding: 12px 10px; border-bottom: 1px solid var(--fog); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block;
  font: 600 0.8125rem/1 var(--body);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.green { background: var(--pill-green-bg); color: var(--pill-green); }
.pill.blue { background: var(--pill-blue-bg); color: var(--pill-blue); }
.pill.red { background: var(--pill-red-bg); color: var(--pill-red); }
.pill.amber { background: var(--pill-amber-bg); color: var(--pill-amber); }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini {
  font: 500 0.875rem var(--body);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: default;
}
.mini.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.att { list-style: none; margin: 0; padding: 0; }
.att li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--fog); }
.att-title { font-weight: 600; margin-bottom: 8px; }
.bar { display: inline-block; width: 110px; height: 8px; border-radius: 4px; background: var(--fog); vertical-align: middle; margin-right: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; width: var(--w); }
.panel.grow .bar i { animation: grow 0.8s ease-out; }
@keyframes grow { from { width: 0; } }
.sample-note { margin-top: 16px; color: #b8c9d3; font-size: 0.9375rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
}
.plan.featured { border: 2px solid var(--harbor); padding: 29px 27px; }
.plan h3 { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price { margin: 16px 0 6px; font: 700 2.75rem/1 var(--display); letter-spacing: -0.03em; }
.price span { font: 500 1rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: 0.9375rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 28px; font-size: 0.9688rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 11px;
  border: solid var(--tide);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan li.lead { font-weight: 600; }
.plan li.lead::before { display: none; }
.plan li.lead { padding-left: 0; }
.plan .btn { text-align: center; }
.bill-note { margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }

/* Call to action */
.cta { background: var(--fog); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 20ch; }
.cta p { margin-top: 12px; color: var(--muted); max-width: 52ch; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d7df; padding: 48px 0; font-size: 0.9688rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { color: var(--white); }
.site-footer a { color: #c9d7df; }
.site-footer a:hover { color: var(--white); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #2b4356; }
.legal ul { padding-left: 22px; }
.legal .draft {
  background: var(--pill-amber-bg);
  color: var(--pill-amber);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 20px 0 8px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 48px 0 64px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .plans { grid-template-columns: 1fr; }
  .plan .for { min-height: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .node,
  .js-motion .step::after,
  .panel.grow .bar i { animation: none !important; }
  .js-motion .step .node { border-color: var(--tide); background: var(--tide); }
  .js-motion .step:last-child .node { border-color: var(--buoy); background: var(--buoy); }
  .js-motion .step::after { height: calc(100% - 20px); }
}
