:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #23272d;
  background: #f1f0ed;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(169, 15, 20, 0.08), transparent 28rem),
    #f1f0ed;
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 36px 20px;
  place-items: center;
}

.download-panel {
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid #dedcd7;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(31, 35, 40, 0.12);
}

.brand-header,
.intro,
.access-card,
.release-card,
.installation,
footer {
  padding-inline: clamp(24px, 6vw, 56px);
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  border-bottom: 1px solid #eceae6;
}

.brand-mark {
  display: inline-flex;
  height: 42px;
  align-items: center;
  border-radius: 7px;
  padding: 0 13px;
  background: #a90f14;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #58615f;
  font-size: 13px;
  font-weight: 650;
}

.security-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27875b;
  box-shadow: 0 0 0 4px rgba(39, 135, 91, 0.12);
}

.intro {
  padding-top: 48px;
  padding-bottom: 34px;
}

.eyebrow,
.release-label {
  margin: 0 0 9px;
  color: #a90f14;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: #202429;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.lede {
  max-width: 570px;
  margin: 22px 0 0;
  color: #656c70;
  font-size: 17px;
  line-height: 1.6;
}

.access-card,
.release-card {
  margin: 0 clamp(16px, 3vw, 28px);
  padding-block: 28px;
  border: 1px solid #e2dfd9;
  border-radius: 18px;
  background: #f9f8f5;
}

.access-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
}

.step-icon,
.app-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #a90f14;
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.card-content h2,
.release-card h2,
.installation h2 {
  margin: 0;
  color: #262a2f;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card-content > p {
  margin: 7px 0 22px;
  color: #697074;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #3f4448;
  font-size: 13px;
  font-weight: 750;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  height: 48px;
  border: 1px solid #c8c6c1;
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: #202429;
}

input:focus {
  border-color: #a90f14;
  box-shadow: 0 0 0 3px rgba(169, 15, 20, 0.12);
}

button,
.download-button {
  border: 0;
  border-radius: 10px;
  background: #a90f14;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

button {
  min-height: 48px;
  padding: 0 20px;
}

button:hover,
.download-button:hover {
  background: #8e0c11;
}

button:active,
.download-button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message {
  min-height: 21px;
  margin: 10px 0 0 !important;
  font-size: 14px;
}

.message.is-error {
  color: #a20c11;
}

.release-topline {
  display: flex;
  align-items: center;
  gap: 15px;
}

.release-label {
  margin-bottom: 4px;
}

.release-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.release-details div {
  padding: 15px;
  border-radius: 11px;
  background: #fff;
}

.release-details dt {
  margin-bottom: 6px;
  color: #747a7e;
  font-size: 12px;
}

.release-details dd {
  margin: 0;
  color: #282c30;
  font-size: 14px;
  font-weight: 750;
}

.release-notes {
  margin: -8px 0 24px;
  color: #60676b;
  font-size: 14px;
  line-height: 1.55;
}

.download-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  text-decoration: none;
}

.download-button span {
  font-size: 22px;
  line-height: 1;
}

.expiry-note {
  margin: 10px 0 0;
  color: #747a7e;
  font-size: 12px;
  text-align: center;
}

.installation {
  padding-top: 42px;
  padding-bottom: 38px;
}

.installation ol {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.installation li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #596065;
  line-height: 1.45;
}

.installation li span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d3d0ca;
  border-radius: 50%;
  color: #a90f14;
  font-size: 12px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid #eceae6;
  color: #858a8c;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
  }

  .download-panel {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

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

  .security-badge {
    max-width: 110px;
    line-height: 1.35;
  }

  .intro {
    padding-top: 38px;
  }

  .access-card {
    grid-template-columns: 1fr;
  }

  .input-row,
  .release-details {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
