/*
 * The app pages, in the studio's brand (brand/README.md), matching the home page: a dark top in
 * ink, light rows for what the app does, each with a screenshot in a phone, and a dark foot.
 * Overpass is served from this site (brand/fonts, SIL Open Font License).
 * The chips and .btn.soon are not used yet; Pump Prices' page will need them.
 */
@font-face {
  font-family: "Overpass";
  src: url("brand/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #13181F;
  --green: #4ADE80;
  --green-text: #1E7A47;
  --off-white: #F7F6F2;
  --muted: #A3AAB3;
  --page: #FAFAF7;
  --panel: #F0F1EC;
  --text: #13181F;
  --body: #3E4753;
  --rule: #E4E6E0;
  --chip-live-bg: #DDF7E7;
  --chip-live: #14532D;
  --chip-soon-bg: #2A333D;
  --chip-soon: #D5D9DE;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.6 "Overpass", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }

/* ---- the studio bar ---- */
.studio { background: var(--ink); color: var(--off-white); }
.studio .wrap { display: flex; align-items: center; gap: 10px; padding-block: 14px; }
.studio a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; }
.studio svg { width: 34px; height: 34px; }

/* ---- the app's own top ---- */
.top { background: var(--ink); color: var(--off-white); padding-block: 28px 56px; }
.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(24px, 6vw, 72px); align-items: center; }
.top .icon { display: block; width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.top h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.top .lede { margin: 14px 0 24px; color: #D5D9DE; font-size: clamp(17px, 2.2vw, 20px); max-width: 40ch; }
.top .small { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.chip {
  display: inline-block;
  padding: 5px 9px 3px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip.live { background: var(--chip-live-bg); color: var(--chip-live); }
.chip.soon { background: var(--chip-soon-bg); color: var(--chip-soon); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.btn {
  display: inline-block;
  padding: 13px 22px 11px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}
.btn:hover { background: #6EE7A0; }
.btn.soon { background: var(--chip-soon-bg); color: var(--chip-soon); }

.phone {
  border: 9px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(19, 24, 31, 0.18);
  background: var(--ink);
}
.top .phone { border-color: #2A333D; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.phone img { display: block; width: 100%; }

/* ---- a row for each thing it does ---- */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding-block: 48px;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: 0; }
.row.flip { grid-template-columns: 210px minmax(0, 1fr); }
.row.flip .text { order: 2; }
.text { min-width: 0; }
.label { margin: 0 0 6px; color: var(--green-text); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.row h2 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 30px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.row p, .panel p, .panel li { color: var(--body); font-size: 17px; max-width: 52ch; }
.row p { margin: 0 0 12px; }
.row p a { color: var(--green-text); font-weight: 700; }
.row h2 a { color: var(--green-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- a row with no screenshot, and its parts (the buying guide) ---- */
.row.solo { grid-template-columns: minmax(0, 1fr); }
.row .facts { margin: 0 0 12px; padding-left: 20px; }
.row .facts li { color: var(--body); font-size: 17px; max-width: 52ch; margin-bottom: 6px; }
sup { line-height: 0; }
sup a { color: var(--green-text); font-weight: 700; text-decoration: none; padding-left: 1px; }
.sources ol { margin: 0 0 14px; padding-left: 22px; }
.panel .label { color: var(--green-text); font-size: 13px; margin: 16px 0 6px; }
.sources li { font-size: 15px; scroll-margin-top: 16px; }

/* ---- privacy, and anything else said once ---- */
.panel { background: var(--panel); border-radius: 22px; padding: clamp(24px, 4vw, 40px); margin-block: 8px 56px; }
.wrap > .panel:first-child { margin-top: 40px; }
.panel h2 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.panel ul { margin: 0 0 14px; padding-left: 20px; }
.panel li { margin-bottom: 6px; }
.panel p { margin: 0; }
.panel a { color: var(--green-text); font-weight: 700; }

/* ---- the foot ---- */
footer { background: var(--ink); color: var(--muted); font-size: 14px; }
footer .wrap { padding-block: 28px; display: grid; gap: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer a { color: var(--green); }
footer p { margin: 0; max-width: 80ch; }

@media (max-width: 640px) {
  .top { padding-block: 20px 44px; }
  .top .wrap, .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
  .row.flip .text { order: 0; }
  .row { padding-block: 36px; }
  .top .phone, .row .phone { width: 220px; max-width: 70%; }
}
