:root {
  color-scheme: light;
  --ink: #172326;
  --muted: #5f6d70;
  --line: #d7e0df;
  --paper: #f6f7f2;
  --brand: #0f766e;
  --brand-dark: #14504c;
  --accent: #d99a2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(246, 247, 242, 0.92);
  border-bottom: 1px solid rgba(215, 224, 223, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.98), rgba(20, 80, 76, 0.98)),
    var(--brand);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.24);
}

.logo-mark::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  content: "";
}

.logo-window {
  position: absolute;
  left: 8px;
  top: 10px;
  z-index: 1;
  width: 26px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.logo-window-bar {
  position: absolute;
  left: -2px;
  top: 4px;
  width: calc(100% + 4px);
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
}

.logo-loupe {
  position: absolute;
  right: 8px;
  top: 10px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 3px solid #f7fbfa;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(20, 80, 76, 0.24);
}

.logo-loupe::after {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: #f7fbfa;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.logo-cert {
  position: absolute;
  left: 2px;
  bottom: 6px;
  z-index: 3;
  width: 17px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: #fff8e8;
  box-shadow: 0 4px 10px rgba(23, 35, 38, 0.18);
}

.logo-cert::before,
.logo-cert::after {
  position: absolute;
  bottom: -7px;
  width: 7px;
  height: 8px;
  background: var(--accent);
  content: "";
}

.logo-cert::before {
  left: 1px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.logo-cert::after {
  right: 1px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.logo-cert-check {
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 4px;
  border-bottom: 1.5px solid var(--brand-dark);
  border-left: 1.5px solid var(--brand-dark);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.brand-wordmark {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--brand-dark);
  outline: none;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-mark-large {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 118, 110, 0.28);
}

.logo-mark-large::before {
  inset: 13px;
  border-radius: 5px;
}

.logo-mark-large .logo-window {
  left: 18px;
  top: 23px;
  width: 56px;
  height: 40px;
  border-width: 4px;
  border-radius: 8px;
}

.logo-mark-large .logo-window-bar {
  left: -4px;
  top: 9px;
  width: calc(100% + 8px);
  height: 4px;
}

.logo-mark-large .logo-loupe {
  right: 18px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-width: 6px;
  box-shadow: 0 0 0 4px rgba(20, 80, 76, 0.24);
}

.logo-mark-large .logo-loupe::after {
  left: 26px;
  top: 23px;
  width: 18px;
  height: 7px;
}

.logo-mark-large .logo-cert {
  left: 6px;
  bottom: 13px;
  width: 35px;
  height: 42px;
  border-width: 4px;
  border-radius: 4px;
}

.logo-mark-large .logo-cert::before,
.logo-mark-large .logo-cert::after {
  bottom: -14px;
  width: 14px;
  height: 16px;
}

.logo-mark-large .logo-cert::before {
  left: 2px;
}

.logo-mark-large .logo-cert::after {
  right: 2px;
}

.logo-mark-large .logo-cert-check {
  left: 11px;
  top: 15px;
  width: 11px;
  height: 7px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-radius: 1px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px) 40px;
}

.simple-hero {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 22px;
}

.hero-copy,
.site-footer {
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 690px;
  margin: 24px 0 0;
  color: #344144;
  font-size: 1.2rem;
}

.intro-secondary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.scan-form {
  max-width: 780px;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 44px rgba(23, 35, 38, 0.08);
}

.scan-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button,
textarea {
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #b9c8c6;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

textarea {
  min-height: 124px;
  padding: 12px 14px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

button {
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

button:hover,
button:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.scan-form p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.test-report {
  max-width: 780px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 44px rgba(23, 35, 38, 0.08);
}

.test-report[hidden] {
  display: none;
}

.report-heading {
  display: grid;
  gap: 8px;
}

.report-heading .eyebrow {
  margin-bottom: 0;
}

.report-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.12;
}

.report-heading > p:last-of-type {
  margin: 0;
  color: var(--muted);
}

.progress-panel {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
}

.progress-panel[hidden] {
  display: none;
}

.progress-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: #344144;
  font-weight: 800;
}

.spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid rgba(15, 118, 110, 0.18);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 720ms linear infinite;
}

.progress-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.progress-track::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  content: "";
  transform: translateX(-100%);
  animation: progress-glint 1150ms ease-in-out infinite;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 260ms ease;
}

.report-passed .report-heading h2 {
  color: var(--brand-dark);
}

.report-failed .report-heading h2 {
  color: #8f2c1e;
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.result-actions {
  display: grid;
  gap: 22px;
  max-width: 780px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 44px rgba(23, 35, 38, 0.07);
}

.result-actions[hidden],
.embed-panel[hidden] {
  display: none;
}

.share-panel,
.embed-panel {
  display: grid;
  gap: 12px;
}

.share-panel h3,
.embed-panel h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.share-panel p,
.embed-panel p {
  margin: 0;
  color: var(--muted);
}

.share-copy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.share-copy-row p {
  flex: 1 1 auto;
  padding-top: 3px;
}

.copy-icon-button {
  position: relative;
  display: grid;
  width: 42px;
  min-height: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(20, 80, 76, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  padding: 0;
}

.copy-icon-button:hover,
.copy-icon-button:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  outline: none;
}

.copy-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 20px;
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.copy-icon::before {
  left: 1px;
  top: 1px;
  opacity: 0.64;
}

.copy-icon::after {
  left: 5px;
  top: 5px;
}

.copy-icon-button:hover .copy-icon::before,
.copy-icon-button:hover .copy-icon::after,
.copy-icon-button:focus-visible .copy-icon::before,
.copy-icon-button:focus-visible .copy-icon::after {
  background: var(--brand-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-buttons a,
.share-buttons button,
.embed-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(20, 80, 76, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0 12px;
  text-decoration: none;
}

.share-buttons a:hover,
.share-buttons a:focus-visible,
.share-buttons button:hover,
.share-buttons button:focus-visible,
.embed-copy-button:hover,
.embed-copy-button:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  outline: none;
}

.share-buttons button[hidden] {
  display: none;
}

.clipboard-preview {
  position: fixed;
  z-index: 1400;
  display: grid;
  gap: 8px;
  max-height: min(260px, calc(100vh - 24px));
  overflow: hidden;
  border: 1px solid rgba(20, 80, 76, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 35, 38, 0.22);
  color: var(--ink);
  padding: 12px;
  animation: clipboard-in 140ms ease-out both;
}

.clipboard-preview strong {
  color: var(--brand-dark);
  font-size: 0.86rem;
}

.clipboard-preview pre {
  max-height: 188px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(215, 224, 223, 0.95);
  border-radius: 6px;
  background: rgba(246, 247, 242, 0.8);
  color: #344144;
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  overflow-wrap: anywhere;
  padding: 10px;
  white-space: pre-wrap;
}

.twitter-switch-button {
  position: relative;
  min-width: 86px;
  overflow: hidden;
}

.twitter-switch-button span {
  display: block;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.twitter-switch-button .twitter-x-label {
  position: absolute;
  opacity: 0;
  transform: translateY(12px) scale(0.82);
}

.twitter-switch-button:hover .twitter-word-label,
.twitter-switch-button:focus-visible .twitter-word-label {
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
}

.twitter-switch-button:hover .twitter-x-label,
.twitter-switch-button:focus-visible .twitter-x-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.closed-window-body {
  background: #000;
  color: #ff8a00;
  font-family:
    "Arial Rounded MT Bold", "Trebuchet MS", Arial, Helvetica, sans-serif;
  line-height: 1.05;
}

.closed-window-fallback {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 0 24px 17vh;
  text-align: center;
}

.closed-window-fallback h1 {
  margin: 0;
  color: #ff8a00;
  font-size: clamp(1.7rem, 4.1vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow:
    0 0 1px #ffbc65,
    1px 0 0 #7c3200,
    0 1px 0 #7c3200;
}

.embed-panel {
  border-top: 1px dashed rgba(20, 80, 76, 0.24);
  padding-top: 18px;
}

.embed-panel label {
  color: #344144;
  font-weight: 900;
}

.kbiw-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 35, 38, 0.08);
  color: var(--brand-dark);
  padding: 8px 10px;
  text-decoration: none;
}

.kbiw-badge-preview:hover,
.kbiw-badge-preview:focus-visible {
  border-color: rgba(20, 80, 76, 0.36);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.badge-logo {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.98), rgba(20, 80, 76, 0.98)),
    var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.badge-logo-window {
  position: absolute;
  left: 7px;
  top: 8px;
  width: 20px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.badge-logo-window-bar {
  position: absolute;
  left: -2px;
  top: 4px;
  width: calc(100% + 4px);
  height: 2px;
  background: #fff;
}

.badge-logo-loupe {
  position: absolute;
  right: 6px;
  top: 8px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(20, 80, 76, 0.2);
}

.badge-logo-loupe::after {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.badge-logo-cert {
  position: absolute;
  left: 3px;
  bottom: 5px;
  width: 13px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 2px;
  background: #fff8e8;
  box-shadow: 0 2px 6px rgba(23, 35, 38, 0.18);
}

.badge-logo-check {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 5px;
  height: 3px;
  border-bottom: 2px solid var(--brand-dark);
  border-left: 2px solid var(--brand-dark);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.kbiw-badge-preview strong,
.kbiw-badge-preview small {
  display: block;
}

.kbiw-badge-preview strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.kbiw-badge-preview small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.report-item {
  animation: report-in 180ms ease-out both;
}

.report-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.report-detail > summary::-webkit-details-marker,
.explanation-detail summary::-webkit-details-marker {
  display: none;
}

.report-detail > summary > span:first-child {
  flex: 1 1 auto;
}

.report-detail > summary::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  content: "";
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.report-detail[open] > summary::before {
  transform: rotate(45deg);
}

.explanation-group {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px 42px;
}

.explanation-detail {
  border: 1px solid rgba(215, 224, 223, 0.86);
  border-radius: 8px;
  background: rgba(246, 247, 242, 0.56);
}

.explanation-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  color: #344144;
  font-size: 0.94rem;
  font-weight: 900;
  list-style: none;
}

.explanation-detail summary::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  content: "";
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.explanation-detail[open] summary::before {
  transform: rotate(45deg);
}

.explanation-detail p {
  margin: 0;
  padding: 0 12px 12px 31px;
  color: var(--muted);
}

.technical-copy {
  display: grid;
  gap: 10px;
  padding: 0 12px 14px 31px;
  color: var(--muted);
  font-size: 0.93rem;
}

.technical-copy p {
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.technical-copy strong,
.technical-copy span {
  color: #344144;
}

.technical-copy a {
  color: var(--brand-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.technical-copy .document-reference {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 5px;
  background: rgba(15, 118, 110, 0.08);
  line-height: 1.35;
  padding: 0.04em 0.32em;
  text-decoration: none;
}

.technical-copy .document-reference::after {
  border-radius: 4px;
  background: rgba(20, 80, 76, 0.12);
  color: var(--brand-dark);
  content: "doc";
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0.08em 0.34em;
  text-transform: uppercase;
}

.technical-copy code {
  border: 1px solid rgba(215, 224, 223, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #344144;
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.08em 0.28em;
}

.technical-expansion {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  border-top: 1px dashed rgba(20, 80, 76, 0.24);
  padding-top: 12px;
}

.technical-expansion h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.technical-copy ul,
.technical-copy ol {
  margin: 0;
  padding-left: 20px;
}

.technical-copy li + li {
  margin-top: 6px;
}

.reference-list,
.footnote-list {
  display: grid;
  gap: 6px;
}

.reference-list span {
  font-weight: 900;
}

.citation-note,
.footnote-list {
  font-size: 0.86rem;
}

.citation-note {
  border-left: 3px solid rgba(15, 118, 110, 0.24);
  padding-left: 10px;
}

.footnote-list li::marker {
  color: var(--brand-dark);
  font-weight: 900;
}

.document-window-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.document-window {
  position: fixed;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: min(320px, calc(100vw - 16px));
  min-height: 260px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 54px);
  overflow: hidden;
  border: 1px solid rgba(23, 35, 38, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 35, 38, 0.28);
  pointer-events: auto;
}

.document-window[hidden],
.document-dock[hidden] {
  display: none;
}

.document-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(215, 224, 223, 0.95);
  background: #f6f7f2;
  cursor: grab;
  padding: 6px 8px 6px 12px;
  user-select: none;
}

.document-window.is-moving .document-titlebar {
  cursor: grabbing;
}

.document-window.is-maximized .document-titlebar {
  cursor: default;
}

.document-window.is-moving iframe,
.document-window.is-resizing iframe {
  pointer-events: none;
}

.document-title {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.document-action {
  display: grid;
  width: 32px;
  min-height: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(20, 80, 76, 0.14);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  text-decoration: none;
}

.document-action:hover,
.document-action:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  outline: none;
}

.document-window-body {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  background: #fff;
}

.document-window-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.document-loading {
  position: absolute;
  left: 12px;
  top: 12px;
  margin: 0;
  border: 1px solid rgba(215, 224, 223, 0.95);
  border-radius: 6px;
  background: rgba(246, 247, 242, 0.94);
  color: #344144;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 7px 10px;
  pointer-events: none;
}

.document-window-body.is-loaded .document-loading {
  display: none;
}

.document-fallback {
  margin: 0;
  border-top: 1px solid rgba(215, 224, 223, 0.95);
  background: rgba(246, 247, 242, 0.94);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 8px 34px 8px 12px;
}

.document-fallback a {
  color: var(--brand-dark);
  font-weight: 900;
}

.document-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  cursor: nwse-resize;
}

.document-resize-handle::before {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(20, 80, 76, 0.42);
  border-bottom: 2px solid rgba(20, 80, 76, 0.42);
  content: "";
}

.document-window.is-maximized .document-resize-handle {
  display: none;
}

.document-dock {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow: visible;
  pointer-events: none;
}

.document-dock-button {
  position: absolute;
  min-height: 34px;
  max-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(20, 80, 76, 0.18);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 35, 38, 0.2);
  color: var(--brand-dark);
  font-size: 0.82rem;
  padding: 0 10px;
  pointer-events: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-dock-button.is-side-tab {
  max-width: none;
  max-height: 220px;
  min-width: 36px;
  min-height: 84px;
  padding: 10px 0;
  writing-mode: vertical-rl;
}

.document-dock-button[data-dock-edge="left"] {
  transform: rotate(180deg);
}

.document-dock-button:hover,
.document-dock-button:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  outline: none;
}

.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pass {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
}

.status-fail {
  background: rgba(143, 44, 30, 0.12);
  color: #8f2c1e;
}

.advanced-test {
  max-width: 780px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 44px rgba(23, 35, 38, 0.07);
}

.advanced-test[hidden] {
  display: none;
}

.advanced-copy {
  display: grid;
  gap: 8px;
}

.advanced-copy .eyebrow {
  margin-bottom: 0;
}

.advanced-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.advanced-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.advanced-list {
  margin-top: 18px;
}

.advanced-detail {
  background: rgba(255, 255, 255, 0.82);
}

.advanced-action-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.advanced-test button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(23, 35, 38, 0.18);
  font-size: 1.03rem;
}

.advanced-test button:hover,
.advanced-test button:focus-visible {
  background: var(--brand-dark);
  box-shadow: 0 18px 38px rgba(20, 80, 76, 0.22);
  transform: translateY(-1px);
}

.advanced-test button[hidden],
.advanced-confirmation[hidden],
.advanced-progress[hidden],
.advanced-result[hidden],
.advanced-status[hidden] {
  display: none;
}

.advanced-confirmation {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.advanced-confirmation > p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.advanced-confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.advanced-confirmation-actions button {
  min-height: 52px;
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.94rem;
  line-height: 1.25;
}

.advanced-test .advanced-secondary-button {
  border: 1px solid rgba(20, 80, 76, 0.24);
  background: #fff;
  box-shadow: none;
  color: var(--brand-dark);
}

.advanced-test .advanced-secondary-button:hover,
.advanced-test .advanced-secondary-button:focus-visible {
  background: rgba(20, 80, 76, 0.08);
  box-shadow: none;
  color: var(--brand-dark);
}

.advanced-progress {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.advanced-detail.advanced-passed {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: inset 3px 0 0 rgba(15, 118, 110, 0.58);
}

.advanced-result {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-dark);
  font-weight: 900;
}

.faq-section {
  max-width: 780px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 44px rgba(23, 35, 38, 0.07);
}

.faq-heading {
  display: grid;
  gap: 8px;
}

.faq-heading .eyebrow {
  margin-bottom: 0;
}

.faq-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.14;
}

.faq-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid rgba(215, 224, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  cursor: pointer;
  color: #344144;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  content: "";
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 14px 14px 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-source {
  max-width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 16px;
  overflow: auto;
  border: 1px solid #294445;
  border-radius: 6px;
  background: #102526;
  color: #e7efed;
  font: 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

.faq-source code {
  font: inherit;
}

.faq-source .code-keyword {
  color: #7ad9cc;
  font-weight: 700;
}

.faq-source .code-string {
  color: #f3c969;
}

.faq-source .code-built-in {
  color: #ff9d77;
}

.faq-source .code-number {
  color: #c9b6ff;
}

.faq-source .code-comment {
  color: #9aacaa;
  font-style: italic;
}

.content-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px) 52px;
}

.about-intro {
  max-width: 820px;
}

.about-intro h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 48px);
  margin-top: 46px;
}

.text-stack,
.about-panel,
.principles {
  color: #344144;
}

.text-stack h2,
.about-panel h2,
.principles h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.text-stack p,
.about-panel p {
  margin: 0;
  font-size: 1.05rem;
}

.text-stack p + p {
  margin-top: 16px;
}

.about-panel {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.principles {
  margin-top: 52px;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principle-list article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.principle-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

@keyframes progress-glint {
  to {
    transform: translateX(100%);
  }
}

@keyframes report-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes clipboard-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner,
  .progress-track::after,
  .report-item,
  .clipboard-preview {
    animation: none;
  }

  .progress-track span {
    transition: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .about-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.2rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .advanced-confirmation-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-logo {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .logo-mark-large {
    width: 76px;
    height: 76px;
  }

  .logo-mark-large::before {
    inset: 11px;
  }

  .logo-mark-large .logo-window {
    left: 15px;
    top: 18px;
    width: 44px;
    height: 32px;
    border-width: 3px;
    border-radius: 7px;
  }

  .logo-mark-large .logo-window-bar {
    left: -3px;
    top: 7px;
    width: calc(100% + 6px);
    height: 3px;
  }

  .logo-mark-large .logo-loupe {
    right: 14px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-width: 5px;
    box-shadow: 0 0 0 3px rgba(20, 80, 76, 0.24);
  }

  .logo-mark-large .logo-loupe::after {
    left: 22px;
    top: 19px;
    width: 14px;
    height: 6px;
  }

  .logo-mark-large .logo-cert {
    left: 4px;
    bottom: 10px;
    width: 29px;
    height: 34px;
    border-width: 3px;
    border-radius: 4px;
  }

  .logo-mark-large .logo-cert::before,
  .logo-mark-large .logo-cert::after {
    bottom: -11px;
    width: 11px;
    height: 13px;
  }

  .logo-mark-large .logo-cert-check {
    left: 9px;
    top: 12px;
    width: 9px;
    height: 6px;
    border-bottom-width: 2.5px;
    border-left-width: 2.5px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .intro {
    font-size: 1.05rem;
  }

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

  .share-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .share-buttons a,
  .share-buttons button,
  .embed-copy-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
