:root {
  --background-start: #f7f3eb;
  --background-end: #e8e0d2;
  --ink: #3b2e1e;
  --muted: rgba(59, 46, 30, 0.58);
  --faint: rgba(59, 46, 30, 0.38);
  --line: rgba(59, 46, 30, 0.12);
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background-end);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.46), transparent 32rem),
    linear-gradient(145deg, var(--background-start), var(--background-end));
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.install-page {
  min-height: 100dvh;
  padding:
    max(32px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.install-shell {
  width: min(100%, 540px);
  margin: 0 auto;
}

.intro {
  text-align: center;
  padding: 10px 8px 34px;
}

.brand {
  display: inline-block;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(59, 46, 30, 0.16);
}

.brand img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.eyebrow {
  margin: 26px 0 12px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

h2,
p {
  margin-top: 0;
}

.lede {
  max-width: 390px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.steps {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(59, 46, 30, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  padding: 26px 24px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  font-size: 14px;
  font-weight: 700;
}

.step-content h2 {
  margin: 2px 0 7px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step-content p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.step-content p strong {
  color: var(--ink);
  font-weight: 600;
}

.button {
  display: flex;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:active {
  transform: scale(0.985);
}

.button:focus-visible,
.brand:focus-visible,
.help summary:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(59, 46, 30, 0.42);
  outline-offset: 3px;
}

.button-secondary {
  border: 1px solid rgba(59, 46, 30, 0.2);
  background: rgba(255, 255, 255, 0.38);
}

.button-primary {
  padding: 0 18px;
  background: #1c1916;
  box-shadow: 0 8px 20px rgba(28, 25, 22, 0.18);
  color: #fff;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.arrow {
  width: 18px;
  height: 18px;
  margin-left: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.return-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 18px;
  padding: 15px 16px;
  border: 1px solid rgba(59, 46, 30, 0.12);
  border-radius: 13px;
  background: rgba(232, 224, 210, 0.7);
}

.return-note svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.return-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.return-note strong {
  color: var(--ink);
  font-weight: 600;
}

.step-final {
  padding-top: 24px;
}

.help {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.35);
}

.help summary {
  position: relative;
  padding: 17px 48px 17px 19px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.help summary::-webkit-details-marker {
  display: none;
}

.help summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "+";
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
}

.help[open] summary::after {
  content: "−";
}

.help-answer {
  padding: 0 19px 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.help-answer p {
  margin-bottom: 10px;
}

.help-answer p:last-child {
  margin-bottom: 0;
}

.help-answer strong {
  color: var(--ink);
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px 0;
  color: var(--faint);
  font-size: 12px;
}

footer p {
  margin-bottom: 0;
}

footer a {
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .button-secondary:hover {
    background: rgba(255, 255, 255, 0.66);
  }

  .button-primary:hover {
    background: #000;
    box-shadow: 0 10px 24px rgba(28, 25, 22, 0.24);
  }
}

@media (max-width: 420px) {
  .install-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .intro {
    padding-bottom: 28px;
  }

  .brand img {
    width: 78px;
    height: 78px;
    border-radius: 19px;
  }

  .step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 23px 18px;
  }

  .step-number {
    width: 30px;
    height: 30px;
  }

  .return-note {
    margin: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
