/* ShipVia — static site styles. Palette: dock concrete, label stock, thermal ink, canary copy. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #E8ECEB;
  --surface: #F5F7F6;
  --ink: #121517;
  --ink-2: #4B5357;
  --rule: #C8CFCE;
  --canary: #F5D547;
  --canary-ink: #121517;

  /* the routing label is physical: it keeps its own colors in both themes */
  --label-stock: #FFFFFF;
  --label-ink: #121517;
  --label-muted: #5B6367;
  --label-rule: #D6DBDA;
  --label-canary: #F5D547;

  --shadow: 0 1px 0 rgba(18, 21, 23, .06), 0 22px 44px -22px rgba(18, 21, 23, .4);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1112;
    --surface: #151A1C;
    --ink: #E6EAE9;
    --ink-2: #A1AAAC;
    --rule: #2B3235;
    --canary: #E8C73D;
    --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 26px 50px -22px rgba(0, 0, 0, .8);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: 16px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: var(--gutter); z-index: 10; background: var(--canary); color: var(--canary-ink); padding: 8px 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.h2 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  max-width: 22ch;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 780;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.15em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 650;
  font-stretch: 108%;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--canary); color: var(--canary-ink); }
.btn--small { padding: .55em .9em; font-size: .9rem; }

.link-arrow { font-weight: 600; }

.tag {
  display: inline-block;
  margin-left: .35em;
  padding: .12em .45em;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: .15em;
}

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--rule); }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand__mark { width: 30px; height: 30px; }
.brand__mark .m-bg { fill: var(--ink); }
.brand__mark .m-label { fill: var(--canary); }
.brand__mark .m-bar { fill: var(--ink); }

.site-nav { display: flex; gap: 6px 22px; margin-left: auto; font-size: .95rem; }
.site-nav a { padding: 6px 0; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .site-head .btn--small { display: none; }
  .site-nav { width: 100%; margin-left: 0; padding-bottom: 12px; overflow-x: auto; white-space: nowrap; }
}

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

.hero { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 8vw, 104px); overflow-x: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero__title {
  margin: 0 0 22px;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 820;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.hero__lede { margin: 0 0 28px; max-width: 36em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__note {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--ink-2);
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- routing label (signature) ---------- */

.label {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 30px 22px 18px;
  border-radius: 6px;
  background: var(--label-stock);
  color: var(--label-ink);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-stretch: 87.5%;
  transform: rotate(-1.5deg);
}
.label::before {
  /* perforated top edge */
  content: "";
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  height: 8px;
  background: radial-gradient(circle, var(--ground) 2.5px, transparent 3px) 0 50% / 14px 8px repeat-x;
}
@media (max-width: 880px) {
  .label { justify-self: center; transform: rotate(-1deg); }
}

.label__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--label-ink);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label__fields { margin: 0; }
.label__row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--label-rule);
  font-size: .78rem;
  line-height: 1.45;
}
.label__row dt {
  padding-top: .2em;
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--label-muted);
}
.label__row dd { margin: 0; font-weight: 600; }
.label__row--via { align-items: center; }
.label__row--via dd {
  justify-self: start;
  margin-left: -.3em;
  padding: .2em .32em .12em;
  background: var(--label-canary);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 860;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.label__map { display: block; font-weight: 400; color: var(--label-muted); }
@media (max-width: 480px) {
  .label__row--via dd { font-size: 1.2rem; white-space: nowrap; }
}

.status { display: grid; }
.status > span { grid-area: 1 / 1; opacity: 0; }
.status > span:nth-child(1) { animation: status-hold 1.1s .6s both; }
.status > span:nth-child(2) { animation: status-hold 1.1s 1.7s both; }
.status > span:nth-child(3) { animation: status-land .35s 2.8s both; }
@keyframes status-hold { 0% { opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes status-land { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .status > span { animation: none; }
  .status > span:nth-child(3) { opacity: 1; }
}

.label__barcode {
  height: 58px;
  margin-top: 16px;
  background:
    repeating-linear-gradient(90deg, var(--label-ink) 0 2px, transparent 2px 5px, var(--label-ink) 5px 6px, transparent 6px 11px),
    repeating-linear-gradient(90deg, transparent 0 7px, var(--label-ink) 7px 10px, transparent 10px 17px, var(--label-ink) 17px 18px, transparent 18px 23px);
}
.label__code { margin-top: 8px; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .32em; }

/* ---------- bands ---------- */

.band { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--rule); }
.band--surface { background: var(--surface); }

/* how an order moves: a real sequence, so it is numbered */
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--ink);
  opacity: .45;
}
.route__stop { position: relative; }
.route__bin {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--canary);
  color: var(--canary-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
}
.route__stop h3 { margin: 0 0 8px; font-family: var(--display); font-stretch: 110%; font-weight: 720; font-size: 1.15rem; line-height: 1.2; }
.route__stop p { margin: 0; color: var(--ink-2); font-size: .98rem; }

@media (max-width: 820px) {
  .route { grid-template-columns: 1fr; gap: 26px; }
  .route::before { top: 20px; bottom: 20px; left: 19px; right: auto; border-top: 0; border-left: 2px dashed var(--ink); }
  .route__stop { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; }
  .route__bin { grid-row: span 2; margin-bottom: 0; }
  .route__stop h3, .route__stop p { grid-column: 2; }
}

/* what ShipVia handles: form fields */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fields__item {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.fields__item:nth-child(odd) { padding-right: 28px; }
.fields__item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); }
.fields__key {
  margin: 0;
  padding-top: .35em;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fields__item p { margin: 0; }

@media (max-width: 900px) {
  .fields { grid-template-columns: 1fr; }
  .fields__item:nth-child(n) { grid-template-columns: 1fr; gap: 6px; padding-inline: 0; border-left: 0; }
}

/* data & security: two manifests */
.manifest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.manifest__col { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--rule); border-radius: 8px; background: var(--ground); }
.manifest__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.manifest__title::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 2px; background: var(--canary); }
.manifest__col--never .manifest__title::before { background: transparent; }
.manifest ul { margin: 0; padding: 0; list-style: none; }
.manifest li { padding: 10px 0; border-top: 1px solid var(--rule); }
.manifest li:first-child { border-top: 0; }
.data__foot { margin: 28px 0 0; max-width: 62ch; color: var(--ink-2); }

@media (max-width: 760px) {
  .manifest { grid-template-columns: 1fr; }
}

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 5vw, 64px); align-items: start; }
.pricing .h2 { margin-bottom: 0; }
.pricing__body p { margin: 0 0 14px; color: var(--ink-2); }
.pricing__body .btn { margin-top: 8px; }

@media (max-width: 760px) {
  .pricing { grid-template-columns: 1fr; }
}

/* questions */
.faq { max-width: 860px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 620;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 6px; transform: translateY(-50%); font-family: var(--mono); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 65ch; margin: 0 0 20px; color: var(--ink-2); }

/* ---------- footer ---------- */

.site-foot { padding-block: 40px 48px; border-top: 2px solid var(--ink); font-size: .92rem; }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; }
.site-foot__who { margin: 12px 0 0; color: var(--ink-2); }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-self: start; }
.site-foot__legal, .site-foot__copy { grid-column: 1 / -1; max-width: 80ch; margin: 0; color: var(--ink-2); font-size: .82rem; }

@media (max-width: 640px) {
  .site-foot__grid { grid-template-columns: 1fr; }
}

/* ---------- documents (privacy, terms, support) ---------- */

.doc { padding-block: clamp(32px, 6vw, 72px); }
.doc__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.doc__toc { position: sticky; top: 24px; font-size: .88rem; }
.doc__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.doc__toc li { padding: 4px 0; counter-increment: toc; }
.doc__toc a { display: grid; grid-template-columns: 2em minmax(0, 1fr); color: var(--ink-2); text-decoration: none; }
.doc__toc a::before { content: counter(toc); padding-top: .2em; font-family: var(--mono); font-size: .72rem; }
.doc__toc a:hover { color: var(--ink); text-decoration: underline; }

.doc__body { max-width: 820px; padding: clamp(22px, 4vw, 56px); border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.doc__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 820;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.doc__meta {
  margin: 0 0 12px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: .74rem;
  color: var(--ink-2);
}
.doc__body h2 {
  display: flex;
  align-items: baseline;
  gap: .6em;
  margin: 34px 0 10px;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 720;
  font-size: 1.3rem;
  line-height: 1.25;
  scroll-margin-top: 24px;
}
.doc__num { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.doc__body h3 { margin: 22px 0 6px; font-size: 1.02rem; font-weight: 680; }
.doc__body section p, .doc__body li { max-width: 68ch; }
.doc__body p { margin: 0 0 12px; }
.doc__body ul { margin: 0 0 12px; padding-left: 1.2em; }
.doc__body li { margin: 5px 0; }

@media (max-width: 900px) {
  .doc__grid { grid-template-columns: 1fr; }
  .doc__toc { display: none; }
}
