:root {
  --ink: #0a0f1f;
  --muted: #5b6476;
  --bg: #f6f2e9;
  --panel: #ffffff;
  --accent: #ff7a1a;
  --accent-2: #2f6bff;
  --accent-3: #12b981;
  --stroke: rgba(10, 15, 31, 0.1);
  --shadow: 0 22px 60px rgba(9, 12, 24, 0.12);
  --shadow-soft: 0 10px 30px rgba(9, 12, 24, 0.08);
  --glass: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  margin: 0 0 0.6rem;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 122, 26, 0.2), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(47, 107, 255, 0.18), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(18, 185, 129, 0.18), transparent 45%),
    linear-gradient(140deg, #f8f3ea 0%, #f2eee6 100%);
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 6vw;
  position: sticky;
  top: 0;
  background: rgba(246, 242, 233, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 12px 28px rgba(9, 12, 24, 0.06);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.brand .mark {
  width: 14px;
  height: 28px;
  background: linear-gradient(160deg, #ff7a1a, #ffb347);
  border-radius: 999px;
  box-shadow: 6px 0 0 var(--accent-2);
}

.nav {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  color: #3c4252;
}

.nav a:hover {
  color: #111827;
}

.main {
  padding: 2rem 6vw 3rem;
  min-height: 80vh;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42ch;
}

.search {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  position: relative;
  align-items: center;
  background: white;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.search input {
  flex: 1;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

.search button {
  background: #111827;
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.2);
}

.compare-hero {
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 680px;
}

.compare-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #111827;
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 0.9rem;
  font-size: 1.2rem;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.25);
}

.compare-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.2rem 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.compare-field {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.compare-field label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-field input {
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  font-size: 1rem;
  background: white;
  box-shadow: var(--shadow-soft);
}

.compare-vs {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #111827;
  padding-bottom: 0.7rem;
}

.compare-board {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.compare-title {
  font-size: 1.2rem;
  font-family: "Bricolage Grotesque", sans-serif;
  margin-bottom: 1.4rem;
}

.compare-grid {
  display: grid;
  gap: 0.2rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--stroke);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row.compare-header {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0;
}

.compare-row.compare-header .compare-cell {
  font-weight: 700;
}


.compare-cell {
  font-weight: 600;
}

.compare-cell.win {
  background: rgba(255, 122, 26, 0.14);
  color: #8a3a10;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  justify-self: start;
}

.compare-empty {
  color: var(--muted);
  padding: 1.2rem 0.6rem;
}

.lab-page-head {
  margin-bottom: 1rem;
}

.lab-panel {
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 107, 255, 0.12), transparent 42%),
    radial-gradient(circle at 6% 96%, rgba(255, 122, 26, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.95);
}

.lab-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 0.9rem;
  align-items: end;
  margin-bottom: 1rem;
}

.lab-search {
  display: grid;
  gap: 0.45rem;
  position: relative;
}

.lab-search label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lab-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.lab-search-row input {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font-size: 0.98rem;
  background: white;
  box-shadow: var(--shadow-soft);
}

.lab-search-row button {
  min-width: 92px;
}

.lab-meta {
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.lab-meta strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.lab-assumptions,
.lab-results {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.lab-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.lab-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(10, 15, 31, 0.14);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.82);
}

.lab-mode-btn {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: #394457;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: none;
}

.lab-mode-btn:hover {
  transform: none;
  box-shadow: none;
}

.lab-mode-btn.is-active {
  background: #111827;
  color: #f9fafb;
}

.lab-presets {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lab-preset-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1;
}

.lab-inputs {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.lab-control {
  border: 1px solid rgba(10, 15, 31, 0.12);
  border-radius: 14px;
  padding: 0.6rem 0.65rem;
  display: grid;
  gap: 0.3rem;
  background: linear-gradient(160deg, #fffefb, #f7f3ec);
}

.lab-control span {
  font-size: 0.78rem;
  color: var(--muted);
}

.lab-control-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 0.55rem;
}

.lab-control-head input {
  width: 100%;
  border: 1px solid rgba(10, 15, 31, 0.16);
  border-radius: 10px;
  padding: 0.28rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  text-align: right;
}

.lab-control input[type="range"] {
  width: 100%;
  accent-color: #2f6bff;
}

.lab-help {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #556074;
}

.lab-cards {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.lab-card {
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 231, 0.75));
}

.lab-card.bear {
  border-color: rgba(180, 35, 24, 0.22);
}

.lab-card.base {
  border-color: rgba(47, 107, 255, 0.25);
}

.lab-card.bull {
  border-color: rgba(11, 139, 73, 0.25);
}

.lab-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: baseline;
}

.lab-card-head span {
  font-size: 0.8rem;
  color: #475467;
}

.lab-card-head .is-positive {
  color: #0b8b49;
  font-weight: 700;
}

.lab-card-head .is-negative {
  color: #cc2b2b;
  font-weight: 700;
}

.lab-card-value {
  margin-top: 0.2rem;
  font-size: 1.5rem;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.015em;
}

.lab-card p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #4a5568;
}

.lab-summary {
  margin-top: 0.75rem;
  border: 1px dashed rgba(10, 15, 31, 0.2);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  color: #384254;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
}

.lab-guidance {
  margin-top: 0.6rem;
  border: 1px solid rgba(10, 15, 31, 0.12);
  border-radius: 12px;
  background: rgba(248, 250, 255, 0.75);
  padding: 0.55rem 0.7rem;
}

.lab-guidance p {
  margin: 0;
  color: #3e4a60;
  font-size: 0.83rem;
  line-height: 1.42;
}

.lab-guidance p + p {
  margin-top: 0.3rem;
}

.lab-sensitivity {
  margin-top: 0.85rem;
  border: 1px solid rgba(10, 15, 31, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.7rem;
  overflow-x: auto;
}

.lab-sensitivity-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: baseline;
}

.lab-sensitivity-head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.lab-sensitivity-subtitle {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.8rem;
}

.lab-sensitivity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.legend-chip {
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
}

.legend-chip.deep-neg {
  color: #7a1f1f;
  background: #fde6e6;
  border-color: #f1b8b8;
}

.legend-chip.neg {
  color: #a73535;
  background: #feeeee;
  border-color: #f7caca;
}

.legend-chip.flat {
  color: #7a5b0a;
  background: #fff4da;
  border-color: #f0dcaa;
}

.legend-chip.pos {
  color: #0b6a39;
  background: #e7f8ed;
  border-color: #b6e2c5;
}

.lab-sensitivity-grid {
  display: grid;
  gap: 0.3rem;
  min-width: 560px;
}

.lab-map-header,
.lab-map-row-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4a5568;
  text-align: center;
  align-self: center;
  justify-self: stretch;
  padding: 0.18rem 0.1rem;
}

.lab-map-corner {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lab-map-cell {
  border-radius: 10px;
  border: 1px solid rgba(10, 15, 31, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.34rem 0.2rem;
  text-align: center;
  background: #f9f9f9;
  color: #374151;
  box-shadow: none;
  transition: border-color 0.15s ease, filter 0.15s ease;
}

.lab-map-cell:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(0.98);
}

.lab-map-cell.deep-neg {
  background: #fde6e6;
  color: #8a2b2b;
  border-color: #efb7b7;
}

.lab-map-cell.neg {
  background: #feeeee;
  color: #b03a3a;
  border-color: #f4c8c8;
}

.lab-map-cell.flat {
  background: #fff4da;
  color: #7f600f;
  border-color: #efd7a6;
}

.lab-map-cell.pos {
  background: #e7f8ed;
  color: #0b7440;
  border-color: #b8e1c5;
}

.lab-map-cell.na {
  background: #f3f4f6;
  color: #6b7280;
}

.lab-map-cell.is-base {
  border-width: 2px;
  border-color: #111827;
}

.lab-sensitivity-empty {
  border: 1px dashed rgba(10, 15, 31, 0.2);
  border-radius: 10px;
  color: #556074;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
}

button {
  border: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.primary {
  background: linear-gradient(140deg, #ff7a1a, #ffb347);
  color: white;
  box-shadow: 0 18px 35px rgba(255, 122, 26, 0.3);
}

button.ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  background: var(--glass);
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card__label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted);
}

.hero-card__score {
  font-size: 3rem;
  margin: 0.6rem 0;
  font-family: "Bricolage Grotesque", sans-serif;
}

.hero-card__meta {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
}

.hero-card__grid span {
  color: var(--muted);
  display: block;
}

.status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3rem 0 1.5rem;
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.ticker {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stroke);
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.ticker:hover {
  transform: translateY(-4px);
}

.route {
  display: none;
  animation: fadeIn 0.6s ease;
}

.route.is-active {
  display: block;
}

.page-head {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.score-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.score-card .score {
  font-size: 2.4rem;
  font-family: "Bricolage Grotesque", sans-serif;
}

.score-card .verdict {
  color: var(--muted);
}


.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.4rem;
  align-items: start;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.analyzer-col {
  display: grid;
  gap: 1rem;
}

.moat-panel {
  margin-bottom: 1rem;
}

.filing-panel {
  margin-bottom: 1rem;
}

#filing-status.is-new {
  color: #0b8b49;
  font-weight: 700;
}

.filing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filing-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 15, 31, 0.14);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.6rem;
  font-size: 0.76rem;
  color: #394457;
}

.filing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.filing-card {
  border: 1px solid rgba(10, 15, 31, 0.1);
  background: #fff9ef;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
}

.filing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.filing-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.filing-card-head strong {
  font-size: 0.9rem;
}

.filing-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.filing-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 15, 31, 0.25);
  color: #5b6476;
  background: white;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.filing-help-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.35;
  width: min(260px, 55vw);
  box-shadow: 0 12px 24px rgba(9, 12, 24, 0.25);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.filing-help:hover .filing-help-tooltip,
.filing-help:focus-within .filing-help-tooltip {
  opacity: 1;
  visibility: visible;
}

.filing-card-values {
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.14rem;
  color: #3f4a5e;
  font-size: 0.82rem;
}

.filing-delta-tone {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  border: 1px solid transparent;
  white-space: nowrap;
}

.filing-delta-tone.good {
  color: #0b8b49;
  background: rgba(11, 139, 73, 0.12);
  border-color: rgba(11, 139, 73, 0.24);
}

.filing-delta-tone.bad {
  color: #cc2b2b;
  background: rgba(204, 43, 43, 0.12);
  border-color: rgba(204, 43, 43, 0.24);
}

.filing-delta-tone.neutral {
  color: #475467;
  background: rgba(71, 84, 103, 0.12);
  border-color: rgba(71, 84, 103, 0.2);
}

.filing-empty {
  border: 1px dashed rgba(10, 15, 31, 0.2);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  color: #5b6476;
  font-size: 0.88rem;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.panel-subtitle {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.table {
  display: grid;
  gap: 0.8rem;
}

.table.table--factor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.5fr;
  padding: 0.5rem 0.15rem;
  border-bottom: 1px solid var(--stroke);
  align-items: center;
}

.factor-row {
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label label"
    "value result";
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(10, 15, 31, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  gap: 0.45rem 0.8rem;
}

.factor-row .factor-label {
  grid-area: label;
  min-height: 1.4rem;
  width: 100%;
}

.factor-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  width: 100%;
}

.factor-title {
  font-weight: 600;
  line-height: 1.25;
}

.factor-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 15, 31, 0.25);
  color: #5b6476;
  background: white;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 0.1rem;
  padding: 0;
}

.factor-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.factor-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.35;
  width: min(280px, 55vw);
  box-shadow: 0 12px 24px rgba(9, 12, 24, 0.25);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.factor-help:hover .factor-tooltip,
.factor-help:focus-within .factor-tooltip {
  opacity: 1;
  visibility: visible;
}

.factor-row .factor-value {
  grid-area: value;
  font-weight: 700;
  color: #111827;
}

.factor-row .result {
  grid-area: result;
  align-self: center;
}

.label-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.source-badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.12);
  color: #1f3bbd;
  border: 1px solid rgba(47, 107, 255, 0.25);
  margin-left: auto;
  flex: 0 0 auto;
}

.table-row .result {
  text-align: right;
  font-weight: 700;
}

.pass {
  color: #0b8b49;
}

.fail {
  color: #cc2b2b;
}

.result.na {
  color: var(--muted);
  font-weight: 600;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.snapshot-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 122, 26, 0.1), transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(47, 107, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.94);
}

.snapshot-card {
  background: linear-gradient(140deg, #fffcf7, #f8efe3);
  border-radius: 18px;
  padding: 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid rgba(10, 15, 31, 0.08);
  box-shadow: 0 10px 24px rgba(9, 12, 24, 0.06);
}

.peer-bar {
  margin-top: 0;
  margin-bottom: 0;
  padding: 1rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.peer-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.peer-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.peer-chip {
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.12);
  color: #111827;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.peer-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.moat-summary {
  display: grid;
  gap: 0.8rem;
  color: #232836;
}

.moat-summary.moat-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.moat-item {
  border: 1px solid rgba(10, 15, 31, 0.1);
  background: #fff8ef;
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  min-height: 120px;
}

.moat-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
}

.moat-item-head strong {
  font-size: 0.88rem;
  color: #111827;
  line-height: 1.25;
}

.moat-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #2e3544;
}

.moat-tone {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  border: 1px solid transparent;
  white-space: nowrap;
  justify-self: end;
}

.moat-tone.good {
  color: #0b8b49;
  background: rgba(11, 139, 73, 0.12);
  border-color: rgba(11, 139, 73, 0.26);
}

.moat-tone.mixed {
  color: #825300;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.moat-tone.warn {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
  border-color: rgba(180, 35, 24, 0.25);
}

.moat-tone.neutral {
  color: #475467;
  background: rgba(71, 84, 103, 0.12);
  border-color: rgba(71, 84, 103, 0.2);
}

.snapshot-card strong {
  font-size: 1.3rem;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.01em;
}

.snapshot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.1rem;
}

.snapshot-hint {
  margin: 0;
  max-width: 30ch;
  color: #5b6476;
  font-size: 0.8rem;
  line-height: 1.3;
}

.bars {
  display: grid;
  gap: 0.8rem;
}

.bar {
  background: #f8f3ea;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.bar span {
  display: block;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, #ff7a1a, #ffb347);
  color: white;
  font-weight: 700;
  width: 40%;
}

.value-pill {
  background: #111827;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.verdict-block {
  font-size: 1.4rem;
  font-family: "Bricolage Grotesque", sans-serif;
  margin-bottom: 1.6rem;
}

.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.plain li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--stroke);
}

textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 1rem;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.method-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.method-main {
  display: grid;
  gap: 1rem;
}

.method-intro {
  background:
    radial-gradient(circle at 88% 20%, rgba(47, 107, 255, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 15, 31, 0.12);
}

.method-intro h2 {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.method-intro p {
  margin: 0;
  color: #303b4d;
  font-size: 1.08rem;
  max-width: 78ch;
}

.method-section {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(10, 15, 31, 0.12);
}

.method-section h3 {
  margin-bottom: 0.9rem;
  font-size: 1.42rem;
}

.method-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.method-metrics--single {
  grid-template-columns: 1fr;
}

.method-metric {
  border: 1px solid rgba(10, 15, 31, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 231, 0.7));
  padding: 0.95rem 1rem;
  box-shadow: 0 8px 22px rgba(9, 12, 24, 0.05);
}

.method-metric h4 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.method-metric p {
  margin: 0;
  color: #344054;
  font-size: 0.96rem;
  line-height: 1.52;
}

.method-metric blockquote {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.18);
  font-size: 0.94rem;
  color: #273452;
}

.method-disclaimer {
  margin-top: 1rem;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(10, 15, 31, 0.1);
}

.method-disclaimer p {
  margin: 0;
  color: #374354;
}

.method-disclaimer p + p {
  margin-top: 0.55rem;
}

.method-support {
  max-width: 1240px;
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 95% 15%, rgba(255, 122, 26, 0.18), transparent 42%),
    radial-gradient(circle at 8% 85%, rgba(47, 107, 255, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(10, 15, 31, 0.12);
}

.method-support-copy h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.method-support-copy p {
  margin: 0;
  color: #364153;
}

.method-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(140deg, #ff7a1a, #ffb347);
  color: white;
  box-shadow: 0 18px 35px rgba(255, 122, 26, 0.3);
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method-support-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6vw;
  border-top: 1px solid var(--stroke);
  background: rgba(246, 242, 233, 0.88);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #3c4252;
  font-weight: 600;
}

.footer-links a:hover {
  color: #111827;
}

.error-banner {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(204, 43, 43, 0.3);
  background: rgba(204, 43, 43, 0.08);
  color: #7b1a1a;
  font-weight: 600;
}

.error-banner.is-active {
  display: block;
}

.loading-overlay {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 26, 0.25);
  background: rgba(255, 122, 26, 0.1);
  color: #8a3a10;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.loading-overlay.is-active {
  display: flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 122, 26, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.loading-text {
  letter-spacing: 0.01em;
}

.suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 26px 60px rgba(9, 12, 24, 0.18);
  display: none;
  max-height: 280px;
  overflow-y: auto;
  z-index: 6;
}

.suggestions.is-active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--stroke);
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(255, 122, 26, 0.12);
}

.suggestion-ticker {
  font-weight: 700;
  min-width: 70px;
}

.suggestion-title {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.muted {
  color: var(--muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1400px) {
  .moat-summary.moat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .analyzer-grid {
    grid-template-columns: 1fr;
  }

  .moat-summary.moat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filing-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    grid-template-columns: 1fr;
  }

  .table.table--factor {
    grid-template-columns: 1fr;
  }

  .method-shell {
    max-width: 100%;
  }

  .method-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-support {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  .compare-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .compare-vs {
    justify-self: center;
    padding-bottom: 0;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .peer-bar {
    align-items: flex-start;
  }

  .snapshot-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .snapshot-card strong {
    font-size: 1.3rem;
  }

  .moat-summary.moat-row {
    grid-template-columns: 1fr;
  }

  .moat-item {
    min-height: 0;
  }

  .moat-tone {
    font-size: 0.64rem;
    padding: 0.14rem 0.4rem;
  }

  .lab-inputs {
    grid-template-columns: 1fr;
  }

  .lab-cards {
    grid-template-columns: 1fr;
  }

  .lab-search-row {
    grid-template-columns: 1fr;
  }

  .lab-head-row {
    align-items: stretch;
  }

  .lab-mode {
    width: 100%;
    justify-content: space-between;
  }

  .lab-mode-btn {
    flex: 1;
  }

  .lab-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-preset-btn {
    width: 100%;
    justify-content: center;
  }

  .lab-control-head {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

@media (max-width: 760px) {
  .method-metrics {
    grid-template-columns: 1fr;
  }

  .method-intro h2 {
    font-size: 2rem;
  }

  .method-intro p {
    font-size: 1rem;
  }
}
