:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #102033;
  --muted: #5d6b7c;
  --border: #dfe8f2;
  --accent: #2f80ed;
  --accent-soft: #e8f2ff;
  --notice: #fff8e8;
  --notice-border: #f1d89b;
  --shadow: 0 18px 50px rgba(30, 64, 104, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  gap: 18px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.language-switcher {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.nav a {
  padding: 8px 13px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #cfe3ff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  color: var(--muted);
}

.language-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 3px 5px;
}

.language-switcher button.is-active {
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 34px 0 22px;
}

.hero-copy,
.page-hero {
  padding: 28px 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

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

.lead {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(1.18rem, 3vw, 1.55rem);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 12px;
  padding: 13px 22px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.22);
}

.app-store-button:hover {
  text-decoration: none;
  background: #1f6fd8;
}

.hero-card,
.card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -55px;
  bottom: -85px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.status-dot {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #65b5ff);
}

.hero-card h2,
.hero-card p {
  position: relative;
  z-index: 1;
}

.section,
.page {
  padding: 26px 0;
}

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

.card {
  padding: 22px;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
  margin-bottom: 0;
}

.emphasis {
  background: linear-gradient(180deg, #fff, #eef6ff);
  border-color: #cfe3ff;
}

.notice {
  background: var(--notice);
  border-color: var(--notice-border);
}

.content-card {
  margin-bottom: 16px;
}

.split,
.faq-list {
  display: grid;
  gap: 16px;
}

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

.email-link {
  font-weight: 800;
  word-break: break-word;
}

ul,
ol {
  color: var(--muted);
  padding-inline-start: 1.25rem;
}

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

.site-footer {
  display: grid;
  gap: 12px;
  padding: 34px 0 44px;
  color: var(--muted);
}

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

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

[dir="ltr"] .brand,
[dir="ltr"] .hero-copy,
[dir="ltr"] .page,
[dir="ltr"] .site-footer {
  text-align: left;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .nav {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 560px;
  }

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

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

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

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1120px);
  }

  .nav a {
    padding: 8px 11px;
  }

  .hero-copy,
  .page-hero {
    padding: 20px 0;
  }

  .card {
    padding: 18px;
  }
}
