/* The look of the apps, carried over to the website: the font, the colours
   and the buttons that stand on a darker edge. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #27336b;
  --ink-soft: #5d678f;
  --background: #f5f9ff;
  --background-top: #d9ecff;
  --card: #fff;
  --card-edge: #c9d6ee;
  --hour: #ff5a3c;
  --hour-edge: #c83c22;
  --minute: #0f9bae;
  --good: #18a058;
  --next: #2b8aef;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(var(--background-top), var(--background) 28rem) no-repeat var(--background);
  font: 400 1.125rem/1.6 "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: #1c6fd0; }

.top, main, .bottom { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.languages a { margin-left: .9rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.languages a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.12; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; font-weight: 600; }
h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 .4rem; font-weight: 600; }
p { margin: 0 0 1rem; }
section { padding: 3rem 0; }

.lead { font-size: 1.3rem; max-width: 34rem; }
.note { color: var(--ink-soft); font-size: 1rem; }

/* Start of an app page: text on the left, phones on the right. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-top: 2rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; }
.phone { width: 31%; max-width: 15rem; border-radius: 1.6rem; border: .4rem solid #1b2247; background: #1b2247; box-shadow: 0 .9rem 2rem rgba(39, 51, 107, .25); overflow: hidden; }
.phone:nth-child(2) { margin-top: 2.2rem; }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.2rem; }

.button { display: inline-block; padding: .85rem 1.6rem; border-radius: 1.1rem; font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.button.store { color: #fff; background: var(--hour); box-shadow: 0 .35rem 0 var(--hour-edge); }
.button.store:active { transform: translateY(.3rem); box-shadow: 0 .05rem 0 var(--hour-edge); }
.button.soon { color: var(--ink); background: var(--card); box-shadow: 0 .35rem 0 var(--card-edge); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.card, .app-card { background: var(--card); border-radius: 1.5rem; padding: 1.4rem 1.5rem; box-shadow: 0 .35rem 0 var(--card-edge); }
.card p, .app-card p { margin-bottom: 0; }
.card .dot { display: inline-block; width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-bottom: .7rem; }
.orange { background: #f25c11; } .pink { background: #ee4b83; } .purple { background: #7c5cf0; }
.blue { background: #2b8aef; } .green { background: #18a058; } .teal { background: var(--minute); }

.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-bottom: .7rem; color: #fff; background: var(--next); font-weight: 700; font-size: 1.3rem; }

.panel { background: var(--card); border-radius: 1.75rem; padding: 2rem 1.75rem; box-shadow: 0 .35rem 0 var(--card-edge); }
.panel > :last-child { margin-bottom: 0; }

.app-card { display: flex; flex-direction: column; gap: .6rem; }
.app-card h3 { font-size: 1.5rem; margin: 0; }

/* Overview: the apps in groups, with links to jump to each. */
.group-nav { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: -1.5rem; }
.group-nav a { padding: .45rem 1rem; border-radius: 999px; background: var(--card); box-shadow: 0 .25rem 0 var(--card-edge); color: var(--ink); font-weight: 500; text-decoration: none; }
.group { padding: 2rem 0 1rem; scroll-margin-top: 1rem; }
.group h2 { margin-bottom: .4rem; }
.group-intro { color: var(--ink-soft); max-width: 40rem; margin-bottom: 1.4rem; }
/* A group with one or two apps keeps cards as wide as in a full row. */
.group .cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.app-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: .6rem; }
.app-card .button { font-size: 1.05rem; padding: .6rem 1.1rem; }
.more { font-weight: 600; }

details { background: var(--card); border-radius: 1.1rem; padding: .9rem 1.2rem; margin-bottom: .8rem; box-shadow: 0 .25rem 0 var(--card-edge); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: .6rem 0 0; }

/* Privacy, support and imprint: plain text in a narrow column. */
.text { max-width: 44rem; padding: 2rem 0 3rem; }
.text h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.text h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.text ul { padding-left: 1.3rem; }
.text li { margin-bottom: .4rem; }
address { font-style: normal; margin-bottom: 1rem; }

.bottom { padding-top: 2rem; padding-bottom: 2.5rem; color: var(--ink-soft); font-size: 1rem; }
.bottom nav a { margin-right: 1.4rem; color: var(--ink-soft); }
.bottom p { margin-top: .8rem; }
