/* Shared by the homepage, the app pages and the legal index. Light mode only, on purpose. */
:root {
  --page: #ffffff;
  --ink: #1b1b1d;
  --muted: #5c5c62;
  --faint: #6e6e74;
  --line: #e9e8e5;
  --soft: #f7f6f3;
  --accent: #2b6f68;
  --shadow: 0 1px 2px rgba(20,20,25,.06), 0 12px 30px -12px rgba(20,20,25,.22);
  --display: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.55 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 56px 24px 40px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.icon { width: 48px; height: 48px; border-radius: 22%; box-shadow: 0 1px 3px rgba(0,0,0,.14); flex-shrink: 0; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.badge svg { width: 15px; height: 15px; }
.badge:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }
.badge.solid { background: var(--ink); color: var(--page); border-color: var(--ink); }
.badge.solid:hover { background: #000; }

/* Phone screenshots: one treatment everywhere, upright, same corners, top of the screen showing */
.screen {
  width: 100%; aspect-ratio: 600 / 1080; object-fit: cover; object-position: top;
  border-radius: 16px 16px 0 0; border: 1px solid rgba(0,0,0,.08); border-bottom: 0; background: #fff;
  box-shadow: 0 8px 24px -10px rgba(20,20,25,.28);
}

/* Small pills for facts like ratings and languages */
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; font-weight: 500; }
.facts li { padding: 4px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.stars { color: #b07d00; letter-spacing: 1px; }

/* Award under the subtitle. The medal hangs on its own, so a wrapped second line lines up under the placing */
.award-line { margin: 0; font-size: .9rem; line-height: 1.35; }
.award-line a { position: relative; z-index: 1; display: inline-grid; grid-template-columns: auto 1fr; column-gap: 6px; color: var(--muted); text-decoration: none; }
.award-line svg { width: 15px; height: 15px; margin-top: 1px; }
.award-line b { margin-right: 3px; color: #7a5300; font-weight: 700; }
.award-line.bronze b { color: #7a4320; }
.award-line a:hover span { text-decoration: underline; }

/* The dotted trail line between sections, with a start dot and an end ring */
.trail-line { position: relative; height: 44px; margin: 56px 6px 40px; color: #b9c9c5; }
.trail-line svg { width: 100%; height: 100%; overflow: visible; }
.trail-line path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .5 9; vector-effect: non-scaling-stroke; }
.trail-line::before, .trail-line::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; }
.trail-line::before { left: -5px; top: 29px; background: var(--accent); }
.trail-line::after { right: -5px; top: 5px; border: 2px solid var(--accent); background: var(--page); }

footer.site { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- Page headers (app and legal pages) ---------- */

.hero { max-width: 48rem; margin-bottom: 40px; }
.hero .lede, .hero .sub { max-width: 40rem; }
.hero h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.lede { font-size: 1.2rem; line-height: 1.5; margin: 0 0 20px; color: #3a3a3f; }
.sub { color: var(--muted); margin: 0 0 20px; }

/* ---------- App pages ---------- */

.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-weight: 500; font-size: .95rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; align-items: start; margin-bottom: 36px; }
.app-head .icon { width: 96px; height: 96px; }
.app-head-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app-head h1 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.app-head .tagline { margin: 0; font-size: 1.15rem; color: var(--muted); }
.app-head .facts, .app-head .stores { margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px 28px 0; overflow: hidden; align-items: start; margin-bottom: 44px; border-radius: 24px; background: var(--tint, var(--soft)); }

.app-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.app-body h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; }
.app-body p { margin: 0 0 14px; color: #333338; max-width: 36rem; }
.app-body ul { margin: 0; padding-left: 1.1em; color: #333338; }
.app-body li { margin-bottom: 6px; }
.help { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.help a { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.help a:hover { text-decoration-color: currentColor; }
.aside > div + div { margin-top: 32px; }

/* Legal index */
.legal-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.legal-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-list span { font-weight: 600; }
.legal-list nav { display: flex; gap: 16px; }

@media (max-width: 860px) {
  .wrap { padding: 36px 16px 32px; }
  .trail-line { margin: 40px 6px 28px; }
  .app-head { grid-template-columns: minmax(0, 1fr); }
  .app-head .icon { width: 80px; height: 80px; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 20px 0; gap: 14px; align-items: flex-start; }
  .gallery .screen { width: 200px; flex-shrink: 0; scroll-snap-align: center; }
  .app-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
