/* AcreLog public site: home and privacy. Iron and Signal palette, Archivo type (see CLAUDE.md, Design Context).
   No inline styles anywhere: the public CSP allows this file only. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("/fonts/ArchivoNarrow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #f4f4f2;
  --card: #ffffff;
  --line: #d8d8d8;
  --ink: #17191c;
  --muted: #5c6168;
  --steel: #23272b;
  --on-steel: #ffffff;
  --on-steel-muted: #c9cdd1;
  --signal: #e8590c;
  --on-signal: #ffffff;
  --ok: #1c5c2c;
  --ok-bg: #dcefe0;
  --due: #6b4b00;
  --due-bg: #fff0c2;
  --over: #8a2d00;
  --over-bg: #fde3d2;
  --broken: #4a1a6b;
  --broken-bg: #ece0f5;
  --focus: #17191c;
  /* The phone frame around app pictures: dark on the light page. */
  --frame: #23272b;

  --display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --touch: 3.5rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    /* Mid steel, so a dark app picture stands clear of the dark page. */
    --frame: #6b7279;
    --surface: #15181b;
    --card: #1d2125;
    --line: #2e3338;
    --ink: #eef0f2;
    --muted: #9aa1a8;
    --steel: #0d0f11;
    --on-steel: #ffffff;
    --on-steel-muted: #c9cdd1;
    --signal: #ff6a1f;
    --on-signal: #1a0a00;
    --ok: #9fe3b0;
    --ok-bg: #143a1f;
    --due: #ffd466;
    --due-bg: #4a3600;
    --over: #ffb48a;
    --over-bg: #4a1e07;
    --broken: #d9b8ff;
    --broken-bg: #2e1545;
    --focus: #eef0f2;
  }
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 10;
  padding: 1rem 1.25rem;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid var(--ink);
  max-width: calc(100% - 1rem);
}
.skip:focus {
  top: 0.5rem;
}

/* ─── Header and footer ───────────────────────────────────────────── */

.topbar {
  background: var(--steel);
  color: var(--on-steel);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--touch);
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--on-steel);
}
.brand-mark {
  flex: none;
  border: 1px solid #3a4046;
}
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.25rem;
  font-weight: 700;
  color: var(--on-steel);
}
.topbar a:focus-visible {
  outline-color: var(--on-steel);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-name {
  margin: 0;
}
.footer-contact {
  margin: 0.25rem 0 0;
}
.footer-contact a {
  color: var(--ink);
  font-weight: 700;
}
.footer-name strong {
  color: var(--ink);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--ink);
  font-weight: 700;
}

/* ─── Shared type ─────────────────────────────────────────────────── */

.eyebrow {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
}
/* The one signal-orange element on the page. */
.btn-primary {
  background: var(--signal);
  color: var(--on-signal);
}
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink);
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 700;
}

/* ─── Hero ────────────────────────────────────────────────────────── */

.hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.note {
  color: var(--muted);
  font-size: 1rem;
  max-width: 34rem;
}

@media (max-width: 30rem) {
  .actions .btn {
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .hero {
    padding: 4rem 0 4.5rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

/* ─── Bands and features ──────────────────────────────────────────── */

.band {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.band-alt {
  background: var(--card);
}
.band-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.band-head h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-bottom: 1rem;
}
.band-lead {
  font-size: 1.1875rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.feature h3 {
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  margin-bottom: 0.875rem;
}
.feature-text {
  max-width: 36rem;
}

@media (min-width: 60rem) {
  .band {
    padding: 4.5rem 0;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
    padding: 2.75rem 0;
  }
}

figure {
  margin: 0;
}
figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Also in AcreLog: one line each, in two columns where there is room. */
.also {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 3rem;
  border-top: 1px solid var(--line);
}
.also li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.45;
}
@media (min-width: 48rem) {
  .also {
    grid-template-columns: 1fr 1fr;
  }
}

/* Your records are yours. */
.yours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 3rem;
  border-top: 1px solid var(--line);
}
.yours li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.yours h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.yours p {
  margin: 0;
}
.yours-more {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.5rem;
}
@media (min-width: 48rem) {
  .yours {
    grid-template-columns: 1fr 1fr;
  }
}

.where {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.where-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.where-item h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 48rem) {
  .where {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ─── App recreations ─────────────────────────────────────────────── *
   Copies of src/ui/components.tsx: ListRow, StatusChip, Meter, SyncBar, Notice.
   Square corners, one-pixel lines, no shadows. */

.mock {
  background: var(--surface);
  /* A phone's frame, so the picture never melts into the page around it. */
  border: 6px solid var(--frame);
  border-radius: 14px;
  color: var(--ink);
  max-width: 34rem;
  overflow: hidden;
}
.band-alt .mock {
  background: var(--surface);
}

.m-head {
  background: var(--steel);
  color: var(--on-steel);
  font-family: var(--display);
  font-size: 1.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1rem;
  line-height: 1.2;
}

.m-sync {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.m-sync:last-child {
  border-bottom: 0;
}
.m-sync-due {
  color: var(--due);
}
.m-sync-over {
  color: var(--over);
}
.m-link {
  color: var(--ink);
  text-decoration: underline;
  flex: none;
}

.m-list,
.m-log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.m-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.m-row-title {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.m-row-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.m-row-chip {
  margin-top: 0.2rem;
}

.m-meter,
.m-meter-large {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}
.m-meter {
  font-size: 1.75rem;
}
.m-meter-large {
  font-size: clamp(2.75rem, 11vw, 3.5rem);
  margin: 0;
}
.m-unit {
  font-size: 0.55em;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* The figure that matters, a size up in the condensed face, as in the app. */
.chip-quiet .chip-fig {
  font-family: var(--body);
  font-size: 0.875rem;
}
.chip-large {
  padding: 0.375rem 0.75rem;
}
.chip-large .chip-fig {
  font-size: 1.75rem;
}
.chip-word,
.chip-fig {
  white-space: nowrap;
}
.chip-fig {
  font-family: var(--display);
  font-size: 1.3125rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.chip-ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.chip-due-soon,
.chip-low {
  color: var(--due);
  background: var(--due-bg);
}
.chip-overdue {
  color: var(--over);
  background: var(--over-bg);
}
.chip-broken {
  color: var(--broken);
  background: var(--broken-bg);
}

.m-label {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.m-label-pad {
  padding: 1.25rem 1rem 0.25rem;
  margin: 0;
}

.m-tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.m-tabs span {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 3px solid transparent;
}
.m-tabs .on {
  color: var(--ink);
  border-top-color: var(--ink);
}
.m-tabs-top {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.m-tabs-top span {
  border-top: 0;
  border-bottom: 3px solid transparent;
}
.m-tabs-top .on {
  border-bottom-color: var(--ink);
}

.m-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.m-body > p {
  margin: 0;
}
.m-what {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}
.m-where {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--muted);
}
.m-muted {
  color: var(--muted);
  font-size: 0.9375rem;
}
.m-meterbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem;
  margin-top: 0.4rem;
  border: 1px solid var(--line);
  background: var(--card);
}
.m-meterbox .m-muted {
  margin: 0.25rem 0 0;
}

/* Mock buttons are neutral here: on this page, orange belongs to the real primary action. */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
}
.m-btn-wide {
  width: 100%;
}

.m-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.4;
  font-weight: 700;
}
.m-notice-ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.m-notice-error {
  color: var(--over);
  background: var(--over-bg);
}

.m-searchwrap {
  padding: 0.75rem 1rem;
}
.m-search {
  margin: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
}
.m-search span {
  color: var(--muted);
  font-size: 1.125rem;
}

.m-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
}
.m-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9375rem;
}
.m-filters .on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.m-log li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.m-log li:last-child {
  border-bottom: 0;
}

.m-body-tight {
  gap: 0;
}
.m-facts {
  margin: 0 0 0.75rem;
  border-top: 1px solid var(--line);
}
.m-facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.m-facts dt {
  color: var(--muted);
  font-size: 0.9375rem;
}
.m-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.m-ai {
  margin-left: 0.4rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.m-facts-tight {
  margin: 0;
}
.m-chipline {
  margin: 0.25rem 0 0;
}
.m-job {
  margin: 0.25rem 0 0;
  font-weight: 700;
}
.m-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.m-stack-row {
  flex-direction: row;
  flex-wrap: wrap;
}
.m-stack-row .m-btn {
  flex: 1 1 10rem;
}
.m-btn-dark {
  flex: none;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.m-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.m-field-label {
  font-weight: 700;
  font-size: 0.9375rem;
}
.m-field-box {
  padding: 0.7rem 0.75rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  line-height: 1.4;
}
.m-field-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}
.m-notice-info {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.m-searchrow {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.m-searchrow .m-search {
  flex: 1;
  min-width: 0;
}
.m-onchips {
  padding-top: 0;
}
.m-label-gap {
  margin: 1rem 0 0;
}
.m-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Done and Read at the end of a row, as on the Due tab. */
.m-row-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
}
/* Suggestions under a box, as under Make and Model. */
.m-suggest {
  list-style: none;
  margin: -0.25rem 0 0.25rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
}
.m-suggest li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
}
.m-suggest li:first-child {
  border-top: 0;
}

/* Key tag: white body (the QR code's quiet zone), black lettering, as printed. */
.tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 17rem;
  padding: 3.25rem 1.5rem 1.5rem;
  background: #ffffff;
  color: #17191c;
  border: 2px solid #17191c;
  border-radius: 1.5rem 1.5rem var(--radius) var(--radius);
}
.tag-hole {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.625rem;
  border: 2px solid #17191c;
  border-radius: 50%;
  background: var(--surface);
}
.tag-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: -0.5rem;
}

.tag-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
}
.tag-qr {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
}

/* ─── Privacy page ────────────────────────────────────────────────── */

.doc {
  padding: 2.5rem 0 3.5rem;
}
.doc-body {
  max-width: 44rem;
}
.doc h1 {
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  margin-bottom: 1rem;
}
.doc h2 {
  font-size: clamp(1.625rem, 4.5vw, 2rem);
  margin: 2.5rem 0 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.doc li {
  margin-bottom: 0.5rem;
}
.doc .updated {
  color: var(--muted);
  font-size: 1rem;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 1rem;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  font-weight: 700;
}
@media (max-width: 40rem) {
  .doc table,
  .doc tbody,
  .doc tr,
  .doc th,
  .doc td {
    display: block;
  }
  .doc thead {
    display: none;
  }
  .doc tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .doc th,
  .doc td {
    border: 0;
    padding: 0.15rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Buttons that submit a form look and feel like link buttons. */
button.btn {
  cursor: pointer;
}
