/* Tablet Box invite flow: the free tablet card on /i/<code> and the step page /i/s/<secret>. Mobile first. */
.tb-offer{background:var(--white)}
.tb-kicker{margin:0 0 4px;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-mark,#ce6d00)}
.tb-offer .invite-buy{margin:16px 0 10px}
.tb-device,.tb-offer [data-device-view]{margin:14px 0 4px}
.tb-choices{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.tb-choices .button{flex:1 1 120px;justify-content:center}
.tb-qr{width:min(220px,70vw);aspect-ratio:1;margin:10px 0;padding:8px;background:#fff;border:1.5px solid var(--line);border-radius:10px}
.tb-qr svg{display:block;width:100%;height:100%}
.tb-step h1{font-size:clamp(1.6rem,6vw,2.2rem);line-height:1.12;margin:0 0 12px;text-wrap:balance}
.tb-step>p{line-height:1.55}
.tb-list{margin:0 0 18px;padding-left:1.3em;display:grid;gap:8px;line-height:1.5}
.tb-way{margin:18px 0;padding:14px 16px;border:2px solid var(--ink);border-radius:12px;background:var(--white)}
.tb-way h2{font-size:1.1rem;margin:0 0 6px}
.tb-way p{margin:0 0 8px;line-height:1.5}
.tb-way .button{width:100%;justify-content:center;min-height:52px}
.tb-way-qr{background:var(--accent-soft,#fff3c4)}
.tb-code{font:800 clamp(2rem,10vw,2.8rem)/1.1 ui-monospace,Menlo,monospace;letter-spacing:.08em;margin:12px 0 0!important;user-select:all;-webkit-user-select:all}
.tb-mono{font-family:ui-monospace,Menlo,monospace;white-space:nowrap}
.tb-detect{margin-top:16px;padding:12px 14px;border-radius:10px;background:var(--accent-soft,#fff3c4)}
.tb-detect .button{width:100%;justify-content:center}
.tb-step .button.tertiary{background:none;border:0;box-shadow:none;text-decoration:underline;padding-left:0}
@media (min-width:720px){.tb-way .button{width:auto}}
.invite-page .button.secondary{background:var(--white);color:var(--ink)}
.tb-landing{max-width:580px;margin:0 auto}.tb-hero{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:1200/1023;object-fit:cover;margin:14px 0 16px;border:1px solid var(--line);border-radius:20px;background:var(--white)}.tb-diagram{border:2px solid #1a1a1a;border-radius:14px;background:#fff;color:#1a1a1a;padding:10px 8px;display:grid;grid-template-columns:1fr auto 1fr;gap:6px;align-items:center;text-align:center;font-size:12px;line-height:1.3}
.tb-diagram .dv{display:grid;justify-items:center;gap:5px}
.tb-diagram .tab{width:74px;height:56px;border-radius:8px;border:2px solid #1a1a1a;background:#fbf9f4;display:grid;place-items:center;position:relative}
.tb-diagram .tab .tb{width:26px;height:26px;border-radius:50%;background:var(--accent);border:2px solid #1a1a1a;box-shadow:0 2px 0 #1a1a1a}
.tb-diagram .lk{position:absolute;top:-9px;right:-9px;width:20px;height:20px;border-radius:50%;background:#175a40;color:#fff;display:grid;place-items:center;font-size:11px;border:2px solid #1a1a1a}
.tb-diagram .ph{width:36px;height:60px;border-radius:8px;border:2px solid #1a1a1a;background:#e5ddd5;display:grid;align-content:center;justify-items:center;gap:3px}
.tb-diagram .ph i{display:block;width:22px;height:7px;border-radius:4px;background:#25d366}
.tb-diagram .ph i+i{background:#fff;width:18px}
.tb-diagram .muted{color:#5b5b57}
.tb-diagram .sep{grid-column:1/-1;border-top:1.5px dashed #c9c3b5;margin:4px 0}
.tb-diagram .tab.sm{width:56px;height:42px}.tb-diagram .tab.sm .tb{width:20px;height:20px}
.tb-diagram .ar{display:grid;gap:8px;font:800 11px var(--display)}
.tb-diagram .ar span{display:block;padding:2px 6px;border-radius:999px;border:1.5px solid #1a1a1a;background:#fff3c4;color:#1a1a1a;white-space:nowrap}
.tb-diagram .ar span.back{background:#d8f5e3}.tb-lockcall{margin:16px 0 0;padding:12px;border:1px solid var(--line);border-radius:12px}.tb-facts{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.tb-facts span{font-size:.75rem;border:1px solid var(--line);border-radius:20px;padding:5px 9px;background:var(--white)}.tb-step{max-width:620px;margin:0 auto}.tb-step [data-kind][aria-pressed=true]{background:var(--accent)}.tb-step .tb-qr{margin:18px auto}.tb-step form .button{width:100%}.tb-step .hint{text-align:center}[data-tablet-offer] .hint{margin:18px 0 0}.tb-family{border:2px solid var(--ink);border-radius:20px;padding:18px;background:var(--white);box-shadow:0 6px 0 var(--ink);margin:20px 0}.tb-family .button{width:100%;margin-top:10px}.tb-step [data-lock-root]{margin:20px 0}
.guide-head{margin:14px 0}.guide-dots{display:flex;gap:5px;list-style:none;margin:14px 0;padding:0}.guide-dots li{flex:1;height:4px;background:var(--line);border-radius:3px}.guide-dots .on,.guide-dots .done{background:var(--ink)}.guide-number{display:none}.guide-step-title{font-size:1.35rem;margin:16px 0}.guide-art{display:flex;justify-content:center;background:var(--white);border:2px solid var(--ink);border-radius:16px;overflow:hidden}.guide-art svg{width:100%;max-height:260px}.guide-text p{line-height:1.45}.guide-intro{color:var(--muted);line-height:1.45}.guide-nav{display:flex;gap:10px;margin-top:16px}.guide-next{flex:1}.guide-skip{display:block;width:100%;margin-top:14px;background:none;box-shadow:none;border:0;text-decoration:underline}.guide-art svg circle[fill="#ffc94d"]{animation:guide-tap 2s infinite}@keyframes guide-tap{50%{opacity:.25}}@media(prefers-reduced-motion:reduce){.guide-art svg circle{animation:none!important}}.guide-result:empty{display:none}
@media(prefers-color-scheme:dark){.invite-page{color:var(--ink);background:var(--paper);color-scheme:dark;--paper:#201f1b;--white:#2b2a26;--ink:#f5f1e8;--muted:#c6c1b7;--line:#615e55;--accent-soft:#4b4020;--brand-mark:#ffc94d}.tb-diagram{color:#1a1a1a}.guide-art{background:#f2f2f7}.guide-nav .button,.tb-choices .button{color:var(--ink);background:var(--white)}.button.primary{color:#1a1a1a}}
.guide-art svg rect[stroke="#ffc94d"]{animation:guide-tap 2s infinite}.guide-art svg[aria-label="Passcode keypad with six digits"] circle[fill="none"]{animation:guide-code 2.4s infinite}.guide-art svg[aria-label="Passcode keypad with six digits"] circle:nth-of-type(2){animation-delay:.2s}.guide-art svg[aria-label="Passcode keypad with six digits"] circle:nth-of-type(3){animation-delay:.4s}.guide-art svg[aria-label="Passcode keypad with six digits"] circle:nth-of-type(4){animation-delay:.6s}.guide-art svg[aria-label="Passcode keypad with six digits"] circle:nth-of-type(5){animation-delay:.8s}.guide-art svg[aria-label="Passcode keypad with six digits"] circle:nth-of-type(6){animation-delay:1s}@keyframes guide-code{60%,90%{fill:#fff}}@media(prefers-reduced-motion:reduce){.guide-art svg *{animation:none!important}}@media(prefers-color-scheme:dark){.tb-step [data-kind][aria-pressed=true]{color:#1a1a1a}}

@media(prefers-color-scheme:dark){.tb-step .button.tertiary,.guide-skip{color:var(--ink)}.guide-nav .guide-next{background:var(--accent);color:#1a1a1a}}
/* The "You are signed up" step: one column with a 16 px gap, so no two blocks touch (design rule 1).
   Hidden blocks (the copy note, the detect note) take no gap. The 12 px button gap leaves room for the 3 px button shadow. */
.tb-step[data-state=ready]{display:flex;flex-direction:column;gap:16px}
.tb-step[data-state=ready]>*{margin:0}
.tb-step[data-state=ready]>.tb-qr{align-self:center}
.tb-step[data-state=ready]>.button.tertiary{align-self:flex-start}
.tb-step[data-state=ready] details>:not(summary){margin:12px 0 0}

/* The first lock card shows the whole route before the parent opens Settings. */
.guide-art.guide-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:none;border:0;overflow:visible;grid-column:1/-1;grid-row:auto}
.guide-overview-card{margin:0;min-width:0;padding:10px;border:2px solid var(--line);border-radius:12px;background:var(--white)}
.guide-overview-art{display:flex;align-items:center;justify-content:center;height:80px;background:#f2f2f7;border-radius:8px;margin-bottom:10px}
.guide-overview-art svg.art{width:100%;height:100%;max-height:80px}
.guide-overview-card figcaption{display:flex;flex-direction:column;gap:5px;font-size:.9rem;line-height:1.3}
.guide-overview-card strong{font-family:var(--display);font-size:1rem}
@media(min-width:700px){.guide-overview-art{height:130px}.guide-overview-art svg.art{max-height:130px}}

.guide-body-overview .guide-text{grid-column:1/-1}

.tb-ipad{margin:20px 0;display:grid;gap:12px;justify-items:center;color:var(--ink)}
.tb-ipad svg{display:block;width:min(100%,420px);border-radius:20px;font:800 18px var(--display)}
.tb-ipad .ipad-frame{fill:var(--ink);stroke:var(--ink);stroke-width:3}
.tb-ipad .ipad-screen{fill:var(--paper)}
.tb-ipad .ipad-button{fill:var(--accent);stroke:var(--ink);stroke-width:3}
.tb-ipad text{fill:var(--ink)}
.tb-ipad figcaption{font-size:.8rem;color:var(--muted)}
