@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #183231;
  --ink-deep: #102524;
  --ink-soft: #49605e;
  --muted: #7b8880;
  --paper: #f3f2eb;
  --paper-deep: #e9e9df;
  --surface: #fffefa;
  --surface-soft: #f9f8f2;
  --line: #d9ddd3;
  --line-strong: #c7d0c7;
  --teal: #176b64;
  --teal-dark: #10534f;
  --teal-bright: #9ad5c9;
  --teal-pale: #e1f0eb;
  --amber-pale: #f5ebd8;
  --amber-ink: #79592a;
  --error: #9d4338;
  --radius-card: 18px;
  --radius-control: 10px;
  --shadow-card: 0 24px 72px rgba(31, 52, 48, 0.09), 0 2px 8px rgba(31, 52, 48, 0.035);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 89% 7%, rgba(196, 221, 210, 0.25), transparent 28rem),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4aa99a;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: min(100% - 56px, 1184px);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(76, 99, 91, 0.13);
}

.header-inner {
  display: flex;
  width: min(100% - 56px, 1296px);
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--teal);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 0.79rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.brand-name span {
  color: var(--teal);
  font-weight: 540;
}

.brand-product {
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.015em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-caption {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  color: #596963;
  background: rgba(255, 254, 250, 0.7);
  border: 1px solid rgba(91, 112, 101, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 620;
  letter-spacing: 0.015em;
}

.connection-dot,
.mode-dot,
.online-indicator span,
.voice-state-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: #a7b1a8;
  border-radius: 50%;
}

.connection-status[data-state="ready"] .connection-dot,
.connection-status[data-state="ready"] .mode-dot {
  background: #3c9a78;
}

.connection-status[data-state="error"] .connection-dot {
  background: var(--error);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
  padding-top: clamp(66px, 8vw, 105px);
  padding-bottom: clamp(68px, 8vw, 112px);
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.hero-note h2,
.gate-content h3 {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-weight: 470;
  letter-spacing: -0.048em;
}

.hero h1 {
  max-width: 770px;
  margin: 22px 0 20px;
  font-size: clamp(3.2rem, 6.15vw, 5.9rem);
  line-height: 0.99;
}

.hero h1 em {
  color: var(--teal);
  font-weight: 460;
}

.hero-lead {
  max-width: 590px;
  margin: 0;
  color: #536762;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.8;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 31px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #465a55;
  font-size: 0.71rem;
}

.hero-points b {
  color: #8b9b91;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-note {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  padding: 28px 30px 25px;
  color: #f6f6ed;
  background:
    radial-gradient(circle at 93% 8%, rgba(95, 167, 150, 0.23), transparent 10rem),
    var(--ink-deep);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 65px rgba(20, 47, 43, 0.16);
}

.hero-note::after {
  position: absolute;
  right: -48px;
  bottom: -112px;
  width: 232px;
  height: 232px;
  content: "";
  border: 1px solid rgba(148, 200, 185, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(148, 200, 185, 0.025), 0 0 0 48px rgba(148, 200, 185, 0.025);
  pointer-events: none;
}

.note-topline {
  display: flex;
  height: 56px;
  align-items: flex-start;
  justify-content: space-between;
}

.note-index {
  color: #a8c0b4;
  font-size: 0.62rem;
  font-weight: 670;
  letter-spacing: 0.14em;
}

.note-mark {
  position: absolute;
  top: 21px;
  right: 21px;
  display: block;
  width: 62px;
  height: 62px;
  color: #7fb9a7;
  opacity: 0.72;
}

.note-mark svg {
  width: 100%;
  height: 100%;
}

.eyebrow-light {
  color: #9ccabb;
}

.hero-note h2 {
  max-width: 290px;
  margin: 13px 0 18px;
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.1;
}

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

.safety-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1ded5;
  font-size: 0.78rem;
}

.safety-check {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  color: #c7e5d7;
  background: rgba(119, 182, 156, 0.13);
  border: 1px solid rgba(148, 201, 177, 0.28);
  border-radius: 50%;
  font-size: 0.62rem;
}

.note-foot {
  position: relative;
  z-index: 1;
  max-width: 385px;
  padding-top: 14px;
  margin: 21px 0 0;
  color: #aebdb4;
  border-top: 1px solid rgba(197, 218, 202, 0.17);
  font-size: 0.66rem;
  line-height: 1.65;
}

.demo-section {
  padding-bottom: 42px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
}

.section-note {
  max-width: 250px;
  margin: 0 0 3px;
  color: #667770;
  font-size: 0.76rem;
  line-height: 1.7;
  text-align: right;
}

.demo-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(71, 96, 85, 0.19);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.demo-bar {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(255, 254, 250, 0.92);
  border-bottom: 1px solid var(--line);
}

.demo-identity,
.demo-bar-actions {
  display: flex;
  align-items: center;
}

.demo-identity {
  gap: 11px;
}

.jev-monogram {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #ecf3e9;
  background: var(--ink);
  border-radius: 12px;
  font-family: Georgia, serif;
  font-size: 1.21rem;
  font-style: italic;
}

.identity-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.identity-overline {
  color: #85928a;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.identity-copy strong {
  font-size: 0.8rem;
  font-weight: 670;
}

.demo-bar-actions {
  gap: 16px;
}

.mode-badge {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #47635b;
  background: #eff3eb;
  border: 1px solid #e0e7dc;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 730;
  letter-spacing: 0.09em;
}

.mode-dot {
  width: 6px;
  height: 6px;
  background: #9aa99d;
}

.text-button {
  padding: 6px 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(23, 107, 100, 0.35);
  text-underline-offset: 3px;
}

.text-button:hover {
  text-decoration-color: currentColor;
}

.login-gate {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(22px, 5vw, 65px);
  align-items: center;
  width: min(100%, 830px);
  min-height: 420px;
  padding: 54px clamp(28px, 8vw, 90px);
  margin-inline: auto;
}

.gate-illustration {
  display: grid;
  width: 118px;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  color: #4d8d7b;
  background: radial-gradient(circle, #e3efe7 0, #e3efe7 38%, transparent 39%);
}

.gate-illustration svg {
  width: 100%;
  height: 100%;
}

.gate-content {
  max-width: 490px;
}

.gate-content h3 {
  margin: 13px 0 8px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.gate-intro {
  max-width: 440px;
  margin: 0;
  color: #62736c;
  font-size: 0.85rem;
  line-height: 1.7;
}

.login-form {
  margin-top: 21px;
}

.login-form label,
.composer-label {
  display: block;
  margin-bottom: 7px;
  color: #3e514b;
  font-size: 0.69rem;
  font-weight: 680;
}

.login-row {
  display: flex;
  gap: 9px;
}

.login-row input,
.composer textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd7cd;
  border-radius: var(--radius-control);
}

.login-row input {
  min-width: 0;
  min-height: 45px;
  padding: 0 13px;
  font-size: 0.84rem;
}

.login-row input::placeholder,
.composer textarea::placeholder {
  color: #929c94;
  opacity: 1;
}

.login-row input:focus,
.composer textarea:focus {
  border-color: var(--teal);
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 690;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-dark {
  flex: 0 0 auto;
  color: #f9faf1;
  background: var(--ink);
}

.button-dark:hover:not(:disabled) {
  background: #244843;
}

.button-teal {
  color: #f9fffa;
  background: var(--teal-dark);
}

.button-teal:hover:not(:disabled) {
  background: #176b64;
}

.button-outline {
  color: #355c54;
  background: transparent;
  border-color: #b8cbc1;
}

.button-outline:hover:not(:disabled) {
  background: #eff5ef;
  border-color: #85a79a;
}

.form-message {
  min-height: 18px;
  margin: 7px 0 0;
  color: #62736c;
  font-size: 0.7rem;
  line-height: 1.45;
}

.form-message[data-state="error"] {
  color: var(--error);
}

.composer-status {
  min-height: 0;
  margin: 5px 0 0;
}

.retry-config {
  margin-top: 1px;
}

.gate-foot {
  margin: 21px 0 0;
  color: #89958e;
  font-size: 0.67rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(265px, 0.74fr);
  min-height: 680px;
}

.workspace-main {
  min-width: 0;
  padding: 25px 29px 29px;
}

.assistant-panel {
  min-width: 0;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}

.panel-kicker {
  color: #84938a;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.panel-title-row h3,
.sample-panel-heading h3 {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.fictional-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #527467;
  background: #f1f6ef;
  border: 1px solid #e0e8dc;
  border-radius: 5px;
  font-size: 0.61rem;
  font-weight: 650;
  white-space: nowrap;
}

.fictional-chip span {
  color: #4c9a77;
  font-size: 0.47rem;
}

.mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #f1f2ec;
  border-radius: 10px;
}

.mode-tab {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: #6c7b73;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 660;
  transition: background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.mode-tab svg {
  width: 17px;
  height: 17px;
}

.mode-tab:hover:not(.is-active) {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.54);
}

.mode-tab.is-active {
  color: var(--ink);
  background: #fffefa;
  border-color: rgba(111, 132, 118, 0.13);
  box-shadow: 0 2px 4px rgba(35, 53, 45, 0.06);
}

.tab-detail {
  padding: 3px 5px;
  color: #638074;
  background: #eaf2e9;
  border-radius: 4px;
  font-size: 0.53rem;
  font-weight: 710;
}

.mode-panel {
  padding-top: 17px;
}

.chat-panel {
  min-width: 0;
}

.chat-panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53675e;
  font-size: 0.65rem;
  font-weight: 620;
}

.online-indicator span {
  width: 6px;
  height: 6px;
  background: #54a578;
}

.metadata-caption {
  color: #89938b;
  font-size: 0.61rem;
}

.chat-log {
  display: flex;
  min-height: 280px;
  max-height: 450px;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 17px;
  background: #f6f7f2;
  border: 1px solid #e8ebe3;
  border-radius: 12px;
  overscroll-behavior: contain;
  scrollbar-color: #b4c6bb transparent;
  scrollbar-width: thin;
}

.message {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: min(100%, 640px);
  align-items: flex-start;
  gap: 9px;
}

.message-assistant {
  align-self: flex-start;
}

.message-user {
  align-self: flex-end;
  max-width: min(88%, 540px);
  padding: 10px 13px;
  color: #f3f7f1;
  background: var(--teal-dark);
  border-radius: 13px 13px 4px 13px;
}

.message-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: #eaf5ec;
  background: #244c46;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 0.81rem;
  font-style: italic;
}

.message-content {
  min-width: 0;
  padding: 10px 13px 11px;
  color: #334c44;
  background: #fffefa;
  border: 1px solid #e7ebe3;
  border-radius: 4px 13px 13px 13px;
}

.message-content > p:last-child {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-author {
  margin: 0 0 5px;
  color: #52746a;
  font-size: 0.61rem;
  font-weight: 740;
  letter-spacing: 0.02em;
}

.message-author span {
  color: #84958b;
  font-weight: 520;
}

.message-user p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.response-card {
  display: block;
  width: min(100%, 740px);
}

.response-bubble {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 13px 13px;
  background: #fffefa;
  border: 1px solid #e2e9df;
  border-radius: 4px 13px 13px 13px;
}

.response-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.response-header .message-author {
  margin: 0;
}

.response-model {
  max-width: 55%;
  color: #809087;
  font-size: 0.55rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.response-copy {
  margin: 9px 0 0;
  color: #334c44;
  font-size: 0.79rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.response-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.response-fact {
  min-width: 0;
  padding: 7px 9px;
  background: #f4f6ef;
  border-radius: 6px;
}

.response-fact dt,
.usage-fact dt {
  margin-bottom: 4px;
  color: #819087;
  font-size: 0.53rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.response-fact dd,
.usage-fact dd {
  margin: 0;
  color: #3c5b51;
  font-size: 0.65rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.latency-fact dd {
  color: #235f55;
  font-weight: 720;
}

.trace-details {
  margin-top: 12px;
  border-top: 1px solid #e7ebe3;
}

.trace-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 8px;
  color: #425f54;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 720;
  list-style: none;
}

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

.trace-details summary::after {
  content: "+";
  color: #718c7e;
  font-size: 1rem;
  font-weight: 420;
}

.trace-details[open] summary::after {
  content: "−";
}

.trace-count {
  margin-left: auto;
  color: #84938a;
  font-size: 0.56rem;
  font-weight: 550;
}

.trace-list {
  display: grid;
  gap: 6px;
  padding: 2px 0 7px;
  margin: 0;
  list-style: none;
}

.trace-item {
  display: grid;
  grid-template-columns: minmax(76px, 0.5fr) minmax(0, 1.5fr);
  gap: 5px 10px;
  padding: 8px 9px;
  background: #f5f7f1;
  border-left: 2px solid #89b09d;
  border-radius: 0 6px 6px 0;
}

.trace-label,
.trace-status {
  color: #526b5e;
  font-size: 0.6rem;
  font-weight: 690;
  overflow-wrap: anywhere;
}

.trace-status {
  justify-self: end;
  color: #718279;
  text-align: right;
}

.trace-detail,
.trace-decision,
.trace-time {
  grid-column: 1 / -1;
  color: #63766b;
  font-size: 0.59rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.trace-decision {
  color: #355f53;
  font-weight: 590;
}

.trace-time {
  color: #89958c;
  font-size: 0.54rem;
}

.trace-empty {
  margin: 2px 0 8px;
  color: #87948b;
  font-size: 0.62rem;
  font-style: italic;
}

.source-list,
.usage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.source-list li {
  padding: 4px 7px;
  color: #547064;
  background: #edf4eb;
  border-radius: 4px;
  font-size: 0.56rem;
  overflow-wrap: anywhere;
}

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

.usage-fact {
  min-width: 0;
  padding: 7px 8px;
  background: #f7f7f1;
  border-radius: 5px;
}

.usage-note {
  margin: 7px 0 0;
  color: #849189;
  font-size: 0.57rem;
  line-height: 1.5;
}

.chat-error {
  display: flex;
  max-width: 600px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #814c42;
  background: #fbf2ee;
  border: 1px solid #efdcd5;
  border-radius: 8px;
  font-size: 0.69rem;
  line-height: 1.5;
}

.chat-error-message {
  margin: 0;
}

.chat-error .text-button {
  flex: 0 0 auto;
  color: #87493c;
}

.pending-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 5px 2px;
  color: #627970;
  font-size: 0.66rem;
}

.loading-dot {
  width: 7px;
  height: 7px;
  background: #53a28a;
  border-radius: 50%;
  animation: breathe 1s ease-in-out infinite alternate;
}

@keyframes breathe {
  to { opacity: 0.35; transform: scale(0.78); }
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 0 11px;
}

.shared-consent {
  padding: 12px 0 10px;
}

.consent-row input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--teal-dark);
}

.consent-row label {
  color: #65756e;
  cursor: pointer;
  font-size: 0.64rem;
  line-height: 1.5;
}

.consent-row strong {
  color: #3b564c;
  font-weight: 720;
}

.composer {
  padding: 12px;
  background: #fffefa;
  border: 1px solid #dfe5dc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(35, 53, 45, 0.035);
}

.composer-label {
  margin-bottom: 8px;
}

.composer textarea {
  display: block;
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
  font-size: 0.77rem;
  line-height: 1.5;
}

.composer textarea:disabled {
  background: #f5f5f0;
  cursor: not-allowed;
}

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
}

.character-count {
  color: #89958c;
  font-size: 0.59rem;
  font-variant-numeric: tabular-nums;
}

.composer-bottom .button {
  min-height: 37px;
  padding-inline: 12px;
  font-size: 0.66rem;
}

.conversation-note {
  margin: 10px 0 0;
  color: #849189;
  font-size: 0.59rem;
  line-height: 1.5;
}

.sample-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 27px 23px 22px;
  background: #f7f8f2;
  border-left: 1px solid var(--line);
}

.sample-panel-heading h3 {
  margin-top: 7px;
  font-size: 1.03rem;
}

.sample-panel-heading > p:last-child {
  margin: 8px 0 0;
  color: #718078;
  font-size: 0.68rem;
  line-height: 1.65;
}

.sample-list {
  display: grid;
  gap: 7px;
  margin-top: 19px;
}

.sample-chip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 10px 9px;
  color: #3e5650;
  background: rgba(255, 255, 251, 0.82);
  border: 1px solid #e2e7dd;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.sample-chip:hover {
  background: #fffefa;
  border-color: #a9c2b2;
  transform: translateY(-1px);
}

.sample-number {
  padding-top: 1px;
  color: #89a197;
  font-size: 0.56rem;
  font-weight: 730;
  letter-spacing: 0.04em;
}

.sample-chip > span:nth-child(2) {
  font-size: 0.65rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sample-arrow {
  color: #8ba093;
  font-size: 0.78rem;
  text-align: right;
}

.sample-chip-adversarial {
  background: #f9f4eb;
  border-color: #e8dfcd;
}

.sample-chip-adversarial .sample-number,
.sample-chip-adversarial .sample-arrow {
  color: #a77e48;
}

.system-details {
  padding-top: 17px;
  margin-top: auto;
  border-top: 1px solid #e0e5dc;
}

.system-details dl {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
}

.system-details dl div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.system-details dt {
  flex: 0 0 auto;
  color: #87948b;
  font-size: 0.61rem;
}

.system-details dd {
  max-width: 64%;
  margin: 0;
  color: #53685e;
  font-size: 0.61rem;
  font-weight: 620;
  text-align: right;
  overflow-wrap: anywhere;
}

.sample-footnote {
  padding-top: 12px;
  margin: 14px 0 0;
  color: #859087;
  border-top: 1px solid #e5e8df;
  font-size: 0.59rem;
  line-height: 1.55;
}

.voice-intro {
  padding: 17px 18px 16px;
  background: #f1f5ee;
  border: 1px solid #e1e9de;
  border-radius: 12px;
}

.voice-intro h4 {
  margin: 8px 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.028em;
}

.voice-intro > p:last-child {
  max-width: 660px;
  margin: 0;
  color: #63746b;
  font-size: 0.71rem;
  line-height: 1.7;
}

.voice-unavailable {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  margin-top: 12px;
  color: #6f5737;
  background: #fbf5e9;
  border: 1px solid #ece1cc;
  border-radius: 9px;
}

.unavailable-mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: #86653a;
  background: #f0e2c7;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 750;
}

.voice-unavailable strong {
  display: block;
  font-size: 0.7rem;
}

.voice-unavailable p {
  margin: 4px 0 0;
  color: #816c4e;
  font-size: 0.65rem;
  line-height: 1.55;
}

.voice-status-row {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.voice-state-dot {
  width: 8px;
  height: 8px;
}

.voice-status-row[data-state="ready"] .voice-state-dot {
  background: #54a578;
}

.voice-status-row[data-state="active"] .voice-state-dot {
  background: #42a77a;
  box-shadow: 0 0 0 4px rgba(66, 167, 122, 0.13);
}

.voice-status-row[data-state="error"] .voice-state-dot {
  background: #bc6254;
}

.voice-state-copy {
  flex: 1 1 auto;
  margin: 0;
  color: #63746b;
  font-size: 0.68rem;
  line-height: 1.45;
}

.voice-timer {
  padding: 4px 7px;
  color: #48675c;
  background: #edf4eb;
  border: 1px solid #dfe8dd;
  border-radius: 5px;
  font-size: 0.63rem;
  font-variant-numeric: tabular-nums;
  font-weight: 730;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
}

.voice-actions .button {
  min-height: 38px;
  font-size: 0.67rem;
}

.voice-actions svg {
  width: 14px;
  height: 14px;
}

.transcript-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0 9px;
  border-top: 1px solid #e3e9e0;
}

.transcript-heading span:first-child {
  color: #75887d;
  font-size: 0.56rem;
  font-weight: 740;
  letter-spacing: 0.13em;
}

.transcript-heading span:last-child {
  color: #929d94;
  font-size: 0.57rem;
}

.transcript-log {
  display: flex;
  min-height: 180px;
  max-height: 290px;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  padding: 12px;
  background: #f7f8f3;
  border: 1px solid #e8ece5;
  border-radius: 9px;
  scrollbar-color: #b4c6bb transparent;
  scrollbar-width: thin;
}

.transcript-empty {
  margin: auto;
  color: #98a39a;
  font-size: 0.66rem;
  text-align: center;
}

.transcript-line {
  max-width: 95%;
  padding: 8px 10px;
  color: #466055;
  background: #fffefa;
  border: 1px solid #e5ebe2;
  border-radius: 8px 8px 8px 2px;
  font-size: 0.68rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.transcript-line[data-role="assistant"] {
  align-self: flex-end;
  color: #f4f8f1;
  background: #365f55;
  border-color: #365f55;
  border-radius: 8px 8px 2px 8px;
}

.transcript-speaker {
  display: block;
  margin-bottom: 3px;
  color: #80978a;
  font-size: 0.52rem;
  font-weight: 730;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transcript-line[data-role="assistant"] .transcript-speaker {
  color: #b2cfbf;
}

.site-footer {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #829087;
  border-top: 1px solid rgba(76, 99, 91, 0.15);
  font-size: 0.6rem;
}

.site-footer > span {
  font-weight: 730;
  letter-spacing: 0.11em;
}

.site-footer > span span {
  padding-inline: 4px;
  color: #aab5ab;
}

.site-footer p {
  margin: 0;
}

.no-script {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.2vw, 4.7rem);
  }

  .workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(255px, 0.8fr);
  }

  .workspace-main {
    padding-inline: 22px;
  }

  .sample-panel {
    padding-inline: 18px;
  }
}

@media (max-width: 780px) {
  .page-width,
  .header-inner {
    width: min(100% - 40px, 1184px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 71px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-note {
    min-height: 0;
    padding: 22px 24px;
  }

  .hero-note h2 {
    max-width: 400px;
  }

  .note-topline {
    height: 45px;
  }

  .note-mark {
    top: 13px;
    right: 15px;
    width: 52px;
    height: 52px;
  }

  .note-foot {
    margin-top: 17px;
  }

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

  .section-note {
    max-width: 195px;
    margin-top: 22px;
  }

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

  .workspace-main {
    padding: 22px;
  }

  .sample-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 17px 23px;
    padding: 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sample-panel-heading {
    grid-column: 1 / -1;
  }

  .sample-list {
    grid-row: span 2;
    margin-top: 0;
  }

  .system-details {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }

  .sample-footnote {
    padding-top: 10px;
    margin-top: 2px;
  }
}

@media (max-width: 560px) {
  .page-width,
  .header-inner {
    width: min(100% - 30px, 1184px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .header-right {
    gap: 0;
  }

  .header-caption {
    display: none;
  }

  .connection-status {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 0.62rem;
  }

  .hero {
    gap: 24px;
    padding-top: 47px;
    padding-bottom: 55px;
  }

  .hero h1 {
    margin-top: 17px;
    font-size: clamp(2.72rem, 13vw, 4rem);
  }

  .hero-lead {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .hero-points {
    display: grid;
    gap: 9px;
    margin-top: 22px;
  }

  .hero-note {
    padding: 20px;
    border-radius: 14px;
  }

  .hero-note h2 {
    font-size: 1.72rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 17px;
  }

  .section-heading h2 {
    max-width: 370px;
    font-size: 2.18rem;
  }

  .section-note {
    max-width: 100%;
    margin: 9px 0 0;
    text-align: left;
  }

  .demo-section {
    padding-bottom: 25px;
  }

  .demo-shell {
    border-radius: 14px;
  }

  .demo-bar {
    min-height: 66px;
    padding: 11px 13px;
  }

  .demo-identity {
    gap: 8px;
  }

  .jev-monogram {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .identity-copy strong {
    font-size: 0.72rem;
  }

  .identity-overline {
    font-size: 0.5rem;
  }

  .demo-bar-actions {
    gap: 9px;
  }

  .mode-badge {
    min-height: 26px;
    gap: 5px;
    padding: 5px 6px;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .reset-button {
    font-size: 0.63rem;
  }

  .login-gate {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 31px 20px 35px;
  }

  .gate-illustration {
    width: 70px;
    justify-self: start;
  }

  .gate-content h3 {
    font-size: 2.2rem;
  }

  .gate-intro {
    font-size: 0.79rem;
  }

  .login-row {
    align-items: stretch;
  }

  .login-row input {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 0.75rem;
  }

  .login-row .button {
    min-height: 42px;
    gap: 6px;
    padding-inline: 10px;
    font-size: 0.67rem;
  }

  .workspace-main {
    padding: 18px 13px 17px;
  }

  .panel-title-row {
    gap: 7px;
    margin-bottom: 14px;
  }

  .panel-title-row h3 {
    font-size: 0.9rem;
  }

  .fictional-chip {
    gap: 4px;
    padding: 5px 6px;
    font-size: 0.53rem;
  }

  .mode-tabs {
    padding: 4px;
  }

  .mode-tab {
    min-height: 36px;
    gap: 6px;
    padding-inline: 9px;
    font-size: 0.66rem;
  }

  .tab-detail {
    padding-inline: 4px;
    font-size: 0.49rem;
  }

  .mode-panel {
    padding-top: 13px;
  }

  .chat-panel-meta {
    gap: 8px;
    margin-bottom: 8px;
  }

  .metadata-caption {
    max-width: 42%;
    font-size: 0.54rem;
    text-align: right;
  }

  .chat-log {
    min-height: 240px;
    max-height: 405px;
    gap: 10px;
    padding: 10px;
  }

  .message-user {
    max-width: 91%;
  }

  .message-content,
  .response-bubble {
    padding-inline: 10px;
  }

  .response-facts {
    gap: 5px;
  }

  .trace-item {
    grid-template-columns: minmax(65px, 0.58fr) minmax(0, 1.42fr);
  }

  .usage-list {
    gap: 4px;
  }

  .usage-fact {
    padding-inline: 6px;
  }

  .usage-fact dt {
    font-size: 0.48rem;
  }

  .usage-fact dd {
    font-size: 0.59rem;
  }

  .consent-row label {
    font-size: 0.61rem;
  }

  .composer {
    padding: 10px;
  }

  .composer textarea {
    min-height: 70px;
    font-size: 0.73rem;
  }

  .composer-bottom .button {
    min-height: 35px;
    padding-inline: 9px;
    font-size: 0.61rem;
  }

  .conversation-note {
    font-size: 0.56rem;
  }

  .sample-panel {
    display: block;
    padding: 19px 14px;
  }

  .sample-list {
    margin-top: 14px;
  }

  .sample-chip {
    padding: 9px 8px;
  }

  .system-details {
    padding-top: 15px;
    margin-top: 17px;
    border-top: 1px solid #e0e5dc;
  }

  .sample-footnote {
    margin-top: 12px;
  }

  .voice-intro {
    padding: 13px;
  }

  .voice-intro > p:last-child {
    font-size: 0.66rem;
  }

  .voice-actions .button {
    padding-inline: 10px;
    font-size: 0.61rem;
  }

  .transcript-heading span:last-child {
    font-size: 0.52rem;
    text-align: right;
  }

  .site-footer {
    min-height: 66px;
    font-size: 0.53rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
