:root {
  --cream: #f5f0e6;
  --cream-2: #efe8d8;
  --card: #ffffff;
  --navy: #143350;
  --navy-deep: #0d2438;
  --ink: #14304c;
  --muted: #5d6e7e;
  --teal: #11b888;
  --teal-deep: #0a8a66;
  --teal-soft: #d4f1e6;
  --amber: #d8901f;
  --amber-soft: #f8ead0;
  --slate: #8a99a8;
  --slate-soft: #e7ecf1;
  --yellow: #ffcf3a;
  --line: #e4ddcd;
  --shadow: 0 1px 2px rgba(13, 36, 56, 0.06), 0 8px 24px rgba(13, 36, 56, 0.07);
  --shadow-lg: 0 2px 4px rgba(13, 36, 56, 0.06), 0 24px 60px rgba(13, 36, 56, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(var(--cream-2) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  width: min(960px, 90vw);
  margin-inline: auto;
}
h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
}
strong {
  font-weight: 700;
  color: var(--navy);
}
.mono {
  font-family: "Space Mono", monospace;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 240, 230, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--yellow);
  position: relative;
}
.logo::before,
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .logo::before {
    animation: ping 2.6s ease-out infinite;
  }
  .logo::after {
    animation: ping 2.6s ease-out infinite 1.3s;
  }
}
@keyframes ping {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.logo span {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}
.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.by {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.by b {
  color: var(--navy);
  font-weight: 700;
}
@media (max-width: 560px) {
  .by {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 74px 0 56px;
  overflow: hidden;
}
.radar {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(640px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.radar .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.radar .ring.r2 {
  inset: 18%;
}
.radar .ring.r3 {
  inset: 36%;
}
.radar .sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(17, 184, 136, 0.3), transparent 60deg, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .radar .sweep {
    animation: spin 5s linear infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.radar .blip {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.radar .blip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .radar .blip::after {
    animation: blip 2.6s ease-out infinite;
  }
}
@keyframes blip {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
.blip.b1 {
  left: 74%;
  top: 30%;
  background: var(--teal);
}
.blip.b2 {
  left: 26%;
  top: 64%;
  background: var(--amber);
  animation-delay: 1s;
}
.blip.b3 {
  left: 64%;
  top: 74%;
  background: var(--teal);
  animation-delay: 1.8s;
}

.hero-inner {
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  color: var(--navy);
  margin: 22px auto 0;
  max-width: 14ch;
}
h1 .hl {
  position: relative;
  white-space: nowrap;
}
h1 .hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.07em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 3px;
}
.lede {
  font-size: 20px;
  color: var(--ink);
  max-width: 48ch;
  margin: 24px auto 0;
}

.analyze-form {
  display: flex;
  gap: 10px;
  margin: 34px auto 0;
  max-width: 540px;
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-lg);
}
.analyze-form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  color: var(--ink);
  min-width: 0;
}
.analyze-form input::placeholder {
  color: #a9b3bc;
}
.analyze-form button {
  flex: none;
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: #04271c;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 0 28px;
  border-radius: 999px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.analyze-form button:hover {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-1px);
}
.analyze-form button:disabled {
  background: var(--slate);
  color: #fff;
  cursor: progress;
  transform: none;
}
.form-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 14px 0 0;
  min-height: 1.2em;
}
.form-hint.error {
  color: var(--amber);
  font-weight: 600;
}

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  }
  .d1 {
    animation-delay: 0.05s;
  }
  .d2 {
    animation-delay: 0.13s;
  }
  .d3 {
    animation-delay: 0.21s;
  }
  .d4 {
    animation-delay: 0.29s;
  }
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Loader / spinner */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}
/* `display:flex` overrides the `hidden` attribute: we restore it explicitly. */
.loader[hidden] {
  display: none;
}
.spinner {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--slate-soft);
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}
.loader-text::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }
  .loader-text::after {
    content: "…";
    animation: none;
  }
}

/* Result — condensed */
.demo-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 16px;
}
.demo-label::before,
.demo-label::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin: 0 12px;
}
.results {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.results.is-loading {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.result-top {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: var(--navy);
  color: #eaf2f0;
}
.result-head h2 {
  font-size: 19px;
  color: #fff;
  word-break: break-all;
  font-weight: 700;
}
.result-meta {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: #9fb6bf;
  font-family: "Space Mono", monospace;
}
.scorewrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gauge {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(3 / 8 * 100%), rgba(255, 255, 255, 0.16) 0);
  display: grid;
  place-items: center;
}
.gauge::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--navy);
}
.gauge b {
  position: relative;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 19px;
  color: #fff;
}
.gauge b small {
  font-size: 12px;
  color: #9fb6bf;
  font-weight: 500;
}
.verdict {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.verdict span {
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #9fb6bf;
}

.siglist {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
}
.sigrow {
  border-radius: 12px;
}
.sigrow + .sigrow {
  border-top: 1px solid var(--line);
}
/* Clickable header of the row (accordion). */
.sig-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}
.sig-head:hover {
  background: #fbf9f4;
}
.sig-head:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.pastille {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
  background: var(--slate);
}
.ok .pastille {
  background: var(--teal);
}
.warn .pastille {
  background: var(--amber);
}
.nodata .pastille {
  background: var(--slate);
}
.sig-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.sig-val {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  max-width: 30ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .sig-val {
    display: none;
  }
}
.sig-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--slate-soft);
  color: #5d6e7e;
  white-space: nowrap;
}
.ok .sig-badge {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.warn .sig-badge {
  background: var(--amber-soft);
  color: #9a6210;
}
.sig-chevron {
  color: var(--slate);
  font-size: 12px;
  transition: transform 0.2s ease, color 0.15s ease;
}
.sigrow.open .sig-chevron {
  transform: rotate(90deg);
  color: var(--teal-deep);
}

/* Detail panel (accordion) — height animation via grid-template-rows. */
.sig-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.sigrow.open .sig-panel {
  grid-template-rows: 1fr;
}
.sig-panel-inner {
  overflow: hidden;
}
.sig-panel-body {
  padding: 2px 18px 16px 42px;
}
.sig-expl {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.sig-expl p {
  margin: 0 0 6px;
}
.sig-expl p:last-child {
  margin-bottom: 0;
}
.sig-expl ul {
  margin: 0 0 6px;
  padding-left: 18px;
}
.sig-expl li {
  margin: 2px 0;
}
.sig-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}
.sig-source:hover {
  text-decoration: underline;
}
.sig-caps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.sig-caps .lbl {
  font-size: 13px;
  color: var(--muted);
  width: 100%;
}
.sig-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  text-decoration: none;
}
.sig-chip.is-link {
  color: var(--teal-deep);
  border-color: rgba(17, 184, 136, 0.4);
  background: var(--teal-soft);
}
.sig-chip.is-link:hover {
  background: var(--teal);
  color: #04271c;
}
@media (prefers-reduced-motion: reduce) {
  .sig-panel,
  .sig-chevron {
    transition: none;
  }
}

.result-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px dashed var(--line);
  background: #fdfcf9;
}
.result-foot p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 62ch;
}
.result-foot .ico {
  color: var(--amber);
  flex: none;
}

/* Positioning band */
.pitch {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 680px) {
  .pitch {
    grid-template-columns: 1fr;
  }
}
.pitch .col {
  padding: 34px 32px;
}
.pitch .yes {
  background: var(--card);
  border: 1px solid var(--line);
}
.pitch .no {
  background: var(--navy-deep);
  color: #bcd0cd;
}
.pitch h3 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pitch .yes h3 {
  color: var(--teal-deep);
}
.pitch .no h3 {
  color: var(--yellow);
}
.pitch ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pitch li {
  position: relative;
  padding-left: 33px;
  font-size: 15.5px;
  line-height: 1.45;
}
.pitch .yes li {
  color: var(--ink);
}
.pitch .no li {
  color: #cdddd9;
}
/* The global <strong> is navy (dark): unreadable on the navy-deep background. */
.pitch .no strong {
  color: #fff;
}
.mark {
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.yes .mark {
  background: var(--teal-soft);
  color: var(--teal-deep);
}
.no .mark {
  background: rgba(255, 207, 58, 0.16);
  color: var(--yellow);
}

/* About */
.about {
  margin: 64px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 42px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 680px) {
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px 28px;
  }
}
.about-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.about-mark .logo {
  width: 64px;
  height: 64px;
}
.about-mark .logo span {
  font-size: 32px;
}
.about-mark b {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}
.about-mark small {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  max-width: 14ch;
  line-height: 1.3;
}
.about h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  color: var(--navy);
}
.about h2 .hl {
  position: relative;
  white-space: nowrap;
}
.about h2 .hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.07em;
  height: 0.3em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 3px;
}
.about p {
  font-size: 16px;
  color: var(--ink);
  margin: 16px 0 0;
  max-width: 60ch;
}
.about p .muted {
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin: 56px 0 0;
  background: var(--navy);
  color: #9fb6bf;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.site-footer p {
  margin: 0;
  font-size: 13.5px;
}
.site-footer .fb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.site-footer .fb .logo {
  width: 30px;
  height: 30px;
}
.site-footer .fb .logo span {
  font-size: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
