:root {
  color: #222;
  background: #f8f6f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 168, 72, 0.18), transparent 34rem),
    #f8f6f2;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, #ff9a30, #ff6f1a);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(222, 104, 21, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
}

.brand small {
  margin-top: 3px;
  color: #756f67;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c65814;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.summary {
  max-width: 600px;
  margin: 18px 0 0;
  color: #655f58;
  font-size: 17px;
  line-height: 1.75;
}

.download-card,
.steps {
  border: 1px solid rgba(73, 58, 45, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(54, 43, 33, 0.08);
}

.download-card {
  padding: clamp(22px, 5vw, 38px);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6b655f;
  font-size: 14px;
}

.status-row p {
  margin: 0;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b6aea5;
}

.status-dot[data-state="available"] {
  background: #20a35b;
  box-shadow: 0 0 0 5px rgba(32, 163, 91, 0.12);
}

.status-dot[data-state="unavailable"] {
  background: #d28a2e;
}

.noscript-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #7a4a12;
  background: #fff5e8;
  font-size: 13px;
  line-height: 1.65;
}

.download-card h2 {
  margin: 18px 0 22px;
  font-size: 26px;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.release-facts div {
  min-width: 0;
  padding: 14px 15px;
  border-radius: 15px;
  background: #f8f6f2;
}

.release-facts dt {
  color: #81786f;
  font-size: 12px;
}

.release-facts dd {
  margin: 6px 0 0;
  font-weight: 750;
}

.notes {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid #ece7e1;
}

.notes h3,
.steps h2 {
  margin: 0 0 10px;
}

.notes p,
.steps li,
.button-note,
.integrity p,
footer {
  color: #69625b;
  line-height: 1.7;
}

.notes p {
  margin: 0;
  white-space: pre-line;
}

.download-button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #ff8f25, #f36a16);
  box-shadow: 0 12px 28px rgba(233, 104, 20, 0.2);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.download-button[aria-disabled="true"] {
  cursor: not-allowed;
  color: #8c857d;
  background: #e9e5e0;
  box-shadow: none;
}

.button-note {
  margin: 12px 6px 0;
  font-size: 13px;
  text-align: center;
}

.integrity {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ece7e1;
}

.integrity summary {
  cursor: pointer;
  color: #5d5650;
  font-weight: 700;
}

.integrity code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #28231f;
  color: #f4eee7;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  user-select: all;
}

.steps {
  margin-top: 20px;
  padding: 24px 28px;
}

.steps ol {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 7px;
}

footer {
  padding: 28px 4px 0;
  font-size: 13px;
}

footer p {
  margin: 6px 0;
}

footer nav {
  display: flex;
  gap: 18px;
  margin: 12px 0;
}

footer a {
  color: #9c4614;
}

.footer-note {
  max-width: 620px;
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 760px);
  }

  .brand {
    margin-bottom: 30px;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }
}
