/* The install page, on the same surface as the landing page. Layers on
   site.css; everything here is what only this page needs.
   Class and id names are untouched — download.js depends on them. */

body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px) var(--gutter);
}
body::before {
  content: "";
  position: fixed; inset: -25% -20% auto; height: 640px; z-index: -1;
  background: radial-gradient(48% 50% at 50% 30%, rgba(240,174,78,.11), transparent 72%);
  pointer-events: none;
}

.card {
  width: 100%; max-width: 620px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair) inset, var(--shadow-lg);
}

.card .brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; }
.card .brand__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.card .brand__name .i { color: var(--amber); }

.eyebrow { margin-bottom: 14px; }

h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem); margin-bottom: 16px; }
h2 {
  margin: 40px 0 4px;
  font-size: 1.0625rem; letter-spacing: -.02em;
  padding-top: 28px; border-top: 1px solid var(--hair);
}
p  { color: var(--text-2); font-size: var(--t-small); line-height: 1.65; margin-bottom: 14px; }
p:last-of-type { margin-bottom: 0; }

.requirements, #other-device {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 1px var(--hair) inset;
  font-size: var(--t-micro); line-height: 1.6; color: var(--text-2);
}
.requirements strong { color: var(--text); font-weight: 590; }
#other-device p { margin: 0 0 12px; font-size: var(--t-micro); }
#other-device strong { color: var(--amber); font-weight: 590; }

/* download.js writes into #download and #status, so both keep their ids and
   both have to look right in every state the script can put them in. */
button {
  font-family: inherit; font-size: 1rem; font-weight: 590;
  letter-spacing: -.014em;
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px var(--hair-lift) inset;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2,.7,.3,1);
}
button:hover { background: rgba(255,255,255,.1); }
button:active { transform: scale(.98); }

.primary {
  width: 100%; min-height: 54px; margin-top: 8px;
  color: var(--on-amber);
  background: linear-gradient(180deg, #F7BC64, var(--amber-deep));
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset,
              0 6px 20px rgba(233,161,59,.24), 0 1px 2px rgba(0,0,0,.35);
}
.primary:hover {
  background: linear-gradient(180deg, #F9C273, var(--amber));
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
              0 10px 30px rgba(233,161,59,.34), 0 1px 2px rgba(0,0,0,.35);
}
button:disabled { opacity: .6; cursor: wait; transform: none; }

#status {
  margin-top: 14px; min-height: 3em;
  font-size: var(--t-micro); line-height: 1.6; color: var(--text-3);
}
#retry-link {
  display: inline-block; margin-top: 2px;
  font-size: var(--t-micro); color: var(--amber);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

ol { margin: 18px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
ol li {
  position: relative;
  margin: 0 0 18px; padding-left: 40px;
  font-size: var(--t-small); line-height: 1.6; color: var(--text-2);
  counter-increment: step;
}
ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--amber); background: var(--amber-dim);
  box-shadow: 0 0 0 1px var(--amber-line) inset;
}
ol li strong { color: var(--text); font-weight: 590; }

footer {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
footer a {
  font-size: var(--t-micro); color: var(--text-3);
  transition: color .18s ease;
}
footer a:hover { color: var(--text); }

noscript p { color: var(--amber); }
