/* Hornbill Freight Desk: one stylesheet, no build step.
   Every colour below comes from the logo (see DESIGN.md) or is a neutral. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../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("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil Display"; src: url("../fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Logo colours */
  --ink: #26272C;          /* charcoal body */
  --black: #050506;        /* darkest: eye, shading */
  --slate: #43454E;        /* lit side of body: the one muted grey */
  --accent: #FD4F01;       /* red-orange: Book demo, stamps */
  --accent-deep: #BE3B01;  /* accent darkened for text on paper/white (4.8:1) */
  --yellow: #FDE202;
  --amber: #FDB301;
  --orange: #FD7B01;
  --red: #F91116;          /* eye ring: icons and borders only */

  /* Neutrals */
  --paper: #F2F0EA;
  --sheet: #FFFFFF;
  --rule: #CFCBC2;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --font-stencil: "Big Shoulders Stencil Display", "Barlow Condensed", sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --line: 1.5px solid var(--ink);
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  font-kerning: normal;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; height: auto; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: text-decoration-color .15s ease; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.how :focus-visible, .final :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.stencil { font: 800 1.25rem/1 var(--font-stencil); letter-spacing: .05em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
}

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

h2 { font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.5rem); line-height: .98; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .55em 1.25em;
  border: 2px solid transparent; border-radius: 3px;
  font: 700 1.3125rem/1 var(--font-head); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.btn--accent { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn--accent:hover { background: var(--orange); border-color: var(--orange); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
/* Like a rubber stamp: lifts on hover with a hard ink shadow, presses flat on click. */
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--black); }
}
.btn:active { transform: none; box-shadow: none; }
.btn--sm { min-height: 44px; padding: .45em 1em; font-size: 1.1875rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 2px solid var(--ink); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand__name { display: grid; font: 700 1.375rem/1 var(--font-head); letter-spacing: .005em; }
.brand__co { font: 600 .8125rem/1.1 var(--font-body); color: var(--slate); letter-spacing: 0; }
/* From tablet up there is no bottom bar, so the top bar and its Book demo stay in view. */
@media (min-width: 768px) {
  html { scroll-padding-top: 84px; }
  .topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); }
}

/* ---------- Hero ---------- */
.hero { padding-block: 36px 56px; overflow-x: clip; }
.hero__grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(3rem, 1.85rem + 4.9vw, 5.75rem); line-height: .92; letter-spacing: -.01em; max-width: 12ch; }
.hero__sub { margin-top: 20px; max-width: 34em; font-size: 1.125rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 12px; font-size: .9375rem; color: var(--slate); }
.hero__shot { min-width: 0; }

@media (max-width: 479px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 64px 72px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .hero__copy { grid-column: 1 / 7; }
  .hero__shot { grid-column: 7 / 13; }
  .hero__sub { font-size: 1.1875rem; }
}

/* ---------- Browser frame (all product screens) ---------- */
.frame {
  position: relative;
  background: var(--sheet);
  border: var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--rule);
  margin-right: 6px;
  font-size: .875rem; line-height: 1.4;
}
.frame__bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: var(--line); background: var(--paper); }
.frame__dots { display: flex; gap: 6px; flex: none; }
.frame__dots i { width: 10px; height: 10px; border: 1.5px solid var(--slate); border-radius: 50%; }
.frame__url {
  flex: 1; min-width: 0; padding: 4px 10px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  font-size: .8125rem; color: var(--slate);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame--hero { transform: rotate(-1deg); }
.frame--a { transform: rotate(.8deg); }
.frame--b { transform: rotate(-.4deg); }
.frame--c { transform: rotate(1deg); }
.frame--d { transform: rotate(-.6deg); }
@media (min-width: 1024px) {
  .frame--hero { transform: rotate(-1.6deg); }
  .frame--a { transform: rotate(1.2deg); }
  .frame--b { transform: rotate(-.6deg); }
  .frame--c { transform: rotate(1.6deg); }
  .frame--d { transform: rotate(-.9deg); }
}
/* Picking a sheet up off the desk: on hover a screen straightens and lifts. */
.frame { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
@media (hover: hover) {
  .hero__shot:hover .frame, .shot:hover .frame { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rule); }
}

/* In-app chrome, following the real product's screens: role sidebar, page title + subtitle,
   status pills and dark table header rows. Restyled in the logo palette. */
.frame { container: frame / inline-size; }
.app { padding: 16px; }
.page__title { font: 600 1.125rem/1.2 var(--font-body); }
.page__sub { margin-bottom: 14px; font-size: .8125rem; color: var(--slate); }
.card__title { margin-bottom: 10px; font-weight: 600; }
.card__title span { margin-left: 6px; font-size: .75rem; color: var(--slate); }

.shell__main { min-width: 0; }
.side { display: none; }
@container frame (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); }
  .side { display: block; padding: 14px 0 20px; background: var(--ink); color: var(--paper); font-size: .8125rem; }
}
.side__role { display: grid; margin: 0 12px 10px; padding: 10px 12px; border-radius: 6px; background: var(--slate); font-weight: 600; }
.side__role span { font-size: .75rem; font-weight: 400; color: var(--rule); }
.side__sec { margin: 14px 16px 4px; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rule); }
.side__item { padding: 7px 16px; line-height: 1.3; }
.side__item.is-on { background: var(--slate); box-shadow: inset 3px 0 0 var(--yellow); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--rule); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.pill--yellow { background: var(--yellow); }
.pill--amber { background: var(--amber); }

/* Shipment file (screen A) */
.job { padding: 16px; }
.job__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.job__label { width: 100%; font-size: .75rem; font-weight: 600; color: var(--slate); }
.job__no { font: 600 1.375rem/1.1 var(--font-mono); }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 14px; }
.fields dt { font-size: .75rem; font-weight: 600; color: var(--slate); }
.fields dd { margin: 0; }
.fields .mono { font-size: .875rem; }
@media (max-width: 559px) { .fields__opt { display: none; } }
@media (min-width: 560px) { .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.apptabs { display: flex; border-bottom: var(--line); overflow: hidden; }
.apptabs span { padding: 8px 10px; font-size: .8125rem; font-weight: 600; color: var(--slate); white-space: nowrap; }
.apptabs .is-on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }

.checklist { width: 100%; border-collapse: collapse; }
.checklist th { padding: 7px 10px; text-align: left; font-size: .75rem; font-weight: 600; background: var(--ink); color: var(--paper); box-shadow: 1px 0 0 var(--ink); }
.checklist td { padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.checklist--lg td { padding-inline: 0; }
.checklist th:last-child, .checklist td:last-child { text-align: right; }
.checklist__note { display: block; font-size: .75rem; color: var(--accent-deep); font-weight: 600; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border: 1.5px solid transparent; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.st svg { width: 14px; height: 14px; flex: none; }
.st--ok { color: var(--ink); }
.st--wait { background: var(--yellow); }
.st--miss { border-color: var(--red); }
.st--miss svg { color: var(--red); }

.progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.progress__meter { flex: 1; min-width: 0; display: grid; gap: 5px; }
.progress__label { font-size: .75rem; font-weight: 600; color: var(--slate); }
.progress__bar { display: block; height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.progress__bar i { display: block; width: 75%; height: 100%; background: var(--amber); }
.progress__pct { font: 600 .75rem/1 var(--font-mono); color: var(--slate); }

/* Stamps. --rot is each stamp's resting angle, --pre any positioning transform it needs,
   --drop the scale it lands from. */
.stamp {
  --rot: -7deg; --pre: translate(0, 0);
  display: inline-block;
  padding: 6px 12px;
  border: 3px solid var(--accent-deep);
  outline: 1.5px solid var(--accent-deep); outline-offset: 2px;
  border-radius: 4px;
  color: var(--accent-deep);
  font: 700 1.25rem/1 var(--font-head);
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  transform: var(--pre) rotate(var(--rot));
  mix-blend-mode: multiply;
}
@keyframes stamp-land {
  0%   { opacity: 0; transform: var(--pre) rotate(calc(var(--rot) - 9deg)) scale(var(--drop, 1.9)); }
  65%  { opacity: 1; transform: var(--pre) rotate(calc(var(--rot) + 1deg)) scale(.95); }
  100% { opacity: 1; transform: var(--pre) rotate(var(--rot)) scale(1); }
}
@keyframes st-in { from { opacity: 0; transform: scale(.6); } }
@keyframes bar-fill { from { transform: scaleX(0); } }

/* Page load: the hero file's documents come in one by one, the progress bar fills, then the stamp lands. */
@media (prefers-reduced-motion: no-preference) {
  .frame--hero .st { animation: st-in .3s var(--ease-out) calc(.3s + var(--r, 0) * 70ms) backwards; }
  .frame--hero tr:nth-child(2) { --r: 1; }
  .frame--hero tr:nth-child(3) { --r: 2; }
  .frame--hero tr:nth-child(4) { --r: 3; }
  .frame--hero tr:nth-child(5) { --r: 4; }
  .frame--hero tr:nth-child(6) { --r: 5; }
  .frame--hero tr:nth-child(7) { --r: 6; }
  .frame--hero tr:nth-child(8) { --r: 7; }
  .frame--hero .progress__bar i { transform-origin: left; animation: bar-fill .6s var(--ease-out) .9s backwards; }
  .stamp--land { animation: stamp-land .45s var(--ease-out) 1.45s both; }
}

/* Further down, each stamp lands as its paperwork scrolls into view (site.js sets js-motion and is-in). */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-reveal]:not(.is-in) .stamp, .js-motion .stamp[data-reveal]:not(.is-in) { opacity: 0; }
  .js-motion .is-in .stamp, .js-motion .stamp.is-in { animation: stamp-land .45s var(--ease-out) .15s both; }
}

/* ---------- Who it's for ---------- */
.who { padding-block: 72px; }
.who__head { margin-bottom: 32px; }
.who__head p { margin-top: 12px; color: var(--slate); }

.who__tabs { display: grid; border-top: 2px solid var(--ink); }
.who__tabs button {
  display: grid; gap: 4px; text-align: left;
  padding: 14px 16px 14px 18px; margin: 0;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule);
  font: inherit; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.who__tabs button:hover .who__tab-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; text-decoration-color: var(--accent); }
.who__tabs [aria-selected="true"] { background: var(--sheet); box-shadow: inset 5px 0 0 var(--accent); }
.who__tab-name { font: 700 1.375rem/1.05 var(--font-head); }
.who__tab-line { font-size: .9375rem; color: var(--slate); }

.who__panels { display: grid; gap: 24px; }
.who__panel { background: var(--sheet); border: var(--line); padding: 24px 18px 28px; }
.js-tabs .who__panels { gap: 0; margin-top: 16px; }
.who__for { font-size: .9375rem; font-weight: 600; color: var(--slate); margin-bottom: 8px; }
.js-tabs .who__for { display: none; }
.who__panel h3 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem); line-height: 1.02; max-width: 22ch; margin-bottom: 24px; }

.ledger2 { display: grid; gap: 24px; margin-bottom: 28px; }
.ledger2 h4 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font: 600 .9375rem/1.2 var(--font-body); color: var(--slate); }
.ledger2__col--fd h4 { color: var(--ink); border-bottom-color: var(--accent); }
.ledger2 ul { list-style: none; padding: 0; margin: 0; }
.ledger2 li { padding: 12px 0; border-bottom: 1px solid var(--rule); }

/* Switching tabs: the new panel's lines are written in, top to bottom (site.js numbers them --n). */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) {
  .who__panel.is-entering h3, .who__panel.is-entering li, .who__panel.is-entering .btn { animation: rise .35s var(--ease-out) backwards; }
  .who__panel.is-entering li { animation-delay: calc(80ms + var(--n, 0) * 40ms); }
  .who__panel.is-entering .btn { animation-delay: 360ms; }
}

@media (min-width: 768px) {
  .who__panel { padding: 32px 32px 36px; }
  .ledger2 { grid-template-columns: 1fr 1fr; gap: 0; }
  .ledger2__col:first-child { padding-right: 24px; border-right: 1px solid var(--rule); }
  .ledger2__col + .ledger2__col { padding-left: 24px; }
}
@media (min-width: 1024px) {
  .who { padding-block: 104px; }
  .who__grid { display: grid; grid-template-columns: 4fr 8fr; }
  .who__head { margin-bottom: 40px; }

  .who__tabs { align-content: start; border-top: 0; }
  .who__tabs button { border: var(--line); border-color: transparent; border-bottom: 1px solid var(--rule); padding: 20px 20px 20px 24px; }
  .who__tabs [aria-selected="true"] { position: relative; z-index: 1; border-color: var(--ink); border-right-color: var(--sheet); margin-right: -1.5px; }
  .js-tabs .who__panels { margin-top: 0; }
  .js-tabs .who__panel { padding: 40px 44px 44px; }
}

/* ---------- How a job moves ---------- */
.how { background: var(--ink); color: var(--paper); padding-block: 72px 80px; }
.how__head p { margin-top: 12px; color: var(--rule); max-width: 34em; }
.track { list-style: none; padding: 0; margin: 40px 0 0; display: grid; }
.track li { position: relative; padding: 0 0 30px 60px; }
.track li::before { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: var(--yellow); }
.track li:last-child { padding-bottom: 0; }
.track li:last-child::before { display: none; }
.track__n {
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font: 700 1.625rem/1 var(--font-head);
}
.track h3 { padding-top: 8px; font-size: 1.5rem; line-height: 1.05; color: var(--paper); }
.track p { margin-top: 6px; font-size: .9375rem; color: var(--rule); }

@media (min-width: 768px) {
  .track { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
  .track li { padding: 60px 0 0; }
  .track li::before { left: 42px; right: -24px; top: 20px; bottom: auto; width: auto; height: 2px; }
  .track li:nth-child(4n)::before { display: none; }
  .track h3 { padding-top: 0; }
}
@media (min-width: 1200px) {
  .how { padding-block: 104px 112px; }
  .track { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .track li:nth-child(4n)::before { display: block; }
  .track li:last-child::before { display: none; }
  .track h3 { font-size: 1.375rem; }
}

/* As the band scrolls in, the job moves along the track: each step lights up, then the line runs on
   to the next. Side by side the steps go in order (--i, set by site.js); stacked, each lights as it scrolls in. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .track li { --d: 0ms; }
  .js-motion .track li::before { transform: scaleY(0); transform-origin: top; transition: transform .3s linear calc(var(--d) + 40ms); }
  .js-motion .track__n { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); transition: background-color .2s ease var(--d), color .2s ease var(--d); }
  .js-motion .track li.is-in::before { transform: none; }
  .js-motion .track li.is-in .track__n { background: var(--yellow); color: var(--ink); }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .js-motion .track li { --d: calc(var(--i, 0) * 240ms); }
  .js-motion .track li::before { transform: scaleX(0); transform-origin: left; transition-duration: .2s; }
}

/* ---------- Screens ---------- */
.screens { padding-block: 72px 88px; overflow-x: clip; }
.screens__head { margin-bottom: 40px; }
.screens__head p { margin-top: 12px; color: var(--slate); }
.shots { display: grid; gap: 64px; }
.shot { min-width: 0; }
.shot figcaption { margin-top: 20px; max-width: 34em; font-size: 1rem; }
.shot figcaption strong { font-weight: 600; }

/* A: detail crop */
.crop { position: relative; padding: 0 16px 18px; font-size: 1rem; }
.crop__head { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; font-size: .875rem; color: var(--slate); }
.crop__head .mono { color: var(--ink); font-weight: 600; }
.crop__more { padding: 8px 0; border-top: 2px dashed var(--rule); border-bottom: 1px solid var(--rule); font-size: .8125rem; color: var(--slate); }
.checklist--lg td { padding: 10px 0; }
.checklist--lg .st { font-size: .8125rem; }
.checklist--lg .checklist__note { font-size: .8125rem; }
.stamp--do { --rot: -5deg; margin: 16px 0 2px 2px; font-size: 1.375rem; }

/* B: shipment financial summary. Columns follow the ledger's own width (container query). */
.frame--b .shell__main { container: ledger / inline-size; }
.ledger { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ledger th { padding: 8px 6px; text-align: left; font-size: .75rem; font-weight: 600; background: var(--ink); color: var(--paper); box-shadow: 1px 0 0 var(--ink); white-space: nowrap; }
.ledger td { padding: 9px 6px; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top; }
.ledger .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger th.num { font-family: var(--font-body); }
.ledger .neg { color: var(--accent-deep); font-weight: 600; }
.ledger .sub { display: block; margin-top: 2px; font: 400 .75rem/1.3 var(--font-body); color: var(--slate); white-space: normal; }
.ledger tfoot th, .ledger tfoot td { padding-top: 10px; font-weight: 600; color: var(--ink); background: var(--sheet); font-size: .875rem; border-top: var(--line); border-bottom: 4px double var(--ink); }
.ledger tfoot th { font-family: var(--font-body); text-align: left; box-shadow: none; }
.is-flagged td { background: var(--paper); }
@media (hover: hover) { .ledger tbody tr:hover td { background: var(--paper); } }
.stamp-cell { position: relative; }
.stamp--row { --rot: -3deg; font-size: .8125rem; padding: 4px 8px; border-width: 2px; outline-width: 1px; letter-spacing: .06em; }
.stamp--row-sm { display: inline-block; margin-top: 8px; max-width: 8.5em; white-space: normal; line-height: 1.2; }
.stamp--row-lg { display: none; }
.c-client, .c-mid { display: none; }

@container ledger (min-width: 600px) {
  .c-mid { display: table-cell; }
  .stamp--row-sm { display: none; }
  .stamp--row-lg { --pre: translateY(-50%); display: inline-block; position: absolute; left: 16px; top: 50%; }
  .ledger td, .ledger th { padding-inline: 12px; }
}
@container ledger (min-width: 840px) {
  .c-client { display: table-cell; }
  .ledger .sub { display: none; }
  .ledger { font-size: .9375rem; }
}
@media (min-width: 1024px) {
  .frame--b .app { padding: 20px 24px; }
}

/* C: trip */
.fields--trip { grid-template-columns: 1fr; }
.plate {
  display: inline-block; margin-right: 6px; padding: 2px 7px;
  background: var(--yellow); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 3px;
  font: 700 1rem/1.15 var(--font-head); letter-spacing: .06em;
}
.sum { width: 100%; border-collapse: collapse; margin-top: 6px; }
.sum th { padding: 8px 0; text-align: left; font-weight: 400; color: var(--slate); border-bottom: 1px solid var(--rule); }
.sum td { padding: 8px 0; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.sum tfoot th, .sum tfoot td { font-weight: 600; color: var(--ink); font-size: 1rem; border-top: var(--line); border-bottom: 4px double var(--ink); }

/* D: director dashboard */
.dash__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash__figs > div { padding: 10px 12px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.dash__k { font-size: .75rem; font-weight: 600; color: var(--slate); }
.dash__v { margin-top: 4px; font: 600 1rem/1.15 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash__s { font-size: .75rem; color: var(--slate); }
.dash__cols { display: grid; gap: 18px; margin-top: 18px; }
.dash__h { font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.dash__h span { font-weight: 400; color: var(--slate); font-size: .8125rem; margin-left: 6px; }
.mini { width: 100%; border-collapse: collapse; }
.mini th { padding: 6px 8px 4px 0; text-align: left; font-size: .75rem; font-weight: 600; color: var(--slate); border-bottom: 1px solid var(--rule); }
.mini td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.mini .num { padding-right: 16px; text-align: right; white-space: nowrap; }
.count { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--rule); color: var(--ink); font: 600 .75rem/1.3 var(--font-mono); text-align: center; }
.count--yellow { background: var(--yellow); }
.count--amber { background: var(--amber); }
.count--orange { background: var(--orange); }
.count--ink { background: var(--ink); color: var(--paper); }

/* The dashboard lays itself out by its own width, not the viewport's. */
.frame--d .app { container: dash / inline-size; }
@container dash (min-width: 560px) {
  .dash__cols { grid-template-columns: 1.2fr 1fr; gap: 24px; }
}
@container dash (min-width: 640px) {
  .dash__figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash__v { font-size: 1.0625rem; }
}

/* Shots layout */
@media (min-width: 768px) {
  .shots { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 80px; }
  .shot--a, .shot--b { grid-column: 1 / -1; }
  .shot--a { display: grid; grid-template-columns: 7fr 5fr; column-gap: 40px; align-items: end; }
  .shot--a figcaption { margin: 0 0 24px; }
  .shot--c { grid-column: 1 / 6; }
  .shot--d { grid-column: 6 / -1; }
}
@media (min-width: 1024px) {
  .screens { padding-block: 104px 120px; }
  .screens__head { margin-bottom: 56px; }

  .shot--a { grid-column: 1 / 11; grid-template-columns: 6fr 4fr; }
  .shot--b figcaption { margin-left: auto; }
  .shot--c { grid-column: 1 / 5; margin-top: 72px; }
  .shot--d { grid-column: 6 / -1; }
}

/* ---------- Modules & pricing ---------- */
.modules { padding-block: 72px; border-top: 2px solid var(--ink); }
.modules__grid { display: grid; gap: 36px; }
.modules__price { margin-top: 20px; font: 600 clamp(1.5rem, 1.25rem + 1vw, 2.125rem)/1.12 var(--font-head); max-width: 20em; }
.modules__help { margin-top: 16px; color: var(--slate); max-width: 30em; }

.sheet { background: var(--sheet); border: var(--line); padding: 20px 18px 24px; }
.sheet__title { font: 700 1.625rem/1 var(--font-head); padding-bottom: 10px; border-bottom: 4px double var(--ink); }
.sheet fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sheet__legend { padding: 22px 0 6px; font: 600 .9375rem/1.2 var(--font-body); color: var(--slate); }
.tick { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.tick input {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; margin: 0;
  display: grid; place-content: center;
  border: 2px solid var(--slate); border-radius: 2px; background: var(--sheet);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.tick input::before {
  content: ""; width: 13px; height: 7px;
  border-left: 3px solid var(--black); border-bottom: 3px solid var(--black);
  transform: translateY(-2px) rotate(-45deg) scale(.3); opacity: 0;
  transition: opacity .1s ease, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.tick input:checked { background: var(--accent); border-color: var(--black); }
.tick input:checked::before { transform: translateY(-2px) rotate(-45deg); opacity: 1; }
@media (hover: hover) { .tick:hover input:not(:checked) { border-color: var(--ink); } }
.tick__text { display: grid; gap: 2px; }
.tick__text strong { font: 700 1.3125rem/1.1 var(--font-head); }
.tick__text span { font-size: .9375rem; color: var(--slate); }
.sheet__msg { margin: 22px 0 16px; padding: 14px 16px; border: 1.5px dashed var(--slate); background: var(--paper); }
.sheet__msg-label { font-size: .8125rem; font-weight: 600; color: var(--slate); }
.sheet__msg-text { margin-top: 4px; }
.sheet__msg-text::after { content: ""; display: inline-block; width: 7em; height: 1em; border-bottom: 1.5px solid var(--slate); vertical-align: -3px; }
/* The module list in the message flashes like a highlighter each time it changes. */
.msg-mods { margin-inline: -2px; padding-inline: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes ink-flash { from { background-color: var(--yellow); } }
@media (prefers-reduced-motion: no-preference) {
  .msg-mods { animation: ink-flash 1.1s ease-out backwards; }
}

@media (min-width: 768px) {
  .sheet { padding: 28px 32px 32px; }
}
@media (min-width: 1024px) {
  .modules { padding-block: 104px; }
  .modules__grid { grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: start; }
  .modules__copy { position: sticky; top: 104px; }
}

/* ---------- Trust ---------- */
.trust { padding-block: 72px 80px; border-top: 2px solid var(--ink); overflow-x: clip; }
.trust h2 { max-width: 14ch; margin-bottom: 36px; }
.trust__grid { display: grid; gap: 48px; }

.note { background: var(--sheet); border: var(--line); padding: 20px 18px 24px; transform: rotate(-.6deg); transition: transform .35s var(--ease-out); }
@media (hover: hover) { .note:hover { transform: none; } }
.note__head { padding-bottom: 10px; border-bottom: 4px double var(--ink); }
.note__title { font: 700 1.75rem/1 var(--font-head); }
.note__row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.note__k { font-size: .8125rem; font-weight: 600; color: var(--slate); }
.note__v { font-weight: 600; }
.note__quote { font: 600 clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem)/1.12 var(--font-head); }
.note__quote p::before { content: "\201C"; }
.note__quote p::after { content: "\201D"; }
.note__row--sign { border-bottom: 0; padding-bottom: 0; }
.note__sign { display: block; padding: 18px 0 6px; border-bottom: var(--line); font-weight: 600; }

.stamp--odpc {
  display: block; max-width: 23rem; margin: 4px 0 36px 6px;
  padding: 12px 16px; white-space: normal; text-align: center;
  font-size: 1.0625rem; line-height: 1.25; letter-spacing: .06em;
  --rot: -2.5deg; --drop: 1.3;
}
.gate { background: var(--sheet); border: var(--line); }
.gate > div { display: grid; grid-template-columns: 5.75rem 1fr; border-bottom: 1px solid var(--rule); }
.gate > div:last-child { border-bottom: 0; }
.gate dt { padding: 12px; font-size: .8125rem; font-weight: 600; color: var(--slate); border-right: 1px solid var(--rule); }
.gate dd { margin: 0; padding: 12px 14px; }

@media (min-width: 768px) {
  .note { padding: 28px 32px 32px; }
  .note__row { grid-template-columns: 7rem 1fr; gap: 16px; align-items: baseline; }
  .note__row--sign { align-items: end; }
  .note__row--sign .note__k { padding-bottom: 8px; }
}
@media (min-width: 1024px) {
  .trust { padding-block: 104px 112px; }
  .trust__grid { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: start; }
  .trust__side { padding-top: 12px; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: 72px; border-top: 2px solid var(--ink); }
.faq__grid { display: grid; gap: 28px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0; font-size: 1.125rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
/* A plus built from two bars, so the upright one can turn flat into a minus. */
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 29px;
  width: 16px; height: 3px; background: var(--accent-deep);
  transition: transform .25s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(180deg); }
@media (forced-colors: active) { .faq summary::before, .faq summary::after { forced-color-adjust: none; background: CanvasText; } }
@media (hover: hover) { .faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: .2em; } }
.faq details p { padding: 0 0 22px; max-width: 40em; }
/* Answers slide open where the browser can animate to height: auto; elsewhere they open at once. */
@media (prefers-reduced-motion: no-preference) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (min-width: 1024px) {
  .faq { padding-block: 104px; }
  .faq__grid { grid-template-columns: 4fr 8fr; column-gap: 48px; align-items: start; }
}

/* ---------- Final CTA ---------- */
.final { background: var(--ink); color: var(--paper); padding-block: 64px; }
.final__in { display: grid; gap: 28px; justify-items: start; }
.final h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); line-height: .95; max-width: 17ch; }
@media (min-width: 1024px) {
  .final { padding-block: 96px; }
  .final__in { grid-template-columns: auto auto; justify-content: start; align-items: end; column-gap: 72px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid var(--slate); padding-block: 40px 32px; font-size: .9375rem; }
.foot__grid { display: grid; gap: 24px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__plate { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sheet); flex: none; }
.foot__plate img { width: 44px; height: 44px; }
.foot__name { font: 700 1.375rem/1 var(--font-head); }
.foot__contact { font-style: normal; line-height: 1.7; }
.foot__legal { color: var(--rule); display: grid; gap: 6px; }
.foot a { color: var(--paper); }
.foot a:hover { text-decoration-color: var(--yellow); }
@media (min-width: 768px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--slate); }
}
@media (min-width: 1024px) {
  .foot__grid { grid-template-columns: 4fr 4fr 4fr; align-items: start; }
  .foot__legal { grid-column: auto; padding-top: 0; border-top: 0; }
}

/* ---------- Sticky mobile CTA ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 2px solid var(--ink);
  transform: translateY(110%); visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s;
}
.stickybar.is-on { transform: none; visibility: visible; transition: transform .2s ease; }
@media (max-width: 767px) {
  .has-sticky .foot { padding-bottom: calc(32px + 76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .stickybar { display: none; } }
@media (prefers-reduced-motion: reduce) { .stickybar, .stickybar.is-on { transition: none; } }

/* ---------- Privacy page ---------- */
.draft { background: var(--yellow); color: var(--ink); border-bottom: 2px solid var(--ink); }
.draft p { padding-block: 12px; font-weight: 600; }
.doc { padding-block: 48px 80px; }
.doc__body { max-width: 44rem; }
.doc h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem); line-height: .95; }
.doc h2 { font-size: 1.75rem; margin: 40px 0 12px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc .todo { background: var(--yellow); padding: 0 4px; font-weight: 600; }
.doc__meta { margin-top: 12px; color: var(--slate); }
