:root {
  --brand: #d84f4f;
  --accent: #c94545;
  --bg: #ffffff;
  --surface: #f7f4f4;
  --text: #1f1b1b;
  --muted: #5f5656;
  --border: #e6dede;
  --on-brand: #ffffff;
  --radius: 16px;
  --max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a80;
    --bg: #161212;
    --surface: #221c1c;
    --text: #f3eded;
    --muted: #b9adad;
    --border: #3a3131;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  background: var(--brand);
  color: var(--on-brand);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

header.top a {
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch button {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--on-brand);
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--on-brand);
  color: var(--brand);
}

.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.hero h1 {
  margin: 16px 0 4px;
  font-size: 2.2rem;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto;
  max-width: 34em;
  color: var(--muted);
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.button.disabled {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default;
}

/* Official Google Play badge; the image includes its own padding. */
.store-badge {
  display: inline-block;
  margin-top: 16px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 80px;
  border-radius: 0;
}

.legal {
  margin: 12px 0 0;
  font-size: 13px;
}

section {
  padding: 16px 0;
}

h2 {
  font-size: 1.35rem;
  margin: 24px 0 8px;
}

h3 {
  font-size: 1.1rem;
  margin: 20px 0 4px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.cards strong {
  display: block;
  margin-bottom: 4px;
}

.app-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.app-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: none;
}

.app-card span {
  display: block;
  color: var(--muted);
}

.note {
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 12px 16px;
}

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

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

footer a {
  margin-right: 16px;
}

[hidden] {
  display: none !important;
}

/* E-mail address kept out of the HTML (no mailto, not selectable) so
   simple spam bots cannot harvest it; same rule lives in home.css. */
.mail {
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
  font-weight: 600;
}

.mail::after {
  content: "\73 \65 \62 \61 \72 \74 \2e \63 \6f \6e \74 \61 \63 \74 \40 \67 \6d \61 \69 \6c \2e \63 \6f \6d ";
}
