@font-face {
  font-family: 'AlbertSans';
  src: url('/assets/font/AlbertSans-Regular.woff2') format('woff2'),
    url('/assets/font/AlbertSans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlbertSans';
  src: url('/assets/font/AlbertSans-Medium.woff2') format('woff2'),
    url('/assets/font/AlbertSans-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlbertSans';
  src: url('/assets/font/AlbertSans-Bold.woff2') format('woff2'),
    url('/assets/font/AlbertSans-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2aa3dd;
  --blue-dark: #1f7fb0;
  --blue-light: #82cbec;
  --yellow: #f6c863;
  --yellow-light: #fff3c3;
  --text: #1d2733;
  --muted: #5b6573;
  --background: #ffffff;
  --surface: #f4f8fb;
  --card: #ffffff;
  --border: #e3eaf0;
  --tile: #e8f5fc;
  --shadow: 0 12px 32px rgba(29, 39, 51, 0.1);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4bb6e8;
    --blue-dark: #2aa3dd;
    --text: #edf2f6;
    --muted: #a9b4c0;
    --background: #10161d;
    --surface: #161e27;
    --card: #1c2631;
    --border: #2a3644;
    --tile: #eaf6fc;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: AlbertSans, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  font-size: 21px;
}

.brand img {
  width: 40px;
  height: 40px;
}

/* the C of the logo sits below the middle of the image, under the crown */
.brand span {
  position: relative;
  top: 4px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.button-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(42, 163, 221, 0.35);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-outline {
  color: var(--text);
  border: 2px solid var(--border);
  background: var(--card);
}

.button-outline:hover {
  border-color: var(--blue);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Download: the Google Play badge, the installation from Safari on iPhone, the web app */

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge img {
  width: auto;
  height: 56px;
}

.ios-only {
  display: none;
}

html[data-platform='ios'] .ios-only {
  display: block;
}

html[data-platform='ios'] .not-ios {
  display: none;
}

.ios-install summary {
  list-style: none;
  cursor: pointer;
}

.ios-install summary::-webkit-details-marker {
  display: none;
}

.ios-install[open] {
  flex-basis: 100%;
}

.ios-install ol {
  margin: 14px 0 0;
  padding: 18px 18px 18px 40px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.ios-install li + li {
  margin-top: 6px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 85% 20%, rgba(130, 203, 236, 0.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(246, 200, 99, 0.35), transparent 40%),
    var(--surface);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow-light);
  color: #6b4e00;
  font-size: 14px;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero .lead {
  margin: 22px 0 32px;
  max-width: 560px;
  font-size: 20px;
  color: var(--muted);
}

.hero .note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.shot {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-visual .shot {
  width: min(340px, 80vw);
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px rgba(29, 39, 51, 0.28);
}

.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.badge strong {
  display: block;
}

.badge .badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tile);
}

.badge .badge-icon img {
  width: 26px;
  height: 26px;
}

.badge-points {
  top: 30%;
  left: 0;
}

.badge-prize {
  bottom: 30%;
  right: 0;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tile);
}

.tile img {
  width: 34px;
  height: 34px;
}

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
}

.steps h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Categories */

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.categories li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 500;
}

.categories img {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  background: var(--tile);
}

/* Screenshots */

.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Inner pages */

.container.narrow {
  max-width: 820px;
}

.section-tight {
  padding-top: 0;
}

.page-hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 0%, rgba(130, 203, 236, 0.45), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(246, 200, 99, 0.3), transparent 45%),
    var(--surface);
}

.page-hero h1 {
  font-size: clamp(36px, 4.8vw, 52px);
  letter-spacing: -0.02em;
}

.page-hero .lead {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 20px;
  color: var(--muted);
}

.card a:not(.button),
.faq a {
  color: var(--blue);
}

.card-action {
  margin-top: 20px !important;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tile);
  color: #1f7fb0;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--muted);
}

/* Guides */

.guide-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.guide-card h3 {
  margin-top: 0;
}

.guide-card .read-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-weight: bold;
}

.back {
  margin: 0 0 18px;
  font-weight: bold;
}

.back a {
  color: var(--blue);
  text-decoration: none;
}

.page-hero .container.narrow h1 {
  font-size: clamp(32px, 4.4vw, 46px);
}

.prose {
  font-size: 18px;
  line-height: 1.75;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 28px);
}

.prose h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li + li {
  margin-top: 8px;
}

.prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.prose th {
  background: var(--surface);
  font-weight: bold;
}

.prose .tip {
  margin-top: 44px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--tile);
  color: #1d2733;
}

.prose .tip p {
  margin: 0;
}

.more {
  text-align: center;
}

.more h2 {
  font-size: 28px;
}

.more p {
  margin: 12px 0 24px;
  color: var(--muted);
}

/* Call to action */

.cta {
  padding: 64px 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #36b0e6, #1f7fb0);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.cta p {
  margin: 16px auto 32px;
  max-width: 560px;
  font-size: 19px;
  opacity: 0.92;
}

.cta .actions {
  justify-content: center;
}

.cta .button-outline {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
}

.cta .button-outline:hover {
  border-color: #ffffff;
}

.cta .ios-install summary {
  background: #ffffff;
  color: #1f7fb0;
  box-shadow: none;
}

/* Footer */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .languages {
  gap: 6px;
}

.languages a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.languages a[aria-current='page'] {
  background: var(--tile);
  color: #1f7fb0;
}

/* Responsive */

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .site-header .button-small {
    margin-left: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .actions {
    justify-content: center;
  }

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

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

  .screens {
    display: flex;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 16px;
    scroll-snap-type: x mandatory;
  }

  .screens .shot {
    flex: none;
    width: min(260px, 70vw);
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero .lead {
    font-size: 18px;
  }

  .section {
    padding: 64px 0;
  }

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

  .badge {
    font-size: 13px;
    padding: 10px 12px;
  }

  .badge-points {
    left: -4px;
  }

  .badge-prize {
    right: -4px;
  }

  .cta {
    padding: 48px 20px;
    border-radius: 24px;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
