:root {
  --bg0: #0c1118;
  --bg1: #141c28;
  --ink: #f3f0ea;
  --muted: #a8b0bc;
  --accent: #e8a23a;
  --accent-ink: #1a1206;
  --line: rgba(243, 240, 234, 0.12);
  --ok: #6fbf8a;
  --card: rgba(255, 255, 255, 0.04);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(232, 162, 58, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 140, 200, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #0a0e14);
}

.shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 3rem;
}

.brand {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 34rem;
}

.steps {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(232, 162, 58, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps strong { color: var(--ink); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: rgba(243,240,234,0.28); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover { filter: brightness(1.05); background: var(--accent); }
.btn.ghost { background: transparent; }

.note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.note a { color: var(--accent); }

.udid-box {
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 162, 58, 0.35);
  background: rgba(232, 162, 58, 0.08);
}
.udid-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.udid-value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 3.4vw, 1.15rem);
  word-break: break-all;
  line-height: 1.4;
  color: var(--ink);
  user-select: all;
}

.status {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  color: var(--ok);
  font-size: 0.9rem;
}
.status.err { color: #f0a0a0; }

.fallback {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.fallback h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.code {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
  color: #d7dde6;
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.meta span { color: var(--ink); }
