 :root {
  color-scheme: light;
  --paper: #f3f0e7;
  --sheet: #fffdf6;
  --soft: #e7e9df;
  --ink: #17241f;
  --muted: #4e5d56;
  --green: #176b54;
  --green-dark: #123b32;
  --green-mid: #1b4a3e;
  --green-pale: #dce8dc;
  --line: #c6cdc2;
  --warning: #b64232;
  --amber: #826126;
  --page-gutter: clamp(16px, 2.5vw, 36px);
  font-family: "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
}
body::before {
  position: fixed;
  z-index: -1;
  top: -20vw;
  right: -16vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: rgba(151, 185, 153, 0.32);
  filter: blur(72px);
  content: "";
  pointer-events: none;
  animation: ambientDrift 28s ease-in-out infinite alternate;
}
body::after {
  position: fixed;
  z-index: -1;
  bottom: -23vw;
  left: -15vw;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: rgba(213, 190, 145, 0.28);
  filter: blur(76px);
  content: "";
  pointer-events: none;
  animation: ambientDriftAlt 34s ease-in-out infinite alternate;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, select, textarea, .benchmark-table-shell { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible,
.mode-option:focus-within, .benchmark-table-shell:focus-visible {
  outline: 3px solid #a76c2b;
  outline-offset: 3px;
}
.site-header-inner, main, .site-footer {
  width: calc(100% - var(--page-gutter) * 2);
  max-width: 1600px;
  margin-inline: auto;
}
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  width: 100%;
  background: rgba(243, 240, 231, 0.96);
  backdrop-filter: blur(16px);
}
.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--sheet);
  border-radius: 12px;
  background: linear-gradient(145deg, #21866a 0%, #176b54 48%, #123b32 100%); /* taste-skill-ignore: established brand mark */
  box-shadow: 0 5px 14px rgba(18, 59, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); /* taste-skill-ignore: established brand mark */
}
.brand-mark img { position: absolute; bottom: 3px; display: block; width: calc(100% - 4px); height: auto; }
.brand-mark-signal {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 30px;
  height: 17px;
  fill: none;
  stroke: #c8f0df;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.95;
  pointer-events: none;
  transform: translateX(-50%);
}
.brand-mark-signal .signal-arc { transform-box: fill-box; transform-origin: center bottom; }
.header-actions { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 38px); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}
.site-nav a:hover { color: var(--green); transform: translateY(-1px); }
.header-status {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4vw, 66px);
  align-items: center;
  padding: clamp(48px, 5vw, 72px) 0 clamp(42px, 4vw, 60px);
}
.intro::before {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: calc(var(--page-gutter) * -1);
  width: 59%;
  height: 84%;
  border-radius: 34% 0 0 34%;
  background: rgba(151, 185, 153, 0.2);
  content: "";
}
.intro h1, .benchmark h2, .method h2, .limits h2, .result-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Baskerville Old Face", "Palatino Linotype", Georgia, "Noto Naskh Arabic", serif;
  font-weight: 600;
  font-kerning: normal;
  text-wrap: balance;
}
.intro h1 {
  max-width: 940px;
  font-size: clamp(60px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.intro h1::after {
  display: block;
  width: 116px;
  height: 5px;
  margin-top: 19px;
  border-radius: 99px;
  background: #176b54;
  content: "";
  transform-origin: left center;
}
.intro-copy > p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #34443d;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.52;
}
.intro-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  margin-top: 27px;
  padding: 0 20px;
  color: #fffefa;
  border: 2px solid #d6bd7c;
  border-radius: 7px;
  background: #176b54;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, transform 180ms ease, outline-color 180ms ease;
}
.intro-action:hover { transform: translateY(-3px); background: #105741; outline: 4px solid rgba(220, 193, 127, 0.38); }
#message-input { scroll-margin-top: 88px; }
.intro-privacy {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  max-width: 440px;
  margin: 28px 0 0 !important;
  color: #4e5d56 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.intro-privacy strong { color: var(--ink); font-weight: 750; }
.privacy-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 4px;
  stroke: #fffdf6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  border-radius: 50%;
  background: var(--green);
}
.hero-visual {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 780px;
  aspect-ratio: 1.16;
  justify-self: end;
  margin: 0 0 10px;
  border: 7px solid rgba(255, 253, 246, 0.68);
  border-radius: 30px;
  background: #174e3c;
  box-shadow: 0 32px 68px rgba(18, 59, 50, 0.22), 0 5px 16px rgba(18, 59, 50, 0.12); /* taste-skill-ignore: frames the custom hero illustration as the page's main visual */
}
.hero-visual::before {
  position: absolute;
  z-index: -1;
  right: -20px;
  bottom: -21px;
  left: 22%;
  height: 20%;
  border-radius: 0 0 23px 23px;
  background: #e4bd66;
  content: "";
}
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}
.hero-visual figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  padding: 12px 17px 12px 12px;
  color: var(--ink);
  border-radius: 12px;
  background: #fffdf6;
}
.hero-caption-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #fffefa;
  border-radius: 9px;
  background: #176b54;
  font-size: 22px;
}
.hero-caption-mark svg { width: 22px; height: 22px; fill: none; stroke: #fffefa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual figcaption span:last-child { display: grid; gap: 2px; }
.hero-visual figcaption strong { font-size: 14px; line-height: 1.3; }
.hero-visual figcaption small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.hero-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  color: #fffdf6;
  border-radius: 99px;
  background: #123b32;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.96);
}
[data-ui] {
  border: 1px solid rgba(23, 107, 84, 0.13);
  box-shadow: 0 18px 55px rgba(18, 59, 50, 0.08), 0 2px 8px rgba(18, 59, 50, 0.035);
}
.composer { min-width: 0; padding: clamp(26px, 3.2vw, 44px); background: rgba(255, 253, 246, 0.76); }
.analysis-mode { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.analysis-mode legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode-option {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 5px;
  color: var(--ink);
  background: #eeeee6;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.mode-option:hover { transform: translateY(-1px); background: #e7ece3; }
.mode-option:has(input:checked) { background: var(--green-pale); }
.mode-option input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--green); }
.mode-option-copy { display: grid; gap: 4px; min-width: 0; }
.mode-option-copy strong { font-size: 15px; line-height: 1.25; }
.mode-option-copy small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.mode-disclosure { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.field-hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
textarea {
  display: block;
  width: 100%;
  min-height: 174px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid #778a7f;
  border-radius: 5px;
  color: var(--ink);
  background: #fffef9;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, background-color 160ms ease;
}
textarea::placeholder { color: #5c6962; opacity: 1; }
textarea:focus-visible, select:focus-visible { border-color: var(--green); }
.input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.input-meta label { display: inline-flex; align-items: center; gap: 8px; }
select {
  max-width: 100%;
  min-height: 42px;
  padding: 8px 32px 8px 10px;
  border: 1px solid #778a7f;
  border-radius: 5px;
  color: var(--ink);
  background: #fffef9;
}
.input-meta select { min-height: 38px; font-size: 13px; }
.form-error { margin: 0 0 14px; color: #852d23; font-size: 14px; font-weight: 650; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.primary-button, .secondary-button {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 5px;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fffefa;
  background: #176b54;
}
.primary-button:hover { transform: translateY(-2px); background: #105741; }
.primary-button:active, .secondary-button:active { transform: translateY(0) scale(0.98); }
.primary-button span { font-size: 20px; line-height: 1; transition: transform 160ms ease; }
.primary-button:hover span { transform: translateX(3px); }
.text-button {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}
.text-button:hover { color: var(--green-dark); }
.examples { margin-top: 34px; padding-top: 22px; }
.examples .field-label { font-size: 16px; }
.example-controls { display: flex; gap: 10px; }
.example-controls select { flex: 1; min-width: 0; }
.secondary-button { min-height: 42px; color: var(--green-dark); background: var(--green-pale); }
.secondary-button:hover { transform: translateY(-1px); background: #cbdccf; }
.examples .field-hint { margin-top: 8px; font-size: 13px; }

.result-panel {
  min-width: 0;
  min-height: 500px;
  padding: clamp(28px, 3.4vw, 48px);
  color: #f7f6ee;
  background: var(--green-dark);
  overflow-wrap: anywhere;
}
.result-topline { display: flex; align-items: center; gap: 11px; color: #d7e9dc; font-size: 14px; font-weight: 700; }
.result-mark { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: rgba(159, 193, 173, 0.2); }
.result-mark span { width: 7px; height: 7px; border-radius: 50%; background: #a7d8b5; }
.result-panel h2 {
  max-width: 560px;
  margin-top: 28px;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.result-summary { max-width: 540px; margin: 14px 0 0; color: #d0ddd5; font-size: 16px; line-height: 1.55; }
.result-details { margin-top: 28px; }
.standard-model-block > h3, .evidence-block h3, .next-step-block h3, .ai-result > h3 {
  margin: 0 0 10px;
  color: #e2eee5;
  font-size: 15px;
  font-weight: 750;
}
.model-reading { display: grid; gap: 6px; margin: 0; padding: 12px 0; }
.detail-label { color: #c4d6ca; font-size: 14px; }
.model-reading strong { font-size: 20px; line-height: 1.35; }
#match-strength { color: #d0ddd5; font-size: 14px; }
.identity-note, .link-note {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid #98b5a4;
  color: #d0ddd5;
  font-size: 14px;
  line-height: 1.5;
}
.link-note { border-left-color: #d6c58e; }
.evidence-block, .next-step-block { margin-top: 22px; }
.evidence-block ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #e2e9e3; font-size: 15px; line-height: 1.45; }
.next-step-block { margin-top: 24px; padding: 17px 18px; color: var(--ink); background: #e4ebdf; }
.next-step-block h3 { margin-bottom: 7px; color: var(--green-dark); }
.next-step-block p { margin: 0; font-size: 15px; line-height: 1.5; }
.result-caveat { margin: 22px 0 0; color: #c3d1c8; font-size: 13px; line-height: 1.55; }
.result-panel[data-risk="high"] .result-mark { color: #fff; border-color: #ffb1a0; background: var(--warning); }
.result-panel[data-risk="review"] .result-mark { border-color: #edcf83; background: #77602b; }
.result-panel[data-risk="low"] .result-mark { border-color: #b2dec2; background: #21664d; }
.result-panel[data-risk="uncertain"] .result-mark { border-color: #d6c9a2; background: #62573b; }

.ai-result { margin-top: 28px; padding-top: 20px; }
.ai-result > h3 { margin-bottom: 9px; color: #f2f5ed; }
.ai-status { margin: 0; color: #d0ddd5; font-size: 14px; line-height: 1.5; }
.ai-result progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #9fd1ad;
  background: #34584c;
  accent-color: #9fd1ad;
}
.ai-result progress::-webkit-progress-bar { background: #34584c; }
.ai-result progress::-webkit-progress-value { background: #a8d4b3; }
.ai-result progress::-moz-progress-bar { background: #a8d4b3; }
.ai-model-reading { display: grid; gap: 7px; margin: 0; }
.ai-model-reading strong { color: #fffefa; font-size: 19px; line-height: 1.35; }
.ai-comparison, .ai-boundary { margin: 12px 0 0; color: #d6e1d8; font-size: 14px; line-height: 1.5; }
.ai-boundary { margin-top: 14px; color: #c4d3ca; }
.ai-fallback { margin-top: 12px; color: #e4f0e7; }

.benchmark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  padding: clamp(88px, 9vw, 130px) 0;
}
.benchmark h2, .method h2, .limits h2 { font-size: clamp(38px, 4.5vw, 60px); line-height: 0.98; letter-spacing: -0.045em; }
.benchmark-intro p, .method-heading p, .limits p { max-width: 570px; margin: 16px 0 0; color: #34443d; font-size: 16px; line-height: 1.6; }
.benchmark-result { min-width: 0; padding: clamp(22px, 3vw, 36px); background: #e4e9df; }
.benchmark-score { display: flex; align-items: baseline; gap: 16px; margin: 0 0 20px; }
.benchmark-score strong { color: var(--green); font-size: clamp(52px, 6vw, 78px); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.benchmark-score span { max-width: 240px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.benchmark-table-shell { max-width: 100%; overflow: visible; background: var(--sheet); }
.benchmark-table-shell:focus-visible { outline-offset: 4px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; background: transparent; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
caption { padding: 13px 12px 10px; color: var(--muted); text-align: left; font-size: 13px; }
th, td { padding: 10px 9px; border-bottom: 1px solid #d2d8cd; vertical-align: top; overflow-wrap: anywhere; }
th:first-child { width: 19%; }
th:nth-child(2) { width: 24%; }
th:nth-child(3), th:nth-child(4) { width: 20%; }
th:nth-child(5) { width: 17%; }
thead th { color: var(--green-dark); font-size: 13px; font-weight: 750; line-height: 1.3; }
tbody th { color: var(--ink); font-size: 13px; text-align: left; }
tbody td { color: #33483e; font-size: 13px; }
tbody tr:last-child > * { border-bottom: 0; }
.accuracy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 4px 0 0;
  padding: 2px 6px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 13px;
  font-weight: 750;
}
.benchmark-caveat { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.method {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(88px, 9vw, 130px) 0;
  scroll-margin-top: 88px;
}
.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
.method-list li:first-child { padding-top: 0; }
.method-number { color: var(--green); font-family: "Cormorant Garamond", Georgia, serif; font-size: 42px; line-height: 0.9; }
.method-list h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.method-list p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(34px, 4vw, 58px);
  color: #f6f5ee;
  background: var(--green-dark);
  scroll-margin-top: 88px;
}
.limits h2 { max-width: 720px; }
.limits p { color: #d3ded7; }
.source-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.source-links > p:first-child { margin: 0 0 4px; color: #eef1eb; font-weight: 750; }
.source-links a { color: #d7e8dc; font-size: 15px; line-height: 1.45; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.source-links a:hover { color: #fffefa; }
.source-links .affiliation-note { margin: 8px 0 0; color: #c2d0c7; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0 30px; color: var(--muted); font-size: 14px; }

.result-panel.is-result-visible .result-details { animation: resultReveal 440ms ease both; }
.composer.is-loading-example textarea { animation: exampleLoaded 400ms ease both; }
@keyframes riseIn {
  from { opacity: 0; filter: blur(4px); transform: translateY(24px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}
@keyframes ambientDriftAlt {
  from { transform: translate3d(1.5%, 0.5%, 0) scale(1.02); }
  to { transform: translate3d(-1%, -1.5%, 0) scale(1); }
}
@keyframes exampleLoaded {
  from { opacity: 0.72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes resultReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes signalEcho {
  0% { opacity: 0.35; transform: scale(0.86); }
  35% { opacity: 1; transform: scale(1); }
  72% { opacity: 0.72; transform: scale(1.08); }
  100% { opacity: 0.35; transform: scale(1.12); }
}
@keyframes lineWipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-copy > h1,
  .intro-copy > p,
  .intro-copy > .intro-action {
    animation: riseIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .intro-copy > h1 { animation-delay: 80ms; }
  .intro-copy > p { animation-delay: 260ms; }
  .intro-copy > .intro-action { animation-delay: 380ms; }
  .intro-copy > h1::after { animation: lineWipe 720ms 560ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-visual { animation: riseIn 820ms 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .checker { animation: riseIn 900ms 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }

  .brand-mark-signal .signal-arc { animation: signalEcho 1.45s ease-out infinite; }
  .brand-mark-signal .signal-arc--middle { animation-delay: 150ms; }
  .brand-mark-signal .signal-arc--outer { animation-delay: 300ms; }

  html.has-scroll-reveal .benchmark-intro,
  html.has-scroll-reveal .benchmark-result,
  html.has-scroll-reveal .method-heading,
  html.has-scroll-reveal .method-list li,
  html.has-scroll-reveal .limits > div {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(36px);
    transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1), filter 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.has-scroll-reveal .benchmark.is-in-view .benchmark-intro,
  html.has-scroll-reveal .benchmark.is-in-view .benchmark-result,
  html.has-scroll-reveal .method.is-in-view .method-heading,
  html.has-scroll-reveal .method.is-in-view .method-list li,
  html.has-scroll-reveal .limits.is-in-view > div {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
  html.has-scroll-reveal .benchmark.is-in-view .benchmark-result { transition-delay: 110ms; }
  html.has-scroll-reveal .method.is-in-view .method-list li:nth-child(1) { transition-delay: 80ms; }
  html.has-scroll-reveal .method.is-in-view .method-list li:nth-child(2) { transition-delay: 160ms; }
  html.has-scroll-reveal .method.is-in-view .method-list li:nth-child(3) { transition-delay: 240ms; }
  html.has-scroll-reveal .limits.is-in-view > div:nth-child(2) { transition-delay: 120ms; }
}

@keyframes reducedFadeIn {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

[dir="rtl"] { text-align: right; }
[dir="rtl"] .evidence-block ul { padding-right: 20px; padding-left: 0; }
[dir="rtl"] .identity-note, [dir="rtl"] .link-note { padding-right: 12px; padding-left: 0; border-right: 3px solid #98b5a4; border-left: 0; }
[dir="rtl"] .link-note { border-right-color: #d6c58e; }
[dir="rtl"] .benchmark-result, [dir="rtl"] .limits { text-align: right; }
[dir="rtl"] table { direction: rtl; text-align: right; }
[dir="rtl"] tbody th { text-align: right; }

@media (max-width: 900px) {
  .site-header-inner, main, .site-footer { width: calc(100% - 40px); }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 48px 34px; }
  .intro h1 { max-width: 760px; font-size: clamp(58px, 8vw, 76px); }
  .intro::before { top: 31%; right: -20px; width: 76%; height: 63%; }
  .hero-visual { width: min(100%, 760px); justify-self: center; }
  .checker, .benchmark, .method, .limits { grid-template-columns: minmax(0, 1fr); }
  .composer { padding: clamp(24px, 4vw, 38px); }
  .result-panel { min-height: 0; }
  .benchmark, .method { gap: 32px; padding-block: 78px; }
  .benchmark-result { padding: clamp(20px, 3vw, 30px); }
  .limits { gap: 28px; }
}

@media (max-width: 680px) {
  .site-header-inner { min-height: 68px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .brand-mark-signal { top: 1px; width: 27px; height: 15px; }
  .header-actions { gap: 15px; }
  .header-status { display: none; }
  .site-nav { gap: 16px; }
  .site-nav a { min-height: 42px; font-size: 13px; }
  .intro { gap: 25px; padding-block: 34px 30px; }
  .intro h1 { font-size: clamp(54px, 14.8vw, 72px); }
  .intro-copy > p { margin-top: 16px; font-size: 17px; }
  .intro-action {
    padding: 0 15px;
    font-size: 14px;
  }
  .intro-privacy { margin-top: 22px !important; }
  .hero-visual { aspect-ratio: 1.12; border-width: 5px; border-radius: 22px; }
  .hero-visual img { border-radius: 16px; }
  .hero-visual::before { right: -11px; bottom: -12px; }
  .hero-visual figcaption { bottom: 13px; left: 13px; gap: 9px; max-width: calc(100% - 26px); padding: 9px 12px 9px 9px; }
  .hero-caption-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 19px; }
  .hero-caption-mark svg { width: 18px; height: 18px; }
  .hero-visual figcaption strong { font-size: 12px; }
  .hero-visual figcaption small { font-size: 11px; }
  .hero-stamp { top: 13px; right: 13px; padding: 7px 10px; font-size: 11px; }
  .composer { padding: 23px 18px; }
  .analysis-mode { margin-bottom: 19px; }
  .mode-options { grid-template-columns: 1fr; gap: 6px; }
  .mode-option { padding: 11px 12px; }
  textarea { min-height: 150px; }
  .input-meta { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .form-actions { gap: 15px; }
  .primary-button { padding-inline: 15px; }
  .example-controls { align-items: stretch; flex-direction: column; }
  .example-controls select, .secondary-button { width: 100%; }
  .result-panel { padding: 28px 21px; }
  .result-panel h2 { font-size: clamp(34px, 10vw, 44px); }
  .benchmark, .method { gap: 26px; padding-block: 70px; }
  .benchmark h2, .method h2, .limits h2 { font-size: clamp(38px, 10vw, 48px); }
  .benchmark-result { padding: 18px 14px; }
  .benchmark-score { align-items: flex-start; flex-direction: column; gap: 8px; }
  .benchmark-score strong { font-size: 58px; }
  .benchmark-table-shell { overflow: visible; }
  table { display: block; width: 100%; table-layout: auto; font-size: 13px; }
  caption { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  tbody { display: grid; gap: 8px; padding: 0 10px 10px; }
  tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper); }
  .benchmark-table-shell tbody th { grid-column: 1 / -1; width: auto; padding: 10px; background: var(--soft); font-size: 15px; }
  tbody td { display: grid; min-width: 0; align-content: start; gap: 4px; padding: 9px 10px; font-size: 13px; }
  tbody td::before { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.25; }
  tbody td:nth-child(2)::before { content: "Class accuracy"; }
  tbody td:nth-child(3)::before { content: "False positives"; }
  tbody td:nth-child(4)::before { content: "False negatives"; }
  tbody td:nth-child(5)::before { content: "Uncertain"; }
  .accuracy-badge { min-height: 22px; font-size: 13px; }
  .method-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 18px; }
  .method-number { font-size: 36px; }
  .limits { gap: 24px; padding: 30px 21px; }
  .site-footer { flex-direction: column; gap: 7px; padding-block: 22px 28px; }
}
@media (max-width: 420px) {
  .site-header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 7px; }
  .header-actions, .site-nav { width: 100%; }
  .site-nav { gap: 20px; }
  .site-nav a { min-height: 36px; }
  .intro h1 { font-size: 55px; }
  .input-meta label { align-items: flex-start; flex-direction: column; gap: 6px; }
  .form-actions { flex-wrap: wrap; }
  .benchmark-result { margin-inline: -2px; }
  tbody { padding-inline: 7px; }
  tbody td { padding: 8px; }
  tbody th { padding: 9px 8px; }
  .accuracy-badge { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-scroll-reveal .benchmark,
  html.has-scroll-reveal .method,
  html.has-scroll-reveal .limits {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brand-mark-signal .signal-arc { animation: none; opacity: 0.95; transform: none; }
  .intro-copy > h1,
  .intro-copy > p,
  .hero-visual,
  .checker {
    animation: reducedFadeIn 360ms ease-out both !important;
    animation-duration: 360ms !important;
  }
}

