:root {
  --bg: #050b10;
  --panel: #0a1219;
  --panel2: #0c151e;
  --line: #27333d;
  --line2: #18242d;
  --text: #f1f3f2;
  --muted: #9ba5ae;
  --teal: #2dd4d7;
  --teal2: #75ecea;
  --warn: #f2b84b;
  --good: #5addb0;
  --danger: #ff7b7b;
  --radius: 14px;
  --max: 1540px;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-width: 320px;
  max-width: 100vw;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 72% 24%,
      rgba(32, 135, 151, 0.07),
      transparent 34%
    ),
    linear-gradient(145deg, #060c11, #03080c 72%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--teal);
  color: #001417;
  padding: 0.7rem 1rem;
  z-index: 99;
  border-radius: 8px;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3vw, 52px);
  position: relative;
  z-index: 10;
  background: rgba(4, 10, 15, 0.86);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 650;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 18px rgba(45, 212, 215, 0.08);
}
.brand-mark:before,
.brand-mark:after,
.brand-mark i {
  content: "";
  display: block;
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--teal);
}
.brand-mark:before {
  width: 28px;
  height: 28px;
}
.brand-mark:after {
  width: 13px;
  height: 13px;
}
.brand-mark i {
  width: 4px;
  height: 4px;
  background: var(--teal);
  border: 0;
}
.site-nav {
  display: flex;
  gap: 42px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  color: #c1c6ca;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--teal2);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
}
.site-footer {
  max-width: var(--max);
  margin: auto;
  padding: 34px clamp(22px, 3vw, 52px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #707e88;
  border-top: 1px solid var(--line2);
  font-size: 13px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
}
.site-footer a:hover {
  color: var(--teal);
}
#app {
  min-height: calc(100vh - 150px);
}
.shell {
  max-width: var(--max);
  margin: auto;
  padding: clamp(44px, 5vw, 82px) clamp(22px, 3vw, 52px);
}
.eyebrow {
  color: var(--teal2);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.035em;
}
.display {
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 720px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  color: #b6bec5;
  max-width: 650px;
  margin: 24px 0 30px;
}
.btn {
  border: 1px solid var(--line);
  background: #0b141c;
  padding: 14px 22px;
  border-radius: 9px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: 0.18s ease;
}
.btn:hover {
  border-color: #51616d;
  transform: translateY(-1px);
}
.btn:focus-visible,
.tag:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal2);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(100deg, #086472, #299bab);
  border-color: #2bc7d0;
  box-shadow: 0 10px 36px rgba(17, 171, 184, 0.15);
  color: white;
}
.btn-primary:hover {
  filter: brightness(1.13);
  border-color: #6ff3ee;
}
.btn-ghost {
  background: transparent;
  border-color: #47606e;
}
.btn-refine {
  border-color: #258b96;
  background: rgba(19, 154, 166, 0.08);
  color: #d9f6f5;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 13px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.icon {
  color: var(--teal);
  font-size: 1.2em;
}
.card {
  background: linear-gradient(
    145deg,
    rgba(12, 21, 29, 0.93),
    rgba(7, 14, 20, 0.94)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.015);
}
.home-shell {
  max-width: 1440px;
  padding-top: clamp(30px, 4vw, 56px);
  padding-bottom: 44px;
}
.home-intro {
  text-align: center;
  margin: 0 auto 28px;
}
.home-intro .eyebrow {
  margin: 0 0 12px;
}
.home-intro .display {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(38px, 4vw, 58px);
}
.home-intro .lede {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: clamp(16px, 1.3vw, 19px);
}
.demo-carousel {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.demo-frame {
  margin-inline: 64px;
  padding: 17px;
  overflow: hidden;
  border-color: #29414d;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(24, 126, 139, 0.08),
      transparent 48%
    ),
    linear-gradient(145deg, rgba(9, 21, 29, 0.97), rgba(5, 14, 20, 0.98));
}
.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.demo-panel {
  min-width: 0;
  position: relative;
}
.demo-label,
.panel-title {
  display: flex;
  align-items: center;
  color: var(--teal2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  margin: 0 0 12px;
  justify-content: center;
}
.demo-words,
.demo-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0a151d;
  border: 1px solid #245565;
}
.demo-words {
  padding: clamp(16px, 2vw, 25px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1vw, 15px);
  color: #54f2ed;
  box-shadow: inset 0 0 28px rgba(27, 173, 183, 0.06);
}
.demo-words span {
  display: block;
  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1.35;
}
.demo-words.is-preparing span {
  opacity: 0;
}
.demo-words.is-typing span {
  opacity: 0;
  transform: translateY(4px);
  animation: demo-line-in 0.26s ease forwards;
  animation-delay: calc(var(--line) * 0.4s);
}
.demo-words.is-typing span:last-child::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 5px;
  background: var(--teal);
  vertical-align: -2px;
  animation: demo-cursor 0.8s steps(1) infinite;
  animation-delay: 1.65s;
}
.demo-media {
  border-color: #31404a;
  box-shadow: 0 0 24px rgba(24, 151, 161, 0.1);
}
.demo-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.985);
  transition:
    opacity 0.62s ease,
    filter 0.62s ease,
    transform 0.62s ease;
}
.demo-media img.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}
.demo-media img.is-resetting {
  opacity: 0;
  filter: blur(3px);
  transform: scale(0.985);
  transition: none;
}
.demo-flow {
  color: var(--teal);
  font-size: 25px;
  text-align: center;
}
.demo-credit {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  max-width: calc(100% - 14px);
  padding: 3px 6px;
  border-radius: 4px;
  color: #d5dce0;
  background: rgba(2, 8, 12, 0.78);
  font-size: 9px;
  line-height: 1.25;
  opacity: 0.72;
}
.demo-credit:hover {
  color: white;
  opacity: 1;
}
.demo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -18px;
  border: 1px solid #233a47;
  border-radius: 50%;
  background: #102332;
  color: white;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
}
.demo-prev {
  left: 4px;
}
.demo-next {
  right: 4px;
}
.demo-nav:hover {
  border-color: var(--teal);
  background: #143240;
  transform: scale(1.04);
}
.demo-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 17px;
}
.demo-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #263c4b;
  cursor: pointer;
}
.demo-dots button[aria-current] {
  background: var(--teal);
  box-shadow: 0 0 12px rgba(45, 212, 215, 0.45);
}
.demo-nav:focus-visible,
.demo-dots button:focus-visible {
  outline: 2px solid var(--teal2);
  outline-offset: 3px;
}
.home-action {
  text-align: center;
  margin: 19px auto 0;
}
.home-cta {
  width: min(100%, 354px);
  font-size: 17px;
}
.home-action p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #9ca8b1;
  font-size: 13px;
}
.home-band {
  max-width: 1228px;
  margin: 24px auto 0;
  overflow: hidden;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px;
}
.principle {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 19px;
  padding: 6px 30px;
  border-right: 1px solid var(--line);
}
.principle:last-child {
  border: 0;
}
.round-icon {
  height: 62px;
  width: 62px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 25px;
}
.principle h3 {
  margin: 0 0 5px;
  font-size: 17px;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes demo-line-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes demo-cursor {
  50% {
    opacity: 0;
  }
}
.progress-wrap {
  border-bottom: 1px solid var(--line2);
}
.progress {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #77828b;
  position: relative;
}
.progress-step:not(:last-child):after {
  content: "";
  position: absolute;
  height: 1px;
  background: #34404a;
  left: 48px;
  right: 12px;
  top: 18px;
}
.step-dot {
  height: 36px;
  width: 36px;
  border: 1px solid #4b5761;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1;
  background: var(--bg);
}
.progress-step.done,
.progress-step.active {
  color: #d8dddf;
}
.progress-step.done .step-dot,
.progress-step.active .step-dot {
  border-color: var(--teal);
  color: var(--teal);
}
.progress-step.done:not(:last-child):after {
  background: var(--teal);
}
.progress-step small {
  display: block;
  color: #7f8a93;
}
.progress-step > span:last-child {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding-right: 12px;
}
.progress-step.active small {
  color: var(--teal);
}
.session-shell {
  padding-top: 30px;
}
.target-banner {
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
}
.target-banner .target-code {
  font-size: 21px;
  font-weight: 650;
}
.target-banner .target-hidden {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: #9aa5ad;
  font-size: 14px;
}
.session-note {
  font-size: 14px;
  color: #9ca6ae;
  margin: 0 0 12px;
}
.session-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 22px;
}
.work-panel {
  padding: 24px;
}
.work-panel h2 {
  font-size: 18px;
  margin: 0;
}
.helper {
  font-size: 13px;
  color: #939da5;
  margin: 4px 0 18px;
}
.input-wrap {
  position: relative;
}
.impressions {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #0a131b;
  border-radius: 11px;
  color: #dfe3e4;
  padding: 18px;
  font-size: 17px;
  line-height: 1.65;
}
.count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 11px;
  color: #65737e;
}
.voice-input {
  margin-top: 12px;
}
.voice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.voice-button {
  min-height: 48px;
  border-color: #287582;
  color: #d7f8f6;
}
.voice-button.is-recording {
  border-color: #b97979;
  background: rgba(118, 47, 47, 0.16);
  color: #ffe3e3;
}
.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #d7dde0;
  font-size: 13px;
  white-space: nowrap;
}
.recording-indicator[hidden] {
  display: none;
}
.recording-indicator > span {
  color: #d78a8a;
  font-size: 10px;
}
.voice-status {
  min-height: 20px;
  margin: 7px 0 0;
  color: #7f8d96;
  font-size: 12px;
}
.voice-status[data-state="recording"],
.voice-status[data-state="working"] {
  color: #b9c7cd;
}
.voice-status[data-state="success"] {
  color: var(--good);
}
.voice-status[data-state="error"] {
  color: #f0aaaa;
}
.tag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 12px;
}
.tag-head h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tag {
  background: #0b141b;
  border: 1px solid #2a3741;
  border-radius: 9px;
  padding: 9px;
  min-height: 42px;
  color: #afb6bb;
  cursor: pointer;
}
.tag[aria-pressed="true"] {
  border-color: var(--teal);
  color: var(--teal2);
  background: rgba(22, 173, 184, 0.08);
}
.wide-action {
  width: 100%;
  margin-top: 22px;
}
.privacy-note {
  display: flex;
  gap: 8px;
  color: #7f8992;
  font-size: 12px;
  margin: 16px 0 0;
}
.visual-empty {
  min-height: 470px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #2b3943;
  border-radius: 11px;
  color: #84909a;
  padding: 40px;
}
.visual-empty .round-icon {
  margin: auto auto 16px;
}
.visual-stage img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #eee;
}
.version-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}
.version-tab {
  border: 1px solid var(--line);
  background: #091119;
  padding: 6px 24px;
  border-radius: 7px;
  cursor: pointer;
  color: #a9b1b7;
}
.version-tab.active {
  border-color: var(--teal);
  color: var(--teal2);
}
.visual-actions {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
}
.lock-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  background: rgba(17, 139, 150, 0.06);
}
.lock-box h3 {
  margin: 0 0 3px;
}
.lock-box p {
  margin: 0 0 14px;
  color: #9ba6ae;
  font-size: 13px;
}
.loading-visual {
  aspect-ratio: 4/3;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(105deg, #101820 25%, #17232b 40%, #101820 55%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #29404a;
  border-top-color: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.reveal-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.reveal-head h1 {
  font-size: clamp(38px, 4vw, 60px);
  margin: 0;
  letter-spacing: -0.04em;
}
.result-code {
  border: 1px solid var(--teal);
  border-radius: 9px;
  padding: 12px 18px;
  color: var(--teal2);
}
.reveal-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr 1fr;
  gap: 24px;
}
.result-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.score-card,
.description-card,
.comparison-card,
.disclosure {
  padding: 22px;
}
.score-main {
  font-size: 27px;
  margin: 8px 0 0;
}
.score-main strong {
  font-size: 45px;
}
.percentile {
  font-size: 22px;
  color: var(--teal2);
  margin: 2px 0;
}
.label {
  display: inline-flex;
  border: 1px solid #287259;
  background: rgba(48, 194, 139, 0.08);
  color: var(--good);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.label.neutral {
  border-color: #52606a;
  background: rgba(132, 145, 154, 0.08);
  color: #bdc5ca;
}
.description-card blockquote {
  margin: 13px 0 0;
  color: #c2c8cc;
  white-space: pre-wrap;
}
.comparison-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 9px;
}
.compare-meta {
  font-size: 12px;
  color: #88949d;
  margin-top: 10px;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.matches {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.matches h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.matches ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.matches li {
  padding: 3px 0;
  font-size: 14px;
}
.matches .yes li:before {
  content: "✓";
  color: var(--good);
  margin-right: 9px;
}
.matches .no li:before {
  content: "−";
  color: var(--warn);
  margin-right: 9px;
}
.disclosure p {
  font-size: 13px;
  color: #a0a9b0;
  margin: 8px 0;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 35px;
}
.page-title {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}
.content-intro {
  max-width: 760px;
  font-size: 18px;
  color: #b3bcc2;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.content-card {
  padding: 28px;
}
.content-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
}
.content-card p,
.prose p,
.prose li {
  color: #aab3ba;
}
.prose {
  max-width: 850px;
}
.prose h2 {
  margin-top: 38px;
}
.steps-list {
  counter-reset: item;
}
.steps-list article {
  position: relative;
  padding: 24px 24px 24px 80px;
}
.steps-list article:before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.record {
  display: flex;
  gap: 26px;
  margin-top: 18px;
}
.record strong {
  font-size: 24px;
  display: block;
}
.record span {
  color: #8e9aa3;
  font-size: 12px;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.history-card {
  overflow: hidden;
}
.history-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.history-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.history-body {
  padding: 17px;
}
.history-body h2 {
  font-size: 17px;
  margin: 0;
}
.history-meta {
  display: flex;
  justify-content: space-between;
  color: #8e99a2;
  font-size: 12px;
  margin-top: 8px;
}
.empty-state {
  text-align: center;
  padding: 70px 30px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  background: #14202a;
  border: 1px solid #40515f;
  color: #e8ebec;
  padding: 13px 17px;
  border-radius: 9px;
  box-shadow: 0 16px 45px #0008;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
  z-index: 50;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast.error {
  border-color: #8d4242;
  color: #ffd0d0;
}
.page-loading {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: #89959e;
  gap: 12px;
}
@media (max-width: 1100px) {
  .demo-frame {
    margin-inline: 54px;
  }
  .demo-stage {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(
        0,
        1fr
      );
    gap: 8px;
  }
  .session-grid {
    grid-template-columns: 1fr;
  }
  .reveal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-sidebar {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .principle {
    padding: 6px 16px;
  }
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .desktop-break {
    display: none;
  }
  .demo-frame {
    margin-inline: 0;
  }
  .demo-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .demo-panel {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .demo-flow {
    line-height: 1;
    transform: rotate(90deg);
  }
  .demo-nav {
    top: auto;
    bottom: -13px;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 31px;
  }
  .demo-prev {
    left: calc(50% - 105px);
  }
  .demo-next {
    right: calc(50% - 105px);
  }
  .demo-dots {
    min-height: 55px;
    align-items: center;
    padding-top: 13px;
  }
  .demo-words span {
    font-size: clamp(14px, 3.5vw, 17px);
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 68px;
    width: 100vw;
  }
  .shell,
  .demo-carousel,
  .demo-frame,
  .demo-panel {
    min-width: 0;
    max-width: 100%;
  }
  .display,
  .lede,
  .micro {
    overflow-wrap: anywhere;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    background: #09121a;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 12px;
  }
  .site-footer {
    flex-direction: column;
  }
  .site-footer nav {
    flex-wrap: wrap;
  }
  .shell {
    padding-top: 38px;
  }
  .home-shell {
    padding-top: 30px;
  }
  .home-intro {
    margin-bottom: 23px;
  }
  .home-intro .display {
    font-size: clamp(34px, 9vw, 46px);
  }
  .home-intro .lede {
    margin-top: 14px;
  }
  .demo-frame {
    padding: 14px;
  }
  .principles {
    grid-template-columns: 1fr;
    padding: 8px 20px;
  }
  .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 6px;
  }
  .principle:last-child {
    border: 0;
  }
  .progress {
    padding: 14px 20px;
  }
  .progress-step {
    gap: 0;
  }
  .progress-step span:last-child {
    display: none;
  }
  .progress-step:not(:last-child):after {
    left: 37px;
    right: 2px;
  }
  .step-dot {
    height: 34px;
    width: 34px;
  }
  .target-banner {
    padding: 15px;
  }
  .target-banner .target-code {
    font-size: 16px;
  }
  .target-banner .target-hidden {
    margin-left: auto;
    padding-left: 12px;
  }
  .work-panel {
    padding: 18px;
  }
  .tag-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .visual-actions {
    grid-template-columns: 1fr;
  }
  .reveal-head {
    display: block;
  }
  .result-code {
    display: inline-block;
    margin-top: 16px;
  }
  .reveal-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .result-sidebar {
    display: flex;
  }
  .matches {
    grid-template-columns: 1fr;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .btn {
    width: 100%;
  }
  .content-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }
  .history-header {
    display: block;
  }
  .history-header .btn {
    margin-top: 18px;
  }
  .record {
    flex-wrap: wrap;
  }
  .site-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 420px) {
  .brand {
    min-width: 0;
  }
  .brand span:last-child {
    font-size: 16px;
  }
  .nav-toggle {
    flex: 0 0 auto;
  }
  .shell {
    padding-inline: 16px;
  }
  .display {
    font-size: 39px;
  }
  .btn {
    padding-inline: 16px;
  }
  .voice-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .voice-button {
    width: 100%;
  }
  .recording-indicator {
    justify-content: center;
    min-height: 28px;
  }
  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .target-banner {
    gap: 10px;
  }
  .target-banner .round-icon {
    width: 44px;
    height: 44px;
  }
  .target-banner .target-hidden {
    font-size: 12px;
  }
  .demo-frame {
    padding: 11px;
  }
  .demo-words {
    aspect-ratio: auto;
    min-height: 215px;
    padding: 20px;
  }
  .home-action p {
    align-items: flex-start;
    line-height: 1.35;
  }
  .version-tab {
    padding-inline: 20px;
  }
  .site-footer {
    padding-inline: 18px;
  }
  .site-footer nav {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact active-session workspace */
.progress {
  padding-block: 10px;
}

.progress-step {
  gap: 8px;
}

.step-dot {
  width: 30px;
  height: 30px;
}

.progress-step:not(:last-child)::after {
  top: 15px;
  left: 42px;
}

.progress-step small {
  font-size: 11px;
}

.session-shell {
  padding-top: 16px;
}

.session-grid {
  gap: 16px;
  align-items: start;
}

.work-panel {
  padding: 18px;
}

.work-panel .helper {
  margin: 4px 0 10px;
}

.impressions {
  min-height: 108px;
  max-height: 180px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
}

.voice-input {
  margin-top: 8px;
}

.voice-status {
  min-height: 16px;
  margin-top: 4px;
  font-size: 11px;
}

.tag-head {
  margin: 12px 0 8px;
}

.tag {
  min-height: 36px;
  padding: 7px 5px;
}

.wide-action {
  margin-top: 14px;
}

.privacy-note {
  margin-top: 9px;
}

.visual-stage img {
  width: 100%;
  max-height: 43vh;
  aspect-ratio: auto;
  object-fit: contain;
}

.version-tabs {
  margin: 8px 0;
}

.visual-actions {
  gap: 8px;
}

@media (min-width: 901px) {
  .tag-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (max-width: 900px) {
  .tag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visual-stage img {
    max-height: none;
  }
}

@media (max-width: 420px) {
  .tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-shell {
    padding-top: 12px;
  }

  .work-panel {
    padding: 16px;
  }

  .impressions {
    min-height: 120px;
  }
}
/* Compact result / reveal workspace */
.result-shell {
  padding-top: 14px;
}

.result-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  padding: 0;
  overflow: hidden;
}

.result-metric {
  min-width: 0;
  padding: 13px 18px;
  border-left: 1px solid var(--line);
}

.result-metric:first-child {
  border-left: 0;
}

.result-metric-label {
  display: block;
  margin-bottom: 4px;
  color: #7f8b94;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-metric strong {
  display: block;
  color: #eef2f3;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
}

.result-metric strong small {
  color: #89959d;
  font-size: 0.55em;
  font-weight: 500;
}

.result-outcome {
  color: var(--good) !important;
  font-size: clamp(16px, 1.8vw, 22px) !important;
}

.result-outcome.neutral {
  color: #c4cbd0 !important;
}

.result-note {
  margin: 6px 2px 12px;
  color: #79858e;
  font-size: 11px;
}

.result-comparison {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.result-words,
.result-visual-card {
  min-width: 0;
  padding: 16px;
}

.result-words {
  display: flex;
  flex-direction: column;
}

.result-words blockquote {
  flex: 1;
  max-height: 35vh;
  overflow: auto;
  margin: 12px 0 0;
  padding-right: 5px;
  color: #d1d6d9;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.5;
  white-space: pre-wrap;
}

.result-words .compare-meta {
  margin-top: auto;
  padding-top: 12px;
}

.result-visual-card img {
  display: block;
  width: 100%;
  height: min(36vh, 390px);
  border-radius: 8px;
  background: #e9e5da;
}

.result-perception-image {
  object-fit: contain;
}

.result-target-image {
  object-fit: cover;
}

.result-target-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-target-meta:hover,
.result-target-meta:focus-within {
  white-space: normal;
  overflow: visible;
}

.result-actions-compact {
  margin-top: 14px;
  gap: 10px;
}

@media (max-width: 900px) {
  .result-comparison {
    grid-template-columns: 1fr 1fr;
  }

  .result-words {
    grid-column: 1 / -1;
  }

  .result-words blockquote {
    max-height: none;
  }

  .result-visual-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 620px) {
  .result-shell {
    padding-top: 10px;
  }

  .result-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-metric {
    padding: 11px 8px;
    text-align: center;
  }

  .result-metric-label {
    font-size: 8px;
  }

  .result-metric strong,
  .result-outcome {
    font-size: 15px !important;
  }

  .result-note {
    text-align: center;
    line-height: 1.35;
  }

  .result-comparison {
    grid-template-columns: 1fr;
  }

  .result-words {
    grid-column: auto;
  }

  .result-actions-compact {
    flex-direction: column;
  }

  .result-actions-compact .btn {
    width: 100%;
  }

  .result-insights {
    grid-template-columns: 1fr;
  }
}
