/* ============================================================
   Cornamusa marketing site — "Harbor Instrument"
   Extends the design system in app/static/styles.css. Tokens are
   copied VERBATIM from that file so the site and the product read
   as one thing. Only marketing-layer additions are new.

   ⛔ COMMAND COLOURS ARE RESERVED.
   --raise (azure), --lower (amber) and --stop (red) carry meaning
   in the product: they are the three things a lift can be told to
   do. They are NEVER used decoratively here. Marketing surfaces
   run on teal + neutrals. The command palette appears in exactly
   one place — the control-surface figure on the DockLift page —
   because a customer who learns "amber = lower" on the website
   must not have to unlearn it at the dock.
   ============================================================ */

/* ---------- Type -------------------------------------------------------
   Archivo is a VARIABLE font with a width axis (62%-125%). The product CSS
   asked for a family called "Archivo Expanded", which does not exist on
   Google Fonts — the request 200s and the family is silently dropped, so
   display type has always fallen back to normal-width Archivo. Loading the
   real width axis and using font-stretch is the fix.
   Self-hosted: no third-party request, and no silent-failure mode.
   ---------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/splinemono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (light / day) — from app/static/styles.css ---------- */
:root {
  color-scheme: light dark;

  --teal: #0e7c72;
  --teal-strong: #0a5d56;
  --teal-soft: #dcefec;

  --bg: #e9eeed;
  --bg-grad-top: #eef3f2;
  --bg-grad-bottom: #dbe5e3;
  --surface: #ffffff;
  --surface-2: #f4f8f7;
  --ink: #0c2024;
  --ink-2: #2b3f43;
  --muted: #566a6f;
  --line: #d2ddda;
  --hairline: rgba(12, 32, 36, 0.08);

  --raise: #1f6fb2;
  --raise-ink: #ffffff;
  --lower: #d99425;
  --lower-ink: #2a1f08;
  --stop: #cf2e1d;
  --stop-ink: #ffffff;
  --stop-glow: rgba(207, 46, 29, 0.32);

  --safe: #0e7c72;
  --safe-soft: #e0f1ee;
  --warn: #b5821b;
  --warn-soft: #fbeecb;
  --danger: #b21f12;
  --danger-soft: #fbe4e1;

  --shadow-sm: 0 1px 2px rgba(12, 32, 36, 0.08);
  --shadow: 0 8px 24px rgba(12, 32, 36, 0.10), 0 1px 2px rgba(12, 32, 36, 0.06);
  --shadow-lg: 0 18px 48px rgba(12, 32, 36, 0.16);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --ff-display: 'Archivo', system-ui, sans-serif;
  --ff-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --ff-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* --- Marketing-layer additions ------------------------------------- */
  --page-max: 940px;   /* reading measure — unchanged from the product */
  --wide: 1180px;      /* section shell, wider than an app screen needs */
  --s1: 8px;  --s2: 12px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 72px; --s8: 104px;
  --expanded: 118%;    /* display width axis */
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2bc0b0;
    --teal-strong: #18a596;
    --teal-soft: #0e2b2a;

    --bg: #060f10;
    --bg-grad-top: #0a181a;
    --bg-grad-bottom: #050c0d;
    --surface: #0f2023;
    --surface-2: #122a2d;
    --ink: #e7f2f0;
    --ink-2: #bcd0cd;
    --muted: #93aead;
    --line: #21383b;
    --hairline: rgba(231, 242, 240, 0.06);

    --raise: #3a93d6;
    --raise-ink: #04121d;
    --lower: #eaa837;
    --lower-ink: #2a1f08;
    --stop: #f04434;
    --stop-ink: #160403;
    --stop-glow: rgba(240, 68, 52, 0.4);

    --safe: #2bc0b0;
    --safe-soft: #0d2c2a;
    --warn: #e0b04a;
    --warn-soft: #2e2510;
    --danger: #f0594a;
    --danger-soft: #34110d;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the sticky header. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;              /* belt-and-braces: never scroll sideways */
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--teal-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg) 38%, var(--bg-grad-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--teal-strong); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- Layout ---------- */
.shell {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 32px);
}
.measure { max-width: 62ch; }
.measure-wide { max-width: var(--page-max); }

.section { padding-block: clamp(var(--s6), 9vw, var(--s8)); }
.section-tight { padding-block: clamp(var(--s5), 6vw, var(--s6)); }
.section + .section { padding-top: 0; }

.section-head { margin-bottom: clamp(var(--s4), 4vw, var(--s5)); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { margin: 0 0 var(--s2); color: var(--ink); }

h1, .h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: var(--expanded);
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-stretch: var(--expanded);
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s3);
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-strong);
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--teal); } }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding-block: 10px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-strong) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: var(--expanded);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;               /* touch target */
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--teal-strong); background: var(--teal-soft); }
@media (prefers-color-scheme: dark) { .nav a[aria-current='page'] { color: var(--teal); } }

/* Mobile: brand + CTA on row one, links wrap to row two, centred. No scroll. */
@media (max-width: 640px) {
  .topbar-inner { justify-content: space-between; }
  .nav { order: 3; width: 100%; justify-content: center; padding-bottom: 4px; }
  .nav .nav-cta { order: -1; }
  .topbar .button { order: 2; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  min-width: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: 0.7; }
.button.primary {
  background: linear-gradient(165deg, var(--teal), var(--teal-strong));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.button.primary:hover { filter: brightness(1.08); color: #fff; }
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover { background: var(--surface-2); color: var(--ink); }
.button.compact { min-height: 44px; padding: 10px 16px; font-size: 15px; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.cta-row .button { flex: 1 1 auto; }
@media (min-width: 560px) { .cta-row .button { flex: 0 0 auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* The coverage motif deliberately bleeds past the right edge. `clip` bounds
     it without creating a scroll container (unlike `hidden`), so the page
     never scrolls sideways at any width. */
  overflow-x: clip;
  padding-block: clamp(var(--s6), 10vw, 120px) clamp(var(--s6), 8vw, var(--s8));
}
.hero-note {
  margin-top: var(--s4);
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Coverage motif: concentric arcs from one antenna point. Echoes the rope
   curve in the cleat mark and depicts the actual product model — one
   antenna, a radius, a set of docks. Decorative only, aria-hidden. */
.coverage {
  position: absolute;
  inset-inline-end: -18%;
  top: -10%;
  width: min(720px, 92vw);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}
@media (prefers-color-scheme: dark) { .coverage { opacity: 0.38; } }
.coverage circle { fill: none; stroke: var(--teal); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0; }
.card p { color: var(--ink-2); margin: 0; }

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  color: inherit;
}

/* Numbered steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--s5); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--teal), var(--teal-strong));
  color: #fff;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
}

/* ---------- The honesty block — a feature, not a disclaimer ---------- */
.honest {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.honest-head {
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.honest-head h2 { margin: 0 0 6px; }
.honest-list { display: grid; margin: 0; padding: 0; list-style: none; }
.honest-list li {
  display: grid;
  gap: 6px;
  padding: clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--line);
}
.honest-list li:last-child { border-bottom: 0; }
.honest-list strong {
  font-family: var(--ff-display);
  font-stretch: 108%;
  font-size: 18px;
  font-weight: 700;
}
.honest-list p { margin: 0; color: var(--ink-2); }

/* Mono status tokens — the four real outcomes the system records. */
.tokens { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.token {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Control-surface figure ----------
   The ONLY place command colours appear. Mirrors the app's stacked
   Raise / Stop / Lower layout so the website teaches the real thing. */
.control-figure {
  display: grid;
  gap: 10px;
  width: min(320px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.control-figure .cmd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: var(--expanded);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.control-figure .cmd.raise { background: var(--raise); color: var(--raise-ink); }
.control-figure .cmd.stop  { min-height: 84px; font-size: 23px; background: var(--stop); color: var(--stop-ink); }
.control-figure .cmd.lower { background: var(--lower); color: var(--lower-ink); }
.control-caption {
  margin-top: var(--s2);
  max-width: 320px;
  font-family: var(--ff-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.figure-split { display: grid; gap: clamp(var(--s4), 5vw, var(--s6)); align-items: center; }
/* Both tracks are bounded on purpose. With `1fr auto`, the `auto` track sizes
   to the caption's max-content — a long caption then starves the main column
   to a few pixels wide. minmax(0, …) on both keeps that impossible. */
@media (min-width: 860px) {
  .figure-split { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}

/* ---------- Pricing ---------- */
.price-card {
  display: grid;
  align-content: start;
  gap: var(--s2);
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: var(--shadow);
}
.price-tag {
  justify-self: start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal-strong);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { .price-tag { color: var(--teal); } }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount {
  font-family: var(--ff-display);
  font-weight: 800;
  font-stretch: var(--expanded);
  font-size: clamp(40px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-unit { color: var(--muted); font-size: 16px; font-weight: 600; }
.price-list { display: grid; gap: 10px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.price-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.price-list li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 2px var(--teal);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 7px; }
.field > label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--muted); }
.req { color: var(--danger); font-weight: 700; }

input, select, textarea {
  width: 100%;
  min-height: 52px;                /* touch target */
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;                 /* ≥16px stops iOS zoom-on-focus */
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 24%, transparent);
}
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

/* Error text carries an icon as well as colour — never colour alone. */
.field-error {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--danger);
}
.field-error::before { content: '⚠'; font-size: 15px; }
.field-error:not(:empty) { display: flex; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-weight: 600;
}
.check input {
  width: 22px; height: 22px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--teal);
}
.check .hint { font-weight: 500; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
}
.form-status.error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.form-status:empty { display: none; }

.form-layout { display: grid; gap: clamp(var(--s4), 5vw, var(--s6)); align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .form-aside { position: sticky; top: 100px; } }

/* ---------- Aside / notes ---------- */
.note {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15.5px;
}
.note strong { color: var(--ink); }

/* ---------- Queue meter (demand aggregation) ---------- */
.queue { display: grid; gap: var(--s2); }
.queue-bar { display: flex; gap: 6px; }
.queue-pip {
  flex: 1;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--line);
}
.queue-pip.on { background: linear-gradient(90deg, var(--teal), var(--teal-strong)); }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--s6);
  padding-block: var(--s6) var(--s5);
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 {
  margin: 0 0 var(--s2);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.footer ul a:hover { color: var(--teal-strong); text-decoration: underline; }
.footer-base {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-safety {
  font-family: var(--ff-mono);
  font-size: 13px;
  max-width: 62ch;
}

/* ---------- Inline code ---------- */
code {
  font-family: var(--ff-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- App screenshots ----------
   Real captures of the shipping app, in a device frame. A bare screenshot on
   a page reads as a UI mockup; the frame is what tells a boat owner "this is
   the thing that will be on my phone".
   The bezel is deliberately neutral — it must not compete with the command
   colours inside the screen, which carry meaning. */
.phone-gallery {
  display: grid;
  gap: clamp(var(--s4), 4vw, var(--s5));
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.phone-shot { margin: 0; display: grid; gap: var(--s3); align-content: start; }
.phone-frame {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  /* The capture already contains the status bar and dynamic island, so the
     frame only needs to supply the bezel — not fake hardware chrome. */
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}
.phone-shot figcaption {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.phone-shot figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.app-note { margin-top: var(--s4); font-size: 12.5px; }

/* ---------- Sign-in bar (DockLift) ----------
   For people who already have a lift set up, not a conversion CTA — so it is
   deliberately quieter than the Request button and never competes with it. */
.signin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.signin-bar strong { display: block; }
.signin-bar .muted { font-size: 13.5px; line-height: 1.5; }
