/* The set-up guide (/setup, Components/Pages/Setup). Read mode inside the landing world: the same layers as the landing
   page (landing.css, which the page also links), with the words on calm cream plates so a parent can follow them step
   by step. The drawings' extra screens are here too. Mocked up in docs/mockups/setup-v1.html. */
.setup-hero { padding-block: 2rem 0; }
.setup-hero h1 { margin: 0; font-size: clamp(2.7rem, 10vw, 5rem); line-height: 0.95; }
.setup-hero h1 .up { display: block; margin-top: 0.12em; color: var(--cream);
    text-shadow: 4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
                 4px 4px 0 var(--ink), -4px 4px 0 var(--ink), 4px -4px 0 var(--ink), -4px -4px 0 var(--ink); }
.need { display: grid; gap: 0.6rem; margin: 0; padding: 1rem 1.15rem 1.1rem; max-width: 31rem; border: 4px solid var(--ink);
    background: var(--cream); box-shadow: inset 4px 4px 0 var(--white), inset -4px -4px 0 var(--cream-dark); }
.need h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.need ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.need li { display: flex; align-items: flex-start; gap: 0.65rem; }
.need li .sprite { --s: 3; flex: none; margin-top: 0.22em; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.7rem 0.45rem 0.45rem;
    border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none;
    box-shadow: inset 3px 3px 0 var(--white), inset -3px -3px 0 var(--cream-dark); }
.toc .num { width: 1.7rem; height: 1.7rem; font-size: 1rem; border-width: 2px; }

.setup-stage { --s: 5; display: flex; flex-direction: column; align-items: center; padding-top: 2.5rem; }
.setup-stage .brick { --s: 5; }

/* The top button, which the shared drawing doesn't have: a small block on the top edge. */
.brick .top-btn { position: absolute; left: 22%; top: -3.4%; width: 20%; height: 3.6%;
    background: #7C828A; border: max(2px, calc(var(--s) * 1px)) solid var(--ink); border-bottom: 0; box-sizing: border-box; }

.marker.mk-side { left: -4%; top: 34%; }
.marker.mk-top { left: 32%; top: -9%; }

/* Steps on plates */
.plates { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.plate-step { display: grid; gap: 1.25rem; padding: 1.4rem 1.3rem 1.5rem; border: 4px solid var(--ink); background: var(--cream);
    color: var(--ink); box-shadow: inset 5px 5px 0 var(--white), inset -5px -5px 0 var(--cream-dark); }
.plate-step a:not(.btn) { color: var(--ink); }
.plate-step h3 { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.05; }
.plate-step p { margin: 0; max-width: 36rem; }
.plate-copy { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.plate-art { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; padding: 1.25rem 1rem 1rem;
    border: 4px solid var(--ink); background: var(--sky-lo); box-shadow: inset 4px 4px 0 var(--sky-mid), inset -4px -4px 0 #7FC3EE; }
.plate-art .brick { --s: 4; }
.plate-art .phone { --s: 6; }
.on-screen { font-weight: 700; white-space: nowrap; }

/* Step 4: the Wi-Fi, frame by frame */
.wifi-plate { gap: 1.5rem; }
.frames { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: frame; }
.frame { display: grid; grid-template-rows: auto 1fr; gap: 0.75rem; counter-increment: frame; }
.frame-art { display: flex; align-items: flex-end; justify-content: center; min-height: 290px; padding: 1.5rem 0.75rem 1rem;
    border: 4px solid var(--ink); background: var(--sky-lo); box-shadow: inset 4px 4px 0 var(--sky-mid), inset -4px -4px 0 #7FC3EE; }
.frame-art .brick { --s: 4; }
.frame-art .phone { --s: 6; }
.frame p { display: flex; gap: 0.6rem; margin: 0; }
.frame p::before { content: counter(frame); display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem;
    border: 2px solid var(--ink); background: var(--ink); color: var(--cream); font-family: var(--font-display); font-size: 0.95rem; }
.know { display: grid; gap: 0.55rem; margin: 0; padding: 1rem 1.15rem 1.1rem; border: 3px dashed var(--ink-soft); }
.know h4 { margin: 0; font-size: 1.02rem; }
.know ul { display: grid; gap: 0.45rem; margin: 0; padding-left: 1.15rem; }
.know code { padding: 0.05em 0.3em; background: var(--white); border: 2px solid var(--ink); font-size: 0.95em; }

/* Every day */
.daily { display: grid; gap: 2rem; align-items: center; margin-top: 2.5rem; }
.daily-cols { display: grid; gap: 1.5rem; }
.daily-cols h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.daily-cols p { margin: 0; max-width: 30rem; font-size: 1.1rem; }
.daily-art { display: flex; justify-content: center; }
.daily-art .brick { --s: 5; }

/* When the screen says... */
.says { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.say { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.25rem; padding: 1rem;
    border: 4px solid var(--ink); background: var(--deep); box-shadow: inset 4px 4px 0 var(--deep-light), inset -4px -4px 0 var(--bed-dark); }
.say .brick { --s: 3; }
.say h3 { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--gold); }
.say p { margin: 0; max-width: 34rem; }
.bed.setup-help { border-top: 4px solid var(--ink); }
.stuck { margin-top: 2rem; max-width: 40rem; font-size: 1.1rem; }
.stuck strong { color: var(--gold); }

/* The extra e-ink screens */
.eink-msg { display: flex; flex-direction: column; align-items: center; gap: 4cqw; margin-block: auto; text-align: center; }
.eink-msg b { font-family: var(--font-display); font-size: 15cqw; line-height: 1; }
.eink-msg span { font-size: 8cqw; line-height: 1.2; }
.eink-hint { margin-top: auto; padding-top: 2cqw; border-top: max(1px, 1cqw) solid currentColor; font-size: 7.2cqw; line-height: 1.25; text-align: center; }
.eink-title { font-size: 8.4cqw; font-weight: 700; line-height: 1.2; text-align: center; }
.eink-qr { display: block; width: 52%; margin: 2.5cqw auto; color: var(--paper-ink); }
.eink-cred { margin-top: auto; font-size: 7.6cqw; line-height: 1.3; text-align: center; }
.eink-bal-up { margin-top: 3cqw; }
.eink-badge { align-self: center; margin-top: 2cqw; padding: 0.6cqw 3cqw; background: var(--paper-ink); color: var(--paper);
    font-size: 7cqw; font-weight: 700; letter-spacing: 0.06em; }
.eink-upd-c { margin-top: 2cqw; text-align: center; }
.eink-welcome { display: flex; flex-direction: column; align-items: center; margin-top: 10cqw; font-family: var(--font-display); font-size: 13cqw; font-weight: 700; line-height: 1.1; }
.eink-id { margin-top: 2.5cqw; font-size: 7.2cqw; line-height: 1.2; text-align: center; white-space: nowrap; }
.eink-msg b.eink-msg-sm { font-size: 11cqw; }
.eink-bar { height: 7cqw; margin: 3cqw 12cqw 0; border: max(1px, 1cqw) solid currentColor; padding: 1cqw; }
.eink-bar i { display: block; width: 50%; height: 100%; background: currentColor; }
.eink-to { margin-top: 2cqw; font-size: 6.5cqw; text-align: center; }

/* The phone screens */
/* No gap here: cqw on the container itself would measure the viewport. The children space themselves. */
.setup-ps { font-family: var(--font-body); }
.setup-ps > * + * { margin-top: 3.5cqw; }
.setup-ps .ps-head { font-size: 10cqw; font-weight: 700; line-height: 1.15; }
.setup-ps .ps-field { padding: 3cqw 4cqw; border: max(1px, 2cqw) solid var(--ink); font-size: 10cqw; }
.setup-ps .ps-select::after { content: " \25BE"; float: right; }
.setup-ps .ps-note { font-size: 8.5cqw; color: var(--ink-soft); }
.setup-ps .ps-id { font-family: var(--font-display); font-size: 14cqw; }
.setup-ps .ps-net { display: flex; align-items: center; gap: 3cqw; font-size: 10cqw; }
.setup-ps .ps-net::before { content: ""; width: 7cqw; height: 7cqw; border: max(1px, 1.6cqw) solid var(--ink); border-radius: 50%; }
.setup-ps .ps-net.is-on::before { background: radial-gradient(circle, var(--ink) 45%, transparent 50%); }
.setup-ps > .ps-btn { margin-top: auto; }

@media (min-width: 900px) {
    .setup-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; gap: 3rem; padding-top: 3rem; }
    .setup-hero .hero-copy { padding-bottom: 4rem; }
    .setup-stage { --s: 6; padding-top: 3rem; }
    .setup-stage .brick { --s: 6; }
    .plates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .plate-step:not(.wide) { grid-template-rows: auto 1fr; }
    .plate-step.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .plate-step.wifi-plate { grid-template-columns: minmax(0, 1fr); }
    .frames { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .daily { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
    .daily-cols { grid-template-columns: 1fr 1fr; }
    .says { grid-template-columns: 1fr 1fr; }
}
