:root {
  --bg: #F4EFE6;
  --surface: #FFFFFF;
  --text: #0B1E2C;
  --muted: #4E5F6B;
  --rule: #D9D2C5;
  --brand: #12324A;
  --accent: #12324A;
  --on-accent: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1E2C;
    --surface: #102838;
    --text: #F4EFE6;
    --muted: #A9B6BF;
    --rule: #22404F;
    --brand: #F4EFE6;
    --accent: #F4EFE6;
    --on-accent: #0B1E2C;
    color-scheme: dark;
  }
}
/* Fuel Logger pages use the app's teal. */
.app-fuel { --accent: #0E7C68; --on-accent: #FFFFFF; }
@media (prefers-color-scheme: dark) { .app-fuel { --accent: #2FC4A8; --on-accent: #0B1E2C; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { color: var(--brand); }
.brand svg { height: 30px; width: auto; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { text-decoration: none; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 40px; }
.footer-row p { margin: 0; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; margin-top: 0; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; color: var(--muted); max-width: 40em; }
.label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

/* Sections */
section { padding-top: 72px; }
.hero { padding-top: 88px; }
.rule { border-top: 1px solid var(--rule); padding-top: 32px; }
.grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.grid p { color: var(--muted); margin: 0; }

/* App card */
.app-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--rule); padding: 24px; text-decoration: none;
}
.app-card img { width: 88px; height: 88px; border-radius: 20px; }
.app-card h3 { margin: 0 0 4px; }
.app-card p { margin: 0; color: var(--muted); }
.app-card:hover { border-color: var(--accent); color: inherit; }
.status { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* Company details */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .facts div { grid-template-columns: 220px 1fr; } }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; }

/* App page */
.app-hero { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 700px) { .app-hero { grid-template-columns: 140px 1fr; } }
.app-hero img { width: 140px; height: 140px; border-radius: 31px; }
.button {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 700; padding: 13px 22px; margin: 8px 12px 0 0;
}
.button:hover { color: var(--on-accent); opacity: 0.9; }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--rule); }
.button.secondary:hover { border-color: var(--accent); color: var(--text); }
.checks { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 700px) { .checks { columns: 2; column-gap: 40px; } }
.checks li { padding: 8px 0 8px 28px; position: relative; break-inside: avoid; }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 3px; background: var(--accent); }

/* Long-form text: privacy and support */
.prose > * { max-width: 42em; }
.prose h2 { font-size: 22px; margin-top: 48px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); }
details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 12px 0 0; color: var(--muted); }
