:root {
  color-scheme: dark;
  --bg: #21130f;
  --bg-deep: #140d0a;
  --panel: #332019;
  --panel-soft: #432a1f;
  --text: #fff6e9;
  --muted: #d8c2a6;
  --accent: #f6a837;
  --accent-strong: #ffbd59;
  --accent-text: #251308;
  --line: rgba(255, 218, 166, 0.22);
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(246, 168, 55, 0.16), transparent 34rem),
    linear-gradient(150deg, var(--bg), var(--bg-deep));
}

.page-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 14px;
  display: flex;
  align-items: center;
}

.download-card {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(67, 42, 31, 0.96), rgba(38, 24, 18, 0.98));
  box-shadow: 0 20px 50px var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #1b100c;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

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

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 22px;
}

.version-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 13, 10, 0.44);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.83rem;
}

strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.download-button {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-text);
  font-size: 1.22rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(246, 168, 55, 0.26);
}

.download-button:focus-visible {
  outline: 4px solid rgba(255, 246, 233, 0.78);
  outline-offset: 4px;
}

.store-note {
  margin: 14px 0 20px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.notice,
.changes {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 13, 10, 0.36);
}

.notice p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.1rem;
}

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

@media (max-width: 560px) {
  .page-shell {
    align-items: stretch;
    padding: 12px;
  }

  .download-card {
    padding: 18px;
    border-radius: 14px;
  }

  .brand-row {
    align-items: flex-start;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    text-align: left;
  }
}
