:root {
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #17131f;
  background: #eceaf3;
  color-scheme: light;
  --paper: #f7f7fb;
  --muted: #5e586c;
  --primary: #5b3fd6;
  --border: #e5e2ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
main { max-width: 520px; min-height: 100vh; margin: auto; padding: 26px 28px 28px; background: var(--paper); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 26px; }
.brand { display: inline-flex; align-items: center; font-size: 20px; font-weight: 650; letter-spacing: -.6px; }
.brand-light { font-weight: 400; }
.brand-symbol { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 28px; margin-right: 8px; border-radius: 8px 8px 8px 3px; background: var(--primary); color: #fff; font: italic 27px Georgia, serif; padding: 0 2px 3px 0; }
.device-tag { color: var(--muted); font-size: 10px; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.device-tag strong { font-weight: 650; }
.hero { overflow: hidden; margin-bottom: 26px; border-radius: 20px; }
.hero img { display: block; width: 100%; height: auto; }
.eyebrow { color: var(--primary); font-size: 10px; line-height: 1.5; letter-spacing: .14em; font-weight: 700; margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(30px, 8vw, 36px); font-weight: 650; line-height: 1.13; letter-spacing: -1px; text-wrap: balance; }
p, li { line-height: 1.6; }
.lead { color: var(--muted); font-size: 15px; margin: 14px 0; }
.intro { font-size: 14px; margin: 18px 0; }
.choices { display: grid; gap: 12px; margin: 22px 0 16px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
.choice { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 88px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; text-align: left; background: #fff; color: inherit; }
.choice:hover { border-color: var(--primary); background: #f3f0fc; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 15px; font-weight: 650; }
.choice small { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 3px; }
.choice-icon { flex: 0 0 40px; display: grid; place-items: center; height: 40px; color: var(--primary); background: #eeeafe; border-radius: 12px; font: 31px Georgia, serif; }
.choice-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.chevron { margin-left: auto; font-size: 25px; color: #817991; }
.reassurance { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 22px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: -8px 0 16px -8px; padding: 8px; border: 0; border-radius: 8px; color: var(--primary); background: transparent; font-size: 13px; font-weight: 600; }
.back span { font-size: 24px; line-height: 1; }
.back:hover { background: #eeeafe; }
.steps { padding: 0; margin: 24px 0 22px; list-style: none; counter-reset: setup; }
.steps li { position: relative; padding: 0 0 22px 40px; counter-increment: setup; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(setup); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 27px; height: 27px; background: #eeeafe; color: #34236b; border-radius: 50%; font-size: 12px; font-weight: 700; }
.steps strong { font-size: 14px; font-weight: 650; }
.steps li > span { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
#setup-ssid { overflow-wrap: anywhere; }
.primary { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 18px; background: var(--primary); color: #fff; border: 1px solid transparent; border-radius: 13px; font-size: 14px; line-height: 1.4; font-weight: 600; text-align: center; text-decoration: none; }
.primary:hover { background: #4f33c3; }
.secondary { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 18px; border: 1px solid #bcb2e4; border-radius: 13px; background: #fff; color: var(--primary); font-size: 14px; line-height: 1.4; font-weight: 600; text-align: center; text-decoration: none; }
.secondary:hover { background: #f3f0fc; }
.small { color: var(--muted); font-size: 12px; }
.secure-note { margin: 12px 0 20px; }
.return-home { margin: 0 0 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.return-home p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.scan-note { background: #eeeafe; color: #34236b; border: 1px solid #e0d9fb; border-radius: 13px; padding: 12px 14px; margin: 18px 0; font-size: 12px; }
.scan-note p { margin: 0; }
details { padding: 10px 0; border-top: 1px solid var(--border); font-size: 13px; }
summary { display: list-item; cursor: pointer; min-height: 48px; padding: 14px 2px; font-weight: 600; }
details p, details li { color: var(--muted); }
details ul { padding-left: 19px; margin-top: 0; }
details li { margin: 9px 0; }
footer { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
footer strong { color: #34236b; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #5b3fd6; outline-offset: 4px; }
h1:focus { outline: none; }
@media (min-width: 600px) { main { margin: 32px auto; min-height: calc(100vh - 64px); border: 1px solid #e4e0ee; border-radius: 26px; box-shadow: 0 20px 70px -40px #34236b; padding: 28px 34px; } }
@media (max-width: 350px) { main { padding: 21px 20px 24px; } .brand { font-size: 18px; } .device-tag { font-size: 9px; } .choice { padding: 13px; gap: 10px; } .choice-icon { flex-basis: 34px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.ble-card {margin: 24px 0; padding: 22px; border: 1px solid #c7c0ed; border-radius: 18px; background: #f5f2ff;}
.ble-card label {display: block; margin: 16px 0 6px; font-weight: 600;}
.ble-card input, .ble-card select {box-sizing: border-box; width: 100%; min-height: 44px; border: 1px solid #b5afc8; border-radius: 10px; padding: 10px; font: inherit; background: white;}
.ble-card button.primary {width: 100%; margin-top: 16px; cursor: pointer;}
.ble-card [hidden] {display: none !important;}
.ble-card button:disabled {opacity: .55; cursor: wait;}
