/* block it. website + dashboard. Tokens and base styles: design/theme.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 8px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }

header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--paper); border-bottom: 1.5px solid var(--line); }
header.top .wordmark { text-decoration: none; font-size: 24px; margin-right: auto; }
header.top nav { display: flex; gap: 16px; }
header.top nav a { font-weight: 700; text-decoration: none; }
header.top nav a:hover { color: var(--red); }

.hero { padding-top: 40px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(40px, 9vw, 76px); }
.hero.small { padding-top: 24px; padding-bottom: 0; gap: 8px; }
.hero.small h1 { font-size: clamp(32px, 8vw, 48px); overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 12px; }
.lead { font-size: 20px; max-width: 34em; }
.small { font-size: 14px; }

.band { padding: 40px 0; margin: 32px 0; }
.band p { color: rgba(255, 255, 255, .88); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 24px auto; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
main > section.wrap { margin: 32px auto; }
footer { padding: 32px 16px 48px; }

/* Dashboard panels: the card look without the hover flip. */
.panel { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: var(--border); border-radius: var(--radius-card); background: var(--paper); }
a.panel { text-decoration: none; transition: transform .35s var(--ease), border-color .35s var(--ease); }
a.panel:hover { transform: translateY(-3px); border-color: var(--red); }
.device h3 { overflow-wrap: anywhere; }

.row { display: flex; align-items: center; gap: 10px; }
.row:has(> h3) { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.links { margin: 0; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 0; }
.hint { font-size: 13px; color: var(--soft); }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  font: inherit; font-size: 17px; width: 100%; min-height: 50px; padding: 10px 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 14px; }
.row input, .row select { flex: 1 1 180px; width: auto; }
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.big { font-size: 26px !important; text-align: center; }
fieldset.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: var(--tint); }
.choice input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }
.choice > span { display: flex; flex-direction: column; }
.qr-wrap { background: #fff; padding: 8px; border: 1.5px solid var(--ink); border-radius: 14px; align-self: center; width: min(280px, 100%); }
.qr { display: block; width: 100%; height: auto; }
.scan { position: fixed; inset: 0; z-index: 60; background: rgba(11, 11, 11, .85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scan-box { background: var(--paper); border-radius: var(--radius-card); padding: 16px; width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; }
.scan-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }

.btn.small { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.busy { opacity: .6; cursor: progress; }
a.btn { text-decoration: none; align-self: flex-start; }
.panel > .btn { align-self: stretch; }
button.link { background: none; border: 0; padding: 4px 2px; font: inherit; font-weight: 700; color: var(--red); cursor: pointer; text-decoration: underline; }

.tag.ok { color: #0a7a2f; }
.tag.warn { color: #9a5b00; }
.tag.alert, .tag.offline { color: var(--red); }
.tag.queued { color: var(--ink); background: var(--tint); }
.note { padding: 16px 18px; border-radius: 14px; background: var(--tint); border: 1.5px solid var(--red); margin: 0; }
.note.alert { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.alert-line { margin: 0; color: var(--red); font-weight: 700; font-size: 15px; }
.secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(22px, 6vw, 30px); font-weight: 700;
  letter-spacing: .06em; text-align: center; padding: 14px; border: 2px dashed var(--ink); border-radius: 14px; margin: 0; overflow-wrap: anywhere; user-select: all; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list li > span:first-child { flex: 1 1 220px; overflow-wrap: anywhere; }
.events li.alert > span:first-child { color: var(--red); font-weight: 700; }
.events li.block > span:first-child { font-weight: 600; }
.request { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.request p { margin: 0; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50; max-width: 560px; margin: 0 auto;
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 600;
  transform: translateY(150%); transition: transform .4s var(--ease); }
.toast.show { transform: translateY(0); }
.toast.alert { background: var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }
