:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #2dcbb7;
  --brand-dark: #0b4b43;
  --paper: #f6fffd;
  --line: rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(760px 520px at 20% 0%, rgba(45, 203, 183, 0.28), transparent 68%),
    radial-gradient(700px 520px at 88% 18%, rgba(186, 230, 253, 0.34), transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.installShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.installCard {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  padding: 26px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.iconStage {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(45, 203, 183, 0.25), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.iconStage img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 17vw, 6.2rem);
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  font-size: 1.45rem;
}

.subcopy,
.devicePanel,
.devicePanel li {
  color: var(--muted);
  line-height: 1.55;
}

.actions,
.devicePanel {
  display: grid;
  gap: 10px;
}

.primaryButton,
.textButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  text-align: center;
}

.primaryButton {
  border: 0;
  background: linear-gradient(180deg, var(--brand), #24b9a6);
  color: #063a33;
}

.textButton {
  color: #0b4b43;
}

.secondaryNote,
.sheetNote {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.sheetNote {
  border-radius: 16px;
  background: rgba(45, 203, 183, 0.12);
  color: var(--brand-dark);
  padding: 14px;
}

.devicePanel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.devicePanel.isReady {
  border: 1px solid rgba(45, 203, 183, 0.3);
  border-radius: 18px;
  background: rgba(45, 203, 183, 0.1);
  padding: 16px;
}

.devicePanel.isWarning {
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.1);
  padding: 16px;
}

.devicePanel ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 22px;
}

.featurePills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.featurePills span {
  border-radius: 999px;
  background: rgba(45, 203, 183, 0.14);
  color: #0b4b43;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.installSheet {
  width: min(92vw, 430px);
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.installSheet::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
}

.sheetCard {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.closeButton {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
}

.stepList {
  display: grid;
  gap: 12px;
}

.stepItem {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #f8fffd;
}

.stepItem span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 203, 183, 0.18);
  color: var(--brand-dark);
  font-weight: 900;
}

.stepItem p {
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 420px) {
  .installShell {
    align-items: start;
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  }

  .installCard {
    padding: 22px;
  }

  h1 {
    font-size: 4.4rem;
  }
}
