/* The guided setup in the drive app: the same sky, type and controls as hemlis.cloud/start
   (site/site.css and site/start/start.css), scoped to body.wz-mode so the drive's own look is untouched. */
@font-face { font-family: Comfortaa; font-weight: 700; font-display: swap; src: url(fonts/comfortaa-700.woff2) format("woff2"); }
body.wz-mode { --ink: #23303a; --ink2: #4b5a66; --muted: #6f7d88; --blue: #2f6fb3; --blue2: #1f5491;
  color: var(--ink); font: 15px/1.5 "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", sans-serif; min-height: 100vh;
  background: linear-gradient(180deg, #9ec3e4 0%, #c3dbef 36%, #e4eef6 70%, #f2f6f9 100%) fixed; }
.wz-mode :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wz-mode .mark { font: 700 34px/1 Comfortaa, sans-serif; letter-spacing: -.01em; color: #1c2b38; text-decoration: none; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.wz-mode h1 { margin: 0; font: 400 46px/1.06 "Lucida Grande", sans-serif; letter-spacing: -.02em; color: #1e3346; max-width: 18ch; text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 12px 30px rgba(30,60,90,.12); }

.wz-top { width: min(880px, 92%); margin: 0 auto; height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.st-prog { display: flex; gap: 6px; width: min(300px, 40vw); }
.st-prog i { flex: 1; max-width: 28px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.6); overflow: hidden; position: relative; }
.st-prog i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.23,1,.32,1); }
.st-prog i.done::after, .st-prog i.now::after { transform: scaleX(1); } .st-prog i.now::after { opacity: .55; }
.st-skip, .st-back { all: unset; cursor: pointer; color: var(--blue2); font-size: 15px; padding: 8px 4px; border-radius: 8px; }
.wz-top .st-skip { justify-self: end; } .wz-top .st-skip[hidden] { display: block; visibility: hidden; }
.st { min-height: calc(100svh - 84px); display: grid; grid-template-rows: 1fr auto; width: min(880px, 92%); margin: 0 auto; }
.st-stage { position: relative; padding: 28px 0 8px; }
.st-lead { margin: 14px 0 0; font-size: 18px; color: var(--ink2); max-width: 46ch; }
.st-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0 40px; }
.st-nav .st-back[hidden] { display: block; visibility: hidden; }
.st-next, .st-go { all: unset; cursor: pointer; display: inline-block; padding: 14px 28px; border-radius: 14px; background: linear-gradient(#3b7cc0,#2f6fb3); color: #fff;
  font-size: 16px; font-weight: 600; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(31,84,145,.8); transition: transform .12s cubic-bezier(.23,1,.32,1); }
.st-next:active, .st-go:active { transform: scale(.97); }
.st-next[hidden] { display: none; }
.st-go:disabled { opacity: .6; cursor: default; }

/* the sign-up and recovery code steps reuse the drive's gate, laid out like a start screen */
.wz-mode .gate { min-height: calc(100svh - 84px); display: block; width: min(880px, 92%); margin: 0 auto; padding: 28px 0 40px; background: none; }
.wz-mode .gate-card { width: 100%; max-width: 620px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; gap: 18px; }
.wz-mode .gate-card > .brand, .wz-mode .gate-top, .wz-mode .gate-hero { display: none; }
.wz-mode .gate-card h1 { font-size: 46px; font-weight: 400; }
.wz-mode .gate-card > p#gate-text { font-size: 18px; color: var(--ink2); max-width: 46ch; }
.wz-mode #gate-fields { padding: 24px 26px; border-radius: 20px; background: rgba(255,255,255,.72); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 24px 50px -30px rgba(31,70,110,.45); display: grid; gap: 14px; }
.wz-mode #gate-fields:empty { display: none; }
.wz-mode #gate-go { all: unset; justify-self: start; cursor: pointer; padding: 14px 28px; border-radius: 14px; background: linear-gradient(#3b7cc0,#2f6fb3); color: #fff; font-size: 16px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px -12px rgba(31,84,145,.8); transition: transform .12s cubic-bezier(.23,1,.32,1); }
.wz-mode #gate-go:active { transform: scale(.97); }
.wz-mode #gate-go:disabled { opacity: .6; }
.wz-mode .gate-alt { text-align: left; color: var(--ink2); }
.wz-mode .gate-alt .link { color: var(--blue2); }

/* one device */
.wz-dev { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; margin-top: 30px; padding: 30px; border-radius: 22px;
  background: rgba(255,255,255,.72); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 24px 50px -30px rgba(31,70,110,.45); max-width: 860px; }
.wz-dev-wide { grid-template-columns: 1fr; }
.wz-dev > div { min-width: 0; }
.wz-dev p { margin: 0 0 12px; color: var(--ink2); font-size: 15.5px; max-width: 56ch; }
.wz-dev a:not(.st-go) { color: var(--blue2); }
.wz-qr { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 6px; box-sizing: border-box; box-shadow: 0 0 0 1px #d9e6f2; }
.wz-qr svg { display: block; width: 100%; height: 100%; }
.wz-cmd { margin: 4px 0 12px; padding: 16px 18px; border-radius: 12px; background: #eef3f8; border: 1px solid #dce6ef; font: 13px/1.65 Menlo, monospace; color: #1e3346; white-space: pre-wrap; word-break: break-all; }
.wz-copy, .wz-no, .wz-codeform button { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid #c9d8e6; color: var(--blue2); font-weight: 600; font-size: 15px; transition: transform .12s cubic-bezier(.23,1,.32,1); }
.wz-copy:active, .wz-no:active, .wz-codeform button:active { transform: scale(.97); }
.wz-fine { font-size: 14px !important; color: var(--muted) !important; margin-top: 14px !important; }
.wz-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.wz-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 6px 14px; align-items: center; counter-increment: s; }
.wz-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: #eaf2fb; color: var(--blue2); font-weight: 600; display: grid; place-items: center; grid-row: span 2; align-self: start; }
.wz-steps span { font-weight: 600; color: var(--ink); }
.wz-steps .st-go { justify-self: start; }
.wz-alt { grid-column: 2; font-size: 14px; }

/* waiting for the device, then connected */
.wz-live { display: flex; align-items: center; gap: 10px; margin-top: 18px !important; font-size: 14.5px !important; }
.wz-live i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #9fb8cf; animation: wz-wait 1.6s ease-in-out infinite; transition: background-color .24s ease, transform .24s cubic-bezier(.23,1,.32,1); }
@keyframes wz-wait { 50% { opacity: .35; } }
.wz-live.on { color: #1f7a4a; font-weight: 600; }
.wz-live.on i { animation: none; background: #1f7a4a; transform: scale(1.8); }
.wz-live.on i::after { content: ""; position: absolute; left: 3px; top: 2.6px; width: 4px; height: 2.2px; border: solid #fff; border-width: 0 0 1.2px 1.2px; transform: rotate(-45deg); }
.wz-live.on span { animation: wz-in .24s cubic-bezier(.23,1,.32,1); }
@keyframes wz-in { from { opacity: 0; transform: translateX(-4px); } }

/* "Is this your iPhone?" */
.wz-ask { margin-top: 18px; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #d9e6f2; box-shadow: 0 18px 40px -24px rgba(31,70,110,.5); transform-origin: top left; }
.wz-q { font-size: 19px !important; color: #1e3346 !important; margin: 0 0 8px !important; }
.wz-dn { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink) !important; }
.wz-dn .i { width: 20px; height: 20px; }
.wz-yn { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.wz-code { margin-top: 20px; font-size: 14.5px; color: var(--ink2); }
.wz-code summary { cursor: pointer; color: var(--blue2); width: max-content; }
.wz-codeform { display: flex; gap: 10px; margin-top: 12px; }
.wz-codeform input { width: 13ch; padding: 10px 14px; border-radius: 12px; border: 1px solid #c9d8e6; background: #fff; font: 600 16px Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.wz-note { color: #a3382c !important; font-size: 14px !important; margin-top: 10px !important; }

/* done */
.wz-done { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.wz-done li { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid #fff; }
.wz-done .i { width: 22px; height: 22px; color: var(--ink2); }
.wz-st { font-size: 14px; color: var(--muted); }
.wz-done li.on { border-color: #bfe3cc; }
.wz-done li.on .wz-st { color: #1f7a4a; font-weight: 600; }
.wz-done li.on .wz-st::before { content: ""; display: inline-block; width: 8px; height: 5px; margin: 0 8px 3px 0; border: solid #1f7a4a; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.wz-stored { margin-top: 22px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.wz-land { margin-top: 28px; }

@media (max-width: 900px) {
  .wz-mode h1, .wz-mode .gate-card h1 { font-size: 32px; } .st-lead, .wz-mode .gate-card > p#gate-text { font-size: 16px; }
  .wz-dev { grid-template-columns: 1fr; padding: 20px; gap: 18px; } .wz-qr { width: 180px; height: 180px; }
  .st-nav { position: sticky; bottom: 0; z-index: 2; margin: 0 -4vw; padding: 14px 4vw 18px; background: linear-gradient(rgba(214,230,243,0), #d6e6f3 38%); }
}
@media (max-width: 600px) { .wz-top { grid-template-columns: auto 1fr auto; gap: 14px; } .st-prog { width: auto; } .wz-mode .mark { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .st-prog i::after, .st-next, .st-go, .wz-live i { transition: none; } .wz-live i { animation: none; }
  .wz-live.on i { transform: none; } .wz-live.on span { animation: wz-fade .24s ease; }
}
@keyframes wz-fade { from { opacity: 0; } }

/* NAS brand, Later, first file, recap */
.wz-brands { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wz-brand { all: unset; cursor: pointer; padding: 18px 26px; border-radius: 16px; background: linear-gradient(#fff,#f7fafc); border: 1px solid #d9e2e9; font-size: 16px; font-weight: 600; color: var(--ink);
  box-shadow: 0 10px 24px -18px rgba(31,70,110,.45); transition: transform .12s cubic-bezier(.23,1,.32,1), border-color .2s ease; }
.wz-brand:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .wz-brand:hover { border-color: #a9c2da; } }
.wz-later { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.wz-drop { display: grid; place-items: center; margin-top: 28px; min-height: 160px; max-width: 760px; border-radius: 22px; border: 2px dashed #b9cde0; background: rgba(255,255,255,.55); cursor: pointer; color: var(--ink2); font-size: 16px; transition: background-color .2s ease, border-color .2s ease; }
.wz-drop.over { background: #eaf3fc; border-color: var(--blue); }
.wz-drop u { color: var(--blue2); text-underline-offset: 3px; }
.wz-arrive { display: flex; gap: 14px; align-items: center; margin-top: 16px; max-width: 760px; padding: 18px 22px; border-radius: 18px; background: #fff; border: 1px solid #bfe3cc; box-shadow: 0 18px 40px -24px rgba(31,70,110,.5); }
.wz-arrive .i { width: 26px; height: 26px; color: var(--blue); }
.wz-arrive b { font-size: 16.5px; color: var(--ink); word-break: break-all; }
.wz-arrive p { margin: 2px 0 0; color: #1f7a4a; font-size: 14.5px; }
.wz-end { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; margin-top: 30px; max-width: 860px; }
.wz-end .wz-done { margin: 0; }
.wz-recap { padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.8); border: 1px solid #fff; box-shadow: 0 18px 40px -26px rgba(31,70,110,.45); }
.wz-recap dl { margin: 0; display: grid; gap: 10px; }
.wz-recap dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.wz-recap dt { color: var(--muted); } .wz-recap dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wz-manage { display: inline-block; margin-top: 10px; color: var(--blue2); font-size: 15px; }
@media (max-width: 900px) { .wz-end { grid-template-columns: 1fr; } }
html:has(body.wz-mode) { background: #f2f6f9; }
body.wz-mode { height: auto; }
.wz-stored { padding-bottom: 8px; }
@media (max-width: 900px) { .wz-step { padding-bottom: 24px; } }
