:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #111418;
  --muted: #5b6470;
  --accent: #1f6fd6;
  --accent-text: #ffffff;
  --border: #e1e5ea;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #f2f4f7;
    --muted: #9aa4b1;
    --accent: #4f8fe8;
    --border: #262c35;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 24px;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 64px 0 40px;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* Apple's official badge: at least 40px tall, with clear space around it and no restyling. */
.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.hero-shot img,
.hero-shot video {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* The preview video is the bare screen recording; the rounded corners give it the look of
   a phone screen, like the screenshots below, and the hairline in the cards' border color
   keeps the light ice from dissolving into the page. */
.hero-shot video {
  border: 1px solid var(--border);
  border-radius: 40px;
  background: #0f1420;
}

/* Sections */

section {
  padding: 40px 0;
}

section h2 {
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

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

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

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

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

.steps strong {
  display: block;
  margin-bottom: 2px;
}

.steps span {
  color: var(--muted);
}

.screens {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .screens {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .screens {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screens figure {
  margin: 0;
  text-align: center;
}

.screens img {
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 0 auto 12px;
}

.screens figcaption {
  color: var(--muted);
  font-size: 15px;
}

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

/* Legal pages */

.legal {
  max-width: 720px;
}

.legal h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}

.legal .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.legal p,
.legal li {
  color: var(--text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

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

/* Language switcher: one row of short links, the current language set apart. */
.lang-switch {
  display: flex;
  gap: 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Root pages: shown only when the script that picks the visitor's language cannot run. */
.language-choice {
  padding: 80px 0;
  text-align: center;
}

.language-choice ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 1.2rem;
}
