@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;
}

:root {
  --paper: #f3f5f4;
  --white: #ffffff;
  --ink: #172230;
  --slate: #566374;
  --rule: #d3d9dd;
  --green: #17734f;
  --green-dark: #0f5539;
  --green-tint: #e3f0ea;
  --kraft: #b98d5a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1.0625rem;  /* 17px body */
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.5rem, 5.2vw, 4.25rem);
  --measure: 62ch;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; font-stretch: 115%; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); max-width: 15ch; text-wrap: balance; }
h2 { font-size: var(--step-3); max-width: 22ch; text-wrap: balance; }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.small { font-size: .9375rem; color: var(--slate); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1875rem; font-stretch: 115%; }
.brand-tld { color: var(--slate); font-weight: 600; }
.brand-mark { width: 1.75rem; height: 1.75rem; color: var(--green); }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9875rem; }
nav a:hover { color: var(--green); }
.nav-cta { white-space: nowrap; padding: .5rem .9rem; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { background: var(--ink); color: var(--white); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-quiet { color: var(--ink); border-color: var(--rule); background: var(--white); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lede { font-size: var(--step-1); line-height: 1.5; margin-top: 1.5rem; color: var(--ink); }
.hero-price { color: var(--slate); }
.hero-price strong { color: var(--ink); font-size: var(--step-2); font-stretch: 115%; margin-right: .2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* The shipping label: the page's one loud element. */
.label {
  margin: 0;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--kraft);
  padding: 1.35rem 1.4rem 1.1rem;
  transform: rotate(-1.2deg);
}
.label-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
.label-k { margin: 0; font-size: .8125rem; color: var(--slate); }
.label-v { margin: 0; font-weight: 700; font-stretch: 115%; }
.label-svc { font-size: .8125rem; font-weight: 700; padding: .25rem .55rem; border: 2px solid var(--ink); border-radius: 3px; white-space: nowrap; }

.track { list-style: none; margin: 0; padding: 1rem 0 .4rem; }
.track li { position: relative; display: grid; grid-template-columns: 6.6rem 1fr; gap: .9rem; padding: 0 0 .95rem 1.4rem; font-size: .9375rem; line-height: 1.4; }
.track li::before { content: ""; position: absolute; left: 0; top: .32rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--green); }
.track li::after { content: ""; position: absolute; left: calc(.35rem - 1px); top: 1.15rem; bottom: -.3rem; width: 2px; background: var(--rule); }
.track li:last-child::after { display: none; }
.track li:last-child::before { box-shadow: 0 0 0 4px var(--green-tint); }
.track time { color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.label-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-top: 1px dashed var(--rule); font-size: .875rem; color: var(--slate); }
.barcode { width: 6.5rem; height: 1.6rem; color: var(--ink); flex: none; }

/* One orchestrated moment: scans arrive in order on first load. */
@media (prefers-reduced-motion: no-preference) {
  .js .track li { opacity: 0; transform: translateY(6px); }
  .js .track.play li { animation: scan .45s ease-out forwards; }
  .js .track.play li:nth-child(2) { animation-delay: .45s; }
  .js .track.play li:nth-child(3) { animation-delay: .9s; }
  .js .track.play li:nth-child(4) { animation-delay: 1.35s; }
  .js .track.play li:nth-child(5) { animation-delay: 1.8s; }
}
@keyframes scan { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 1rem; }
.section-lede { color: var(--slate); font-size: var(--step-1); margin-bottom: 2.5rem; }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0 0; padding: 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--green); font-stretch: 115%; margin-bottom: .75rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--slate); font-size: .9875rem; }

.section-box { background: var(--white); }
.box-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.box-grid p { color: var(--slate); font-size: var(--step-1); }
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { padding: 1rem 0 1rem 2.1rem; border-bottom: 1px solid var(--rule); position: relative; }
.contents li:first-child { border-top: 1px solid var(--rule); }
.contents li::before { content: ""; position: absolute; left: 0; top: 1.3rem; width: 1.1rem; height: .7rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Pricing: a price list, not a row of cards. */
.price-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.price-group h3 { padding-bottom: .65rem; border-bottom: 3px solid var(--ink); }
.prices { margin: 0; }
.prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.prices dt { font-weight: 700; }
.prices dt small { display: block; font-weight: 400; font-size: .875rem; color: var(--slate); line-height: 1.4; margin-top: .15rem; }
.prices dd { margin: 0; font-weight: 800; font-size: var(--step-1); font-stretch: 115%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices dd span { font-size: .8125rem; font-weight: 500; color: var(--slate); margin-left: .15rem; font-stretch: 100%; }

.section-ink { background: var(--ink); color: var(--paper); border-top: 0; }
.section-ink .section-lede { color: #b8c3cf; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2.5rem; margin: 0; }
.extras > div { border-top: 2px solid #3a4a5c; padding-top: 1rem; }
.extras dt { font-weight: 800; font-size: var(--step-1); font-stretch: 115%; margin-bottom: .5rem; }
.extras dd { margin: 0; color: #c6cfd9; font-size: .9875rem; }

.msp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.msp-grid p { color: var(--slate); }
.facts { list-style: none; margin: 0; padding: 1.4rem 1.5rem; background: var(--green-tint); border-radius: var(--radius); }
.facts li { padding: .55rem 0; border-bottom: 1px solid #c4dccf; font-weight: 600; }
.facts li:last-child { border-bottom: 0; }

/* ---------- Order form ---------- */
.section-order { background: var(--white); }
.order-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.order-intro { position: sticky; top: 6rem; }
.order-intro p { color: var(--slate); }
.order-form fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
.order-form legend { font-weight: 800; font-size: var(--step-1); font-stretch: 115%; padding: 0 0 .75rem; border-bottom: 3px solid var(--ink); width: 100%; margin-bottom: 1rem; }
.order-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 1rem; }
.opt { font-weight: 400; color: var(--slate); }
.order-form input:not([type="checkbox"]), .order-form select, .order-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid #b9c2c9; border-radius: var(--radius);
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.order-form [aria-invalid="true"] { border-color: #b3261e; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row-3 { grid-template-columns: 2fr 1fr 1fr; }
.checks { display: grid; gap: .25rem; }
.order-form .check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; margin-bottom: .6rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--green); flex: none; }
.consent { font-size: .875rem; color: var(--slate); font-weight: 400 !important; margin: .5rem 0 1.5rem !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0; font-size: .9375rem; color: var(--slate); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* ---------- Prose page ---------- */
.prose { padding: clamp(3rem, 6vw, 5rem) 0; }
.prose h1 { font-size: var(--step-3); max-width: none; margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--step-2); margin: 2.25rem 0 .75rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .box-grid, .msp-grid, .order-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-groups, .extras { grid-template-columns: 1fr 1fr; }
  .order-intro { position: static; }
  .label { transform: none; max-width: 34rem; }
}
@media (max-width: 680px) {
  nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.0625rem; }
  .nav-cta { padding: .45rem .7rem; font-size: .9375rem; }
  .steps, .price-groups, .extras, .row, .row-3 { grid-template-columns: 1fr; }
  .track li { grid-template-columns: 1fr; gap: .1rem; }
  .label { box-shadow: 6px 6px 0 var(--kraft); padding: 1.1rem; margin-right: 6px; }
  .label-head { flex-direction: column; gap: .6rem; }
}

/* ---------- Plans: two side-by-side panels, then the price list ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.5rem; }
.plan-full { box-shadow: 8px 8px 0 var(--green); }
.plan-k { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.plan h3 { margin: .15rem 0 .5rem; font-size: var(--step-3); font-stretch: 115%; line-height: 1.05; }
.plan-sum { margin: 0 0 1rem; color: var(--slate); max-width: 40ch; }
.plan-prices { border-top: 3px solid var(--ink); margin-bottom: 1.25rem; }
.plan-prices dd { font-size: var(--step-3); }
.plan-list { margin-bottom: 1.5rem; flex: 1; }
.plan-list li { padding-top: .7rem; padding-bottom: .7rem; font-size: .975rem; }
.plan-list li::before { top: .95rem; }
.plan-cta { align-self: flex-start; }
.extras-title { margin: 3.5rem 0 1rem; font-size: var(--step-2); }
.price-groups-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-group h4 { margin: 0; padding-bottom: .65rem; border-bottom: 3px solid var(--ink); font-size: var(--step-1); }
@media (max-width: 860px) {
  .plans, .price-groups-2 { grid-template-columns: 1fr; }
  .plan-full { box-shadow: 6px 6px 0 var(--green); margin-right: 6px; }
}

/* Return-to-customer address, shown only for Recovery orders */
fieldset[hidden] { display: none; }
.order-form .hint { margin: 0 0 .75rem; font-size: .9rem; color: var(--slate); }
.plan-list li:first-child { border-top: 0; }
.plan-prices > div:last-child { border-bottom: 1px solid var(--rule); }

/* Depot-only add-ons */
.price-note { margin: .75rem 0 0; font-size: .875rem; color: var(--slate); }
.order-form .check.is-disabled { opacity: .5; }
.order-form .check.is-disabled input { cursor: not-allowed; }
.order-form [hidden] { display: none !important; }
