/* QPTOOLS look, shared with QPTGFX: dark, calm panels, the two red "lamps". */
:root {
  --bg: #1a1f26; --panel: #232a33; --panel-2: #2b343f; --line: #36424f;
  --text: #ecf0f4; --muted: #9aa7b5; --link: #7cb8ff;
  --live: #e5443a; --amber: #f3b33d; --green: #3ec27f;
  --radius: 10px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 650; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tnum { font-variant-numeric: tabular-nums; }
.err { color: var(--live); font-weight: 600; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input[type="password"] {
  width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--link); color: #0b1620; border-color: transparent; }
.btn-quiet { background: transparent; color: var(--muted); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: var(--panel-2); color: var(--muted);
}
.badge.green { background: var(--green); color: #07200f; }

/* brand */
.caddy-mark { width: 1.4em; height: 1.4em; flex: none; vertical-align: middle; display: inline-block; }
.qpt-mark { display: inline-flex; gap: .16em; align-items: center; vertical-align: middle; }
.qpt-mark i { width: .62em; height: .62em; border-radius: 50%; background: #e5443a; position: relative; display: block; }
.qpt-mark i::after { content: ""; position: absolute; width: 22%; height: 22%; border-radius: 50%; background: #ffd9d4; top: 50%; }
.qpt-mark i:first-child::after { left: 52%; } .qpt-mark i:last-child::after { left: 26%; }
.qpt-word { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; letter-spacing: .03em; color: var(--text); }
.qpt-word b { font-weight: 800; color: var(--muted); }
.brand-login { display: flex; align-items: center; justify-content: center; gap: .4em; font-size: 2rem; margin-bottom: 18px; }
.brand-home { display: inline-flex; align-items: center; gap: .45em; font-size: 1.35rem; color: inherit; text-decoration: none !important; }
.brand-small { display: inline-flex; align-items: center; gap: .35em; font-size: .82rem; opacity: .7; text-decoration: none !important; }
.brand-small:hover { opacity: 1; }
.brand-small .qpt-word, .brand-small .qpt-word b { color: var(--muted); font-weight: 700; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .panel { width: min(380px, 100%); }

/* hub */
.hub { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; }
.hub header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hub .intro { margin: 28px 0 20px; }
.hub .intro h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tool {
  --accent: var(--muted);
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  color: inherit; text-decoration: none !important; overflow: hidden;
}
.tool::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
a.tool { transition: border-color .15s, transform .15s; }
a.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool .name { font-size: 1.5rem; }
.tool .what { font-size: 1.05rem; margin: 0; }
.tool ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; }
.tool .live { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.tool .live b { color: var(--text); }
.tool .go { margin-top: auto; font-weight: 700; color: var(--accent); }
.tool.soon { background: transparent; border-style: dashed; }
.tool.soon::before { opacity: .45; }
.tool.soon .name, .tool.soon .what { color: var(--muted); }
.tool.willy { --accent: var(--green); }
.tool.nag { --accent: var(--amber); }
.tool.book { --accent: #b26bff; }
.tool.rec { --accent: #2fa8ff; }
.hub footer { margin-top: 28px; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.dotstate { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.dotstate.bad { background: var(--live); }

/* who are you? */
.who-panel { width: min(520px, 100%) !important; text-align: center; }
.who-panel h2 { font-size: 1.4rem; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.who-chip {
  padding: 14px 10px; border-radius: 14px; border: 0; font-size: 1.05rem; font-weight: 800; color: #0b0f14; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 42%, rgba(0,0,0,0) 55%, rgba(0,0,0,.16) 100%), var(--c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 20px -10px var(--c); transition: transform .12s;
}
.who-chip:hover { transform: translateY(-2px); }
.who-chip:active { transform: scale(.97); }
.who-chip.on { outline: 3px solid var(--text); outline-offset: 2px; }
.you { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); font-size: .92rem; white-space: nowrap; }
.you a { font-weight: 500; color: var(--muted); font-size: .85rem; }
.you-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.hub-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
