:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --quiet: #98a2b3;
  --paper: #f6f7fb;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(23, 32, 51, 0.11);
  --purple: #6d5dfc;
  --purple-dark: #5145cd;
  --cyan: #20b7c9;
  --green: #178c68;
  --amber: #c77812;
  --red: #c14242;
  --shadow: 0 24px 70px rgba(37, 42, 71, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 32, 51, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.028) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(109, 93, 252, 0.28);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: -340px;
  left: -220px;
  background: radial-gradient(circle, rgba(109, 93, 252, 0.17), rgba(109, 93, 252, 0));
}

.ambient-two {
  top: 160px;
  right: -380px;
  background: radial-gradient(circle, rgba(32, 183, 201, 0.13), rgba(32, 183, 201, 0));
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.brand-mark span {
  width: 5px;
  border-radius: 2px;
  background: currentColor;
}

.brand-mark span:nth-child(1) { height: 8px; opacity: 0.55; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: 0.75; }

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 0 84px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 7.3vw, 92px);
  font-weight: 770;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero-copy {
  max-width: 660px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.search-form {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
}

.search-form > label {
  display: block;
  margin: 0 0 9px 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-field {
  position: relative;
}

.search-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 50px rgba(37, 42, 71, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-control:focus-within {
  border-color: rgba(109, 93, 252, 0.62);
  box-shadow: 0 18px 60px rgba(76, 68, 145, 0.15), 0 0 0 4px rgba(109, 93, 252, 0.08);
  transform: translateY(-1px);
}

.search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--quiet);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  border-radius: 2px;
  background: var(--quiet);
  transform: rotate(45deg);
}

.search-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 580;
}

.search-control input::placeholder {
  color: #a1a8b7;
}

.search-control > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 148px;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.search-control > button:hover:not(:disabled) {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.search-control > button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-arrow {
  font-size: 17px;
}

.is-loading .button-arrow {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: white;
  border-radius: 50%;
  font-size: 0;
  animation: spin 700ms linear infinite;
}

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

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 5px 0;
  color: var(--quiet);
  font-size: 12px;
}

.form-meta p,
.form-status {
  margin: 0;
}

.search-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(37, 42, 71, 0.18);
}

.search-results-status {
  margin: 0;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 12px;
}

.search-results-status:empty {
  display: none;
}

.extension-result {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.extension-result:first-child {
  border-top: 0;
}

.extension-result:hover,
.extension-result.is-active {
  background: #f6f4ff;
}

.result-monogram {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--purple-dark);
  background: var(--purple-pale);
  font-size: 12px;
  font-weight: 800;
}

.result-copy {
  min-width: 0;
}

.result-copy strong,
.result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy strong {
  font-size: 14px;
}

.result-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.result-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  color: var(--quiet);
  font-size: 10px;
  white-space: nowrap;
}

.result-verified {
  color: var(--purple-dark);
  font-weight: 750;
}

.examples {
  display: flex;
  gap: 8px;
}

.examples button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.examples button:hover {
  color: var(--purple-dark);
}

.form-status {
  min-height: 18px;
  padding: 8px 5px 0;
  color: var(--muted);
  font-size: 12px;
}

.error-card {
  display: flex;
  gap: 18px;
  max-width: 760px;
  margin: -30px auto 80px;
  padding: 22px 24px;
  border: 1px solid rgba(193, 66, 66, 0.18);
  border-radius: 16px;
  background: rgba(255, 248, 248, 0.9);
  box-shadow: 0 18px 50px rgba(123, 44, 44, 0.08);
}

.error-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--red);
  font-weight: 800;
}

.error-card h2 {
  margin: 1px 0 4px;
  font-size: 15px;
}

.error-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.report {
  margin: 0 0 84px;
  padding: 38px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  scroll-margin-top: 24px;
}

.report-topline,
.report-hero,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.report-topline {
  align-items: center;
  margin-bottom: 26px;
}

.report-topline .eyebrow {
  margin: 0;
}

.report-topline a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.report-topline a:hover {
  color: var(--purple-dark);
}

.report-hero {
  align-items: center;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.extension-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.extension-monogram {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(23, 32, 51, 0.16);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.title-row h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.extension-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #216e58;
  background: #e7f7f1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.verified-badge > span {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 9px;
}

.score-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.score-ring {
  --score: 0deg;
  --score-color: var(--purple);
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) var(--score), #e7e9f0 0);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: white;
}

.score-ring[data-tone="excellent"] { --score-color: var(--green); }
.score-ring[data-tone="good"] { --score-color: var(--cyan); }
.score-ring[data-tone="mixed"] { --score-color: var(--amber); }
.score-ring[data-tone="caution"] { --score-color: var(--red); }

.score-ring > div {
  z-index: 1;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 32px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.score-ring span {
  color: var(--quiet);
  font-size: 10px;
}

.score-copy > span,
.metric-label {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.score-copy > strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.score-copy > strong[data-tone="excellent"] { color: var(--green); }
.score-copy > strong[data-tone="good"] { color: #138598; }
.score-copy > strong[data-tone="mixed"] { color: var(--amber); }
.score-copy > strong[data-tone="caution"] { color: var(--red); }

.score-copy p {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }

.metric strong {
  display: block;
  overflow: hidden;
  margin: 10px 0 5px;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric small {
  display: block;
  overflow: hidden;
  color: var(--quiet);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signals-section {
  padding: 42px 0 8px;
}

.section-heading {
  align-items: end;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h3 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.factors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.factor {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  background: rgba(248, 249, 252, 0.68);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.factor:hover {
  border-color: rgba(109, 93, 252, 0.34);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.factor.is-active {
  border-color: rgba(109, 93, 252, 0.52);
  background: rgba(246, 244, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.08);
}

.factor-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.factor-heading strong {
  font-weight: 730;
}

.factor-heading span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.factor-track {
  display: block;
  height: 5px;
  margin: 13px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9f0;
}

.factor-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform-origin: left;
  animation: grow 500ms ease both;
}

@keyframes grow {
  from { transform: scaleX(0); }
}

.factor-evidence {
  display: block;
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.factor-source-hint {
  display: inline-block;
  margin-top: 11px;
  color: var(--purple-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.factor-source-hint::after {
  content: " +";
}

.factor.is-active .factor-source-hint::after {
  content: " −";
}

.factor-detail {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(109, 93, 252, 0.24);
  border-radius: 16px;
  background: rgba(249, 248, 255, 0.88);
  box-shadow: 0 16px 40px rgba(76, 68, 145, 0.08);
  scroll-margin: 20px;
}

.factor-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.factor-detail-heading .eyebrow {
  margin-bottom: 7px;
}

.factor-detail-heading h4 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.detail-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.detail-close:hover {
  color: var(--ink);
  border-color: rgba(109, 93, 252, 0.32);
}

.source-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.8fr);
  gap: 16px;
  padding: 20px 0 4px;
}

.source-summary > div,
.source-section {
  min-width: 0;
}

.source-label {
  display: block;
  margin-bottom: 7px;
  color: var(--quiet);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-summary strong,
.source-summary code {
  font-size: 12px;
}

.source-summary code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.source-section {
  margin-top: 18px;
}

.source-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.source-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-fields code {
  max-width: 100%;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 7px;
  color: #4b456f;
  background: white;
  font-size: 11px;
}

.source-values {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1.4fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.source-values dt,
.source-values dd {
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.source-values dt {
  color: var(--muted);
  font-weight: 650;
}

.source-values dd {
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.source-values > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 72px;
  }

  .report-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-panel {
    width: 100%;
    justify-content: flex-start;
  }

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

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .hero {
    padding: 64px 0 58px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .search-control {
    min-height: auto;
    padding: 12px;
    flex-wrap: wrap;
  }

  .search-icon {
    margin-left: 8px;
  }

  .search-control input {
    width: calc(100% - 44px);
    min-height: 42px;
    flex: none;
  }

  .search-control > button {
    width: 100%;
  }

  .form-meta,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .examples {
    flex-wrap: wrap;
  }

  .extension-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .result-meta {
    display: none;
  }

  .report {
    margin-bottom: 48px;
    padding: 22px;
    border-radius: 20px;
  }

  .report-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .extension-heading {
    align-items: flex-start;
  }

  .extension-monogram {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .score-ring {
    width: 96px;
    height: 96px;
  }

  .metrics {
    display: block;
  }

  .metric,
  .metric:first-child,
  .metric:nth-child(3) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

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

  .factor-detail {
    padding: 19px;
  }

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

  .source-values {
    grid-template-columns: 1fr;
  }

  .source-values dd {
    border-left: 0;
  }

  .source-values > :nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
