
/* Tokens live in css/trust-slate.css (skyqon-ui.css retired, Trust Slate B6). Page-specific
   layout only below. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body::before {
  content: ""; position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  z-index: 0;
}
[data-theme="light"] body::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(10,22,40,.05) 1px, transparent 0);
}
/* Bright gold fails AA on white — soften accent text/headline highlights. */
[data-theme="light"] .hero h1 .yellow,
[data-theme="light"] .nav-brand-text .yellow { color: var(--gold); }
.nav-v2 {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(14,26,46,.6);
  backdrop-filter: blur(12px);
}
[data-theme="light"] .nav-v2 { background: rgba(255,255,255,.85); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
/* Full wordmark at natural aspect ratio. Uses skyqon-logo.png (the
   brighter-blue variant the marketing sites run on their dark navs) —
   NOT skyqon-logo-2026.png, whose darker blue vanishes on navy. */
.nav-brand img { height: 28px; width: auto; }
.nav-brand-text {
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.nav-brand-text .yellow { color: var(--gold); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-link {
  font-size: 13px; color: var(--text-secondary);
  text-decoration: none; padding: 6px 12px; border-radius: 4px;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }
.nav-cta {
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 4px; background: var(--yellow); color: var(--yellow-text);
  text-decoration: none;
}
.nav-cta:hover { filter: brightness(1.08); }

.hero {
  position: relative; z-index: 1;
  padding: 60px 24px 30px; text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  margin-bottom: 14px; letter-spacing: -.02em; line-height: 1.15;
}
.hero h1 .yellow { color: var(--gold); }
.hero p {
  font-size: 16px; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 32px; line-height: 1.55;
}

.form-card {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: 24px; border: 1px solid var(--border-bright);
  background: var(--card-bg); border-radius: 10px;
}
.form-row {
  display: flex; gap: 8px; align-items: stretch;
}
.form-row input {
  flex: 1; padding: 14px 16px; font-size: 16px;
  background: var(--input-bg); color: var(--input-text);
  border: 1px solid var(--input-border); border-radius: var(--radius-control);
  font-family: var(--font-mono);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input::placeholder { color: var(--input-placeholder); }
.form-row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }
/* The one gold action on this screen (v3): flat gold fill, dark ink, no glow. */
.form-row button {
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  background: var(--gold-fill); color: var(--cta-on);
  border: none; border-radius: var(--radius-control); cursor: pointer;
  white-space: nowrap;
  transition: transform .1s, filter .15s;
}
.form-row button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.form-row button:disabled { opacity: .55; cursor: wait; }
.form-hint {
  font-size: 12px; color: var(--text-muted);
  margin-top: 10px; text-align: center;
}
.form-error {
  display: none; margin-top: 12px; padding: 10px 14px;
  background: rgba(220,60,60,.10); color: var(--red);
  border: 1px solid rgba(220,60,60,.30); border-radius: 4px;
  font-size: 13px;
}

.results {
  position: relative; z-index: 1;
  max-width: 720px; margin: 30px auto 0;
  display: none;
}
.result-card {
  padding: 18px 20px; margin-bottom: 12px;
  background: var(--card-bg); border: 1px solid var(--border-bright);
  border-radius: 8px;
}
.result-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.result-grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.result-grade.A { background: rgba(52,211,153,.18); color: var(--green); }
.result-grade.B,
.result-grade.C { background: rgba(251,191,36,.18); color: var(--amber); }
.result-grade.D,
.result-grade.F { background: rgba(220,60,60,.16); color: var(--red); }
.result-grade.NA { background: rgba(255,255,255,.05); color: var(--text-muted); font-size: 14px; }
.result-title {
  font-size: 15px; font-weight: 600;
}
.result-meta {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.result-summary {
  font-size: 14px; color: var(--text-secondary); line-height: 1.55;
  margin-bottom: 10px;
}
.result-findings {
  margin: 8px 0 0; padding-left: 0; list-style: none;
}
.result-findings li {
  padding: 6px 0; font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.result-findings .dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px;
}
.result-findings .dot.crit { background: var(--red); }
.result-findings .dot.warn { background: var(--amber); }
.result-findings .dot.info { background: var(--text-muted); }
.result-error {
  font-size: 12px; color: var(--red); font-family: var(--font-mono);
}

.cta-card {
  margin-top: 20px; padding: 24px;
  border: 1px solid var(--blue-bd); border-radius: 10px;
  background: var(--blue-wash);
  text-align: center;
}
.cta-card h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 8px;
}
.cta-card p {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 16px;
  max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.55;
}
.cta-card a {
  display: inline-block; padding: 12px 28px; font-size: 15px; font-weight: 600;
  background: var(--yellow); color: var(--yellow-text);
  text-decoration: none; border-radius: 6px;
}
.cta-card a:hover { filter: brightness(1.08); }

.score-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.score-wrap svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.score-wrap .score-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; font-family: var(--font-mono);
}
.copy-btn {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-bright); border-radius: 4px; cursor: pointer;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--yellow); }

.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

footer {
  position: relative; z-index: 1;
  margin-top: auto; padding: 28px 24px;
  font-size: 12px; color: var(--text-muted); text-align: center;
  border-top: 1px solid var(--border);
}
footer a { color: var(--text-secondary); text-decoration: none; margin: 0 6px; }
footer a:hover { color: var(--text-primary); }

@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .form-row button { width: 100%; }
}

/* ---- a11y parity (matches the marketing sites) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Inline-style migration (toward dropping style-src 'unsafe-inline'). */
.lg-yellow { color: var(--yellow); }
.lg-cta-pdf { margin-top: 10px; font-size: .85rem; }

/* phase-5 de-inline (check-1.js) */
.lg-ck1 { color:var(--green); }
.lg-ck2 { margin-bottom:0; }
.lg-ck3 { display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }

/* ── Mobile responsiveness pass (2026-08-15) — max-width guarded only ── */
@media (max-width: 600px) {
  /* Header actions ran ~53px past a 375px viewport; wrap instead of clip. */
  .nav-v2 { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; }
  .nav-actions { flex-wrap: wrap; gap: 8px; }
  .form-row input { font-size: 16px; } /* stop iOS focus-zoom */
}
