/* The store's site. Written for a phone first; wider screens only add columns. */

:root {
  color-scheme: light dark;
  --page: #f4f8f8;
  --card: #ffffff;
  --text: #10242b;
  --muted: #4a6067;
  --line: #d5e0e2;
  --accent: #0a6a72;
  --on-accent: #ffffff;
  --mark: #8a5a00;
  --amber: #fdbe4b;
  --on-amber: #1c1400;
  --hero-from: #16395a;
  --hero-to: #12909a;
  --shadow: 0 6px 20px rgba(16, 36, 43, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0c1b22;
    --card: #132a33;
    --text: #e6f0f1;
    --muted: #a3b8bd;
    --line: #24414b;
    --accent: #5cc8d1;
    --on-accent: #06232a;
    --mark: #fdbe4b;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible,
.shots:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

code {
  font: 0.95em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Buttons: tall enough for a thumb. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 24px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button.main {
  background: var(--accent);
  color: var(--on-accent);
}

/* The top of the front page, in the colours of the icon. */

.hero {
  padding: 48px 0 44px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #ffffff;
  text-align: center;
}

.hero .logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  letter-spacing: -0.01em;
}

.tagline {
  max-width: 26em;
  margin: 12px auto 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.hero .actions {
  max-width: 360px;
  margin: 28px auto 0;
}

.hero .button {
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.hero .button.main {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--on-amber);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.facts li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Sections of the front page. */

.part {
  padding: 44px 0;
}

.part + .part {
  border-top: 1px solid var(--line);
}

.part > .wrap > h2 {
  margin-bottom: 8px;
}

.lead {
  max-width: 40em;
  color: var(--muted);
}

/* Screenshots: swiped sideways on a phone, side by side on a wide screen. */

.shots {
  display: flex;
  gap: 16px;
  margin: 24px -20px 0;
  padding: 4px 20px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  flex: 0 0 auto;
  width: min(66vw, 260px);
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 16px;
  background: var(--card);
}

.tiles h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.tiles p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.after {
  max-width: 40em;
  margin-top: 18px;
}

.questions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.questions details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.questions summary {
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
}

.questions details p {
  padding: 0 16px 16px;
  color: var(--muted);
}

.get {
  text-align: center;
}

.get .lead {
  margin: 0 auto;
}

.get .actions {
  max-width: 360px;
  margin: 24px auto 0;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

footer li a {
  display: inline-block;
  padding: 12px 10px;
}

/* A page that is one card: the page behind a link to an app, and the one for a wrong address. */

body.single {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.card .logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.card .store {
  margin-top: 12px;
  color: var(--mark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card h1 {
  margin-top: 4px;
  font-size: 1.8rem;
  overflow-wrap: anywhere;
}

.card .where {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card .text {
  margin-top: 16px;
}

.card .actions {
  margin-top: 24px;
}

.card .note {
  margin-top: 18px;
  font-size: 0.95rem;
}

.card .note a {
  display: inline-block;
  padding: 10px;
}

[hidden] {
  display: none !important;
}

/* Wider than a phone. */

@media (min-width: 600px) {
  .hero {
    padding: 72px 0 64px;
  }

  .hero .actions,
  .get .actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .part {
    padding: 64px 0;
  }

  h2 {
    font-size: 1.9rem;
  }

  .tiles {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .shots {
    justify-content: center;
    margin: 28px 0 0;
    padding: 4px 0 14px;
    overflow: visible;
  }

  .shots figure {
    width: 232px;
  }

  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps li {
    flex-direction: column;
    align-items: flex-start;
  }
}
