/* Limitless website portal — client-facing, black & gold. Self-hosted fonts only (CSP: default-src 'self'). */
@font-face {
  font-family: 'LH Inter'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'LH Inter'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'LH Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
}

.lhp {
  --void: #0A0A0A; --ink: #111111; --charcoal: #1A1A1A; --graphite: #222222; --smoke: #2E2E2E;
  --border: rgba(255,255,255,0.08); --border-top: rgba(255,255,255,0.14); --border-hover: rgba(231,167,39,0.4);
  --white: #FFFFFF; --silver: #E5E5E5; --stone: #A8A8A8; --muted: #8C8C8C;
  --gold: #E7A727; --gold-deep: #B76A00; --gold-light: #FFD24A;
  --ok: #10B981; --bad: #EF4444; --warn: #E7A727;
  --sans: 'LH Inter', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'LH Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--sans); color: var(--silver); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html, body { margin: 0; background: var(--void, #0A0A0A); }
body { min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, rgba(231,167,39,.06) 0%, transparent 55%), #0A0A0A; }
.lhp *, .lhp *::before, .lhp *::after { box-sizing: border-box; }
.lhp a { color: var(--gold); text-decoration: none; }
.lhp a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lhp ::selection { background: rgba(231,167,39,0.35); color: #fff; }
html { scrollbar-color: #2E2E2E #0A0A0A; }
.lhp :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lhp .mono { font-family: var(--mono); font-size: 0.86em; }
.lhp .muted { color: var(--muted); }
.lhp .stone { color: var(--stone); }

/* Layout */
.lhp-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }
.lhp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.lhp-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; letter-spacing: -0.01em; }
.lhp-brand img { width: 40px; height: auto; }
.lhp-who { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--stone); }
.lhp h1 { color: var(--white); font-size: 2.25rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.lhp h2 { color: var(--white); font-size: 1.25rem; font-weight: 600; margin: 0; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.lhp h3 { color: var(--stone); font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.lhp-lead { color: var(--stone); margin: 0 0 36px; max-width: 70ch; line-height: 1.7; }
.lhp-lead strong { color: var(--white); font-weight: 600; }

/* Cards: 4px radius, lighter top edge (the overhead-light detail) */
.lhp-card { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--ink);
  border: 1px solid var(--border); border-top-color: var(--border-top); border-radius: 4px; padding: 24px 28px; }
.lhp-site { margin-bottom: 24px; }
.lhp-site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.lhp-site-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lhp-site-name { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; min-width: 0; }
/* A light tile, so dark logos stay visible on black; the inset hairline keeps white ones from dissolving. */
.lhp-icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #F4F4F2; padding: 6px; object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.4); }
.lhp-monogram { display: inline-flex; align-items: center; justify-content: center; padding: 0; background: var(--graphite);
  color: var(--gold); font-weight: 650; font-size: 18px; box-shadow: inset 0 0 0 1px var(--border-top); }
.lhp-visit { font-size: 13px; }
.lhp-verdict { color: var(--silver); font-size: 16px; line-height: 1.55; margin: 10px 0 0; max-width: 72ch;
  padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.lhp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 22px; }
.lhp-section { min-width: 0; }

/* Status: always a colour AND words, never colour alone */
.lhp-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 7px 14px 7px 12px; border-radius: 9999px; white-space: nowrap; background: rgba(255,255,255,0.04); }
.lhp-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lhp-chip.lhp-ok { background: rgba(16,185,129,0.12); }
.lhp-chip.lhp-warn { background: rgba(231,167,39,0.13); }
.lhp-chip.lhp-bad { background: rgba(239,68,68,0.14); }
.lhp-ok { color: var(--ok); } .lhp-warn { color: var(--warn); } .lhp-bad { color: var(--bad); } .lhp-unknown, .lhp-quiet { color: var(--muted); }

.lhp-answer { display: flex; align-items: baseline; gap: 9px; font-size: 15px; font-weight: 600; margin: 0 0 12px; color: var(--white); }
.lhp-answer::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); background: var(--muted); }
.lhp-answer.lhp-ok::before { background: var(--ok); }
.lhp-answer.lhp-warn::before { background: var(--warn); }
.lhp-answer.lhp-bad::before { background: var(--bad); }
.lhp-answer.lhp-bad { color: #FCA5A5; }

.lhp-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.lhp-kv dt { color: var(--muted); }
.lhp-kv dd { margin: 0; color: var(--silver); text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.lhp-list { list-style: none; margin: 0 0 14px; padding: 0; }
.lhp-list > li { padding: 12px 0; border-top: 1px solid var(--border); }
.lhp-list > li:first-child { border-top: 0; padding-top: 0; }
.lhp-item { margin: 0; font-size: 14px; color: var(--silver); line-height: 1.5; }
.lhp-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; margin-right: 4px; vertical-align: 1px; background: rgba(255,255,255,0.06); }
.lhp-tag.lhp-warn { background: rgba(231,167,39,0.14); }
.lhp-where { margin: 4px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.lhp-explain { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--stone); max-width: 62ch; }
.lhp-meta { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.lhp-count { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.lhp details summary { cursor: pointer; color: var(--stone); font-size: 13px; margin-top: 8px; width: fit-content; }
.lhp details summary:hover { color: var(--gold); }
.lhp-urls { font-family: var(--mono); font-size: 12px; color: var(--stone); margin: 6px 0 0; padding-left: 16px; overflow-wrap: anywhere; }
.lhp-empty { color: var(--stone); font-size: 14px; margin: 0; }

.lhp-progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 2px 0 8px;
  border: 0; border-radius: 9999px; background: var(--graphite); overflow: hidden; }
.lhp-progress::-webkit-progress-bar { background: var(--graphite); border-radius: 9999px; }
.lhp-progress::-webkit-progress-value { background: var(--gold); border-radius: 9999px; }
.lhp-progress::-moz-progress-bar { background: var(--gold); border-radius: 9999px; }

/* Top bar: brand · tabs · who */
.lhp-top { flex-wrap: wrap; }
.lhp-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 9999px; background: rgba(255,255,255,0.02); }
.lhp-tab { font: inherit; font-size: 13px; font-weight: 500; color: var(--stone); background: transparent; border: 0; border-radius: 9999px;
  padding: 7px 16px; cursor: pointer; transition: color .2s var(--ease), background .2s var(--ease); }
.lhp-tab:hover { color: var(--white); }
.lhp-tab.is-active { color: #000; background: var(--white); }
.lhp-who-name { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Overview: one tile per site, jumps to its card */
.lhp-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 28px; }
.lhp-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 6px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-top-color: var(--border-top); border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), var(--ink); color: var(--silver);
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.lhp a.lhp-tile:hover { text-decoration: none; border-color: var(--border-hover); transform: translateY(-1px); }
.lhp-tile .lhp-icon { grid-row: 1 / span 2; width: 36px; height: 36px; padding: 5px; }
.lhp-tile .lhp-monogram { font-size: 16px; }
.lhp-tile-name { font-weight: 600; color: var(--white); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lhp-tile .lhp-chip { justify-self: start; font-size: 12px; padding: 4px 10px 4px 9px; }
.lhp-site { scroll-margin-top: 24px; }

/* Account */
.lhp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.lhp-panel h2 { font-size: 1.05rem; margin: 0 0 14px; }
.lhp-form label:first-child { margin-top: 0; }
.lhp-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.lhp-btn.lhp-inline { width: auto; margin-top: 18px; padding: 12px 22px; }
.lhp-msg.lhp-done { color: var(--ok); }
.lhp-sessions { margin-bottom: 14px; }
.lhp-sessions .lhp-tag { margin: 0 0 0 6px; }
.lhp-panel .lhp-ghost { margin-top: 4px; }

/* Forms */
.lhp-auth { max-width: 440px; margin: 9vh auto 0; }
.lhp-auth .lhp-card { padding: 32px; }
.lhp-auth .lhp-brand { justify-content: center; margin-bottom: 28px; }
.lhp label { display: block; font-size: 13px; color: var(--stone); margin: 16px 0 6px; }
.lhp input[type=email], .lhp input[type=password], .lhp input[type=text] {
  width: 100%; background: var(--void); color: var(--white); border: 1px solid var(--smoke); border-radius: 4px;
  padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .3s var(--ease); }
.lhp input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231,167,39,.15); }
.lhp input.code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.3em; text-align: center; }
.lhp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 22px;
  background: var(--white); color: #000; border: 0; border-radius: 9999px; padding: 14px 28px; font: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease); }
.lhp-btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.lhp-btn[disabled] { opacity: .5; cursor: wait; transform: none; }
.lhp-ghost { background: transparent; color: var(--stone); border: 1px solid rgba(255,255,255,.2); width: auto; margin: 0; padding: 8px 18px; }
.lhp-ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.lhp-msg { margin-top: 16px; font-size: 14px; color: var(--bad); min-height: 1.2em; }
.lhp-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.lhp-qr { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.lhp-qr img { width: 156px; height: 156px; background: #fff; padding: 8px; border-radius: 4px; image-rendering: pixelated; }
.lhp-secret { font-family: var(--mono); font-size: 13px; color: var(--white); word-break: break-all; letter-spacing: .08em; }
.lhp-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-family: var(--mono); color: var(--white); font-size: 15px;
  background: var(--void); border: 1px solid var(--smoke); border-radius: 4px; padding: 16px 18px; margin-top: 12px; }
.lhp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--stone); margin-top: 16px; }
.lhp-foot { margin-top: 48px; font-size: 12px; color: var(--muted); text-align: center; }
.lhp-preview-banner { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  border: 1px dashed rgba(231,167,39,.45); border-radius: 4px; padding: 8px 12px; margin-bottom: 18px; }

@media (max-width: 760px) {
  .lhp-grid, .lhp-panels { grid-template-columns: 1fr; gap: 26px; }
  .lhp-tabs { order: 3; width: 100%; justify-content: center; }
  .lhp-tab { flex: 1; }
}
@media (max-width: 560px) {
  .lhp-wrap { padding: 22px 14px 60px; }
  .lhp-card { padding: 20px 18px; }
  .lhp h1 { font-size: 1.75rem; }
  .lhp-verdict { font-size: 15px; }
  .lhp-qr { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lhp * { transition: none !important; }
}
