/* Waybill: the release "waybill". Paper, deep green ink, one mint accent; labels set like a printed form. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eff4ee;
  --paper-2: #e0eadd;
  --card: #fafdf9;
  --ink: #0c2621;
  --ink-soft: #2f4a44;
  --muted: #4d635d;
    --accent: #4be3a0;
  --accent-hover: #6ee9b3;
  --accent-ink: #0a6847;
  --accent-soft: #d6f7e6;
  --ok: #17663a;
  --ok-soft: #dcefd9;
  --warn: #8a4b00;
  --warn-soft: #fdecd0;
  --error: #b42318;
  --rule-soft: color-mix(in srgb, var(--ink) 28%, var(--card));
  --final-text: color-mix(in srgb, var(--paper) 82%, var(--ink));
  --final-rule: color-mix(in srgb, var(--paper) 28%, var(--ink));
  --placeholder: color-mix(in srgb, var(--ink) 45%, #fff);
  --hard: 6px 6px 0 var(--ink);
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
a:hover { background: var(--accent-soft); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.85em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Small printed-form label */
.kicker, .eyebrow, .price-label, .record-head, .record-body dt, .tags li, .ticker-group, .barcode-no {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.section .kicker {
  font-size: 0.78rem; color: var(--accent-ink); margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section .kicker::before { content: ""; width: 2rem; height: 2px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 1.3rem;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--ink); background: var(--accent);
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--accent-hover); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-small:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-large { padding: 1.05rem 1.7rem; font-size: 1.12rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.04em; }
.brand:hover { background: none; }
.brand-mark { width: 32px; height: 32px; display: block; }

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); padding: 0.35rem 0.75rem; margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--accent); border: 2px solid var(--ink); flex: none; }
.hero h1 em {
  font-style: normal; padding: 0 0.08em; margin: 0 -0.08em;
  background: linear-gradient(transparent 58%, var(--accent) 58% 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.hero-actions { margin: 2rem 0 1.1rem; }
.fineprint { font-size: 0.88rem; color: var(--muted); }

/* The waybill document */
.record-card {
  margin: 0; position: relative; background: var(--card);
  border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.6deg);
}
.record-head {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem;
  background: var(--ink); color: var(--paper); font-size: 0.72rem;
}
.record-head b { color: var(--accent); font-weight: 600; }
.record-body { margin: 0; padding: 0.4rem 1rem; }
.record-body > div {
  display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.75rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--rule-soft);
}
.record-body > div:last-child { border-bottom: 0; }
.record-body dt { font-size: 0.68rem; color: var(--muted); }
.record-body dd { margin: 0; font-size: 0.95rem; }
.record-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1rem; border-top: 2px solid var(--ink);
}
.barcode {
  flex: 1; height: 42px; max-width: 200px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px,
    var(--ink) 9px 12px, transparent 12px 14px, var(--ink) 14px 15px, transparent 15px 19px);
}
.record-stamp {
  font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.85rem;
  color: var(--ok); border: 3px solid var(--ok); border-radius: 4px; padding: 0.25rem 0.6rem;
  transform: rotate(-9deg); animation: stamp-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.4s both;
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-9deg) scale(2); } }
.record-card figcaption {
  padding: 0.65rem 1rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  background: var(--paper-2); border-top: 2px dashed var(--ink);
}
.pill {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.1rem 0.45rem; margin-right: 0.35rem; border: 1.5px solid currentColor; border-radius: 3px;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

/* Ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-group { display: flex; gap: 2.2rem; padding: 0.95rem 2.2rem 0.95rem 0; font-size: 0.82rem; white-space: nowrap; }
.ticker-group span::after { content: "→"; color: var(--accent); margin-left: 2.2rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); border-block: 2px solid var(--ink); }
.section p { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 4.5rem; align-items: start; }
.split-sticky > :first-child { position: sticky; top: 100px; }
.prose p { font-size: 1.18rem; line-height: 1.6; }
.prose p:first-child { font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

/* Route: the five stops */
.features { list-style: none; padding: 0; margin: 3.5rem 0 0; counter-reset: step; border-top: 2px solid var(--ink); }
.feature {
  display: grid; grid-template-columns: clamp(4rem, 9vw, 7rem) minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 2rem;
  align-items: start; padding: 2rem 0.5rem; border-bottom: 2px solid var(--ink);
  transition: background 0.15s ease;
}
.feature:hover { background: var(--card); }
.feature::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 2;
  font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 0.15s ease;
}
.feature:hover::before { color: var(--accent); }
.feature .icon {
  grid-column: 2; grid-row: 1; width: 30px; height: 30px; margin: 0 0 0.7rem;
  fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { grid-column: 2; grid-row: 2; margin: 0; }
.feature p { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.tags li {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-size: 0.95rem;
  background: var(--card); border: 2px dashed var(--ink);
}
.tags li::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--accent); border: 2px solid var(--ink); flex: none; }
.tags li:nth-child(even) { margin-left: 1.5rem; }

/* Founding beta: the loud section */
.section-hot { background: var(--accent); border-block: 2px solid var(--ink); }
.section-hot p, .section-hot .kicker { color: var(--ink); }
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.beta-copy p { font-size: 1.2rem; }
.price-card {
  background: var(--card); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); padding: 2.2rem;
}
.section-hot .price-card p { color: var(--ink-soft); }
.price { margin: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.price-amount { font-size: clamp(4rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--ink); }
.price-unit { font-family: var(--mono); font-size: 1rem; color: var(--muted); }
.section-hot .price-card .price-label { font-size: 0.78rem; color: var(--accent-ink); margin: 0.9rem 0 1.4rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 2px solid var(--ink); }
.checklist li { position: relative; padding: 0.65rem 0 0.65rem 2rem; border-bottom: 1px dashed var(--rule-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 1.15rem; height: 1.15rem; background: var(--ink); }
.checklist li::after {
  content: ""; position: absolute; left: 0.42rem; top: 0.93rem; width: 0.3rem; height: 0.6rem;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.pilot { margin: 1.4rem 0 0; font-size: 0.92rem; }

/* Handling notes */
.callout { position: relative; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--hard); padding: 3.2rem 2.5rem 2.5rem; }
.callout::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--accent) 12px 24px);
}
.callout-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: start; }
.callout h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0; }
.callout p:not(.kicker) { margin: 0; font-size: 1.15rem; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 3.5rem 1.3rem 0; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.3rem; font-weight: 600; border: 2px solid var(--ink); background: var(--card);
}
.faq summary:hover::after { background: var(--accent); }
.faq details[open] summary::after { content: "−"; background: var(--ink); color: var(--paper); }
.faq details p { padding: 0 3.5rem 1.4rem 0; margin: 0; }

/* Final block + form */
.final { background: var(--ink); color: var(--paper); border-top: 2px solid var(--ink); }
.final:focus { outline: none; }
.final h2 { color: var(--paper); font-size: clamp(2rem, 3.9vw, 3.2rem); }
.section.final .final-copy p { color: var(--final-text); font-size: 1.15rem; }
.section.final .final-copy .kicker { color: var(--accent); font-size: 0.78rem; }
.section.final .final-copy .final-price { font-size: 0.95rem; font-family: var(--mono); color: var(--paper); border-top: 2px dashed var(--final-rule); padding-top: 1.25rem; margin-top: 2rem; }
.final-price strong { color: var(--accent); }
.final-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }

.form-card { background: var(--card); color: var(--ink); border: 2px solid var(--ink); padding: 2.2rem; box-shadow: 10px 10px 0 var(--accent); }
.form-card p { color: var(--ink-soft); }
.form-title { font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.field { margin: 0 0 1.2rem; padding: 0; border: 0; min-width: 0; }
.field > label:not(.check), .field > legend {
  display: block; font-family: var(--mono); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.45rem; padding: 0;
}
input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.85rem; background: #fff;
  border: 2px solid var(--ink); border-radius: 4px;
}
textarea { resize: vertical; }
input::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choice {
  display: flex; align-items: center; gap: 0.55rem; cursor: pointer;
  padding: 0.6rem 0.8rem; border: 2px solid var(--ink); border-radius: 4px; font-size: 0.95rem; background: #fff;
}
.choice:hover { background: var(--accent-soft); }
.choice:has(input:checked) { background: var(--ink); color: var(--paper); }
.choice input, .check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; line-height: 1.5; }
.check input { margin-top: 0.2rem; }
.consent { padding-top: 1.1rem; border-top: 2px dashed var(--ink); }
.consent .check { font-size: 0.87rem; color: var(--ink-soft); }

.field-error { color: var(--error) !important; font-size: 0.85rem; font-weight: 600; margin: 0.35rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-card .fineprint { margin: 1.1rem 0 0; }
.form-status { margin: 0.75rem 0 0; font-size: 0.9rem; text-align: center; }
.form-status.is-error { color: var(--error) !important; font-weight: 600; }
.form-status.is-note { color: var(--warn) !important; font-weight: 600; }

.confirmation:focus { outline: none; }
.confirm-badge {
  width: 56px; height: 56px; background: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--accent);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.confirm-badge svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.followup { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--ink); }
.followup-intro { font-weight: 700; color: var(--ink) !important; }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: 0.85rem; color: var(--ink-soft); background: var(--paper-2); border-top: 2px solid var(--ink); }
.site-footer p { max-width: 70em; }
.site-footer strong { color: var(--ink); }
.site-footer .muted { color: var(--muted); }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .beta-grid, .final-grid, .split, .callout-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-sticky > :first-child { position: static; }
  .record-card { transform: none; max-width: 520px; box-shadow: 8px 8px 0 var(--ink); }
  .feature { grid-template-columns: 3.6rem minmax(0, 1fr); column-gap: 1.25rem; padding: 1.6rem 0; }
  .feature::before { grid-row: 1 / span 3; }
  .feature .icon, .feature h3, .feature p { grid-column: 2; }
  .feature .icon { grid-row: 1; }
  .feature h3 { grid-row: 2; margin-bottom: 0.5rem; }
  .feature p { grid-row: 3; align-self: start; }
  .tags li:nth-child(even) { margin-left: 0; }
}
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
  .form-card, .price-card { padding: 1.4rem; box-shadow: 6px 6px 0 var(--ink); }
  .form-card { box-shadow: 6px 6px 0 var(--accent); }
  .callout { padding: 2.6rem 1.4rem 1.6rem; }
  .btn-large { width: 100%; }
  .header-inner .btn-small { font-size: 0.82rem; padding: 0.45rem 0.7rem; }
  .brand { font-size: 1.25rem; }
  .faq summary { font-size: 1.08rem; }
  .faq details p { padding-right: 0; }
}

/* Spam honeypot: off-screen for people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Paid-pilot deposit */
.deposit { margin-top: 1.5rem; padding: 1.25rem; border: 2px solid var(--ink); background: var(--accent-soft); }
.deposit h4 { margin: 0 0 0.35rem; }
.deposit p { font-size: 0.95rem; }
.refund-note { margin: 0.6rem 0 0; font-size: 0.85rem !important; text-align: center; }
.checkout-form:not(:empty) { margin-top: 0.5rem; padding: 1rem; background: #fff; border: 2px solid var(--ink); }

/* Analytics consent banner */
.consent-banner {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; margin-inline: auto; max-width: 720px;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: var(--hard);
}
.consent-banner p { margin: 0; flex: 1 1 320px; font-size: 0.92rem; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 0.5rem; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; cursor: pointer; }

/* Discovery-call booking */
.booking { margin-top: 1.5rem; padding: 1.25rem; border: 2px dashed var(--ink); background: var(--paper-2); }
.booking h4 { margin: 0 0 0.35rem; }
.booking p { font-size: 0.95rem; }
