/* analyze.css — extracted from analyze.html. Eccentryx Scan surface. */

:root {
  color-scheme: dark;
  --bg: #090b0f;
  --panel: #11161f;
  --panel-2: #0d1118;
  --line: #263140;
  --line-strong: #3d5068;
  --text: #f4f7fb;
  --muted: #9ca8b7;
  --soft: #cbd5e1;
  --blue: #58a6ff;
  --green: #4ade80;
  --amber: #f8c66d;
  --red: #fb7185;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --how-mt:18px;--how-border:var(--line);--how-radius:8px;--how-bg:rgba(17,22,31,0.6);
  --how-sum-pad:14px 18px;--how-sum-color:var(--text);--how-accent:var(--blue);--how-sum-fs:.92rem;
  --how-body-pad:0 18px 14px;--how-body-color:var(--muted);--how-strong-color:var(--text);
  --how-body-mt:12px;--how-body-fs:.88rem;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100%;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, #090b0f 0%, #0f1721 52%, #08110e 100%);
  color: var(--text);
}
a { color: var(--blue); text-underline-offset: 0.2em; }
main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px 18px 72px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 166, 255, 0.48);
  border-radius: 8px;
  background: #101a25;
  color: var(--green);
  font-weight: 900;
}
.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(17, 22, 31, 0.82);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero-copy {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(88, 166, 255, 0.26);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.92);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}
h1 {
  max-width: 13ch;
  margin: 0;
  font-size: 3rem;
  line-height: 0.94;
  letter-spacing: 0;
}
.sub {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 1rem;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.proof {
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(17, 22, 31, 0.84);
}
.proof strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.94rem;
}
.proof span {
  color: var(--muted);
  font-size: 0.84rem;
}
.scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 22, 31, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.section-head {
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #121a25;
}
h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: 0;
}
.method {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
  font-size: 0.88rem;
}
.section-head .muted {
  margin: 8px 0 0;
}
.section-body {
  padding: 18px;
}
label {
  display: block;
  margin: 11px 0 5px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 750;
}
input, select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}
input[type="file"] {
  padding: 9px;
  color: var(--muted);
}
input[type="checkbox"] {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.72);
  color: var(--soft);
  font-size: 0.84rem;
}
.consent label {
  margin: 0;
  color: var(--soft);
  font-weight: 600;
}
button {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
button:hover { background: #1d4ed8; }
button:disabled {
  opacity: 0.66;
  cursor: default;
  box-shadow: none;
}
.out { margin-top: 14px; }
.preview {
  width: 100%;
  max-width: none;
  max-height: 310px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  margin-top: 10px;
  display: none;
  background: #070a0f;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  margin-top: 10px;
  background: #0c1118;
}
.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.96rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}
/* color + non-color (symbol) state — colorblind-safe (WCAG 1.4.1) */
.badge.up { background: rgba(74, 222, 128, 0.13); color: var(--green); }
.badge.up::after { content: " \25B2"; }
.badge.down { background: rgba(251, 113, 133, 0.13); color: var(--red); }
.badge.down::after { content: " \25BC"; }
.badge.hold { background: rgba(203, 213, 225, 0.12); color: var(--soft); }
.badge.hold::after { content: " \2014"; }
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}
.metric-row strong {
  max-width: 58%;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}
.metric-row:last-child { border-bottom: 0; }
.bar-wrap {
  height: 9px;
  margin: 5px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b2430;
}
.bar-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--soft);
  font-size: 0.82rem;
}
.err {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
}
.note {
  color: var(--amber);
  font-size: 0.85rem;
}
.out:focus {
  outline: 3px solid rgba(88, 166, 255, 0.32);
  outline-offset: 4px;
  border-radius: 8px;
}
.hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.female-only { display: none; }
footer {
  max-width: 72ch;
  margin-top: 26px;
  color: #7f8b9b;
  font-size: 0.82rem;
}
/* progressive disclosure — shared .how block (see tools-how-partial.html) */
.how{margin-top:var(--how-mt,18px);border:1px solid var(--how-border);border-radius:var(--how-radius,12px);background:var(--how-bg);overflow:hidden}
.how summary{list-style:none;cursor:pointer;padding:var(--how-sum-pad,14px 16px);font-weight:600;color:var(--how-sum-color);font-size:var(--how-sum-fs,.92rem);display:flex;align-items:center;justify-content:space-between}
.how summary::-webkit-details-marker{display:none}
.how summary::after{content:"+";color:var(--how-accent);font-weight:700;font-size:1.15rem;line-height:1}
.how[open] summary::after{content:"\2212"}
.how summary:focus-visible{outline:2px solid var(--how-accent);outline-offset:-2px}
.how-body{padding:var(--how-body-pad,0 16px 14px);border-top:1px solid var(--how-border)}
.how-body p{margin:var(--how-body-mt,12px) 0 0;font-size:var(--how-body-fs,.88rem);color:var(--how-body-color);line-height:1.5}
.how-body p strong{color:var(--how-strong-color)}
.how-icon{color:var(--how-accent);font-size:1.15rem}
.how-note { font-style: italic; }
@media (max-width: 900px) {
  .hero, .scan-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  h1 { font-size: 2.35rem; }
}
@media (max-width: 580px) {
  main { padding: 16px 12px 56px; }
  .topbar { align-items: flex-start; }
  .nav { flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 22px 18px; }
  .proof-grid, .row, .row.three { grid-template-columns: 1fr; }
  .section-body, .section-head { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none !important; }
}
