/* Every app sets: the cover colours, the ink on the cover and a link colour
   that reads on paper. */
:root {
  color-scheme: light dark;
  --cover: #2b2b30;
  --cover-2: #17171a;
  --on-cover: #ffffff;
  --link: #1257c9;
  --mark: #1257c9;
  --paper: #fffdf9;
  --page: #f1eee8;
  --ink: #1d1c1a;
  --soft: #6d6a64;
  --rule: #e4dfd6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1a1d;
    --page: #0f0f11;
    --ink: #eeece8;
    --soft: #a09d98;
    --rule: #2e2e33;
  }
}

.t-car-money {
  --cover: #0a84ff;
  --cover-2: #0058d6;
  --link: #0a5fd6;
  --mark: #0a84ff;
}
.t-fuel-tracker {
  --cover: #2fc45a;
  --cover-2: #139a45;
  --link: #0d7a35;
  --mark: #2fc45a;
}
.t-wallet {
  --cover: #ffd21f;
  --cover-2: #f7b500;
  --on-cover: #2a2100;
  --link: #8a6400;
  --mark: #f0b400;
}
.t-pilly {
  --cover: #dcd9df;
  --cover-2: #b9b5bf;
  --on-cover: #26232b;
  --link: #4d7d17;
  --mark: #7dbe3a;
}
.t-countries {
  --cover: #1c1c1f;
  --cover-2: #050506;
  --link: #9a5b00;
  --mark: #f0a020;
}
.t-haptics {
  --cover: #0a7bff;
  --cover-2: #0046c7;
  --link: #0a5fd6;
  --mark: #c8f500;
}
.t-word-search {
  --cover: #7a35e0;
  --cover-2: #5220b8;
  --link: #6a2bd0;
  --mark: #f26b62;
}
@media (prefers-color-scheme: dark) {
  .t-car-money, .t-haptics { --link: #6cb0ff; }
  .t-fuel-tracker { --link: #5fd983; }
  .t-wallet { --link: #ffd21f; }
  .t-pilly { --link: #a2dc62; }
  .t-countries { --link: #f6b443; }
  .t-word-search { --link: #b693ff; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.cover {
  position: relative;
  overflow: hidden;
  color: var(--on-cover);
  background: linear-gradient(160deg, var(--cover), var(--cover-2));
  padding: 56px 20px 124px;
}
.cover-in {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.icons { display: flex; gap: 14px; margin-bottom: 26px; }
.icons img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 22.5%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 30px -10px rgba(0, 0, 0, 0.55);
}
.app {
  margin: 0 0 6px;
  font: 600 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.86;
}
h1 {
  margin: 0;
  font: 700 clamp(40px, 9vw, 68px)/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.035em;
}

.app a { color: inherit; text-decoration: none; }
.app a:hover { text-decoration: underline; }
.about {
  max-width: 30em;
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.45;
  opacity: 0.92;
}
.stores { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; margin-top: 30px; }
.store { display: block; color: inherit; text-decoration: none; transition: transform 0.15s ease; }
.store:hover { transform: translateY(-2px); }
.store span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; opacity: 0.86; }
.store img { display: block; width: 168px; height: 56px; }
.home { padding-top: 20px; padding-bottom: 20px; }
.home .rows { border-top: 0; }
.home .row:last-child { border-bottom: 0; }
.rows { border-top: 1px solid var(--rule); }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font: 600 19px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.row::after { content: "\2192"; color: var(--mark); transition: transform 0.15s ease; }
.row:hover::after { transform: translateX(5px); }

.sheet {
  position: relative;
  max-width: 800px;
  margin: -76px auto 0;
  padding: 44px 48px 52px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -40px rgba(0, 0, 0, 0.45);
}
.sheet.lone { margin-top: 80px; text-align: center; }
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }
.updated {
  font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 22px;
}
.updated + p { font-size: 20px; line-height: 1.55; }

h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  position: relative;
  font-size: 26px;
  font-weight: 700;
  margin: 46px 0 12px;
  padding-top: 18px;
}
h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: var(--mark);
}
h3 { font-size: 21px; font-weight: 650; margin: 32px 0 8px; }
h4 { font-size: 18px; font-weight: 650; margin: 24px 0 6px; }
p, ul { margin: 0 0 16px; }
ul { padding-left: 0; list-style: none; }
li { position: relative; padding-left: 24px; margin-bottom: 9px; }
li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark);
}
a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-thickness: 2.5px; }
strong { font-weight: 650; }
code {
  font: 0.86em/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--page);
}

.foot {
  max-width: 800px;
  margin: 26px auto 56px;
  padding: 0 48px;
  color: var(--soft);
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .cover { padding: 40px 20px 104px; }
  .icons img { width: 68px; height: 68px; }
  .sheet { margin: -68px 12px 0; padding: 30px 22px 36px; border-radius: 18px; }
  .updated + p { font-size: 18px; }
  h2 { font-size: 23px; margin-top: 38px; }
  .foot { padding: 0 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  .icons, .app, h1, .sheet { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .app { animation-delay: 0.08s; }
  h1 { animation-delay: 0.14s; }
  .sheet { animation-delay: 0.22s; }
  .t-haptics @keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
