:root {
  color-scheme: light;
  --ink: #172b44;
  --blue: #245b91;
  --yellow: #ffd450;
  --muted: #52647a;
  --border: #dbe3ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f7fb;
  color: var(--ink);
  font: 17px/1.6 system-ui, sans-serif;
}

main, header, footer {
  max-width: 1060px;
  margin: auto;
  padding: 20px;
}

header, .brand {
  display: flex;
  align-items: center;
}

header { justify-content: space-between; gap: 12px; }
.brand { gap: 8px; font-size: 24px; font-weight: 800; }
.language { display: flex; gap: 6px; }
.language button { min-height: 44px; padding: 6px 12px; }
.language button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }

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

button, .btn {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #a05e00;
  outline-offset: 3px;
}

.hero {
  padding: clamp(24px, 5vw, 55px);
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.hero h1 { margin: 10px 0; font-size: clamp(32px, 5vw, 55px); line-height: 1.1; }
.hero p { max-width: 55ch; }
.hero .btn { background: var(--yellow); color: var(--ink); }
.hero a:focus-visible { outline-color: white; }
h2 { margin-block: 34px 12px; line-height: 1.2; }
h3 { line-height: 1.3; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

.tile, .panel, details {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.tile h3 { margin: 6px 0; }
.tile p { margin: 8px 0 12px; color: var(--muted); }
.logo { object-fit: contain; vertical-align: middle; }

.actions, .stores, .address {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.secondary { background: #e8eff7; color: var(--ink); }
.stores { gap: 12px 16px; margin: 14px 0 18px; }
.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.store img { display: block; width: auto; }
.apple-badge { height: 44px; }
.play-badge { height: 54px; margin: -5px; }

details { margin: 14px 0; scroll-margin-top: 12px; }
summary { cursor: pointer; font-size: 20px; font-weight: 750; }
summary img { margin-inline: 8px; width: 28px; height: 28px; }
ol { padding-inline-start: 1.5em; }
ol li + li { margin-top: 8px; }
.panel ol { margin: 0; }

.server { margin-block: 12px; }
.server label { display: block; font-weight: 700; }
.field {
  flex: 1 1 280px;
  min-width: 0;
  padding: 8px 10px;
  background: white;
  border: 2px solid #3574ad;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.copy-status { display: block; font-size: 14px; }

.mock {
  max-width: 590px;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid #c1d0e0;
  border-radius: 16px;
  background: #edf3fa;
}

.mock figcaption { color: var(--muted); font-size: 14px; }
.diagram { margin: 10px 0 0; padding: 0; list-style: none; }
.diagram li { position: relative; padding: 7px 12px 7px 44px; background: white; border-radius: 8px; }
.marker {
  position: absolute;
  top: 7px;
  left: 9px;
  width: 25px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

@media (max-width: 500px) {
  main, header, footer { padding: 14px; }
  .tile, .panel, details { padding: 16px; }
}
