/* Qriton brand layer: the www.qriton.com tokens and components for the header, the public landing, the public views
   and the footer. Loaded after style.css. Every class is prefixed q- so the application styles are not affected. */

:root {
    --q-ink: #0a0d12;
    --q-text: #2f353d;
    --q-muted: #69717c;
    --q-line: #e4e7ea;
    --q-bg: #ffffff;
    --q-soft: #f6f7f8;
    --q-dark: #07090d;
    --q-dark-text: #b9c1ca;
    --q-dark-line: rgba(255, 255, 255, 0.12);
    --q-accent: #0072b1;

    --q-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --q-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
    --q-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --q-wrap: 1200px;
    --q-gutter: clamp(20px, 4vw, 40px);
    --q-sec: clamp(88px, 11vw, 160px);
    --q-hdr: 76px;
    --q-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Visitors who are not signed in always get the light pages, as on www.qriton.com. */
html[data-theme="dark"]:has(.q-guest) {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;
    --text-primary: #1a1a2e;
    --text-secondary: #5a6070;
    --text-muted: #8a8fa0;
    --accent: #0077a8;
    --accent-light: #0099d6;
    --accent-dim: #005f87;
    --accent-gradient: linear-gradient(135deg, #0099d6, #005f87);
    --danger: #dc3545;
    --warning: #e67e00;
    --success: #28a745;
    --border: #e0e4ea;
    --shadow: rgba(0, 0, 0, 0.08);
}

/* ---------- base ---------- */
.q-hdr, .q-drawer, .q-main > section, .q-ftr {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#app:not([v-cloak]) { display: flex; flex-direction: column; min-height: 100vh; }
.q-main { display: block; flex: 1 0 auto; }
.q-main:focus { outline: none; }
.q-skip {
    position: absolute; left: 12px; top: -60px; z-index: 1200;
    padding: 10px 14px; border-radius: 6px;
    background: var(--q-ink); color: #fff;
    font: 500 15px/1.2 var(--q-font); text-decoration: none;
}
.q-skip:focus { top: 12px; }
.q-wrap { max-width: var(--q-wrap); margin: 0 auto; padding: 0 var(--q-gutter); }
.q-hdr :focus-visible, .q-drawer :focus-visible, .q-main > section :focus-visible, .q-ftr :focus-visible {
    outline: 2px solid var(--q-accent); outline-offset: 3px; border-radius: 3px;
}
.q-hero :focus-visible, .q-closing :focus-visible, .q-ftr :focus-visible, .q-hdr.q-over :focus-visible { outline-color: #fff; }

/* ---------- type ---------- */
.q-h1, .q-h2, .q-main > section h3 {
    margin: 0; font-family: var(--q-display); font-weight: 500; color: var(--q-ink);
}
.q-h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1; letter-spacing: -0.04em; }
.q-h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.q-lead { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--q-muted); max-width: 34em; }

/* ---------- buttons ---------- */
.q-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.q-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
    font: 600 15.5px/1 var(--q-font); white-space: nowrap; text-decoration: none; cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.q-btn-dark { background: var(--q-ink); color: #fff; }
.q-btn-dark:hover { background: #222b36; }
.q-btn-light { background: #fff; color: var(--q-ink); }
.q-btn-light:hover { background: #e7ecf1; }
.q-link {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 15.5px/1.2 var(--q-font); color: var(--q-ink); text-decoration: none;
}
.q-btn svg, .q-link svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s var(--q-ease); }
.q-btn:hover svg, .q-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.q-hdr {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--q-line);
    color: var(--q-ink); font-family: var(--q-font);
    --q-logo-dot: #fff; --q-prod: var(--q-muted); --q-sep: #cdd3da;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.q-hdr-in {
    max-width: var(--q-wrap); height: var(--q-hdr); margin: 0 auto; padding: 0 var(--q-gutter);
    display: flex; align-items: center; gap: 40px;
}
.q-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: inherit; text-decoration: none; }
.q-logo-mark { display: block; width: 26px; height: 26px; }
.q-lm-sq { fill: currentColor; }
.q-lm-dot { fill: var(--q-logo-dot); }
.q-logo-word, .q-logo-prod { font-family: var(--q-display); font-size: 20px; line-height: 1; letter-spacing: 0.01em; }
.q-logo-word { font-weight: 600; }
.q-logo-prod { font-weight: 500; color: var(--q-prod); margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--q-sep); }
.q-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.q-nav-link {
    display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
    font-size: 15px; font-weight: 500; color: inherit; text-decoration: none; white-space: nowrap;
    opacity: 0.8; transition: opacity 0.15s;
}
.q-nav-link:hover, .q-nav-link[aria-current="page"] { opacity: 1; }
.q-hdr-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.q-signin { padding: 0 8px; }
.q-menu-btn {
    display: none; place-items: center; margin-left: auto; width: 44px; height: 44px; padding: 0;
    border: 0; background: none; color: inherit; cursor: pointer;
}
.q-menu-btn svg { width: 24px; height: 24px; }

/* over the dark hero of the landing: transparent at the top, white once the page scrolls (as on www.qriton.com) */
.q-hdr.q-over {
    position: fixed; left: 0; right: 0;
    background: var(--q-dark); -webkit-backdrop-filter: none; backdrop-filter: none;
    border-color: transparent; color: #fff;
    --q-logo-dot: var(--q-dark); --q-prod: rgba(255, 255, 255, 0.62); --q-sep: rgba(255, 255, 255, 0.28);
}
.q-hdr.q-over .q-btn-dark { background: #fff; color: var(--q-ink); }
html.q-js .q-hdr.q-over { background: transparent; }
html.q-js.q-scrolled .q-hdr.q-over {
    background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-color: var(--q-line); color: var(--q-ink);
    --q-logo-dot: #fff; --q-prod: var(--q-muted); --q-sep: #cdd3da;
}
html.q-js.q-scrolled .q-hdr.q-over .q-btn-dark { background: var(--q-ink); color: #fff; }
html.q-js .q-hdr:not(.q-over):not(.q-app) { border-color: transparent; }
html.q-js.q-scrolled .q-hdr:not(.q-over):not(.q-app) { border-color: var(--q-line); }

/* signed in: the application header follows the light or dark theme; no blur so the account menu overlay covers the page */
.q-hdr.q-app {
    background: var(--bg-secondary); -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom-color: var(--border); color: var(--text-primary);
    --q-hdr: 64px; --q-logo-dot: var(--bg-secondary); --q-prod: var(--text-secondary); --q-sep: var(--border);
}
.q-hdr.q-app .q-hdr-in { max-width: 1400px; padding: 0 2rem; gap: 28px; }
.q-hdr.q-app .q-nav-link { padding: 0 10px; font-size: 14.5px; color: var(--text-secondary); opacity: 1; }
.q-hdr.q-app .q-nav-link:hover, .q-hdr.q-app .q-nav-link[aria-current="page"] { color: var(--text-primary); }
/* the signed-in application keeps a visible "you are here" mark across its eight views */
.q-hdr.q-app .q-nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.q-hdr .user-menu-trigger { height: 38px; font: inherit; font-size: 14px; color: inherit; }
.q-hdr .user-email { font-size: 14px; }

/* ---------- mobile drawer ---------- */
.q-drawer {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; flex-direction: column;
    background: #fff; color: var(--q-ink); font-family: var(--q-font);
    --q-logo-dot: #fff; --q-prod: var(--q-muted); --q-sep: #cdd3da;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s var(--q-ease), visibility 0s linear 0.3s;
}
.q-drawer.open { transform: none; visibility: visible; transition: transform 0.3s var(--q-ease), visibility 0s; }
.q-drawer-top { flex: none; height: var(--q-hdr); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--q-gutter); }
.q-drawer-close { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.q-drawer-body { flex: 1; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--q-gutter) 32px; }
.q-d-link {
    display: block; padding: 18px 0; border-bottom: 1px solid var(--q-line);
    font-family: var(--q-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
    color: inherit; text-decoration: none;
}
.q-d-link[aria-current="page"] { color: var(--q-accent); }
.q-d-small { padding: 14px 0; font-family: var(--q-font); font-size: 17px; }
.q-d-meta { margin: 28px 0 4px; font-size: 14px; color: var(--q-muted); overflow-wrap: anywhere; }
.q-d-cta { width: 100%; margin-top: 28px; }
.q-drawer.q-app { background: var(--bg-secondary); color: var(--text-primary); --q-logo-dot: var(--bg-secondary); --q-prod: var(--text-secondary); --q-sep: var(--border); --q-hdr: 64px; }
.q-drawer.q-app .q-d-link { border-color: var(--border); }
.q-drawer.q-app .q-d-link[aria-current="page"] { color: var(--accent); }
.q-drawer.q-app .q-d-meta { color: var(--text-secondary); }
@media (min-width: 1041px) { .q-drawer:not(.q-app) { display: none; } }
@media (min-width: 1281px) { .q-drawer { display: none; } }

/* ---------- landing ---------- */
.q-section { padding: var(--q-sec) 0; background: var(--q-bg); color: var(--q-text); font: 17px/1.6 var(--q-font); }
.q-section.q-soft { background: var(--q-soft); }
.q-head { max-width: 15ch; margin-bottom: clamp(40px, 5vw, 72px); }

.q-hero {
    position: relative; overflow: hidden;
    padding: calc(var(--q-hdr) + clamp(56px, 8vw, 120px)) 0 clamp(72px, 9vw, 136px);
    background: var(--q-dark); color: var(--q-dark-text); font: 17px/1.6 var(--q-font);
}
.q-hero .q-wrap { position: relative; }
.q-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.q-hero .q-h1 { max-width: 12.5ch; margin-bottom: 28px; color: #fff; }
.q-hero .q-lead { margin-bottom: 40px; color: #c6ced7; }
.q-hero .q-link, .q-closing .q-link { color: #fff; }

/* decision log, as on www.qriton.com/products/shield */
.q-ui { overflow: hidden; background: #fff; border: 1px solid var(--q-line); border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(10, 13, 18, 0.35); color: var(--q-text); font-size: 15px; }
.q-hero .q-ui { border-color: transparent; box-shadow: 0 48px 96px -32px rgba(0, 0, 0, 0.7); }
.q-ui-bar { display: flex; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--q-line); }
.q-ui-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e1e5e9; }
.q-log { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px; margin: 0; padding: 6px clamp(22px, 3vw, 32px) 10px; list-style: none; }
.q-log li {
    grid-column: 1 / -1; display: grid; grid-template-columns: 66px 100px minmax(0, 1fr); grid-template-columns: subgrid;
    column-gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--q-line);
}
.q-log li:last-child { border-bottom: 0; }
.q-log time { font-family: var(--q-mono); font-size: 13px; color: var(--q-muted); }
.q-log p { margin: 0; line-height: 1.5; color: var(--q-text); }
.q-act { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; }
.q-act-block { background: #fbe9e9; color: #a32f2f; }
.q-act-challenge { background: #fbf1df; color: #8a5a10; }
.q-act-allow { background: #e4f6ec; color: #0f7a48; }

/* split: title left, text right */
.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.q-split .q-h2 { max-width: 14ch; }
.q-split-body p { margin: 0 0 1em; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--q-text); }
.q-split-body p:first-child { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--q-ink); }
.q-split-body p:last-child { margin-bottom: 0; }

/* rows */
.q-rows { border-top: 1px solid var(--q-line); }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--q-line); }
.q-row h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.025em; }
.q-row p { margin: 0; font-size: 17px; color: var(--q-muted); }

/* steps */
.q-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--q-line); }
.q-step { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--q-line); }
.q-n { font-size: 15px; color: var(--q-muted); font-variant-numeric: tabular-nums; }
.q-step h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.q-step p { margin: 0; color: var(--q-muted); }

/* facts */
.q-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.q-fact { padding-top: 24px; border-top: 1px solid var(--q-line); }
.q-num { margin: 0; font-family: var(--q-display); font-size: clamp(44px, 5vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; color: var(--q-ink); }
.q-num small { margin-left: 4px; font-size: 0.45em; letter-spacing: -0.02em; }
.q-fact p:not(.q-num) { margin: 14px 0 0; max-width: 22ch; font-size: 16px; color: var(--q-muted); }

/* questions */
.q-faq { border-top: 1px solid var(--q-line); }
.q-faq details { border-bottom: 1px solid var(--q-line); }
.q-faq summary {
    display: flex; justify-content: space-between; gap: 24px; padding: 26px 0;
    list-style: none; cursor: pointer;
    font-family: var(--q-display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--q-ink);
}
.q-faq summary::-webkit-details-marker { display: none; }
.q-faq summary::after { content: "+"; flex: none; font-weight: 400; color: var(--q-muted); }
.q-faq details[open] summary::after { content: "\2212"; }
.q-faq-a { margin: 0; padding: 0 0 28px; max-width: 46em; color: var(--q-muted); }

/* closing band */
.q-closing { padding: clamp(96px, 12vw, 176px) 0; background: var(--q-dark); color: var(--q-dark-text); text-align: center; font: 17px/1.6 var(--q-font); }
.q-closing .q-h2 { max-width: 16ch; margin: 0 auto 40px; color: #fff; }
.q-closing .q-btns { justify-content: center; }
.q-closing-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 40px 0 0; font-size: 15px; color: var(--q-dark-text); }
.q-closing-steps span { opacity: 0.45; }

/* ---------- footer ---------- */
.q-ftr { padding: 0 0 40px; background: var(--q-dark); color: var(--q-dark-text); font: 15px/1.6 var(--q-font); --q-logo-dot: var(--q-dark); }
.q-ftr-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 80px; border-top: 1px solid var(--q-dark-line); }
.q-ftr .q-logo { color: #fff; }
.q-ftr-brand p { margin: 18px 0 0; color: #8a94a0; }
.q-ftr-h { margin: 0 0 18px; font-family: var(--q-font); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: #fff; }
.q-ftr ul { margin: 0; padding: 0; list-style: none; }
.q-ftr li + li { margin-top: 10px; }
.q-ftr a { color: inherit; text-decoration: none; }
.q-ftr a:hover { color: #fff; }
.q-ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--q-dark-line); font-size: 14px; color: #8a94a0; }
.q-ftr-bottom nav { display: flex; gap: 24px; }

/* ---------- application touches ---------- */
/* signed-out views line up with the header and footer */
.q-guest { --text-muted: var(--q-muted); }
.q-guest > .main { max-width: var(--q-wrap); padding-left: var(--q-gutter); padding-right: var(--q-gutter); }

/* cookie notice as on www.qriton.com: a compact dark card */
.gdpr-bar {
    left: 16px; right: auto; bottom: 16px; max-width: 400px;
    justify-content: space-between; gap: 16px; padding: 14px 16px 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: var(--q-ink); color: #c6ced7;
    font: 14px/1.5 var(--q-font); box-shadow: 0 24px 48px -24px rgba(10, 13, 18, 0.5);
}
.gdpr-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gdpr-bar button {
    flex: none; padding: 9px 16px; border: 0; border-radius: 999px;
    background: #fff; color: var(--q-ink); font: 600 14px/1 var(--q-font); white-space: nowrap;
}
.gdpr-bar button:hover { background: #e7ecf1; border-color: transparent; color: var(--q-ink); }
.gdpr-bar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
    .q-hdr.q-app .q-nav { display: none; }
    .q-hdr.q-app .q-menu-btn { display: grid; margin-left: 0; }
}
@media (max-width: 1040px) {
    .q-hdr:not(.q-app) .q-nav, .q-hdr:not(.q-app) .q-hdr-end { display: none; }
    .q-hdr:not(.q-app) .q-menu-btn { display: grid; }
    .q-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .q-hero .q-ui { max-width: 640px; }
    .q-ftr-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .q-ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .q-hdr.q-app .q-user, .q-hdr.q-app .user-menu-backdrop { display: none; }
    .q-hdr.q-app .q-hdr-in { padding: 0 var(--q-gutter); }
    .q-section, .q-hero, .q-closing { font-size: 16px; }
    .q-hero .q-h1 { max-width: none; }
    .q-btns .q-btn { flex: 1 1 auto; }
    .q-log { padding: 4px 20px 8px; }
    .q-log { grid-template-columns: auto minmax(0, 1fr); }
    .q-log li { grid-template-columns: 66px minmax(0, 1fr); grid-template-columns: subgrid; row-gap: 8px; padding: 14px 0; }
    .q-log li p { grid-column: 1 / -1; }
    .q-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .q-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; }
    .q-row p { font-size: 16px; }
    .q-step { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
    .q-step p { grid-column: 2; }
    .q-facts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .q-ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gdpr-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .q-drawer, .q-drawer.open, .q-hdr, .q-btn svg, .q-link svg { transition: none; }
}

/* ---------- public views: IP lookup, sign-in, register, false positives, legal pages, decision record ---------- */
/* Scoped to .q-page (the root of each visitor view) and .q-overlay (the decision record), so the signed-in dashboards
   keep their styles. Visitors always get the light page, as on www.qriton.com; a signed-in user with the dark theme
   gets the same layout in dark. */
.q-page, .q-overlay {
    --pg-bg: #fff;
    --pg-panel: #fff;
    --pg-ink: var(--q-ink);
    --pg-text: var(--q-text);
    --pg-muted: var(--q-muted);
    --pg-line: var(--q-line);
    --pg-field: #c9d0d7;
    --pg-track: #eceff2;
    --pg-btn: var(--q-ink);
    --pg-btn-text: #fff;
    --pg-btn-hover: #222b36;
    --pg-focus: var(--q-accent);
    --pg-err: #b3261e;
    --pg-ok: #0f7a48;
    --pg-block-bg: #fbe9e9;
    --pg-block: #a32f2f;
    --pg-chal-bg: #fbf1df;
    --pg-chal: #8a5a10;
    --pg-allow-bg: #e4f6ec;
    --pg-allow: #0f7a48;
    --pg-limit-bg: #e7eef6;
    --pg-limit: #2b5279;
    --pg-none-bg: #eceff2;
    --pg-none: #4a525c;
    --pg-up: #b8423c;
    --pg-down: #1f7f52;
}
html[data-theme="dark"] .q-main:not(.q-guest) .q-page,
html[data-theme="dark"]:not(:has(.q-guest)) .q-overlay {
    --pg-bg: var(--bg-primary);
    --pg-panel: var(--bg-secondary);
    --pg-ink: #eef1f5;
    --pg-text: #c6cdd6;
    --pg-muted: #9aa3ae;
    --pg-line: #2a3140;
    --pg-field: #4a5364;
    --pg-track: #262d3a;
    --pg-btn: #fff;
    --pg-btn-text: var(--q-ink);
    --pg-btn-hover: #e7ecf1;
    --pg-focus: #6cb6ff;
    --pg-err: #ff9a92;
    --pg-ok: #6fdba4;
    --pg-block-bg: rgba(248, 81, 73, 0.16);
    --pg-block: #ffaba4;
    --pg-chal-bg: rgba(210, 153, 34, 0.18);
    --pg-chal: #f2cc60;
    --pg-allow-bg: rgba(46, 160, 67, 0.18);
    --pg-allow: #7ee2a8;
    --pg-limit-bg: rgba(56, 139, 253, 0.16);
    --pg-limit: #a5cdf7;
    --pg-none-bg: rgba(255, 255, 255, 0.08);
    --pg-none: #c6cdd6;
    --pg-up: #ff9a92;
    --pg-down: #6fdba4;
}
body:has(.q-main.q-guest) { background: #fff; }
html:not([data-theme="dark"]) .q-main:not(.q-guest):has(> .main > .q-page) { background: #fff; }

.main > .q-page {
    display: block; max-width: none; min-height: 0; margin: 0;
    padding-bottom: clamp(64px, 9vw, 136px);
    color: var(--pg-text); font: 17px/1.6 var(--q-font);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.q-page :focus-visible, .q-overlay :focus-visible { outline: 2px solid var(--pg-focus); outline-offset: 3px; border-radius: 3px; }
.q-page p, .q-overlay p { margin: 0; }
.q-page h2, .q-page h3, .q-overlay h2, .q-overlay h3 { margin: 0; font-family: var(--q-display); font-weight: 500; color: var(--pg-ink); }

/* page head, as the page hero on www.qriton.com */
.q-page .q-phead { padding-top: clamp(40px, 7vw, 104px); }
.q-page .q-label { margin-bottom: 20px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--pg-muted); }
.q-page .q-h1 { max-width: 14em; margin: 0 0 24px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; color: var(--pg-ink); text-wrap: balance; }
.q-page .q-lead { color: var(--pg-muted); text-wrap: pretty; }
.q-page .q-btns { margin-top: 36px; }
.q-page .q-aside { margin-top: 28px; font-size: 16px; color: var(--pg-muted); }
.q-page .q-aside a, .q-page .q-check a, .q-page .q-why-signin a, .q-page .q-prose a {
    color: var(--pg-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.q-page .q-pgrid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 112px);
    align-items: start; padding-top: clamp(40px, 7vw, 104px);
}
.q-page .q-pgrid > .q-phead { padding-top: 0; }
.q-page .q-pgrid .q-h1 { max-width: 10em; }
.q-page .q-pside { min-width: 0; }
.q-page .q-psec { padding-top: clamp(72px, 9vw, 128px); }
.q-page .q-h2 { margin-bottom: clamp(28px, 3.5vw, 48px); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.q-page .q-steps, .q-page .q-step, .q-page .q-rows, .q-page .q-row { border-color: var(--pg-line); }
.q-page .q-step p, .q-page .q-row p, .q-page .q-n { color: var(--pg-muted); }

/* forms, as on www.qriton.com/contact: small labels over underline fields */
.q-page .q-form { display: grid; gap: 28px; }
.q-page .q-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; }
.q-page .q-field { display: flex; flex-direction: column; min-width: 0; }
.q-page .q-field label { margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--pg-muted); }
.q-page .q-field input,
.q-page .q-field select,
.q-page .q-field textarea {
    width: 100%; min-width: 0; margin: 0; padding: 10px 0;
    border: 0; border-bottom: 1px solid var(--pg-field); border-radius: 0;
    background-color: transparent; box-shadow: none;
    font: 400 17px/1.5 var(--q-font); color: var(--pg-ink);
    -webkit-appearance: none; appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.q-page .q-field textarea { min-height: 116px; resize: vertical; }
.q-page .q-field select {
    padding-right: 28px; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369717c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 16px;
}
.q-page .q-field select option { color: #0a0d12; background: #fff; }
.q-page .q-field input::placeholder, .q-page .q-field textarea::placeholder { color: var(--pg-muted); opacity: 0.75; }
.q-page .q-field input:focus, .q-page .q-field select:focus, .q-page .q-field textarea:focus {
    outline: none; border-bottom-color: var(--pg-ink); box-shadow: 0 1px 0 var(--pg-ink);
}
.q-page .q-field :user-invalid { border-bottom-color: var(--pg-err); }
.q-page .q-field :user-invalid:focus { box-shadow: 0 1px 0 var(--pg-err); }
.q-page .q-field input:disabled {
    color: var(--pg-muted); -webkit-text-fill-color: var(--pg-muted); opacity: 1;
    border-bottom-style: dashed; cursor: not-allowed;
}
.q-page .q-field input:-webkit-autofill { -webkit-text-fill-color: var(--pg-ink); box-shadow: inset 0 0 0 40px var(--pg-bg); }
.q-page .q-field input:-webkit-autofill:focus { box-shadow: inset 0 0 0 40px var(--pg-bg), 0 1px 0 var(--pg-ink); }
.q-page .q-hint { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--pg-muted); }
.q-page .q-check label { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--pg-text); cursor: pointer; }
.q-page .q-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pg-ink); cursor: pointer; }
.q-page .q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.q-page .q-btn-dark { background: var(--pg-btn); color: var(--pg-btn-text); }
.q-page .q-btn-dark:hover:not(:disabled) { background: var(--pg-btn-hover); }
.q-page .q-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.q-page .q-btn:disabled:hover svg { transform: none; }
.q-page .q-link { color: var(--pg-ink); }
.q-page button.q-link { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.q-page .q-status { font-size: 15px; line-height: 1.55; }
.q-page .q-err { color: var(--pg-err); }
.q-page .q-err strong { font-weight: 600; }
.q-page .q-err .error-reason { margin-top: 6px; color: var(--pg-text); }
.q-page .q-notice { padding-bottom: 22px; border-bottom: 1px solid var(--pg-line); }
.q-page .q-notice-h { margin-bottom: 6px; font-weight: 600; color: var(--pg-ink); }
.q-page .q-notice p + p { font-size: 16px; color: var(--pg-muted); }
.q-page .q-done { display: grid; justify-items: start; gap: 12px; }
.q-page .q-ok { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--pg-ok); }
.q-page .q-ok svg { flex: none; width: 18px; height: 18px; }
.q-page .q-done-h { margin: 6px 0 4px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.q-page .q-done strong { font-weight: 600; color: var(--pg-ink); overflow-wrap: anywhere; }
.q-page .q-done .q-link { margin-top: 14px; }
.q-page .q-muted { color: var(--pg-muted); }
.q-page .q-mono { font-family: var(--q-mono); font-size: 0.9em; color: var(--pg-ink); overflow-wrap: anywhere; }

/* IP lookup: the result as hairline rows, decisions with the badges of the decision log */
.q-page .q-search { display: flex; align-items: flex-end; gap: 20px 24px; max-width: 760px; margin-top: clamp(36px, 4.5vw, 56px); }
.q-page .q-search .q-field { flex: 1 1 auto; }
.q-page .q-search .q-btn { flex: none; }
.q-page .q-result { margin-top: clamp(56px, 7vw, 96px); }
.q-page .q-res-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
    padding-bottom: 28px; border-bottom: 1px solid var(--pg-line);
}
.q-page .q-res-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-width: 0; }
.q-page .q-res-ip { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.q-page .q-res-score { text-align: right; }
.q-page .q-res-num { font-family: var(--q-display); font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.q-page .q-res-num small { margin-left: 2px; font-size: 0.5em; letter-spacing: -0.02em; }
.q-page .q-res-cap { margin-top: 8px; font-size: 14px; color: var(--pg-muted); }
.q-page .q-res-note { padding-top: 22px; font-size: 18px; color: var(--pg-text); }
.q-page .q-res-note + .q-kv { margin-top: 22px; border-top: 1px solid var(--pg-line); }
.q-page .q-kv { margin: 0; }
.q-page .q-kv > div {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 6px 32px; align-items: baseline;
    padding: 20px 0; border: 0; border-bottom: 1px solid var(--pg-line);
}
.q-page .q-kv dt { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--pg-ink); }
.q-page .q-kv dd { margin: 0; min-width: 0; color: var(--pg-text); overflow-wrap: anywhere; }
.q-page .q-sub { display: block; margin-top: 2px; font-size: 15px; color: var(--pg-muted); }
.q-page .q-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.q-page .q-tag { padding: 2px 10px; border: 1px solid var(--pg-line); border-radius: 999px; font-family: var(--q-mono); font-size: 13px; line-height: 1.6; color: var(--pg-ink); }
.q-page .q-counts { display: grid; grid-template-columns: minmax(0, max-content) max-content; gap: 4px 48px; margin: 0; padding: 0; list-style: none; }
.q-page .q-counts li { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-columns: subgrid; align-items: baseline; }
.q-page .q-pat { min-width: 0; font-family: var(--q-mono); font-size: 15px; color: var(--pg-text); overflow-wrap: anywhere; }
.q-page .q-count { justify-self: end; font-family: var(--q-mono); font-size: 15px; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.q-page .q-dec-sum strong { font-weight: 600; color: var(--pg-ink); }
.q-page .q-dec-sum .tier-badge { margin-left: 4px; }
.q-page .q-why, .q-page .q-why-signin { margin-top: 10px; }
.q-page .q-why-signin { font-size: 15px; color: var(--pg-muted); }

/* status badges, as in the decision log on www.qriton.com/products/shield */
.q-page .q-act { text-transform: uppercase; white-space: nowrap; }
.q-page .tier-badge, .q-overlay .tier-badge {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
    background: var(--pg-none-bg); color: var(--pg-none);
}
.q-page .q-act-block, .q-page .tier-badge.tier-3, .q-overlay .tier-badge.tier-3 { background: var(--pg-block-bg); color: var(--pg-block); }
.q-page .q-act-challenge, .q-page .tier-badge.tier-2, .q-overlay .tier-badge.tier-2 { background: var(--pg-chal-bg); color: var(--pg-chal); }
.q-page .q-act-limit, .q-page .tier-badge.tier-1, .q-overlay .tier-badge.tier-1 { background: var(--pg-limit-bg); color: var(--pg-limit); }
.q-page .q-act-allow, .q-page .tier-badge.tier-0, .q-overlay .tier-badge.tier-0 { background: var(--pg-allow-bg); color: var(--pg-allow); }
.q-page .q-act-none { background: var(--pg-none-bg); color: var(--pg-none); }

/* legal pages, as the article layout on www.qriton.com */
.q-page .q-doc { max-width: 760px; margin: 0 auto; }
.q-page .q-doc .q-h1 { margin-bottom: 16px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.q-page .q-doc-date { font-size: 15px; color: var(--pg-muted); }
.q-page .q-prose { margin-top: clamp(40px, 5vw, 64px); font-size: 18px; line-height: 1.75; color: var(--pg-text); }
.q-page .q-prose h2 { margin: 48px 0 14px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.q-page .q-prose h2:first-child { margin-top: 0; }
.q-page .q-prose h3 { margin: 28px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }
.q-page .q-prose h2 + h3 { margin-top: 20px; }
.q-page .q-prose p, .q-page .q-prose ul { margin: 0 0 1.1em; }
.q-page .q-prose ul { padding-left: 1.25em; list-style: disc; }
.q-page .q-prose li { margin: 0.35em 0; }
.q-page .q-prose li::marker { color: var(--pg-muted); }
.q-page .q-prose strong { font-weight: 600; color: var(--pg-ink); }
.q-page .q-back { margin-top: 40px; font-size: 15px; font-weight: 500; color: var(--pg-muted); }
.q-page .q-back:hover { color: var(--pg-ink); }
.q-page .q-back svg { width: 15px; height: 15px; }
.q-page .q-back:hover svg { transform: translateX(-3px); }

/* the decision record: a white panel with hairlines */
.q-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(7, 9, 13, 0.6);
    color: var(--pg-text); font: 16px/1.6 var(--q-font);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.q-modal {
    display: flex; flex-direction: column; width: 100%; max-width: 760px; max-height: min(86vh, 920px); overflow: hidden;
    background: var(--pg-panel); border: 1px solid var(--pg-line); border-radius: 18px;
    box-shadow: 0 48px 96px -32px rgba(10, 13, 18, 0.45);
}
.q-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 32px; border-bottom: 1px solid var(--pg-line); }
.q-overlay .q-modal-title { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.q-modal-close {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: var(--pg-muted); font: 400 28px/1 var(--q-font); cursor: pointer;
}
.q-modal-close:hover { background: var(--pg-track); color: var(--pg-ink); }
.q-modal-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 32px 28px; }
.q-overlay .q-modal-body:focus-visible { outline-offset: -3px; }
.q-modal-state { display: grid; justify-items: center; gap: 14px; padding: 48px 0 28px; text-align: center; color: var(--pg-muted); }
.q-spin { width: 28px; height: 28px; border: 2px solid var(--pg-line); border-top-color: var(--pg-ink); border-radius: 50%; animation: q-spin 0.9s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-modal-ip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 22px 0 20px; border-bottom: 1px solid var(--pg-line); }
.q-modal-addr { font-family: var(--q-display); font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--pg-ink); overflow-wrap: anywhere; }
.q-modal-count { font-size: 14px; color: var(--pg-muted); }
.q-decs { margin: 0; padding: 0; list-style: none; }
.q-dec { padding: 24px 0; border-bottom: 1px solid var(--pg-line); }
.q-dec:last-child { padding-bottom: 4px; border-bottom: 0; }
.q-dec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.q-dec-shield { font-weight: 600; color: var(--pg-ink); }
.q-dec-time { margin-left: auto; font-family: var(--q-mono); font-size: 13px; color: var(--pg-muted); }
.q-dec-stats { display: flex; flex-wrap: wrap; gap: 6px 40px; margin: 16px 0 0; }
.q-dec-stats div { display: flex; align-items: baseline; gap: 10px; }
.q-dec-stats dt { font-size: 14px; color: var(--pg-muted); }
.q-dec-stats dd { margin: 0; font-family: var(--q-mono); font-size: 15px; color: var(--pg-ink); font-variant-numeric: tabular-nums; }
.q-dec-sec { margin-top: 22px; }
.q-overlay .q-dec-sec h3 { margin-bottom: 10px; font-family: var(--q-font); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--pg-ink); }
.q-attr { margin: 0; padding: 0; list-style: none; }
.q-attr li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 64px; align-items: center; gap: 16px; padding: 6px 0; }
.q-attr-name { font-size: 14px; color: var(--pg-text); }
.q-attr-track { display: block; height: 4px; overflow: hidden; border-radius: 2px; background: var(--pg-track); }
.q-attr-bar { display: block; height: 100%; border-radius: 2px; }
.q-attr-bar.positive { background: var(--pg-up); }
.q-attr-bar.negative { background: var(--pg-down); }
.q-attr-val { font-family: var(--q-mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.q-attr-val.positive { color: var(--pg-up); }
.q-attr-val.negative { color: var(--pg-down); }
.q-feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 28px; margin: 0; border-top: 1px solid var(--pg-line); }
.q-feat div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pg-line); }
.q-feat dt { font-size: 14px; color: var(--pg-muted); }
.q-feat dd { margin: 0; font-family: var(--q-mono); font-size: 13px; color: var(--pg-ink); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
    .main > .q-page { font-size: 16px; }
    .q-page .q-pgrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .q-page .q-two { grid-template-columns: minmax(0, 1fr); }
    .q-page .q-search { flex-direction: column; align-items: stretch; }
    .q-page .q-search .q-btn, .q-page .q-actions .q-btn, .q-page .q-btns .q-btn { width: 100%; }
    .q-page .q-res-head { align-items: flex-start; }
    .q-page .q-res-score { text-align: left; }
    .q-page .q-kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
    .q-page .q-prose { font-size: 17px; }
    .q-page .q-prose h2 { margin-top: 40px; font-size: 24px; }
    .q-overlay { padding: 12px; }
    .q-modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
    .q-modal-head { padding: 12px 10px 12px 20px; }
    .q-overlay .q-modal-title { font-size: 20px; }
    .q-modal-body { padding: 0 20px 20px; }
    .q-modal-addr { font-size: 24px; }
    .q-attr li { grid-template-columns: minmax(0, 1fr) 56px; gap: 6px 12px; }
    .q-attr-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .q-spin { animation-duration: 2.4s; }
    .q-page .q-field input, .q-page .q-field select, .q-page .q-field textarea { transition: none; }
}
