.install-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 120px;
  background: #fff;
  overflow: hidden;
}

.install-page > * { position: relative; z-index: 1; }

.install-wave {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 1490px;
  max-width: none;
  z-index: 0;
  pointer-events: none;
}

.install-logo { margin-top: 16px; transition: opacity 0.15s ease; }
.install-logo:hover { opacity: 0.75; }
.install-logo img { height: 31.54px; width: auto; }

.install-title {
  margin-top: 66px;
  font-family: var(--font-heading);
  font-size: 55px;
  line-height: 63.25px;
  font-weight: 600;
  letter-spacing: -0.55px;
  color: var(--color-ink);
  text-align: center;
}

.install-sub {
  margin-top: 12px;
  font-size: 20.5px;
  line-height: 32.8px;
  font-weight: 500;
  color: var(--color-ink-66);
  text-align: center;
}

.os-toggle {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.os-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 20px;
  line-height: 23.8px;
  font-weight: 600;
  letter-spacing: 0.17px;
  color: var(--color-ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.os-option:not(.is-active):hover { background: var(--color-ink-07); }

.os-option img { width: 24px; height: 24px; object-fit: contain; }

.os-option.is-active {
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 0 0 var(--color-shadow-peach);
}

.os-option.is-active:hover {
  background: #de483a;
  transform: translateY(2px);
  box-shadow: 0 4px 0 0 var(--color-shadow-peach);
}

.os-option img { transition: filter 0.18s ease; }
.os-option img[src*="apple-logo"] { filter: brightness(0); }
.os-option.is-active img { filter: brightness(0) invert(1); }

.command-box {
  margin-top: 48px;
  position: relative;
  display: flex;
  align-items: center;
  width: 563px;
  max-width: 100%;
  height: 64px;
  padding: 0 70px 0 34px;
  background: rgba(238, 100, 73, 0.04);
  border-radius: 14px;
}

.command-text {
  font-size: 18px;
  line-height: 23.8px;
  font-weight: 500;
  letter-spacing: 0.17px;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  position: absolute;
  right: 6.5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 51px;
  background: var(--color-red);
  border-radius: 7px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  background: #de483a;
  transform: translateY(-50%) scale(1.06);
}

.copy-btn:active { transform: translateY(-50%) scale(0.95); }
.copy-btn img { width: 28px; height: 28px; }

.command-caption {
  margin-top: 16px;
  font-size: 18px;
  line-height: 23.8px;
  font-weight: 400;
  letter-spacing: 0.17px;
  color: rgba(37, 34, 30, 0.56);
  text-align: center;
}

.instructions-card {
  margin-top: 36px;
  width: 633px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 11px;
  padding: 24px 24px 28px;
}

.instructions-card--narrow { width: 481px; }

.instructions-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.instructions-head img { width: 24px; height: 24px; }

.instructions-head span {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.55px;
  color: var(--color-ink);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step + .step { margin-top: 12px; }

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fef9f8;
  border: 1px solid var(--color-red);
  border-radius: 7px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.55px;
  color: var(--color-red);
}

.step-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding-top: 5px;
  font-size: 18px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.55px;
  color: #6f6d6b;
}

.step-text .hl { color: var(--color-red); }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px 2px;
  background: #fff;
  border: 1px solid #cdcdcd;
  border-radius: 4.8px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.55px;
  color: var(--color-red);
  box-shadow:
    0 3.84px 3.84px rgba(0, 0, 0, 0.08),
    inset 0 -1.92px 0 0 rgba(0, 0, 0, 0.25),
    inset 0 3.84px 3.84px 0 rgba(255, 255, 255, 0.25);
}

.key img { width: 12px; height: 12px; }

@media (max-width: 768px) {
  .install-page { padding-bottom: 90px; }
  .install-title { margin-top: 44px; font-size: 38px; line-height: 46px; }
  .install-sub { font-size: 18px; line-height: 28px; }
  .os-toggle { margin-top: 32px; gap: 16px; }
  .os-option { height: 56px; padding: 0 18px; font-size: 18px; gap: 9px; }
  .os-option img { width: 20px; height: 20px; }
  .command-box { margin-top: 36px; width: 100%; padding-left: 20px; }
  .instructions-card { padding: 20px 16px 22px; }
  .step { gap: 12px; }
  .step-num { width: 36px; height: 36px; font-size: 18px; }
  .step-text { font-size: 16px; line-height: 27px; padding-top: 4px; }
  .key { font-size: 15px; }
  .install-wave { width: 950px; bottom: -28px; }
}
