:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #657184;
  --blue: #075cf6;
  --teal: #2d6f86;
  --paper: #f7f4ee;
  --card: #fffcf6;
  --line: rgba(20, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, #f7f4ee 0%, #ece7dc 48%, #f8f6f0 100%);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.install-card {
  width: min(100%, 430px);
  min-width: 0;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(20, 32, 51, 0.1);
}

.app-mark {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  background: #101820;
  color: #fffcf6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.app-mark span {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.eyebrow,
.device-card span {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(3rem, 18vw, 5.2rem);
  line-height: 0.9;
}

h2 {
  font-size: 1.05rem;
}

.tagline,
.steps,
.steps li,
.device-card small {
  color: var(--muted);
  line-height: 1.45;
}

.device-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(7, 92, 246, 0.14);
  border-radius: 8px;
  background: #f7f9ff;
  padding: 12px;
}

.device-card strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.1;
}

.install-actions {
  display: grid;
  gap: 10px;
}

.primary-action {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 14px 16px;
  font: inherit;
  font-weight: 840;
}

.secondary-action {
  display: block;
  border: 1px solid rgba(7, 92, 246, 0.32);
  border-radius: 8px;
  color: var(--blue);
  padding: 13px 16px;
  font-weight: 840;
  text-align: center;
  text-decoration: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-items: end;
  background: rgba(20, 32, 51, 0.36);
  padding: 14px;
}

.install-modal-card {
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  min-width: 0;
  max-height: calc(100dvh - 28px);
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 16px;
  box-shadow: 0 22px 70px rgba(19, 38, 60, 0.28);
}

.install-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.install-modal h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.install-modal h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.close-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 2px 0;
  font: inherit;
  font-weight: 850;
}

.steps {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.steps p,
.steps li {
  overflow-wrap: anywhere;
}

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

.feature-list span {
  border-radius: 999px;
  background: #eef4f3;
  color: #345264;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 780;
}
