/* Dockwise website. Colors, spacing, radii and fonts come from tokens.css,
   which scripts/design-tokens.py generates from design/tokens.json. */

/* Served from this site, so a visit sends nothing to a font host. */
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable-Latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.55 var(--font-text);
  color: var(--label);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-strong); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--space-6); }
.prose { max-width: 44rem; }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.lockup { display: block; height: 30px; width: auto; color: var(--label); }
.lockup .ink { fill: currentColor; }
.lockup .dot { fill: var(--brand); }
.lockup .wheels { stroke: var(--brand); stroke-opacity: 0.45; }
.lockup .check { stroke: var(--brand); }
.site-header nav { display: flex; align-items: center; gap: var(--space-6); font-size: 15px; }
.site-header nav a { color: var(--label); text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }
.site-header nav a[aria-current="page"] { color: var(--brand); }

.button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none;
}
.button:hover { color: var(--on-brand); filter: brightness(1.06); }

/* Type */
h1, h2, h3 { margin: 0; text-wrap: balance; }
.display-xl { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: -0.025em; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.display-sm { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.display-xl em, .display em { font-style: normal; color: var(--brand); }
.lede { font-size: 20px; line-height: 30px; color: var(--label-secondary); margin: var(--space-6) 0; max-width: 32rem; }
.muted { color: var(--label-secondary); }
.small { font-size: 15px; line-height: 22px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-12); }
.hero .cities { font-size: 13px; line-height: 18px; color: var(--label-secondary); margin-top: var(--space-4); }

/* Phone frame around a real screenshot (images/hero.png, 1320 × 2868 scaled down). */
.phone { justify-self: center; width: min(280px, 100%); aspect-ratio: 280 / 580; border-radius: 48px; background: #111614; padding: 11px; box-shadow: var(--shadow-float); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #f2f1ee; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 2px #2a322e, var(--shadow-float); }
}

/* Sections */
.band { padding: var(--space-12) 0; }
.band.alt { background: var(--background-grouped); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: var(--space-8); }
.feature h3 { margin: var(--space-4) 0 var(--space-2); }
.feature p { margin: 0; color: var(--label-secondary); }
.feature .sample { height: 120px; border-radius: var(--radius-lg); background: var(--surface-raised); display: grid; place-items: center; padding: var(--space-4); }
.band.alt .feature .sample { background: var(--background); }

.marker-row { display: flex; gap: var(--space-3); }
.m { min-width: 44px; height: 28px; border-radius: var(--radius-pill); display: grid; place-items: center; padding: 0 10px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; background: #fff; box-shadow: var(--shadow-marker); }
.m.ok { background: var(--stock-ok); color: var(--on-brand); border: 2px solid #fff; }
.m.low { border: 2.5px solid var(--stock-low); color: var(--on-caution); background: linear-gradient(90deg, var(--stock-low) 50%, #fff 50%); }
.m.empty { border: 2.5px solid var(--stock-empty); color: var(--stock-empty); background: var(--surface-raised); }
.bars { width: 100%; display: grid; gap: var(--space-3); }
.bar { display: flex; height: 8px; border-radius: var(--radius-pill); overflow: hidden; gap: 2px; }
.bar i { display: block; height: 100%; }
.bar .p { background: var(--lane-protected); }
.bar .l { background: var(--lane-painted); }
.bar .s { background: repeating-linear-gradient(90deg, var(--lane-shared) 0 6px, transparent 6px 9px); }
.bar .n { background: repeating-linear-gradient(90deg, var(--lane-none) 0 3px, transparent 3px 6px); }
.speech { font-size: 15px; line-height: 22px; display: grid; gap: var(--space-2); width: 100%; }
.speech span { display: block; padding: 8px 12px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-strong); }
.speech span.right { justify-self: end; }

/* Long-form pages */
.page { padding: var(--space-6) 0 var(--space-12); }
.page h1 { margin-bottom: var(--space-4); }
.page h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; margin: var(--space-8) 0 var(--space-2); }
.page p, .page li { max-width: 44rem; }
.updated { color: var(--label-secondary); font-size: 15px; }
table { border-collapse: collapse; width: 100%; max-width: 44rem; margin: var(--space-2) 0 var(--space-4); font-size: 15px; line-height: 22px; }
th, td { text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--separator); }
th { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--separator); padding: var(--space-6) 0 var(--space-12); color: var(--label-secondary); font-size: 13px; line-height: 19px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }
.site-footer p { margin: 0; max-width: 44rem; }
.site-footer a { color: var(--label-secondary); }

@media (max-width: 720px) {
  .wrap { padding: 0 var(--space-4); }
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: var(--space-8); }
  .features { grid-template-columns: 1fr; gap: var(--space-6); }
  .site-header nav { gap: var(--space-4); }
  .site-header nav .hide-sm { display: none; }
  .lockup { height: 26px; }
}
