/* QSense PQC Scan — dark engineering aesthetic.
   Palette mirrors to.qsenselab.com (teal / sky / slate). */

:root {
  --bg-0: #07090d;
  --bg-1: #0f141c;
  --bg-2: #131a24;
  --bg-3: #1a2332;
  --line: #1f2a3a;
  --line-bright: #2c3a52;

  --fg-0: #e7eef7;
  --fg-1: #aab4c4;
  --fg-2: #6b7689;
  --fg-3: #4b5366;

  --accent: #10b981;     /* green for ready */
  --accent-2: #0ea5e9;   /* sky for accent gradients */
  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #10b981;
  --pending: #4b5366;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Prompt', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .num { font-family: var(--mono); }
pre { background: var(--bg-1); border: 1px solid var(--line); padding: .8rem 1rem; overflow-x: auto; border-radius: 6px; font-size: .9em; }
code { color: #d4e3f1; background: transparent; }
pre code { color: #d4e3f1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- header / nav --- */

.site-header {
  padding: 18px max(20px, 6vw);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,185,129,.04), transparent);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg-0); font-weight: 600; }
.brand-mark {
  height: 34px; width: auto; flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(16,185,129,.35));
}
.brand-name { font-size: 1.1rem; letter-spacing: .01em; }
.brand-accent { color: var(--accent); }
.site-nav { display: flex; gap: 1rem; font-size: .9rem; align-items: center; }
.site-nav a { color: var(--fg-1); }
.site-nav a:hover { color: var(--fg-0); text-decoration: none; }
.site-nav .nav-back {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16,185,129,.06);
  color: var(--fg-0);
  transition: background .15s ease, border-color .15s ease;
}
.site-nav .nav-back:hover {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.5);
  text-decoration: none;
}

/* --- hero --- */

.hero {
  position: relative;
  padding: 96px max(20px, 6vw) 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(16,185,129,.14), transparent 65%),
    radial-gradient(ellipse 60% 60% at 85% 10%, rgba(14,165,233,.10), transparent 60%),
    radial-gradient(ellipse 100% 90% at 50% 100%, rgba(124,58,237,.08), transparent 65%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.5) 1px, transparent 1.5px),
    radial-gradient(circle at 75% 60%, rgba(255,255,255,.3) 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.4) 1px, transparent 1.5px),
    radial-gradient(circle at 90% 30%, rgba(255,255,255,.35) 1px, transparent 1.5px);
  background-size: 320px 320px, 540px 540px, 380px 380px, 250px 250px;
  background-position: 0 0, 100px 80px, 200px 200px, 50px 150px;
  animation: drift 60s linear infinite;
}
#globe-stage {
  position: absolute;
  right: -10%; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px;
  opacity: .55;
  filter: blur(.4px) saturate(1.1);
  mix-blend-mode: screen;
}
@media (max-width: 900px) {
  #globe-stage { right: -50%; opacity: .35; }
}

/* --- Orbiting keys / certs around a globe ---
   The system is sized to its parent so radii given as % scale with it.   */
.orbit-system {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.orbit-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: calc(32px * var(--scale, 1));
  height: calc(32px * var(--scale, 1));
  margin: calc(-16px * var(--scale, 1)) 0 0 calc(-16px * var(--scale, 1));
  filter: drop-shadow(0 0 12px currentColor);
  animation-duration: var(--dur, 24s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.orbit-icon svg { width: 100%; height: 100%; display: block; }
.orbit-spin   { animation-name: orbit-cw; }
.orbit-spin-r { animation-name: orbit-ccw; }

.orbit-key    { color: rgba(110, 231, 183, .65); }  /* emerald */
.orbit-cert   { color: rgba(125, 211, 252, .65); }  /* sky */
.orbit-icon   { filter: drop-shadow(0 0 10px currentColor); opacity: .85; }

@keyframes orbit-cw {
  from { transform: rotate(0deg)   translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
@keyframes orbit-ccw {
  from { transform: rotate(0deg)    translateX(var(--r)) rotate(0deg); }
  to   { transform: rotate(-360deg) translateX(var(--r)) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-icon { animation: none; opacity: .35; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(7,9,13,.65), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg-0));
}
@keyframes drift {
  to { background-position: 800px 200px, 200px -300px, -200px 600px, 400px 400px; }
}

.hero-inner { max-width: 920px; margin: 0 auto; position: relative; }
.hero-eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--mono); font-size: .78rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: .14em;
  padding: 5px 12px; border: 1px solid rgba(16,185,129,.4);
  border-radius: 999px; background: rgba(16,185,129,.06);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 22px;
  text-shadow: 0 4px 60px rgba(16,185,129,.18);
}
.grad-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--fg-1); font-size: 1.05rem; margin: 0 0 28px; max-width: 70ch; }

.scan-form {
  display: grid; gap: 10px;
  grid-template-columns: 1fr auto;
  max-width: 720px;
}
.scan-form > input[type="text"] { grid-column: 1; }
.scan-form > button { grid-column: 2; }
.scan-service-row {
  grid-column: 1 / -1;
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .scan-service-row { grid-template-columns: 1fr; }
}
.scan-service .req { color: #f87171; margin-left: 2px; }
.scan-service small {
  font-size: .68rem; color: var(--fg-2); text-transform: none;
  letter-spacing: 0; font-family: inherit; opacity: .8;
}
.scan-service, .scan-custom {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.scan-service > span, .scan-custom > span {
  font-size: .72rem; color: var(--fg-2); text-transform: uppercase;
  letter-spacing: .08em; font-family: var(--mono);
}
.scan-service select, .scan-custom input, .scan-custom select {
  padding: 10px 14px; font-family: var(--mono); font-size: .92rem;
  background: var(--bg-1); color: var(--fg-0);
  border: 1px solid var(--line-bright); border-radius: 6px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
                    linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.scan-custom input { background-image: none; padding-right: 14px; }
.service-note {
  grid-column: 1 / -1; margin: 6px 0 0; color: var(--fg-2);
  font-size: .82rem; line-height: 1.5; max-width: 70ch;
}
.service-note:empty { display: none; }
.scan-service select:focus, .scan-custom input:focus, .scan-custom select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.scan-form input {
  flex: 1; padding: 14px 18px; font-family: var(--mono); font-size: 1rem;
  background: var(--bg-1); color: var(--fg-0);
  border: 1px solid var(--line-bright); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.scan-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
}
.scan-form button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 0 22px; min-height: 48px; font-family: var(--sans);
  font-size: 1rem; font-weight: 600; color: #04140d;
  background: linear-gradient(135deg, #34d399, #10b981);
  border: 0; border-radius: 8px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(16,185,129,.25);
  transition: transform .1s, box-shadow .15s;
}
.scan-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.35); }
.scan-form button:active { transform: translateY(0); }

.quota { margin-top: 16px; color: var(--fg-2); font-size: .85rem; font-family: var(--mono); }

/* --- globe section --- */

.globe-section {
  max-width: 1280px; margin: 0 auto; padding: 32px max(20px, 6vw);
}
.globe-header {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: end; justify-content: space-between;
  margin-bottom: 18px;
}
.globe-header h2 {
  margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(120deg, #e7eef7, #6ee7b7 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.globe-header p { margin: 6px 0 0; color: var(--fg-1); max-width: 60ch; font-size: .92rem; }
.globe-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-family: var(--mono); font-size: .82rem; color: var(--fg-1); }
.globe-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.legend-ready     { background: #10b981; color: #10b981; }
.legend-capable   { background: #f59e0b; color: #f59e0b; }
.legend-not_ready { background: #ef4444; color: #ef4444; }
.legend-insecure  { background: #dc2626; color: #dc2626; }
.globe-stage-wrap {
  position: relative;
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden;
  /* Establish a query container so .orbit-icon's --r in cqmin units
     resolves against the wrapper's own dimensions, not the viewport. */
  container-type: size;
  container-name: globe-wrap;
  box-shadow:
    inset 0 0 60px rgba(14,165,233,.08),
    0 24px 60px -28px rgba(16,185,129,.15);
}
.globe-canvas {
  width: 100%; aspect-ratio: 16 / 9; min-height: 420px;
  background: radial-gradient(ellipse at center, #0a1422, #04070b 70%);
  overflow: hidden;
}

/* --- info grid --- */

.info-grid {
  display: grid; gap: 18px; padding: 32px max(20px, 6vw);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1280px; margin: 0 auto;
}
.info-grid article {
  background: linear-gradient(180deg, rgba(19,26,36,.92), rgba(15,20,28,.92));
  border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 40px -28px rgba(0,0,0,.6);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.info-grid article:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 16px 50px -28px rgba(16,185,129,.25);
}
.info-grid h2 { margin: 0 0 12px; font-size: 1.05rem; color: var(--fg-0); letter-spacing: .01em; }
.info-grid p { color: var(--fg-1); margin: 0 0 8px; font-size: .92rem; }
.info-grid .cite { color: var(--fg-2); font-style: italic; font-size: .85rem; }

.probe-list { padding-left: 1.1rem; margin: 0; color: var(--fg-1); font-size: .92rem; }
.probe-list li { margin: 4px 0; }

.stats-card .stat-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .9rem;
}
.stats-card .stat-row:last-of-type { border-bottom: 0; }
.stats-card .stat-row strong { color: var(--accent); }

.verdict-bars { margin-top: 14px; display: grid; gap: 8px; }
.verdict-bar { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 10px; font-size: .85rem; font-family: var(--mono); }
.verdict-bar-label { color: var(--fg-2); text-transform: capitalize; }
.verdict-bar-track { background: var(--bg-2); height: 8px; border-radius: 4px; overflow: hidden; }
.verdict-bar-fill { display: block; height: 100%; background: var(--fg-3); border-radius: 4px; transition: width .3s ease; }
.verdict-bar-count { color: var(--fg-1); text-align: right; }
.verdict-ready  .verdict-bar-fill { background: var(--ok); }
.verdict-capable .verdict-bar-fill { background: var(--warn); }
.verdict-pure_only .verdict-bar-fill { background: var(--warn); }
.verdict-not_ready .verdict-bar-fill { background: var(--danger); }
.verdict-insecure .verdict-bar-fill { background: var(--danger); }
.verdict-unreachable .verdict-bar-fill { background: var(--fg-3); }

/* --- CLI / API card --- */

.cli-card {
  max-width: 1280px; margin: 0 auto; padding: 32px max(20px, 6vw) 64px;
}
.cli-card h2 { margin: 0 0 12px; font-size: 1.05rem; }
.cli-card p { color: var(--fg-1); font-size: .9rem; margin: 14px 0 6px; }

/* --- report page --- */

.report { max-width: 1280px; margin: 0 auto; padding: 24px max(20px, 6vw) 64px; }
.report-header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px;
  align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .report-header { grid-template-columns: 1fr; gap: 14px; }
}
.report-target { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.report-target-label { font-size: .8rem; color: var(--fg-2); text-transform: uppercase; letter-spacing: .08em; }
.report-target-host {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg-0);
  overflow-wrap: anywhere;
  word-break: normal;
}
.report-target-port { color: var(--fg-2); font-weight: 400; margin-left: .15em; }
.report-addrs { font-family: var(--mono); font-size: .82rem; color: var(--fg-2); overflow-wrap: anywhere; }

.report-verdict {
  align-self: start; display: inline-flex; align-items: center; gap: .55rem;
  padding: 10px 18px; font-weight: 600; font-size: .95rem;
  background: var(--bg-1); color: var(--fg-1);
  border: 1px solid var(--line-bright); border-radius: 999px;
  font-family: var(--mono);
}
.report-verdict .verdict-icon {
  width: 10px; height: 10px; border-radius: 50%; background: var(--fg-3);
  box-shadow: 0 0 0 4px rgba(75,83,102,.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.report-verdict[data-verdict="ready"]  { color: #d1fae5; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.08); }
.report-verdict[data-verdict="ready"] .verdict-icon { background: var(--accent); box-shadow: 0 0 0 4px rgba(16,185,129,.25); animation: none; }
.report-verdict[data-verdict="capable"], .report-verdict[data-verdict="pure_only"]  { color: #fef3c7; border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.08); }
.report-verdict[data-verdict="capable"] .verdict-icon, .report-verdict[data-verdict="pure_only"] .verdict-icon { background: var(--warn); box-shadow: 0 0 0 4px rgba(245,158,11,.25); animation: none; }
.report-verdict[data-verdict="not_ready"], .report-verdict[data-verdict="insecure"] { color: #fee2e2; border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.08); }
.report-verdict[data-verdict="not_ready"] .verdict-icon, .report-verdict[data-verdict="insecure"] .verdict-icon { background: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.25); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

.report-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.card h2 { margin: 0 0 16px; font-size: 1rem; color: var(--fg-0); letter-spacing: .01em; }
.probe-card, .summary-card,
.cert-card, .share-card, .actions-card { grid-column: 1; }

.probe-table {
  width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .88rem;
  line-height: 1.5;
}
.probe-table th, .probe-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.probe-table th:first-child, .probe-table td:first-child { padding-left: 4px; }
.probe-table th:last-child,  .probe-table td:last-child  { padding-right: 4px; }
.probe-table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-2); border-bottom: 1px solid var(--line); font-weight: 500;
  padding-top: 4px; padding-bottom: 10px;
}
.probe-table tbody tr { border-bottom: 1px solid var(--line); }
.probe-table tbody tr:last-child { border-bottom: 0; }
.probe-table tbody td { color: var(--fg-1); }
.probe-table tbody td { overflow-wrap: anywhere; word-break: normal; }
.probe-table tbody td code { overflow-wrap: anywhere; }
.probe-table .num { text-align: right; color: var(--fg-2); white-space: nowrap; }
.probe-row--ok td:first-child code { color: var(--ok); }
.probe-row--fail td:first-child code { color: var(--danger); }
.probe-row--pending td:first-child code { color: var(--pending); }
.probe-table small { display: block; color: var(--fg-2); font-size: .78em; margin-top: 4px; line-height: 1.4; overflow-wrap: anywhere; }

.card { overflow-wrap: anywhere; }
.card pre { max-width: 100%; }
.card table { max-width: 100%; }
.probe-label { font-size: .72em; color: var(--fg-2); margin-top: 2px; font-family: var(--sans); }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .72rem;
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-family: var(--sans);
}
.badge-ok      { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.4); }
.badge-fail    { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.badge-pending { background: rgba(75,83,102,.20); color: var(--fg-2); border: 1px solid var(--line-bright); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:.55;} 50%{opacity:1;} }

.cert-dl { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 18px; font-size: .88rem; line-height: 1.55; }
.cert-dl dt { color: var(--fg-2); padding-top: 2px; }
.cert-dl dd { margin: 0; color: var(--fg-1); font-family: var(--mono); overflow-wrap: anywhere; word-break: normal; min-width: 0; }
.cert-dl dd .badge { margin-left: 6px; vertical-align: middle; }
@media (max-width: 560px) {
  .cert-dl { grid-template-columns: 1fr; gap: 4px 0; }
  .cert-dl dt { padding-top: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
  .cert-dl dt:first-child { padding-top: 0; }
}

.cert-expiry {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px;
  padding: 14px 18px; margin: 0 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-bright);
  background: var(--bg-2);
  font-family: var(--mono);
}
.cert-expiry-num { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.cert-expiry-unit { font-size: .82rem; color: var(--fg-1); text-transform: uppercase; letter-spacing: .08em; }
.cert-expiry-meta { font-size: .78rem; color: var(--fg-2); margin-left: auto; }
.cert-expiry--ok   { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.06); }
.cert-expiry--ok   .cert-expiry-num { color: #6ee7b7; text-shadow: 0 0 24px rgba(16,185,129,.35); }
.cert-expiry--warn { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.08); }
.cert-expiry--warn .cert-expiry-num { color: #fbbf24; text-shadow: 0 0 24px rgba(245,158,11,.4); }
.cert-expiry--fail { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.10);
                     animation: expiry-pulse 2.4s ease-in-out infinite; }
.cert-expiry--fail .cert-expiry-num { color: #fca5a5; text-shadow: 0 0 30px rgba(239,68,68,.5); }
@keyframes expiry-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.0); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,.18); }
}

.san-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(14,165,233,.10); border: 1px solid rgba(14,165,233,.35);
  color: #bae6fd; font-family: var(--mono); font-size: .78rem;
}
.chip-more { background: rgba(75,83,102,.18); border-color: var(--line-bright); color: var(--fg-2); }
.sector-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-sector {
  background: rgba(168,85,247,.10);
  border-color: rgba(168,85,247,.4);
  color: #ddd6fe;
}
.chip-subsector {
  background: rgba(168,85,247,.06);
  border-color: rgba(168,85,247,.25);
  color: #c4b5fd;
}
.cert-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-warn { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.4); }
.badge-mute { background: rgba(75,83,102,.18); color: var(--fg-2); border: 1px solid var(--line-bright); }

.fingerprint {
  font-size: .72rem !important; line-height: 1.4; color: var(--fg-2);
  word-break: break-all;
}

/* --- Browser compatibility grid --- */

.browser-card { grid-column: 1; }
.browser-grid { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .85rem; margin-top: 8px; }
.browser-grid th, .browser-grid td {
  padding: 12px 12px; text-align: left; vertical-align: top;
}
.browser-grid thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--fg-2); border-bottom: 1px solid var(--line); font-weight: 500;
}
.browser-grid tbody tr { border-bottom: 1px solid var(--line); }
.browser-grid tbody tr:last-child { border-bottom: 0; }
.browser-grid .num { text-align: right; color: var(--fg-2); width: 50px; }
.browser-name { display: flex; align-items: center; gap: 8px; color: var(--fg-0); font-weight: 600; }
.browser-note { color: var(--fg-2); font-family: var(--sans); font-size: .78rem; margin-top: 3px; max-width: 50ch; line-height: 1.4; }
.browser-grid small { display: block; color: var(--fg-2); font-size: .76em; margin-top: 2px; }

.browser-icon {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  display: inline-block; box-shadow: 0 0 12px currentColor; opacity: .9;
}
.browser-icon--chrome   { background: conic-gradient(from 60deg, #ea4335, #fbbc04, #34a853, #4285f4, #ea4335); color: #4285f4; }
.browser-icon--firefox  { background: radial-gradient(circle at 35% 35%, #ffce4d, #ff7139 40%, #e1185c 80%); color: #ff7139; }
.browser-icon--safari   { background: radial-gradient(circle at 50% 30%, #6dcfff, #007aff 60%); color: #007aff; }
.browser-icon--java     { background: linear-gradient(135deg, #5382a1, #f89820 60%); color: #f89820; }

.browser-row--pqc        { background: linear-gradient(90deg, rgba(16,185,129,.05), transparent 60%); }
.browser-row--classical  { background: linear-gradient(90deg, rgba(245,158,11,.05), transparent 60%); }
.browser-row--ok         { /* classical is fine for non-PQC client */ }
.browser-row--fail       { background: linear-gradient(90deg, rgba(239,68,68,.07), transparent 60%); }
.browser-row--pending small,
.browser-row--pending td { color: var(--fg-2); }

.badge-browser              { font-family: var(--sans); }
.badge-browser--pqc         { background: rgba(16,185,129,.14); color: #6ee7b7; border: 1px solid rgba(16,185,129,.5); }
.badge-browser--classical   { background: rgba(245,158,11,.14); color: #fde68a; border: 1px solid rgba(245,158,11,.5); }
.badge-browser--ok          { background: rgba(75,83,102,.20); color: var(--fg-1); border: 1px solid var(--line-bright); }
.badge-browser--fail        { background: rgba(239,68,68,.14); color: #fca5a5; border: 1px solid rgba(239,68,68,.5); }

.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; font-family: var(--mono); }
.summary-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--fg-1); }
.summary-list li.ok   { border-color: rgba(16,185,129,.4); }
.summary-list li.warn { border-color: rgba(245,158,11,.4); }
.summary-list li.fail { border-color: rgba(239,68,68,.4); }

.hint { color: var(--fg-2); font-size: .85rem; margin-top: 12px; }
.hint--advisory {
  color: #fbbf24;
  background: rgba(251, 191, 36, .08);
  border-left: 3px solid #fbbf24;
  padding: 8px 12px;
  border-radius: 4px;
}

.badge-preview { display: block; margin-top: 12px; }

.ssh-card .ssh-h3 {
  margin: 18px 0 8px; font-size: .8rem; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.ssh-h3--ok   { color: #6ee7b7; }
.ssh-h3--warn { color: #fbbf24; }
.ssh-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ssh-list li {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); font-size: .82rem; color: var(--fg-1);
  background: var(--bg-2);
}
.ssh-list--ok li {
  border-color: rgba(16,185,129,.4);
  background: rgba(16,185,129,.06); color: #6ee7b7;
}
.ssh-list--warn li {
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.06); color: #fde68a;
}

.error-page { max-width: 640px; margin: 80px auto; padding: 0 20px; text-align: center; }
.error-page h1 { font-size: 2rem; margin: 0 0 12px; }
.error-message { color: var(--fg-1); font-family: var(--mono); }
.back { display: inline-block; margin-top: 24px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px max(20px, 6vw) 28px;
  background: var(--bg-1); color: var(--fg-2); font-size: .85rem;
}
.footer-cols {
  display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr;
  max-width: 1280px; margin: 0 auto 18px;
}
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer strong { color: var(--fg-0); display: block; margin-bottom: 6px; font-size: .9rem; }
.site-footer ul { padding-left: 1.1rem; margin: 0; }
.site-footer li { margin: 4px 0; }
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer small { display: block; max-width: 1280px; margin: 0 auto; color: var(--fg-3); font-size: .78rem; }

/* --- recent public scans grid --- */

.recent-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px max(20px, 6vw) 32px;
}
.recent-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.recent-header h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--fg-0); letter-spacing: .01em; }
.recent-header p  { margin: 0; color: var(--fg-2); font-size: .88rem; max-width: 60ch; }

.recent-legend {
  display: flex; align-items: center; gap: 14px;
  font-size: .78rem; color: var(--fg-2); font-family: var(--mono);
}
.recent-legend .legend-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  margin-right: 5px; vertical-align: 1px;
}
.legend-dot.legend-ready     { background: var(--ok); }
.legend-dot.legend-capable   { background: var(--warn); }
.legend-dot.legend-not_ready { background: var(--danger); }
.legend-dot.legend-insecure  { background: #b91c1c; }

.recent-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.recent-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(19,26,36,.92), rgba(15,20,28,.92));
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg-0); text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: hidden;
}
/* Verdict accent stripe down the left edge */
.recent-card::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--fg-3);
  opacity: .9;
}
.recent-ready::before     { background: var(--ok); }
.recent-capable::before,
.recent-pure_only::before { background: var(--warn); }
.recent-not_ready::before { background: var(--danger); }
.recent-insecure::before  { background: #b91c1c; }

.recent-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset,
              0 16px 40px -28px rgba(16,185,129,.30);
  text-decoration: none;
}

.recent-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.recent-pill {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid currentColor; color: var(--fg-2);
  background: rgba(75, 83, 102, 0.08);
}
.recent-pill.recent-ready     { color: var(--ok);     background: rgba(16,185,129,.10); }
.recent-pill.recent-capable,
.recent-pill.recent-pure_only { color: var(--warn);   background: rgba(245,158,11,.10); }
.recent-pill.recent-not_ready { color: var(--danger); background: rgba(239,68,68,.10); }
.recent-pill.recent-insecure  { color: #fca5a5;       background: rgba(185,28,28,.18); border-color: #b91c1c; }

.recent-time {
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--mono);
  font-size: .72rem; color: var(--fg-2);
  line-height: 1.3;
}
.recent-time .recent-rel { color: var(--fg-1); }
.recent-time .recent-abs { color: var(--fg-3); font-size: .68rem; }

/* Live indicator next to "Recent public scans" heading */
.recent-live {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px;
  font-family: var(--mono);
  font-size: .68rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
  vertical-align: 2px;
}
.recent-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16,185,129,.55);
  animation: recent-pulse 2.4s ease-out infinite;
}
@keyframes recent-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.recent-live-flash { color: var(--ok); transition: color .3s; }

/* Fresh-card highlight after a poll cycle reveals a new scan */
.recent-fresh { animation: recent-card-in .55s ease-out; }
@keyframes recent-card-in {
  from { opacity: 0; transform: translateY(8px); border-color: var(--ok); }
  to   { opacity: 1; transform: none; }
}

.recent-host {
  font-family: var(--mono);
  font-size: .98rem; font-weight: 500;
  color: var(--fg-0);
  word-break: break-all;
  line-height: 1.3;
}
.recent-host-name { color: var(--fg-0); }
.recent-port      { color: var(--fg-2); }

.recent-card-bot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--fg-2);
}
.recent-service {
  padding: 2px 7px;
  background: var(--bg-2);
  border-radius: 4px;
  color: var(--fg-1);
  letter-spacing: .03em;
}
.recent-sector {
  padding: 2px 7px;
  background: rgba(168,85,247,.10);
  border-radius: 4px;
  color: #ddd6fe;
  letter-spacing: .03em;
  max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recent-sector--empty {
  background: rgba(75,83,102,.12);
  color: var(--fg-2);
  border: 1px dashed var(--line-bright);
}
.recent-flag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  margin-left: auto;
}
.recent-flag .recent-loc {
  font-size: .76rem; color: var(--fg-2);
  max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 540px) {
  .recent-grid { grid-template-columns: 1fr; }
  .recent-legend { font-size: .72rem; gap: 10px; }
}

/* === QES callout (HTTPS-only scope notice) =============================== */

.qes-callout {
  margin: 18px 0 8px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(14,165,233,.35);
  border-radius: 12px;
  background: linear-gradient(135deg,
              rgba(14,165,233,.08), rgba(16,185,129,.06));
}
.qes-callout-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #34d399, #0ea5e9);
  color: var(--bg-0);
}
.qes-callout-body {
  font-size: .88rem; color: var(--fg-1); line-height: 1.55;
}
.qes-callout-body strong { color: var(--fg-0); display: block; margin-bottom: 2px; }
.qes-callout-body em { color: var(--accent); font-style: normal; font-weight: 500; }
.qes-callout-body a {
  color: var(--accent-2); text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.qes-callout-body a:hover { color: #34d399; }

/* === Readiness dashboard ================================================== */

.legend-pure_only   { background: #f59e0b; color: #f59e0b; }
.legend-unreachable { background: #6b7280; color: #6b7280; }

.readiness-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 60% at 50% -10%,
              rgba(16,185,129,.10), transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
  padding: 56px 0 28px;
}
.readiness-hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.readiness-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600; letter-spacing: -.015em; margin: 8px 0 12px;
}
.readiness-hero .hero-sub { color: var(--fg-1); max-width: 78ch; }

.rs-breadcrumb { margin: 0 0 10px; font-family: var(--mono); font-size: .82rem; }
.rs-breadcrumb a { color: var(--fg-2); text-decoration: none; }
.rs-breadcrumb a:hover { color: var(--accent-2); }

.readiness-headline {
  margin: 26px 0 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px 28px;
  align-items: center;
}
.readiness-score-big {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--mono);
  line-height: 1;
}
.readiness-score-big small {
  display: block;
  margin-left: 14px;
  font-size: .72rem; color: var(--fg-2);
  font-family: var(--mono);
}
.readiness-score-num {
  font-size: 3.2rem; font-weight: 700;
  background: linear-gradient(120deg, #34d399, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.readiness-score-unit { font-size: 1.1rem; color: var(--fg-2); margin-left: 4px; }

.readiness-headline-bar {
  display: flex; height: 14px; border-radius: 7px; overflow: hidden;
  background: var(--bg-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.rh-seg { display: block; height: 100%; }

.readiness-legend {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-family: var(--mono); font-size: .78rem; color: var(--fg-1);
}
.readiness-legend > span { display: flex; align-items: center; gap: 6px; }
.readiness-legend em { color: var(--fg-2); font-style: normal; }

.readiness-window {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  margin: 12px 0 18px;
  font-family: var(--mono); font-size: .82rem; color: var(--fg-2);
}
.readiness-window a {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-1); text-decoration: none;
  background: var(--bg-2);
  transition: all .12s;
}
.readiness-window a:hover { color: var(--fg-0); border-color: var(--accent-2); }
.readiness-window a.active {
  color: var(--bg-0);
  background: linear-gradient(120deg, #34d399, #0ea5e9);
  border-color: transparent;
}

.readiness-spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 56px;
  padding: 4px;
  margin: 8px 0 4px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-1);
}
.spark-bar {
  flex: 1 1 0;
  min-width: 2px;
  background: linear-gradient(180deg, #34d399, #0ea5e9);
  border-radius: 1px;
  opacity: .85;
}
.spark-bar:hover { opacity: 1; }
.readiness-spark-axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .7rem; color: var(--fg-2);
  margin: 4px 0 0;
}

.readiness-grid-section {
  max-width: 1100px; margin: 0 auto; padding: 36px 24px 60px;
}
.readiness-grid-section h2 {
  font-size: 1.4rem; margin: 0 0 4px; letter-spacing: -.01em;
}
.readiness-grid-section .muted {
  color: var(--fg-2); font-size: .88rem; margin: 0 0 22px;
  max-width: 70ch;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.readiness-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg,
              rgba(19,26,36,.92), rgba(15,20,28,.92));
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.readiness-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(14,165,233,.5);
}
.readiness-card--low { opacity: .55; }
.readiness-card--low:hover { opacity: .85; }

.rc-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.rc-head h3 {
  margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3;
}
.rc-head h3 small {
  display: block;
  color: var(--fg-2); font-weight: 400;
  font-size: .76rem; margin-top: 2px;
  font-family: var(--mono);
}
.rc-score {
  font-family: var(--mono);
  display: flex; align-items: baseline; gap: 2px;
  white-space: nowrap;
}
.rc-score-num {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(120deg, #34d399, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-score small { color: var(--fg-2); font-size: .72rem; }

.rc-bar {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: var(--bg-3);
}
.rc-bar-seg { display: block; height: 100%; }
.rc-bar-seg.verdict-ready,    .rh-seg.verdict-ready    { background: var(--ok); }
.rc-bar-seg.verdict-capable,  .rh-seg.verdict-capable  { background: var(--warn); }
.rc-bar-seg.verdict-pure_only,.rh-seg.verdict-pure_only{ background: #fbbf24; }
.rc-bar-seg.verdict-not_ready,.rh-seg.verdict-not_ready{ background: var(--danger); }
.rc-bar-seg.verdict-insecure, .rh-seg.verdict-insecure { background: #b91c1c; }
.rc-bar-seg.verdict-unreachable,.rh-seg.verdict-unreachable { background: var(--fg-3); }

.rc-footer {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .74rem; color: var(--fg-2);
}
.rc-low { color: var(--warn); }

.rc-mini {
  display: flex; flex-wrap: wrap; gap: 4px 6px;
}
.rc-mini-pill {
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem;
  color: var(--bg-0);
  background: var(--fg-3);
  white-space: nowrap;
}
.rc-mini-pill.verdict-ready    { background: var(--ok); color: #03241a; }
.rc-mini-pill.verdict-capable  { background: var(--warn); color: #2a1d05; }
.rc-mini-pill.verdict-pure_only{ background: #fbbf24; color: #2a1d05; }
.rc-mini-pill.verdict-not_ready{ background: var(--danger); color: #2a0707; }
.rc-mini-pill.verdict-insecure { background: #b91c1c; color: #fff; }
.rc-mini-pill.verdict-unreachable { background: var(--fg-3); color: var(--bg-0); }

.readiness-disclaimer {
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent-2);
  background: rgba(14,165,233,.06);
  font-size: .85rem; color: var(--fg-1); line-height: 1.55;
  border-radius: 0 8px 8px 0;
}
.readiness-disclaimer strong { color: var(--fg-0); }

@media (max-width: 540px) {
  .readiness-headline { grid-template-columns: 1fr; }
  .readiness-grid { grid-template-columns: 1fr; }
}

/* --- Auth & login UI ----------------------------------------------------- */

.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 6px; padding: 4px 10px 4px 4px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 999px;
}
.nav-user-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-0); text-decoration: none;
}
.nav-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff; font-weight: 600; font-size: .8rem;
  object-fit: cover;
}
.nav-user-name {
  font-size: .85rem; font-weight: 500; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-logout { margin: 0; }
.nav-logout-btn {
  background: transparent; border: 1px solid rgba(148,163,184,.45);
  color: var(--fg-1); cursor: pointer;
  font-size: .8rem; font-weight: 500; letter-spacing: .3px;
  padding: 4px 11px; border-radius: 999px; line-height: 1.2;
}
.nav-logout-btn:hover {
  color: var(--fg-0); border-color: var(--fg-0);
  background: rgba(148,163,184,.12);
}
.me-signout-form { margin: 0 0 6px; }
.btn-signout {
  background: transparent; border: 1px solid rgba(148,163,184,.55);
  color: var(--fg-0); cursor: pointer;
  font-size: .9rem; font-weight: 500; letter-spacing: .3px;
  padding: 8px 18px; border-radius: 8px;
}
.btn-signout:hover {
  background: rgba(148,163,184,.14); border-color: var(--fg-0);
}
.nav-login {
  border: 1px solid var(--accent-2);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(14,165,233,.08); color: var(--fg-0);
  font-size: .85rem; font-weight: 500;
}
.nav-login:hover { background: rgba(14,165,233,.16); }

.btn-google {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: #fff; color: #1f1f1f;
  border-radius: 8px; font-weight: 500; font-size: .95rem;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  transition: box-shadow .15s, transform .05s;
}
.btn-google:hover { box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.btn-google:active { transform: translateY(1px); }

.quota-cta {
  margin-left: 8px;
  color: var(--accent-2); font-weight: 500; text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.quota-cta:hover { color: var(--accent-1); }

/* Login page */
.login-page {
  max-width: 540px; margin: 60px auto; padding: 0 20px;
}
.login-card {
  background: var(--bg-1); border: 1px solid var(--bg-3);
  border-radius: 12px; padding: 36px 32px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.login-card h1 {
  margin: 0 0 8px; font-size: 1.7rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-sub { color: var(--fg-1); margin: 0 0 24px; line-height: 1.6; }
.login-sub a { color: var(--accent-2); }
.login-card .btn-google { width: 100%; justify-content: center; padding: 12px 20px; }
.login-fineprint { font-size: .8rem; color: var(--fg-2); margin-top: 12px; }
.login-disabled {
  background: rgba(239,68,68,.1); border-left: 3px solid var(--danger);
  padding: 12px 14px; border-radius: 0 8px 8px 0;
  color: var(--fg-1);
}
.login-perks {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.perk {
  display: flex; gap: 12px; padding: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--bg-3); border-radius: 10px;
}
.perk--pri {
  background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(14,165,233,.08));
  border-color: rgba(16,185,129,.35);
}
.perk-num {
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent-1); min-width: 36px;
  font-family: 'JetBrains Mono', monospace;
}
.perk strong { display: block; font-size: .9rem; }
.perk p { margin: 4px 0 0; font-size: .8rem; color: var(--fg-2); line-height: 1.4; }

/* Profile (/me) */
.me-page { max-width: 880px; margin: 40px auto; padding: 0 20px; }
.me-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: var(--bg-1); border: 1px solid var(--bg-3);
  border-radius: 12px; margin-bottom: 20px;
}
.me-avatar { width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; }
.me-id h1 { margin: 0; font-size: 1.3rem; }
.me-email { margin: 2px 0 0; color: var(--fg-2); font-family: 'JetBrains Mono', monospace; font-size: .85rem; }
.me-id .badge-admin {
  display: inline-block; margin-top: 6px;
  background: rgba(245,158,11,.15); color: var(--warn);
  padding: 1px 8px; border-radius: 4px; font-size: .7rem; font-weight: 600;
}
.me-quota { margin-left: auto; text-align: right; }
.me-quota-num { font-size: 1.8rem; font-weight: 700; color: var(--accent-1); font-family: 'JetBrains Mono', monospace; }
.me-quota small { color: var(--fg-2); }
.me-quota em { display: block; font-size: .75rem; color: var(--fg-2); font-style: normal; }
.me-card {
  background: var(--bg-1); border: 1px solid var(--bg-3);
  border-radius: 12px; padding: 22px; margin-bottom: 18px;
}
.me-card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.me-org-form { display: flex; gap: 8px; margin-bottom: 8px; }
.me-org-form input,
.me-org-form select {
  flex: 1; padding: 9px 12px;
  background: var(--bg-0); border: 1px solid var(--bg-3);
  border-radius: 6px; color: var(--fg-0); font-size: .9rem;
}
.me-org-form button {
  padding: 9px 18px; background: var(--accent-1); color: #042b1f;
  border: 0; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.me-history { width: 100%; border-collapse: collapse; font-size: .85rem; }
.me-history th { text-align: left; color: var(--fg-2); font-weight: 500;
  padding: 6px 8px; border-bottom: 1px solid var(--bg-3); }
.me-history td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.me-history-row code { font-size: .8rem; }
.me-history-open { color: var(--accent-2); }
.badge-verdict { padding: 2px 8px; border-radius: 4px; font-size: .7rem; }
.badge-verdict.verdict-ready { background: rgba(16,185,129,.2); color: var(--accent-1); }
.badge-verdict.verdict-capable { background: rgba(245,158,11,.2); color: var(--warn); }
.badge-verdict.verdict-pure_only { background: rgba(251,191,36,.2); color: #fbbf24; }
.badge-verdict.verdict-not_ready { background: rgba(239,68,68,.2); color: var(--danger); }
.badge-verdict.verdict-insecure { background: rgba(220,38,38,.2); color: #ef4444; }
.badge-verdict.verdict-unreachable { background: rgba(107,114,128,.2); color: var(--fg-2); }
.me-danger { border-color: rgba(239,68,68,.25); }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(239,68,68,.4); border-radius: 6px;
  padding: 7px 14px; font-size: .85rem; cursor: pointer;
}
.btn-danger:hover { background: rgba(239,68,68,.08); }

/* Login wall (blur teaser on result + readiness) */
.report-detail-wrap, .readiness-grid-wrap { position: relative; }
.report-grid--locked, .readiness-grid--locked {
  filter: blur(7px) saturate(.6);
  pointer-events: none; user-select: none;
  transition: filter .2s ease;
}
.report-lock-overlay, .readiness-lock-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; padding: 20px;
}
.report-lock-overlay { top: 40px; bottom: auto; }
.report-lock-card {
  max-width: 480px; padding: 28px 32px;
  background: rgba(15,23,42,.92);
  border: 1px solid rgba(16,185,129,.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  text-align: center;
  backdrop-filter: blur(20px);
}
.report-lock-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.report-lock-card h3 {
  margin: 0 0 8px; font-size: 1.15rem;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.report-lock-card p { color: var(--fg-1); font-size: .9rem; line-height: 1.55; margin: 0 0 16px; }
.report-lock-card .btn-google { display: inline-flex; }
.report-lock-fineprint { color: var(--fg-2) !important; font-size: .75rem !important; margin-top: 12px !important; }

@media (max-width: 540px) {
  .login-perks { grid-template-columns: 1fr; }
  .me-header { flex-wrap: wrap; }
  .me-quota { margin-left: 0; text-align: left; width: 100%; }
}

/* Login form (email + org) */
.login-form {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 8px;
}
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field > span {
  font-size: .85rem; color: var(--fg-1);
}
.login-field > span em {
  color: var(--accent-1); font-style: normal; margin-left: 2px;
}
.login-field input[type="email"],
.login-field input[type="text"],
.login-field select {
  padding: 11px 14px; font-size: .95rem;
  background: var(--bg-0); color: var(--fg-0);
  border: 1px solid var(--bg-3); border-radius: 8px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus,
.login-field select:focus {
  outline: none; border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
}
.login-checkbox {
  flex-direction: row; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--fg-2); cursor: pointer;
}
.login-checkbox input { margin: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #ffffff; font-weight: 600; font-size: .95rem;
  padding: 12px 20px; border: 0; border-radius: 8px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(16,185,129,.25);
  transition: transform .05s, box-shadow .15s;
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(16,185,129,.35); }
.btn-primary:active { transform: translateY(1px); }
.login-error {
  background: rgba(239,68,68,.1); border-left: 3px solid var(--danger);
  padding: 10px 14px; border-radius: 0 8px 8px 0;
  color: #fca5a5; font-size: .88rem; margin-bottom: 14px;
}
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--fg-2); font-size: .8rem;
}
.login-divider::before, .login-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--bg-3);
}
.login-card .btn-google { width: 100%; justify-content: center; }

/* === SEO FAQ section ====================================================== */
.seo-faq {
  max-width: 880px;
  margin: 56px auto 64px;
  padding: 0 20px;
  color: var(--fg-1, #e7eef7);
}
.seo-faq h2 {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #34d399, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seo-faq details {
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(56, 78, 110, .35);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 10px;
  transition: border-color .15s, background .15s;
}
.seo-faq details[open] {
  background: rgba(15, 23, 42, .8);
  border-color: rgba(14, 165, 233, .45);
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  color: #e7eef7;
  padding: 4px 0;
  user-select: none;
  outline: none;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::before {
  content: "+ ";
  color: #34d399;
  font-weight: 700;
  margin-right: 8px;
  font-family: "JetBrains Mono", monospace;
}
.seo-faq details[open] summary::before { content: "− "; }
.seo-faq details p,
.seo-faq details ul {
  margin: 10px 0 4px;
  line-height: 1.55;
  color: #aab4c4;
  font-size: .93rem;
}
.seo-faq details ul { padding-left: 22px; }
.seo-faq details li { margin: 4px 0; }
.seo-faq code {
  background: rgba(56, 78, 110, .35);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .88em;
  color: #7dd3fc;
}
.seo-faq strong { color: #e7eef7; }
.seo-faq a { color: #34d399; }
