/*
 * The front page, English and Polish. A leaflet: one screen of pitch, the two
 * store badges, the bill and a list from the app, three steps and who made it.
 *
 * Nothing loads from anywhere but this site and nothing runs. The privacy
 * policy says the site sets no cookies and runs no scripts, and a font from
 * Google Fonts would hand every reader's IP address to Google.
 */
@font-face {
  font-family: Nunito;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-bold.woff") format("woff");
}
@font-face {
  font-family: Nunito;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/nunito-black.woff") format("woff");
}

/* The app's palette, the same six as style.css and the admin panel, except --muted, darkened
   from the app's #8A7A6D so small text passes 4.5:1 on kraft. */
:root {
  --ink: #4A3B31;
  --paper: #FFF9EE;
  --board: #F4EFE6;
  --kraft: #F3E3C3;
  --muted: #6E6157;
  --sun: #FFD66E;
  --white: #FFFFFF;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--board);
  color: var(--ink);
  font: 700 17px/1.45 Nunito, ui-rounded, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 0;
}

/* The pitch */
.hero { display: grid; gap: 28px; }
/* The brand on the left, the other language on the right. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang {
  display: inline-block; padding: 7px 16px;
  color: var(--ink); background: var(--white); text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
  font-size: 15px; font-weight: 900; line-height: 1.3;
}
.lang:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0; }
.brand img { width: 52px; height: auto; }
.brand span { font-weight: 900; font-size: 28px; letter-spacing: -0.01em; }

h1 {
  margin: 28px 0 0;
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { margin: 14px 0 0; color: var(--muted); font-size: 18px; max-width: 30em; }
.lede b { color: var(--ink); font-weight: 900; }

/*
 * The store badges, drawn in the shape of the official black ones. Apple's
 * rules: black, App Store first in any row, never recoloured, clear space of a
 * quarter of the badge height (the 14px gap). Google's badge is the same height
 * or larger. Swap in the official artwork from toolbox.marketingtools.apple.com
 * and partnermarketinghub.withgoogle.com when there is time to.
 */
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin: 26px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 16px 0 13px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #A6A6A6; border-radius: 10px;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.badge svg { flex: none; }
.badge small { display: block; font-size: 11px; line-height: 1.1; font-weight: 500; letter-spacing: 0.01em; }
.badge strong { display: block; font-size: 22px; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.badge.play small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.play strong { font-family: "Product Sans", Arial, sans-serif; font-weight: 500; font-size: 21px; }

/* The pictures */
.shots { position: relative; padding: 4px 0 14px; }
.bill {
  position: relative; z-index: 2;
  width: min(330px, 84%);
  margin: 0 auto;
  transform: rotate(1.4deg);
}
.bill img { display: block; width: 100%; height: auto; }
.lists { display: none; }

/* A ticket, as on the map: cream paper, a kraft strip, a hard shadow. */
.how {
  margin: 34px 0 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  overflow: hidden;
}
.how h2 {
  margin: 0; padding: 10px 18px;
  background: var(--kraft);
  border-bottom: 2px dashed var(--ink);
  font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.how ol { list-style: none; margin: 0; padding: 6px 18px 10px; counter-reset: s; }
.how li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 10px 0; }
.how li + li { border-top: 2px solid var(--kraft); }
.how li::before {
  content: counter(s);
  flex: none; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  font-weight: 900; font-size: 15px; transform: translateY(-2px);
}
.how b { font-weight: 900; }
.how span { color: var(--muted); }

.author {
  display: flex; gap: 20px; align-items: center;
  margin: 22px 0 0; padding: 18px 20px;
  border: 2px dashed rgba(74, 59, 49, .45); border-radius: 20px;
}
.author img {
  flex: none; display: block; width: 84px; height: 84px; object-fit: cover;
  border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.author h2 { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.author p { margin: 4px 0 12px; font-size: 16px; }

/* Everything you can tap is a button, drawn the way the app draws one. */
.button {
  display: inline-block;
  padding: 7px 14px;
  color: var(--ink);
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  font-size: 15px; font-weight: 900; line-height: 1.3;
  text-decoration: none;
}
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

footer {
  margin: 40px 0 0; padding: 22px 0 36px;
  border-top: 2px dashed rgba(74, 59, 49, .35);
  font-size: 14px; color: var(--muted);
}
footer p { margin: 0 0 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 520px) {
  .author { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 420px) {
  .stores { gap: 12px; }
  .badge { height: 48px; padding: 0 12px 0 10px; gap: 7px; }
  .badge svg { transform: scale(.86); }
  .badge small { font-size: 10px; }
  .badge strong { font-size: 19px; }
  .badge.play small { font-size: 9px; }
  .badge.play strong { font-size: 18.5px; }
}

@media (min-width: 860px) {
  .wrap { padding-top: 44px; }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; margin-top: 16px; }
  .shots { min-height: 660px; }
  .bill { position: absolute; width: 320px; right: 0; top: 0; }
  .lists {
    display: block; position: absolute; left: 0; bottom: 0; z-index: 1;
    width: 320px; height: auto; transform: rotate(-2.5deg);
  }
  .how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
  .how li + li { border-top: 0; }
  footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
  footer p { margin: 0; }
}
