:root {
  color-scheme: light;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #050505;
  --red: #e00019;
  --red-dark: #a70013;
  --black: #050505;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgb(224 0 25 / 18%), transparent 42%),
    var(--black);
  color: var(--black);
}

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

.download-card {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-top: 6px solid var(--red);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 26px 70px rgb(0 0 0 / 42%);
}

.brand-panel {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 28px;
  background: var(--black);
}

.brand-image {
  display: block;
  width: min(100%, 500px);
  height: auto;
}

.content-panel {
  padding: 34px 38px 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.14;
}

.site-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-size: 1rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

#countdownText {
  margin: 28px 0 0;
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
}

#newButton {
  display: block;
  width: 100%;
  margin: 28px 0 0;
  padding: 15px 24px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background-color: var(--red);
  box-shadow: 0 10px 24px rgb(224 0 25 / 26%);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#newButton:hover {
  border-color: var(--red-dark);
  background-color: var(--red-dark);
}

#newButton:focus-visible {
  outline: 3px solid rgb(224 0 25 / 30%);
  outline-offset: 3px;
}

#newButton:active {
  transform: translateY(1px);
}

#newButton[hidden],
#installMessage[hidden] {
  display: none;
}

#installMessage {
  margin: 18px 0 0;
  color: #2c2c2c;
  font-size: 1rem;
  font-weight: 700;
}

#installNote {
  margin: 12px 0 0;
  color: #555;
  font-size: 0.875rem;
  line-height: 1.5;
}

.install-help {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgb(224 0 25 / 22%);
  border-radius: 14px;
  background: #fff5f6;
  text-align: left;
}

.install-help__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.install-help h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.install-help ol {
  margin: 16px 0 0;
  padding-left: 24px;
}

.install-help li {
  padding-left: 4px;
  font-size: 1rem;
  line-height: 1.55;
}

.install-help li + li {
  margin-top: 8px;
}

.close-help {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.close-help:focus-visible {
  outline: 3px solid rgb(224 0 25 / 30%);
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .page-shell {
    padding: 16px 12px;
  }

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

  .brand-panel {
    min-height: 0;
    padding: 12px 20px;
  }

  .content-panel {
    padding: 28px 24px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #newButton:active {
    transform: none;
  }
}
