:root {
  color-scheme: dark;
  --background: #161616;
  --surface: #202020;
  --surface-strong: #292929;
  --border: #454545;
  --brand: #ed1c24;
  --text: #ffffff;
  --muted: #c9c9c9;
  --success: #65c985;
  --danger-soft: #ffb5b8;
  --content: 72rem;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% -10%, rgba(237, 28, 36, 0.18), transparent 32rem),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

a { color: #ff7a7f; }
a:hover { color: #ffffff; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--text);
  color: var(--background);
}

.skip-link:focus { top: 1rem; }

header,
main,
footer {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand img { width: 3rem; height: 3rem; }

nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); }

main { padding-block: clamp(2rem, 7vw, 6rem); }

.hero { max-width: 52rem; }

.eyebrow {
  color: #ff858a;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { margin: .65rem 0 1rem; font-size: clamp(2.25rem, 7vw, 4.8rem); letter-spacing: -.055em; }
h2 { margin-top: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { margin-bottom: .25rem; }
p { max-width: 72ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.3rem); }
.muted, small { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.play-store-button {
  gap: .7rem;
  padding-inline: 1.2rem;
  box-shadow: 0 .8rem 2rem rgba(237, 28, 36, .18);
}

.external-arrow {
  font-size: 1.15em;
  line-height: 1;
}

.store-note {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .94rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.document-section,
.action-panel {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

.card { display: block; padding: 1.25rem; color: var(--text); text-decoration: none; }
.card:hover { border-color: #777; background: var(--surface-strong); }
.card p { color: var(--muted); }
.card .arrow { color: #ff7a7f; font-weight: 800; }

.document { max-width: 54rem; }
.document-section { margin-block: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
.document-section ul { padding-left: 1.25rem; }
.document-section li + li { margin-top: .45rem; }

.notice {
  margin-block: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: .3rem solid var(--brand);
  border-radius: .5rem;
  background: var(--surface);
}

.action-panel { margin-top: 2rem; padding: clamp(1rem, 4vw, 2rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }

button,
.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 0;
  border-radius: .85rem;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { background: #ff3138; color: #fff; }
button:disabled { cursor: not-allowed; opacity: .48; }
.button.secondary { background: var(--surface-strong); border: 1px solid var(--border); }
.danger { color: var(--danger-soft); }
.success { color: var(--success); }

.status {
  min-height: 1.5rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: .8rem;
  background: var(--surface);
}

.status:empty { display: none; }

footer {
  margin-top: 3rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 44rem) {
  header { align-items: flex-start; flex-direction: column; }
  main { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
