/* Landing page (31/10/2026). Colours of DESIGN.md (light and dark). */
:root {
  color-scheme: light dark;
  --primary: #064e6c;
  --on-primary: #ffffff;
  --primary-soft: #d6ebfc;
  --on-primary-soft: #04344a;
  --bg: #f4f8f9;
  --card: #ffffff;
  --deep: #eaf1f4;
  --text: #0f1a20;
  --muted: #4f5f68;
  --line: #dce5e9;
  --warn: #7a4f00;
  --warn-bg: #fdf0d5;
  --fuel: #3084cc;
  --service: #84c6f6;
  --expense: #a9b8c0;
  --toll: #5e7a88;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 26 32 / 6%), 0 8px 24px rgb(15 26 32 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7cc4ee;
    --on-primary: #04273a;
    --primary-soft: #0b4a66;
    --on-primary-soft: #d6ebfc;
    --bg: #10191f;
    --card: #18242b;
    --deep: #1f2e36;
    --text: #e4ecef;
    --muted: #a3b3bb;
    --line: #2a3b44;
    --warn: #f2c46d;
    --warn-bg: #3a2e14;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
}
.button:hover { filter: brightness(1.12); }
.button:focus-visible, .link:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 2px;
}
.button.small { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }
.button.ghost {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.button.ghost:hover { background: var(--card); filter: none; }
.button.light { background: var(--on-primary); color: var(--primary); }

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand img { border-radius: 8px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.link {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
}
.link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 20px 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.facts li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* The phone: a drawing of the History screen */
.phone {
  justify-self: center;
  width: 320px;
  padding: 10px;
  border-radius: 44px;
  background: #0f1a20;
  box-shadow: 0 30px 60px rgb(6 78 108 / 25%), 0 0 0 1px rgb(255 255 255 / 6%);
  transform: rotate(2deg);
}
.screen {
  border-radius: 34px;
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 18px 12px;
}
.app-title { font-size: 20px; font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 700;
}
.alert {
  display: flex;
  justify-content: space-between;
  margin: 0 12px 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 500;
}
.month {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.month .num { color: var(--text); font-size: 12px; letter-spacing: 0; }
.day { display: flex; gap: 10px; padding: 12px 14px 4px; }
.date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  color: var(--muted);
  font-size: 11px;
}
.date b { color: var(--text); font-size: 17px; }
.rows { flex: 1; display: grid; gap: 8px; }
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgb(15 26 32 / 6%);
}
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot.fuel { background: var(--fuel); }
.dot.service { background: var(--service); }
.dot.expense { background: var(--expense); }
.dot.toll { background: var(--toll); }
.row-text { flex: 1; min-width: 0; }
.row-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}
.row-detail {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 16px;
  padding: 12px 8px 18px;
  background: var(--deep);
}
.tabbar span {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.tabbar .on { background: var(--primary); }
.tabbar .plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 22px;
  font-weight: 500;
}

/* Features */
.features { padding: 72px 0; background: var(--card); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; max-width: 22ch; }
/* Like the vehicle's registration sheet: a name and its line. */
.sheet {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}
.spec dd { margin: 0; color: var(--muted); align-self: center; }
.spec svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Offline */
.offline { padding: 72px 0; }
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.split p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 16px 0 0; }
.checks {
  list-style: none;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  font-weight: 500;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
}
/* The tick, in the colour of each theme. */
.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--on-primary-soft);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Call to action */
.cta { padding: 0 0 72px; }
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px;
  border-radius: 24px;
  background: var(--primary);
  color: var(--on-primary);
}
.cta-box h2 { max-width: none; }

/* Footer */
.foot { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* confirmado.html: one short message in the middle */
.notice {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 65px);
  padding: 32px 16px;
}
.notice-box {
  max-width: 440px;
  text-align: center;
}
.notice-box[hidden] { display: none; }
.notice-box h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-top: 24px; }
.notice-box p { color: var(--muted); font-size: 1.1rem; margin: 12px 0 32px; }
.notice-mark {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.notice-mark.ok::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 17px;
  width: 15px;
  height: 28px;
  border: solid var(--on-primary-soft);
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}
.notice-mark.failed { background: var(--warn-bg); }
.notice-mark.failed::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--warn);
  font-size: 40px;
  font-weight: 800;
}

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .sheet { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 56px; }
  .top-actions { gap: 12px; }
  .top-actions .link { font-size: 0.95rem; }
  .brand span { display: none; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .spec dd { padding-left: 34px; }
  .phone { width: 100%; max-width: 320px; }
  .cta-box { padding: 28px 24px; }
  .hero-actions .button { flex: 1 1 100%; }
}
