/* ArrivalTimes: printed transit signage, not an app. See DESIGN.md.
   One theme, no dark mode, no webfonts, no shadows, square corners.
   Hover inverts to solid ink; no transitions. */

:root {
  --paper: #f1ebda;
  --paper-deep: #e6ddc4;
  --ink: #17130f;
  --ink-soft: #57503f;
  --hairline: #c9be9e;
  --masthead-sub: #c7bfae;
  --ink-line: #3b362c;

  --accent: #f9461c;
  --danger: #a32b1f;
  --alert-rule: #e8a200;
  --alert-text: #7a4a00;

  --line-red: #ee352e;
  --line-blue: #00a1de;
  --line-brown: #7b4b26;
  --line-green: #009b3a;
  --line-orange: #f9461c;
  --line-pink: #e27ea6;
  --line-purple: #522398;
  --line-yellow: #f4d41f;

  --led-bezel: #05060a;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --gutter: 32px;
  --max: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Type ---------- */
.eyebrow,
.label {
  margin: 0;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.display {
  margin: 16px 0 0;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.01em;
}
.display--page { font-size: clamp(36px, 5vw, 64px); }
.lead { margin: 24px 0 0; font-size: 19px; line-height: 1.5; max-width: 34em; }
.lead--soft { color: var(--ink-soft); }
.small { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.statement { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; }
.meta { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Masthead, stripe, footer ---------- */
.masthead { background: var(--ink); color: var(--paper); }
.masthead-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 18px 16px;
}
.wordmark {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  color: var(--paper); text-decoration: none;
  font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.wordmark:hover { color: var(--paper); }
.wordmark small {
  font-size: 11px; font-weight: 400; letter-spacing: 0.14em; color: var(--masthead-sub);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; }

.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--paper); background: transparent; color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
}
.ghost:hover,
.ghost.is-current { background: var(--paper); color: var(--ink); }

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }

.site-footer { background: var(--ink); color: var(--masthead-sub); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  padding-block: 40px 48px;
}
.footer-about { flex: 1 1 320px; }
.footer-about .wordmark { font-size: 20px; }
.footer-about p { margin: 12px 0 0; font-size: 13px; line-height: 1.5; max-width: 40em; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--masthead-sub); }
.footer-nav {
  flex: 1 1 360px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-content: start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 700 14px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
/* Ink text on orange: about 6:1 (paper on orange is only 3.4:1). */
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"],
.btn:disabled { background: var(--hairline); border-color: var(--hairline); color: #6b6553; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.on-ink .ghost { min-height: 52px; padding: 12px 24px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: 88px 24px; }
.section--last { padding-bottom: 96px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 3px solid var(--rule, var(--ink)); padding-top: 12px; margin-bottom: 36px;
}
.section-head h2 {
  margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
.section-head span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.on-ink .section-head span { color: var(--masthead-sub); }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 380px; min-width: 0; }

.band { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px 80px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-panel { flex: 0 1 480px; min-width: 0; display: flex; flex-direction: column; }
.hero--page { padding-block: 56px 8px; display: block; }

/* ---------- LED panel ---------- */
led-panel {
  display: block; max-width: 100%; width: fit-content;
  padding: 16px; line-height: 0;
  background:
    radial-gradient(circle at 8px 8px, #1b1d24 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 8px) 8px, #1b1d24 3px, transparent 3.5px),
    radial-gradient(circle at 8px calc(100% - 8px), #1b1d24 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #1b1d24 3px, transparent 3.5px),
    var(--led-bezel);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6); /* the one shadow: the bezel (DESIGN.md §9) */
}
led-panel canvas { display: block; max-width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--led-bezel); }
led-panel:not(:defined) { width: 480px; aspect-ratio: 1 / 1; }

.legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  background: var(--ink); padding: 14px 16px;
}
.legend span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--masthead-sub);
}
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.panel-note { margin: 10px 0 0; }

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px;
  padding-block: 56px;
}
.stat { border-top: 3px solid var(--paper); padding-top: 16px; }
.stat-figure { display: flex; align-items: baseline; gap: 8px; }
.stat-figure b { font-size: 72px; line-height: 1; }
.stat-figure span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.stat p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--masthead-sub); }

/* ---------- Colour key rows ---------- */
.key-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.key-chip {
  flex: none; width: 64px; height: 44px; background: var(--led-bezel);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}
.key-row b { display: block; font-size: 17px; }
.key-row span { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { border: 2px solid var(--ink); border-top: 6px solid var(--rule, var(--ink)); padding: 20px 20px 24px; }
.card .label { font-size: 11px; letter-spacing: 0.1em; }
.card h3 { margin: 8px 0 0; font-size: 20px; line-height: 1.2; }
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.uses > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.uses h3 { margin: 0; font-size: 20px; }
.uses p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.num-box {
  width: 64px; height: 64px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700;
}
.how h3 { margin: 20px 0 0; font-size: 22px; }
.how p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Coverage ---------- */
.city { border: 2px solid var(--ink); border-top-width: 6px; padding: 22px 24px; }
.city-name { margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 1.25; }
.city-lines { display: flex; gap: 4px; margin-top: 16px; }
.city-lines i { width: 22px; height: 8px; }
.city p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.row-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.row-line b { font-size: 16px; }
.row-line span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Closing band ---------- */
.cta-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: 72px; }
.cta-band .label { color: var(--masthead-sub); }
.cta-band p.statement { margin-top: 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }

/* ---------- Photos ---------- */
.photo-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px solid var(--ink); background: var(--paper-deep); color: var(--ink-soft);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px;
  width: 100%;
}
.photo { width: 100%; object-fit: cover; border: 2px solid var(--ink); }
.photos-feature { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 72px; }
.photos-feature > :first-child { flex: 2 1 560px; min-width: 0; }
.photos-feature > .stack { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.photos-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* ---------- Product ---------- */
.product-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 56px 72px; }
.product-hero .panel-col { flex: 0 1 416px; min-width: 0; }
.product-hero .info-col { flex: 1 1 460px; min-width: 0; }

.picker { margin-top: 20px; }
.picker .label { border-top: 3px solid var(--line-purple); padding-top: 10px; color: var(--ink); }
.option {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; min-height: 44px;
  padding: 12px 8px; border: 0; border-bottom: 1px solid var(--hairline);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.option:hover { background: var(--paper-deep); }
.option[aria-pressed="true"] { background: var(--paper-deep); }
.option .radio {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.option[aria-pressed="true"] .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.option b { display: block; font-size: 15.5px; }
.option small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }

.boxes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.box { border: 2px solid var(--ink); padding: 10px 14px; display: flex; align-items: baseline; gap: 6px; }
.box b { font-size: 26px; }
.box span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.buy { margin-top: 36px; border: 2px solid var(--ink); border-top: 6px solid var(--accent); padding: 24px; }
.buy-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { margin-top: 10px; font-size: 56px; font-weight: 700; line-height: 1; }
.buy .btn { margin-top: 20px; }

/* Notice: amber is for warnings and service notices only. */
.notice {
  margin: 18px 0 0; padding-left: 10px; border-left: 3px solid var(--alert-rule);
  font-size: 14px; line-height: 1.45; color: var(--alert-text); max-width: 62ch;
}
.notice b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.list li b { color: var(--ink); }
.on-ink .list li { border-color: var(--ink-line); color: var(--paper); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 56px; }
.grid-2 h3 { margin: 0 0 6px; font-size: 22px; }

.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.specs dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.specs dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }

pre, .code {
  margin: 18px 0 0; padding: 16px 18px; overflow-x: auto;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.55;
}
.on-ink pre { background: transparent; border: 2px solid var(--paper); }
code { font-family: var(--mono); font-size: 0.92em; }

/* ---------- Docs pages (Markdown) ---------- */
.doc { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 48px 96px; }
.toc { flex: 1 1 220px; max-width: 280px; }
.toc summary {
  list-style: none; cursor: pointer;
  border-top: 3px solid var(--ink); padding-top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.toc summary::-webkit-details-marker { display: none; }
.toc nav a {
  display: block; padding: 9px 0; border-bottom: 1px solid var(--hairline);
  font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.doc-body { flex: 999 1 560px; min-width: 0; max-width: 760px; }

.prose h2 { margin: 48px 0 0; padding-top: 14px; border-top: 3px solid var(--ink); font-size: 28px; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 0; font-size: 20px; }
.prose p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 14px 0 0; padding: 0; list-style: none; max-width: 680px; }
.prose li { padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.prose .photo-slot, .prose .photo { margin-top: 20px; max-width: 560px; }
.prose .phone-shot { max-width: 260px; }
.prose .btn-row { margin-top: 32px; }

/* Numbered steps: every h2 gets a boxed number (setup guide). */
.doc--steps .doc-body { counter-reset: step; }
.doc--steps .prose > h2 { counter-increment: step; display: flex; align-items: center; gap: 18px; }
.doc--steps .prose > h2::before {
  content: counter(step);
  flex: none; width: 52px; height: 52px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* ---------- Support ---------- */
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline;
  padding: 18px 0; font-size: 18px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 14px; }
.faq details[open] summary::before { content: "\2212"; }
.faq p { margin: 0 0 18px 28px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }

.form-col { max-width: 480px; }
.field-label { display: block; margin: 18px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field {
  display: block; width: 100%; padding: 12px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 16px var(--font); appearance: none;
}
select.field {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
textarea.field { min-height: 140px; resize: vertical; line-height: 1.45; }
.hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.contact-box { margin: 32px 0 0; border: 2px solid var(--ink); padding: 18px 20px; }
.contact-box dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-box dt + dd + dt { margin-top: 14px; }
.contact-box dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.link-cards a { display: block; text-decoration: none; border: 2px solid var(--ink); padding: 20px; }
.link-cards a:hover { background: var(--ink); color: var(--paper); }
.link-cards a:hover .label { color: var(--masthead-sub); }
.link-cards b { display: block; margin-top: 6px; font-size: 19px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .masthead-row { gap: 10px; padding-block: 14px 12px; }
  .wordmark { font-size: 20px; }
  .wordmark small { display: none; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(4, auto); gap: 6px; }
  .nav .ghost { padding: 6px 4px; font-size: 11px; letter-spacing: 0.04em; }
  .hero, .product-hero { gap: 32px; padding-block: 40px 48px; }
  .section { padding-top: 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 40px; }
  .stat-figure b { font-size: 52px; }
  .stat p { font-size: 14px; }
  .price { font-size: 44px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .doc { gap: 24px; padding-top: 24px; }
  .toc { max-width: none; flex-basis: 100%; }
  .doc--steps .prose > h2::before { width: 40px; height: 40px; font-size: 20px; }
}
