.home-page {
  --home-bg: #f7f4ec;
  --home-paper: #fffdf8;
  --home-ink: #10251a;
  --home-muted: #56635b;
  --home-green: var(--color-brand-dark);
  --home-green-deep: #092719;
  --home-mint: var(--color-action-primary);
  --home-mint-strong: #75d590;
  --home-line: rgba(16, 37, 26, .14);
  --home-line-light: rgba(255, 255, 255, .16);
  --home-shell: 1220px;
  --home-space: clamp(76px, 10vw, 150px);
  --home-radius: 22px;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--home-ink);
  background: var(--home-bg);
}

.home-page main {
  overflow: clip;
}

.home-page main h1,
.home-page main h2,
.home-page main h3,
.home-page main p {
  text-wrap: pretty;
}

.home-page main h1,
.home-page main h2 {
  color: inherit;
  font-family: var(--font-display);
  letter-spacing: -.025em;
}

.home-page main h3 {
  color: inherit;
  font-family: var(--font-body);
  letter-spacing: -.02em;
}

.home-page main button,
.home-page main input {
  font: inherit;
}

.home-page main a:focus-visible,
.home-page main button:focus-visible,
.home-page main input:focus-visible {
  outline: 3px solid #46a966;
  outline-offset: 4px;
}

.home-shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--home-shell));
  margin-inline: auto;
}

.home-section {
  padding: var(--home-space) 0;
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: #326344;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.home-kicker-light {
  color: var(--home-mint);
}

.home-section-head {
  width: min(820px, 100%);
  margin: 0 auto clamp(46px, 7vw, 78px);
  text-align: center;
}

.home-section-head-left {
  width: min(880px, 100%);
  margin-inline: 0;
  text-align: left;
}

.home-section-head .home-kicker {
  justify-content: center;
}

.home-section-head-left .home-kicker {
  justify-content: flex-start;
}

.home-section-head h2,
.home-price-grid h2,
.home-final-cta h2 {
  margin: 0;
  font-size: var(--type-display-section);
  font-weight: 700;
  line-height: 1.02;
}

.home-section-head > p:not(.home-kicker),
.home-price-grid > div > p,
.home-final-cta-inner > div > p:not(.home-kicker) {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

.home-section-head-left > p:not(.home-kicker) {
  margin-inline: 0;
}

.home-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 24px;
  color: var(--home-paper);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .25s var(--home-ease), background .25s ease, box-shadow .25s ease;
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button-primary {
  border-color: rgba(23, 62, 41, .12);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-action);
}

.home-button-primary:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-action-hover);
}

.home-button-light {
  border-color: rgba(23, 62, 41, .12);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-action);
}

.home-button-light:hover {
  background: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
  box-shadow: var(--shadow-action-hover);
}

.home-button-primary:active,
.home-button-light:active {
  background: var(--color-action-primary-active);
  transform: translateY(0);
  box-shadow: var(--shadow-action);
}

.home-page main .home-button:focus-visible {
  outline: 3px solid var(--color-action-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--color-action-focus-contrast), var(--shadow-action);
}

.home-button:disabled,
.home-button[aria-disabled="true"] {
  background: #d7e5d9;
  color: #66756a;
  cursor: not-allowed;
  box-shadow: none;
  opacity: .78;
  transform: none;
}

/* Hero */
.home-hero {
  position: relative;
  padding: clamp(88px, 11vw, 158px) 0 clamp(72px, 9vw, 116px);
  background: var(--home-paper);
  border-bottom: 1px solid var(--home-line);
}

.home-hero-inner {
  position: relative;
}

.home-hero-copy {
  width: min(1040px, 100%);
}

.home-hero h1 {
  max-width: 990px;
  margin: 0;
  font-size: var(--type-display-hero);
  font-weight: 700;
  line-height: .98;
}

.home-hero-lead {
  max-width: 780px;
  margin: 36px 0 0;
  color: var(--home-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}

.home-hero-note {
  max-width: 270px;
  color: var(--home-ink);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.5;
}

.home-risk-note {
  margin: 18px 0 0;
  color: #6b766f;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .015em;
}

.home-outcome-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
  margin-top: clamp(72px, 10vw, 132px);
  border-top: 1px solid var(--home-line);
  padding-top: 28px;
}

.home-outcome-node {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--home-muted);
  font-size: .92rem;
  font-weight: 650;
}

.home-outcome-index {
  color: #7a877f;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.home-outcome-node-accent {
  color: var(--home-green);
}

.home-outcome-arrow {
  color: #91a298;
}

/* Product demo */
.home-product-section {
  background: var(--home-bg);
}

.product-demo {
  border: 1px solid var(--home-line);
  background: var(--home-paper);
  box-shadow: 0 40px 90px -64px rgba(9, 39, 25, .45);
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--home-line);
}

.scenario-tab {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-right: 1px solid var(--home-line);
  padding: 18px 22px;
  background: transparent;
  color: #7b857f;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, background .2s ease;
}

.scenario-tab:last-child {
  border-right: 0;
}

.scenario-tab span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.scenario-tab strong {
  font-size: .88rem;
}

.scenario-tab:hover {
  background: #f4f6f1;
  color: var(--home-green);
}

.scenario-tab.is-active {
  background: var(--home-green);
  color: #fff;
}

.scenario-stage {
  min-height: 590px;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(rgba(23, 62, 41, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 62, 41, .035) 1px, transparent 1px),
    #f8f9f5;
  background-size: 32px 32px;
}

.scenario-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.scenario-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--home-green-deep);
  font-weight: 800;
}

.scenario-brand-mark,
.testcenter-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--home-green);
  color: var(--home-mint);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.scenario-demo-label,
.scenario-source-type,
.scenario-answer-label,
.knowledge-label {
  color: #708078;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.scenario-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.scenario-panel.is-active {
  animation: scenario-in .55s var(--home-ease) both;
}

@keyframes scenario-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.scenario-conversation {
  max-width: 680px;
}

.scenario-context {
  margin: 0 0 12px;
  color: #76847b;
  font-size: .78rem;
  font-weight: 700;
}

.scenario-question {
  margin: 0;
  color: var(--home-green-deep);
  font-size: clamp(1.8rem, 3.5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.scenario-status {
  display: grid;
  gap: 11px;
  margin: 30px 0;
}

.scenario-status > span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #5b6b61;
  font-size: .82rem;
  opacity: 0;
  transform: translateX(-8px);
  animation: status-in .35s var(--home-ease) forwards;
}

.scenario-status > span:nth-child(2) { animation-delay: .42s; }
.scenario-status > span:nth-child(3) { animation-delay: .84s; }

@keyframes status-in {
  to { opacity: 1; transform: translateX(0); }
}

.scenario-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ca968;
  box-shadow: 0 0 0 5px rgba(76, 169, 104, .12);
}

.scenario-answer {
  border-left: 3px solid var(--home-mint-strong);
  padding: 4px 0 4px 20px;
}

.scenario-answer p {
  margin: 8px 0 0;
  color: #253c2e;
  font-size: .98rem;
  line-height: 1.72;
}

.scenario-source-card {
  align-self: stretch;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(23, 62, 41, .13);
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 60px -42px rgba(9, 39, 25, .6);
}

.scenario-source-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 34px 0 20px;
  border-radius: 50%;
  background: #e9f6eb;
  color: var(--home-green);
}

.scenario-source-card > strong {
  color: var(--home-green-deep);
  font-size: 1.08rem;
}

.scenario-source-card > span:not(.scenario-source-type):not(.scenario-system-arrow) {
  margin-top: 6px;
  color: #728078;
  font-size: .74rem;
  line-height: 1.5;
}

.scenario-source-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--home-line);
  padding-top: 18px;
  color: #476052;
  font-size: .73rem;
  font-weight: 700;
}

.scenario-source-match strong {
  color: #2e8a4c;
  font-size: 1.2rem;
}

.scenario-source-card-split > div:not(.scenario-source-plus) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--home-green-deep);
}

.scenario-source-card-split .material-symbols-outlined {
  color: #4f8b63;
}

.scenario-source-plus {
  margin: 12px 0 0 5px;
  color: #8b968f;
}

.scenario-source-card-split p,
.scenario-system-card p {
  margin: auto 0 0;
  color: #68776e;
  font-size: .75rem;
  line-height: 1.6;
}

.scenario-system-card {
  align-items: center;
  text-align: center;
}

.scenario-system-name {
  width: 100%;
  border: 1px solid var(--home-line);
  padding: 14px;
  background: #f8faf6;
  color: var(--home-green-deep);
  font-weight: 800;
}

.scenario-system-name:first-of-type { margin-top: 26px; }
.scenario-system-arrow { margin: 6px 0; color: #66806f; }

.scenario-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #3ca35b;
}

.scenario-secondary-example {
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid var(--home-line);
  padding-top: 16px;
  color: #637168;
  font-size: .7rem;
  text-align: left;
}

.scenario-secondary-example strong {
  display: block;
  margin-top: 4px;
  color: var(--home-green);
}

.scenario-availability > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: #43564a;
  font-size: .84rem;
}

.scenario-lead-card dl {
  margin: 25px 0;
}

.scenario-lead-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--home-line);
  padding: 12px 0;
  font-size: .78rem;
}

.scenario-lead-card dt { color: #768179; }
.scenario-lead-card dd { margin: 0; color: var(--home-green-deep); font-weight: 700; text-align: right; }

/* Demo forms */
.home-demo-cta-section,
.home-final-cta {
  color: #fff;
  background: var(--home-green-deep);
}

.home-demo-cta-grid,
.home-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.home-demo-cta-grid h2,
.home-final-cta h2 {
  max-width: 750px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--type-display-section);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.02;
}

.home-demo-cta-grid > div > p:not(.home-kicker) {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 1.04rem;
  line-height: 1.75;
}

.home-demo-form-card {
  border: 1px solid rgba(255, 255, 255, .12);
  padding: clamp(24px, 3.5vw, 42px);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 30px 70px -48px rgba(0, 0, 0, .8);
}

.home-demo-form {
  display: grid;
  gap: 18px;
}

.home-form-field {
  display: grid;
  gap: 8px;
}

.home-form-field label {
  color: rgba(255, 255, 255, .78);
  font-size: .76rem;
  font-weight: 700;
}

.home-form-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  padding: 13px 15px;
  outline: none;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-form-field input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.home-form-field input:hover,
.home-form-field input:focus {
  border-color: var(--home-mint);
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 0 0 3px rgba(185, 239, 198, .12);
}

.home-form-field input[aria-invalid="true"] {
  border-color: #ffaaa2;
}

.home-demo-form .home-button {
  width: 100%;
  margin-top: 4px;
}

.home-demo-form button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.home-form-risk {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: .69rem;
  line-height: 1.55;
  text-align: center;
}

.home-form-message {
  border-radius: 6px;
  padding: 12px 14px;
  font-size: .78rem;
  line-height: 1.5;
}

.home-form-error {
  border: 1px solid rgba(255, 170, 162, .4);
  background: rgba(123, 16, 16, .23);
  color: #ffd4d0;
}

.home-form-success {
  border: 1px solid rgba(185, 239, 198, .34);
  background: rgba(79, 158, 99, .17);
  color: #d8f9df;
}

/* Business value */
.home-value-section {
  background: var(--home-paper);
}

.value-list {
  border-top: 1px solid var(--home-line);
}

.value-item {
  display: grid;
  grid-template-columns: 64px minmax(220px, .75fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 64px);
  border-bottom: 1px solid var(--home-line);
  padding: clamp(32px, 5vw, 62px) 0;
}

.value-number,
.platform-index,
.control-copy-item > span,
.trust-list-home article > span {
  color: #7e8c83;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.value-item h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  line-height: 1.2;
}

.value-item p {
  margin: 0 0 16px;
  color: var(--home-muted);
  line-height: 1.72;
}

.value-item .value-statement {
  margin-top: 24px;
  color: var(--home-green);
  font-weight: 750;
}

/* Platform */
.home-platform-section {
  color: #fff;
  background: var(--home-green);
}

.home-platform-section .home-section-head > p:not(.home-kicker) {
  color: rgba(255, 255, 255, .65);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--home-line-light);
  border-left: 1px solid var(--home-line-light);
}

.platform-feature {
  min-width: 0;
  border-right: 1px solid var(--home-line-light);
  border-bottom: 1px solid var(--home-line-light);
}

.platform-copy {
  min-height: 540px;
  padding: clamp(30px, 4.5vw, 58px);
}

.platform-index {
  display: block;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, .43);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.platform-copy h3 {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  line-height: 1.06;
}

.platform-copy p {
  max-width: 560px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .65);
  font-size: .93rem;
  line-height: 1.72;
}

.platform-copy a {
  display: inline-block;
  margin-top: 24px;
  color: var(--home-mint);
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
}

.platform-copy a:hover { text-decoration: underline; text-underline-offset: 5px; }

.platform-visual {
  min-height: 270px;
  border-top: 1px solid var(--home-line-light);
  padding: clamp(24px, 4vw, 48px);
  background: rgba(2, 24, 13, .22);
}

.platform-chat-visual {
  display: grid;
  align-content: center;
  gap: 13px;
}

.platform-chat-question,
.platform-chat-answer,
.manual-query,
.manual-result,
.inbox-answer {
  width: fit-content;
  max-width: 86%;
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 12px 16px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .83);
  font-size: .78rem;
}

.platform-chat-question { justify-self: end; background: var(--home-mint); color: var(--home-green-deep); }
.platform-chat-answer { border-left: 2px solid var(--home-mint); }
.platform-chat-thinking { display: flex; gap: 4px; padding-left: 14px; }
.platform-chat-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--home-mint); }

.manual-visual {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-content: center;
}

.manual-file {
  grid-row: span 2;
  border: 1px solid var(--home-line-light);
  padding: 22px;
  background: rgba(255, 255, 255, .06);
}

.manual-file span { display: block; margin-bottom: 30px; color: var(--home-mint); font-size: .7rem; font-weight: 800; }
.manual-file strong { font-size: .8rem; line-height: 1.6; }
.manual-query, .manual-result { max-width: 100%; }
.manual-result { color: var(--home-mint); }

.inbox-visual { display: grid; align-content: center; gap: 12px; }
.inbox-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--home-line-light); padding-bottom: 18px; }
.inbox-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e9f7ec; color: var(--home-green); font-size: .65rem; font-weight: 800; }
.inbox-row strong, .inbox-row small { display: block; }
.inbox-row strong { font-size: .8rem; }
.inbox-row small { margin-top: 4px; color: rgba(255, 255, 255, .43); font-size: .65rem; }
.inbox-row b { color: var(--home-mint); font-size: .74rem; }
.inbox-answer { width: 100%; max-width: 100%; }
.inbox-controls { display: flex; gap: 8px; }
.inbox-controls span, .inbox-controls strong { border: 1px solid var(--home-line-light); padding: 7px 11px; font-size: .64rem; }
.inbox-controls strong { background: var(--home-mint); color: var(--home-green-deep); }

.integration-visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  place-items: center;
}

.integration-visual span,
.integration-visual strong {
  display: grid;
  width: 100%;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--home-line-light);
  background: rgba(255, 255, 255, .05);
  font-size: .67rem;
}

.integration-visual strong { width: 66px; min-height: 66px; border-radius: 50%; background: var(--home-mint); color: var(--home-green); font-family: var(--font-display); font-size: 1.8rem; }

/* Knowledge and systems */
.home-knowledge-section {
  background: var(--home-bg);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.source-grid article {
  min-height: 225px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  padding: 28px;
  background: rgba(255, 253, 248, .48);
}

.source-grid article:first-child {
  grid-column: span 2;
  background: var(--home-green);
  color: #fff;
}

.source-grid .material-symbols-outlined {
  margin-bottom: 40px;
  color: #4d7f5d;
  font-size: 28px;
}

.source-grid article:first-child .material-symbols-outlined { color: var(--home-mint); }
.source-grid h3 { margin: 0 0 10px; font-size: 1.05rem; }
.source-grid p { margin: 0; color: #68756d; font-size: .79rem; line-height: 1.6; }
.source-grid article:first-child p { color: rgba(255, 255, 255, .62); }

.knowledge-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
  gap: clamp(38px, 8vw, 104px);
  align-items: center;
  margin-top: clamp(76px, 10vw, 130px);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  padding: clamp(50px, 7vw, 88px) 0;
}

.knowledge-feature h3 {
  margin: 20px 0 24px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.02;
}

.knowledge-feature > div > p {
  max-width: 670px;
  margin: 0 0 12px;
  color: var(--home-muted);
  line-height: 1.72;
}

.knowledge-mode-visual {
  display: grid;
  gap: 12px;
  border: 1px solid var(--home-line);
  padding: 28px;
  background: var(--home-paper);
}

.knowledge-mode-visual > span {
  border: 1px solid var(--home-line);
  padding: 13px;
  color: #637168;
  font-size: .76rem;
  text-align: center;
}

.knowledge-mode-visual > span:nth-child(2) { border: 0; padding: 0; }
.knowledge-mode-visual > .knowledge-mode-active { border-color: #72bd85; color: var(--home-green); font-weight: 700; }
.knowledge-mode-visual > div { margin-top: 16px; border-left: 2px solid var(--home-mint-strong); padding: 14px 0 14px 18px; color: var(--home-green-deep); font-size: .82rem; }

.system-section {
  margin-top: var(--home-space);
}

.system-list {
  border-top: 1px solid var(--home-line);
}

.system-list article {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr) 30px;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--home-line);
  padding: 24px 4px;
}

.system-list strong { color: var(--home-green); font-size: .88rem; }
.system-list p { margin: 0; color: var(--home-muted); }
.system-list article > span { color: #789084; }

.system-missing {
  display: grid;
  grid-template-columns: minmax(210px, .45fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding: 32px;
  background: #e6eee5;
}

.system-missing h3 { margin: 0; font-size: 1.35rem; }
.system-missing p { margin: 0; color: var(--home-muted); line-height: 1.65; }

/* Control */
.home-control-section {
  color: #fff;
  background: #102f20;
}

.home-control-section .home-section-head > p:not(.home-kicker) { color: rgba(255, 255, 255, .63); }

.control-grid {
  display: grid;
  grid-template-columns: minmax(270px, .75fr) minmax(420px, 1.25fr);
  column-gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

.control-copy-item {
  grid-column: 1;
  border-top: 1px solid var(--home-line-light);
  padding: 30px 0;
}

.control-copy-item > span { color: rgba(255, 255, 255, .38); }
.control-copy-item h3 { margin: 12px 0 17px; font-size: 1.5rem; }
.control-copy-item p { margin: 0 0 12px; color: rgba(255, 255, 255, .59); font-size: .88rem; line-height: 1.7; }
.control-copy-item .control-note { color: var(--home-mint); font-weight: 650; }

.testcenter-visual {
  position: sticky;
  top: 110px;
  grid-column: 2;
  grid-row: 1 / span 3;
  border: 1px solid var(--home-line-light);
  padding: clamp(24px, 4vw, 42px);
  background: #f7f9f5;
  color: var(--home-green-deep);
  box-shadow: 0 30px 80px -52px rgba(0, 0, 0, .8);
}

.testcenter-top,
.testcenter-top > div,
.testcenter-summary,
.testcenter-summary > div,
.testcenter-row,
.testcenter-row > span {
  display: flex;
  align-items: center;
}

.testcenter-top { justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--home-line); padding-bottom: 20px; }
.testcenter-top > div { gap: 10px; }
.testcenter-top > span { color: #778279; font-size: .67rem; }
.testcenter-summary { gap: 12px; padding: 32px 0; }
.testcenter-summary > strong { font-family: var(--font-display); font-size: 3.5rem; line-height: 1; }
.testcenter-summary > span { max-width: 70px; color: #718077; font-size: .72rem; line-height: 1.3; }
.testcenter-summary > div { gap: 7px; margin-left: auto; color: #427553; font-size: .7rem; font-weight: 700; }
.testcenter-summary i { width: 7px; height: 7px; border-radius: 50%; background: #56aa6c; }
.testcenter-row { justify-content: space-between; gap: 18px; border-top: 1px solid var(--home-line); padding: 18px 0; }
.testcenter-row > span { gap: 13px; min-width: 0; }
.testcenter-row i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-style: normal; font-size: .68rem; }
.test-pass { background: #daf2df; color: #2a7440; }
.test-review { background: #f8ecd1; color: #8a6412; }
.testcenter-row strong, .testcenter-row small { display: block; }
.testcenter-row strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.testcenter-row small { margin-top: 4px; color: #77827a; font-size: .65rem; }
.testcenter-row b { border-radius: 20px; padding: 6px 9px; background: #daf2df; color: #2a7440; font-size: .61rem; }
.testcenter-row b.review { background: #f8ecd1; color: #8a6412; }

/* Customer cases */
.home-cases-section { background: var(--home-paper); }

.customer-case {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(280px, .7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--home-line);
  padding: clamp(44px, 7vw, 84px) 0;
}

.customer-case-timars { border-bottom: 1px solid var(--home-line); }

.customer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.customer-logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--home-green);
  color: var(--home-mint);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.customer-brand strong { color: var(--home-green-deep); font-size: 1rem; letter-spacing: .02em; }
.customer-case > div:nth-child(2) > p { margin: 0 0 13px; color: var(--home-muted); line-height: 1.75; }
.customer-case blockquote { margin: 28px 0 0; border-left: 2px solid var(--home-mint-strong); padding-left: 16px; color: #7b867f; font-size: .82rem; font-style: normal; }
.customer-quote-source { margin-top: 12px; color: #68756d; font-size: .78rem; font-style: normal; text-align: right; }
.customer-quote-source cite { color: var(--home-ink); font-style: normal; font-weight: 700; }
.customer-quote-source a { color: inherit; text-decoration: underline; text-decoration-color: rgba(104, 117, 109, .45); text-underline-offset: 3px; }
.customer-quote-source a:hover { color: var(--home-green); text-decoration-color: currentColor; }

.customer-question,
.language-visual {
  border: 1px solid var(--home-line);
  padding: 28px;
  background: var(--home-bg);
}

.customer-question span,
.language-visual > span {
  color: #6f7c74;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-question p { margin: 28px 0; color: var(--home-green-deep); font-size: 1.1rem; font-weight: 650; }
.customer-question small { color: #63806d; font-size: .68rem; }
.language-visual { display: grid; gap: 10px; }
.language-visual p { width: 88%; margin: 0; padding: 10px 13px; background: #fff; color: #44554a; font-size: .72rem; }
.language-visual > div { width: 42px; margin: 6px auto; border-radius: 50%; padding: 12px 0; background: var(--home-green); color: var(--home-mint); font-family: var(--font-display); font-size: .68rem; font-weight: 700; text-align: center; }
.language-visual p:nth-of-type(2) { justify-self: end; background: #ddf2e1; }
.language-visual > span:last-child { justify-self: end; }

.multilingual-note {
  display: grid;
  grid-template-columns: minmax(210px, .55fr) 1fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  margin-top: 46px;
}

.multilingual-note h3 { margin: 0; font-size: 1.5rem; }
.multilingual-note p { margin: 0; color: var(--home-muted); font-size: .88rem; line-height: 1.7; }

/* Price and trust */
.home-price-section { background: #e6eee5; }

.home-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .65fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: center;
}

.home-price-grid > div > p { margin-inline: 0; }
.home-price-grid .home-price-statement { color: var(--home-green); font-weight: 700; }
.home-price-grid .home-button { margin-top: 22px; }

.price-card-home {
  border: 1px solid var(--home-line);
  padding: clamp(30px, 4vw, 48px);
  background: var(--home-paper);
  box-shadow: 0 28px 70px -50px rgba(9, 39, 25, .5);
}

.price-card-home > span { color: #758279; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.price-card-home > strong { display: block; margin: 12px 0 34px; color: var(--home-green-deep); font-family: var(--font-display); font-size: clamp(2.7rem, 4.8vw, 4.8rem); line-height: .95; }
.price-card-home ul { display: grid; gap: 14px; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--home-line); list-style: none; }
.price-card-home li { display: flex; gap: 12px; color: var(--home-muted); font-size: .86rem; }
.price-card-home li span:first-child { color: #3c9457; font-weight: 800; }

.home-trust-section { background: var(--home-bg); }

.trust-list-home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
}

.trust-list-home article {
  min-height: 280px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  padding: 28px;
}

.trust-list-home h3 { margin: 44px 0 15px; font-size: 1.12rem; line-height: 1.25; }
.trust-list-home p { margin: 0; color: var(--home-muted); font-size: .8rem; line-height: 1.65; }
.home-text-link { display: inline-block; margin-top: 30px; color: var(--home-green); font-size: .83rem; font-weight: 750; text-decoration: none; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Final CTA */
.home-final-cta {
  position: relative;
  padding: var(--home-space) 0;
  background: #071f14;
}

.home-final-cta::after {
  content: "Q";
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  color: rgba(255, 255, 255, .025);
  font-family: var(--font-display);
  font-size: min(46vw, 620px);
  font-weight: 800;
  line-height: .75;
  pointer-events: none;
}

.home-final-cta-inner { position: relative; z-index: 1; }
.home-final-cta-inner > div > p:not(.home-kicker) { margin-inline: 0; color: rgba(255, 255, 255, .62); }
.home-demo-form-card-final { background: var(--home-paper); color: var(--home-ink); }
.home-demo-form-card-final .home-form-field label { color: #526159; }
.home-demo-form-card-final .home-form-field input { border-color: var(--home-line); background: #fff; color: var(--home-ink); }
.home-demo-form-card-final .home-form-field input::placeholder { color: #9aa39d; }
.home-demo-form-card-final .home-form-field input:hover,
.home-demo-form-card-final .home-form-field input:focus { border-color: #559e6b; background: #fff; }
.home-demo-form-card-final .home-form-risk { color: #718078; }
.home-demo-form-card-final .home-form-error { border-color: #efb1ab; background: #fff2f1; color: #8c2921; }
.home-demo-form-card-final .home-form-success { border-color: #9ed2aa; background: #eef9f0; color: #25673a; }

/* Tablet */
@media (max-width: 1080px) {
  .scenario-panel { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); }
  .home-demo-cta-grid,
  .home-final-cta-inner { grid-template-columns: 1fr 390px; gap: 48px; }
  .platform-copy { min-height: 590px; }
  .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .source-grid article:first-child { grid-column: span 1; }
  .customer-case { grid-template-columns: 180px 1fr; }
  .customer-case > div:last-child { grid-column: 2; }
  .trust-list-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .home-hero { background: var(--home-paper); }
  .home-hero h1 { font-size: var(--type-display-hero-mobile); }
  .home-outcome-line { grid-template-columns: 1fr; gap: 12px; }
  .home-outcome-arrow { display: none; }
  .home-outcome-node { border-bottom: 1px solid var(--home-line); padding-bottom: 12px; }
  .scenario-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .scenario-tab { min-width: 170px; }
  .scenario-panel { grid-template-columns: 1fr; }
  .scenario-stage { min-height: 820px; }
  .scenario-source-card { min-height: 270px; }
  .home-demo-cta-grid,
  .home-final-cta-inner,
  .home-price-grid { grid-template-columns: 1fr; }
  .value-item { grid-template-columns: 50px 1fr; }
  .value-item > div:last-child { grid-column: 2; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-copy { min-height: auto; }
  .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-feature { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .control-copy-item { grid-column: 1; }
  .testcenter-visual { position: static; grid-column: 1; grid-row: auto; margin-top: 30px; }
  .customer-case { grid-template-columns: 1fr; }
  .customer-case > div:last-child { grid-column: auto; }
  .multilingual-note { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-page { --home-space: 76px; }
  .home-shell { width: min(calc(100% - 36px), var(--home-shell)); }
  .home-kicker { font-size: .65rem; }
  .home-section-head h2,
  .home-price-grid h2,
  .home-final-cta h2,
  .home-demo-cta-grid h2 { font-size: var(--type-display-section-mobile); }
  .home-section-head { text-align: left; }
  .home-section-head .home-kicker { justify-content: flex-start; }
  .home-section-head > p:not(.home-kicker) { margin-inline: 0; }
  .home-hero { padding-top: 74px; }
  .home-hero h1 { font-size: var(--type-display-hero-mobile); line-height: .98; }
  .home-hero-lead { margin-top: 28px; font-size: 1rem; }
  .home-hero-actions { align-items: stretch; flex-direction: column; }
  .home-hero-note { max-width: none; }
  .home-button { width: 100%; min-height: 56px; }
  .scenario-tab { min-width: 155px; min-height: 70px; padding: 14px 16px; }
  .scenario-stage { min-height: 800px; padding: 20px; background-size: 24px 24px; }
  .scenario-stage-top { align-items: flex-start; gap: 15px; }
  .scenario-demo-label { max-width: 120px; text-align: right; }
  .scenario-question { font-size: 1.85rem; }
  .scenario-answer p { font-size: .88rem; }
  .scenario-source-card { min-height: 250px; padding: 22px; }
  .scenario-availability > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .home-demo-form-card { padding: 22px; }
  .value-item { grid-template-columns: 36px 1fr; gap: 16px; }
  .value-item > div:last-child { grid-column: 1 / -1; }
  .platform-copy { padding: 28px 24px 38px; }
  .platform-index { margin-bottom: 36px; }
  .platform-visual { padding: 22px; }
  .manual-visual { grid-template-columns: 1fr; }
  .manual-file { grid-row: auto; }
  .integration-visual { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid article { min-height: 190px; }
  .knowledge-feature { margin-top: 76px; }
  .system-list article { grid-template-columns: 1fr 30px; gap: 7px 16px; }
  .system-list p { grid-column: 1; font-size: .86rem; }
  .system-list article > span { grid-column: 2; grid-row: 1 / span 2; }
  .system-missing { grid-template-columns: 1fr; }
  .testcenter-visual { margin-inline: -8px; padding: 20px; }
  .testcenter-top { align-items: flex-start; flex-direction: column; }
  .testcenter-summary { flex-wrap: wrap; }
  .testcenter-summary > div { width: 100%; margin-left: 0; }
  .testcenter-row b { display: none; }
  .customer-case { padding-block: 52px; }
  .customer-question, .language-visual { padding: 22px; }
  .trust-list-home { grid-template-columns: 1fr; }
  .trust-list-home article { min-height: 235px; }
  .price-card-home > strong { font-size: 3.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page { scroll-behavior: auto; }
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .scenario-status > span { opacity: 1; transform: none; }
}

/* Refinement pass: stronger product hierarchy and editorial composition */
.home-page .site-nav {
  min-height: 78px;
  gap: 24px;
  background: rgba(255, 253, 248, .94);
  border-bottom-color: rgba(16, 37, 26, .16);
}

.home-page .site-nav.scrolled {
  background: rgba(255, 253, 248, .985);
  box-shadow: 0 16px 42px rgba(16, 37, 26, .09);
}

.home-page .brand { flex: 0 0 auto; }
.home-page .brand-logo { height: 33px; }
.home-page .nav-left { gap: 34px; }
.home-page .nav-links { gap: 20px; }
.home-page .nav-links a {
  color: rgba(16, 37, 26, .72);
  font-size: 14px;
  white-space: nowrap;
}

.home-page .nav-actions { gap: 15px; }
.home-page .nav-cta {
  min-height: 44px;
  border-radius: 8px;
  padding-inline: 19px;
}

.home-page main p { font-size: 1rem; }
.home-section-head > p:not(.home-kicker),
.home-price-grid > div > p,
.home-final-cta-inner > div > p:not(.home-kicker) {
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  line-height: 1.62;
}

/* Hero composition */
.home-hero {
  padding-top: clamp(70px, 7vw, 104px);
  padding-bottom: clamp(60px, 6vw, 88px);
  background:
    radial-gradient(circle at 82% 34%, rgba(139, 208, 157, .12), transparent 27%),
    var(--home-paper);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .65fr);
  column-gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.home-hero .home-shell {
  width: min(calc(100% - 2 * var(--gutter)), 1320px);
}

.home-hero-copy { width: 100%; }
.home-hero h1 {
  max-width: 860px;
  font-size: var(--type-display-hero);
  line-height: .98;
}

.home-hero-lead {
  max-width: 760px;
  font-size: clamp(1.12rem, 1.55vw, 1.3rem) !important;
  line-height: 1.62;
}

.home-hero-conversion {
  border: 1px solid rgba(16, 37, 26, .15);
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 36px 90px -56px rgba(9, 39, 25, .7);
  backdrop-filter: blur(10px);
}

.home-hero-conversion .home-hero-actions {
  display: grid;
  align-items: start;
  gap: 16px;
  margin-top: 0;
}

.home-hero-conversion .home-button {
  width: 100%;
}

.home-hero-conversion .home-hero-note {
  max-width: none;
}

.home-hero-conversion .home-risk-note { margin-top: 16px; }

.home-hero-conversion .home-outcome-line {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 28px;
  padding-top: 0;
}

.home-hero-conversion .home-outcome-node {
  min-height: 54px;
  border-bottom: 1px solid var(--home-line);
  padding: 14px 0;
}

.home-hero-conversion .home-outcome-node:last-child { border-bottom: 0; }
.home-hero-conversion .home-outcome-arrow { display: none; }

/* Product demo as the visual climax */
.home-product-section { padding-top: clamp(100px, 11vw, 162px); }
.home-product-section .home-shell { width: min(calc(100% - 2 * var(--gutter)), 1320px); }
.home-product-section .home-section-head { margin-bottom: 66px; }
.product-demo {
  border-color: rgba(16, 37, 26, .18);
  box-shadow: 0 54px 120px -72px rgba(9, 39, 25, .65);
}
.scenario-tab {
  min-height: 94px;
  padding: 22px 28px;
}
.scenario-tab span { font-size: 1.2rem; }
.scenario-tab strong { font-size: 1rem; }
.scenario-tab.is-active {
  background: var(--home-green-deep);
  box-shadow: inset 0 -4px 0 var(--home-mint-strong);
}
.scenario-stage {
  min-height: 720px;
  padding: clamp(34px, 5vw, 66px);
  background-size: 38px 38px;
}
.scenario-stage-top { margin-bottom: 52px; }
.scenario-panel { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: clamp(38px, 6vw, 82px); }
.scenario-conversation { max-width: 760px; }
.scenario-context { color: #5f7366; font-size: .95rem !important; }
.scenario-question { font-size: clamp(2.2rem, 4.3vw, 4.35rem); line-height: 1.05; }
.scenario-status {
  display: flex;
  align-items: stretch;
  gap: 26px;
  margin: 38px 0;
}
.scenario-status > span {
  position: relative;
  flex: 1;
  min-height: 70px;
  align-items: flex-start;
  border-top: 3px solid rgba(64, 151, 88, .62);
  padding: 16px 6px 0 0;
  color: #294a36;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
}
.scenario-status > span::after {
  content: "→";
  position: absolute;
  top: 14px;
  right: -18px;
  color: #8ca095;
}
.scenario-status > span:last-child::after { display: none; }
.scenario-status i { flex: 0 0 auto; margin-top: 5px; }
.scenario-answer { border-left-width: 4px; padding-left: 24px; animation: answer-in .5s .95s var(--home-ease) both; }
.scenario-answer p { font-size: 1.07rem !important; line-height: 1.62; }
@keyframes answer-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.scenario-source-card {
  min-height: 430px;
  border-color: rgba(23, 62, 41, .16);
  box-shadow: 0 32px 72px -46px rgba(9, 39, 25, .7);
}
.scenario-source-card > strong { font-size: 1.18rem; }
.scenario-source-card-split p,
.scenario-system-card p { font-size: .82rem !important; }
.scenario-customer-reply {
  width: min(82%, 560px);
  margin: 18px 0 0 auto;
  border: 1px solid rgba(23, 62, 41, .13);
  padding: 13px 16px;
  background: #e3f2e5;
}
.scenario-customer-reply span { display: block; color: #65806e; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.scenario-customer-reply p { margin: 5px 0 0; color: #264231; font-size: .84rem !important; line-height: 1.5; }

.scenario-demo-label,
.scenario-source-type,
.scenario-answer-label,
.knowledge-label { color: #5e7266; font-size: .76rem; letter-spacing: .08em; }
.scenario-source-match { color: #365744; font-size: .82rem; }
.scenario-source-card > span:not(.scenario-source-type):not(.scenario-system-arrow) { color: #5d7165; font-size: .82rem; }
.scenario-source-card-split > div:not(.scenario-source-plus) { font-size: .94rem; }
.scenario-system-name { font-size: .94rem; }
.scenario-secondary-example { font-size: .78rem; }
.scenario-lead-card dl div { font-size: .86rem; }
.scenario-tab strong { font-size: 1.06rem; }
.scenario-tab:hover { color: #1d5534; box-shadow: inset 0 -3px 0 rgba(91, 173, 113, .45); }
.scenario-tab.is-active:hover { color: #fff; }

/* Homepage conversation demo. Legacy scenario styles above remain for platform.html. */
.conversation-demo {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.conversation-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 3px;
}

.conversation-tab {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 62, 41, .16);
  border-radius: 999px;
  padding: 11px 23px;
  background: rgba(255, 253, 248, .68);
  color: #53645a;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.conversation-tab strong {
  font-size: .83rem;
  font-weight: 780;
  white-space: nowrap;
}

.conversation-tab:hover {
  border-color: rgba(23, 62, 41, .38);
  color: var(--home-green);
  box-shadow: 0 8px 22px -18px rgba(9, 39, 25, .75);
}

.conversation-tab.is-active {
  border-color: var(--home-green);
  background: var(--home-green);
  color: white;
  box-shadow: 0 13px 30px -20px rgba(9, 39, 25, .85);
}

.conversation-tab.is-active:hover { color: white; }

.conversation-tab:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #5aae72;
  outline-offset: 3px;
}

.conversation-stage {
  min-height: 500px;
  border: 1px solid rgba(23, 62, 41, .14);
  border-radius: 28px;
  padding: clamp(34px, 5.5vw, 70px);
  background:
    radial-gradient(circle at 15% 5%, rgba(185, 239, 198, .2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(248, 249, 245, .95)),
    var(--home-paper);
  box-shadow: 0 42px 90px -64px rgba(9, 39, 25, .58);
}

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

.conversation-panel.is-active {
  animation: conversation-panel-in .35s var(--home-ease) both;
}

@keyframes conversation-panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.conversation-thread {
  display: flex;
  width: min(940px, 100%);
  flex-direction: column;
  gap: 19px;
  margin-inline: auto;
}

.conversation-message {
  display: flex;
  width: 100%;
  align-items: flex-end;
  gap: 11px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease, transform .32s var(--home-ease);
}

.conversation-message-user { justify-content: flex-end; }
.conversation-message-qliva { justify-content: flex-start; }

.conversation-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--home-green);
  color: var(--home-mint);
  font-family: var(--font-display);
  font-size: 1.25rem;
  box-shadow: 0 10px 24px -18px rgba(9, 39, 25, .9);
}

.conversation-message-content {
  width: min(64%, 620px);
  min-width: 0;
}

.conversation-bubble {
  width: fit-content;
  max-width: 62%;
  border: 1px solid rgba(23, 62, 41, .13);
  border-radius: 20px 20px 20px 7px;
  padding: 15px 19px;
  background: white;
  color: #21372a;
  box-shadow: 0 15px 36px -29px rgba(9, 39, 25, .72);
  font-family: var(--font-body);
  font-size: clamp(.91rem, 1.25vw, 1rem);
  line-height: 1.57;
}

.conversation-message-user .conversation-bubble {
  max-width: 62%;
  border-color: var(--home-green);
  border-radius: 20px 20px 7px 20px;
  background: var(--home-green);
  color: white;
}

.conversation-message-qliva .conversation-bubble {
  width: 100%;
  max-width: none;
}

.conversation-typed-text { white-space: pre-wrap; }

.conversation-sr-speaker,
.conversation-sr-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.conversation-working {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-height: 27px;
  margin: 0 0 8px 2px;
}

.conversation-thinking {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(23, 62, 41, .11);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .76);
}

.conversation-thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6c7e72;
  animation: conversation-thinking 1s ease-in-out infinite;
}

.conversation-thinking i:nth-child(2) { animation-delay: .13s; }
.conversation-thinking i:nth-child(3) { animation-delay: .26s; }

@keyframes conversation-thinking {
  0%, 65%, 100% { opacity: .35; transform: translateY(0); }
  32% { opacity: 1; transform: translateY(-2px); }
}

.conversation-working-state {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  border: 1px solid #c7d8ca;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef6ec;
  color: #496454;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 720;
  line-height: 1.35;
}

.conversation-working-state .material-symbols-outlined { font-size: .95rem; }

.conversation-confirmation {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0 2px;
  border: 1px solid #78aa83;
  border-radius: 999px;
  padding: 6px 11px;
  background: #dff1dd;
  color: #28663b;
  font-family: var(--font-body);
  font-size: .67rem;
  font-weight: 790;
}

.conversation-confirmation .material-symbols-outlined { font-size: 1rem; }

.conversation-panel.is-animating .conversation-message:not(.is-visible) {
  opacity: 0;
  transform: translateY(10px);
}

.conversation-panel.is-animating .conversation-message .conversation-bubble {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .25s var(--home-ease);
}

.conversation-panel.is-animating .conversation-message.is-typing .conversation-bubble,
.conversation-panel.is-animating .conversation-message.is-complete .conversation-bubble {
  opacity: 1;
  transform: translateY(0);
}

.conversation-panel.is-animating .conversation-thinking:not(.is-visible),
.conversation-panel.is-animating .conversation-working-state:not(.is-visible),
.conversation-panel.is-animating .conversation-confirmation:not(.is-visible) {
  display: none;
}

.conversation-panel.is-animating .conversation-message-user .conversation-working { display: none; }

@media (max-width: 980px) {
  .conversation-message-content { width: min(72%, 620px); }
  .conversation-bubble,
  .conversation-message-user .conversation-bubble { max-width: 72%; }
}

@media (max-width: 720px) {
  .conversation-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    margin-right: calc(-1 * var(--gutter));
    padding: 3px var(--gutter) 11px 1px;
    scroll-padding-left: 1px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .conversation-tab { min-height: 46px; flex: 0 0 auto; padding: 10px 18px; scroll-snap-align: start; }
  .conversation-stage { border-radius: 22px; padding: 28px 20px; }
  .conversation-thread { gap: 17px; }
  .conversation-message { gap: 8px; }
  .conversation-avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 1.08rem; }
  .conversation-message-content { width: min(88%, 620px); }
  .conversation-bubble,
  .conversation-message-user .conversation-bubble { max-width: 84%; padding: 13px 15px; font-size: .9rem; line-height: 1.52; }
  .conversation-message-qliva .conversation-bubble { max-width: none; }
  .conversation-working { gap: 5px; min-height: 25px; margin-bottom: 7px; }
  .conversation-working-state { max-width: 100%; min-height: 25px; border-radius: 13px; padding: 5px 8px; white-space: normal; }
  .conversation-confirmation { border-radius: 14px; }
}

@media (max-width: 430px) {
  .conversation-stage { padding: 24px 15px; }
  .conversation-message-content { width: calc(90% - 40px); }
  .conversation-message-user .conversation-bubble { max-width: 84%; }
  .conversation-working-state { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-panel,
  .conversation-message,
  .conversation-bubble,
  .conversation-thinking i { animation: none !important; transition: none !important; }
  .conversation-panel .conversation-message,
  .conversation-panel .conversation-bubble { opacity: 1 !important; transform: none !important; }
  .conversation-panel .conversation-thinking { display: none !important; }
  .conversation-panel .conversation-working-state,
  .conversation-panel .conversation-confirmation { display: inline-flex !important; }
}

/* Conversion form */
.home-demo-cta-grid > div > p:not(.home-kicker) { font-size: 1.1rem; line-height: 1.65; }
.home-demo-form-card { border-color: rgba(255, 255, 255, .2); padding: clamp(30px, 4vw, 48px); background: rgba(255, 255, 255, .075); }
.home-form-field { gap: 10px; }
.home-form-field label { color: rgba(255, 255, 255, .94); font-size: .94rem; }
.home-form-field input { min-height: 64px; border-color: rgba(255, 255, 255, .46); padding-inline: 18px; background: rgba(255, 255, 255, .13); font-size: 1.04rem; }
.home-demo-form { gap: 22px; }
.home-form-risk { color: rgba(255, 255, 255, .68); font-size: .86rem !important; line-height: 1.55; }

/* Business value: editorial rows rather than a table */
.value-list { border-top: 0; }
.value-item {
  position: relative;
  grid-template-columns: 70px minmax(260px, .82fr) minmax(0, 1fr);
  align-items: start;
  border: 0;
  padding: clamp(42px, 5vw, 68px) clamp(20px, 3.5vw, 48px);
}
.value-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--home-line); }
.value-item:nth-child(2) { margin-inline: clamp(0px, 3vw, 38px); background: #f2f5ef; }
.value-number { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #9db0a2; border-radius: 50%; font-size: .9rem; }
.value-item h3 { font-size: clamp(1.85rem, 3vw, 2.75rem); line-height: 1.12; }
.value-item p { max-width: 700px; font-size: 1.1rem !important; line-height: 1.65; }

/* Platform areas become alternating product stories */
.platform-grid { display: block; border: 0; }
.platform-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  border: 0;
  border-top: 1px solid var(--home-line-light);
  padding: clamp(56px, 7vw, 92px) 0;
}
.platform-feature:nth-child(2) {
  background: rgba(102, 174, 121, .08);
  box-shadow: 0 0 0 100vmax rgba(102, 174, 121, .08);
  clip-path: inset(0 -100vmax);
}
.platform-feature:nth-child(4) {
  background: rgba(2, 24, 13, .16);
  box-shadow: 0 0 0 100vmax rgba(2, 24, 13, .16);
  clip-path: inset(0 -100vmax);
}
.platform-feature:last-child { border-bottom: 1px solid var(--home-line-light); }
.platform-feature:nth-child(even) .platform-copy { grid-column: 2; grid-row: 1; padding-right: 0; padding-left: clamp(42px, 7vw, 92px); }
.platform-feature:nth-child(even) .platform-visual { grid-column: 1; grid-row: 1; }
.platform-copy { min-height: 0; padding: 0 clamp(42px, 7vw, 92px) 0 0; }
.platform-index { margin-bottom: 42px; font-size: .84rem; }
.platform-copy h3 { max-width: 590px; font-size: var(--type-display-secondary); line-height: 1.05; }
.platform-copy p { max-width: 610px; font-size: 1.03rem !important; line-height: 1.65; }
.platform-copy a { margin-top: 28px; font-size: .95rem; }
.platform-visual {
  min-height: 410px;
  border: 1px solid var(--home-line-light);
  padding: clamp(30px, 4vw, 50px);
  background: rgba(2, 24, 13, .28);
  box-shadow: 0 36px 72px -52px rgba(0, 0, 0, .75);
}
.platform-feature-assistant .platform-visual { min-height: 480px; }
.platform-feature-knowledge .platform-visual { min-height: 430px; background: rgba(67, 126, 84, .17); }
.platform-feature-email .platform-visual { min-height: 460px; background: rgba(2, 24, 13, .36); }
.platform-feature-integrations .platform-visual { min-height: 430px; }
.platform-chat-question,
.platform-chat-answer,
.manual-query,
.manual-result,
.inbox-answer { padding: 17px 20px; font-size: 1rem; line-height: 1.5; }
.inbox-row strong { font-size: 1rem; }
.inbox-row small { font-size: .82rem; }
.integration-visual span { min-height: 68px; font-size: .78rem; }
.manual-file span { font-size: .78rem; }
.manual-file strong { font-size: .92rem; }
.inbox-row b { font-size: .84rem; }
.inbox-controls span,
.inbox-controls strong { padding: 9px 12px; font-size: .76rem; }
.integration-visual span { min-height: 74px; font-size: .88rem; }

/* Sources converge into one Qliva knowledge core */
.source-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 74px 210px 230px;
  gap: 18px;
  align-items: center;
  border-block: 1px solid var(--home-line);
  padding: clamp(38px, 6vw, 72px) 0;
}
.source-flow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; }
.source-flow-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  min-height: 106px;
  align-items: start;
  border-bottom: 1px solid var(--home-line);
  padding: 19px 0;
}
.source-flow-list article:last-child { grid-column: 1 / -1; }
.source-flow-list .material-symbols-outlined { margin: 2px 0 0; color: #4d7f5d; font-size: 25px; }
.source-flow-list h3 { margin: 0 0 7px; font-size: 1rem; line-height: 1.3; }
.source-flow-list p { margin: 0; color: #68756d; font-size: .9rem !important; line-height: 1.5; }
.source-flow-line { display: grid; gap: 13px; }
.source-flow-line i { position: relative; display: block; height: 1px; background: #9db0a3; }
.source-flow-line i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #5a9c6c; }
.source-flow-core {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(23, 62, 41, .17);
  border-radius: 50%;
  background: var(--home-green);
  color: #fff;
  box-shadow: 0 28px 60px -42px rgba(9, 39, 25, .8);
  text-align: center;
}
.source-flow-core > span { color: rgba(255, 255, 255, .68); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.source-flow-core > strong { display: grid; width: 58px; height: 58px; place-items: center; margin: 22px 0 10px; border-radius: 16px; background: var(--home-mint); color: var(--home-green); font-family: var(--font-display); font-size: 2.2rem; }
.source-flow-core h3 { margin: 0; font-size: 1.15rem; }
.source-flow-core p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: .84rem !important; }
.source-flow-output { display: grid; gap: 14px; }
.source-flow-output span { position: relative; border: 1px solid var(--home-line); padding: 17px 15px; background: var(--home-paper); color: var(--home-green); font-size: .78rem; font-weight: 750; }
.source-flow-output span::before { content: ""; position: absolute; top: 50%; left: -19px; width: 18px; height: 1px; background: #9db0a3; }

/* Granada: context + broader knowledge -> useful answer */
.knowledge-feature { grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr); gap: clamp(48px, 8vw, 112px); }
.knowledge-feature h3 { font-size: var(--type-display-secondary); }
.knowledge-feature > div > p { font-size: 1.03rem !important; line-height: 1.65; }
.knowledge-mode-visual { gap: 16px; border: 0; padding: clamp(24px, 4vw, 42px); background: #edf2e9; box-shadow: inset 0 0 0 1px rgba(23, 62, 41, .1); }
.granada-context,
.granada-question,
.granada-answer { border: 1px solid var(--home-line); padding: 18px 20px; background: var(--home-paper); }
.granada-context span,
.granada-answer span,
.granada-question small,
.granada-combination span { color: #6b7b71; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.granada-context p,
.granada-question p,
.granada-answer p { margin: 8px 0 0; color: #2d4937; font-size: .9rem !important; line-height: 1.55; }
.granada-context p { font-weight: 700; }
.granada-combination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; }
.granada-combination span { border: 1px solid #9eb5a3; padding: 12px; background: rgba(255, 255, 255, .55); color: #3d6d4d; }
.granada-combination b { color: #6c7c72; }
.granada-question { justify-self: end; width: 88%; background: #dff1e2; }
.granada-answer { border-left: 4px solid var(--home-mint-strong); }

/* Break the mechanical dark/light rhythm */
.home-control-section { color: var(--home-ink); background: #edf2e9; }
.home-control-section .home-kicker-light { color: #326344; }
.home-control-section .home-section-head > p:not(.home-kicker) { color: var(--home-muted); }
.control-copy-item { border-top-color: rgba(16, 37, 26, .14); }
.control-copy-item > span { color: #73837a; }
.control-copy-item p { color: var(--home-muted); font-size: 1rem !important; line-height: 1.65; }
.control-copy-item .control-note { color: var(--home-green); }
.testcenter-visual { border-color: rgba(16, 37, 26, .16); box-shadow: 0 38px 80px -58px rgba(9, 39, 25, .7); }
.customer-case > div:nth-child(2) > p { font-size: 1rem !important; line-height: 1.65; }
.multilingual-note p { font-size: .96rem !important; line-height: 1.65; }
.trust-list-home p { font-size: .92rem !important; line-height: 1.62; }

@media (max-width: 1180px) {
  .home-page .nav-links { gap: 15px; }
  .home-page .nav-left { gap: 24px; }
  .home-page .nav-links a { font-size: 13.5px; }
  .home-page .nav-actions { gap: 11px; }
  .home-page .nav-cta { padding-inline: 14px; }
  .home-hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .7fr); }
  .home-hero h1 { font-size: var(--type-display-hero); }
  .source-flow { grid-template-columns: minmax(0, 1.2fr) 54px 190px; }
  .source-flow-output { grid-column: 3; margin-top: -18px; }
  .source-flow-output span::before { display: none; }
}

@media (max-width: 1120px) {
  .home-page .nav-toggle { display: flex; }
  .home-page .nav-left { gap: 16px; }
  .home-page .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px var(--gutter) 26px;
    background: rgba(255, 253, 248, .99);
    border-bottom: 1px solid var(--home-line);
    box-shadow: 0 24px 46px rgba(16, 37, 26, .1);
  }
  .home-page .nav-links.open { display: flex; }
  .home-page .nav-links a { display: flex; justify-content: center; padding: 8px 0; font-size: 14px; }
  .home-page .nav-links a.active::after { display: none; }
}

@media (max-width: 980px) {
  .home-page .site-nav { min-height: 72px; }
  .home-page .nav-links { top: 72px; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-conversion { width: min(560px, 100%); margin: 48px 0 0 auto; }
  .scenario-panel { grid-template-columns: 1fr; }
  .scenario-stage { min-height: 980px; }
  .scenario-source-card { min-height: 320px; }
  .scenario-status { gap: 22px; }
  .platform-feature { grid-template-columns: 1fr 1fr; }
  .platform-copy { padding-right: 42px; }
  .platform-feature:nth-child(even) .platform-copy { padding-left: 42px; }
  .source-flow { grid-template-columns: minmax(0, 1fr) 54px 210px; }
  .source-flow-list { grid-template-columns: 1fr; }
  .source-flow-list article:last-child { grid-column: auto; }
  .knowledge-feature { grid-template-columns: 1fr; }
  .knowledge-mode-visual { width: min(680px, 100%); margin-left: auto; }
}

@media (max-width: 720px) {
  .home-page main p { font-size: 1rem; }
  .home-hero h1 { font-size: var(--type-display-hero-mobile); }
  .home-hero-conversion { margin-top: 40px; }
  .scenario-tabs { scroll-snap-type: x mandatory; }
  .scenario-tab { min-width: 185px; scroll-snap-align: start; }
  .scenario-stage { min-height: 990px; padding: 26px; }
  .scenario-status { display: grid; gap: 0; }
  .scenario-status > span { min-height: 58px; border-top: 0; border-left: 1px solid #9db0a3; padding: 10px 0 10px 20px; }
  .scenario-status > span::after { content: "↓"; top: auto; right: auto; bottom: -5px; left: -6px; }
  .scenario-status > span:last-child::after { display: none; }
  .scenario-status i { margin-top: 4px; }
  .value-item { grid-template-columns: 54px 1fr; padding-inline: 0; }
  .value-item:nth-child(2) { margin-inline: -18px; padding-inline: 18px; }
  .platform-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 22px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .platform-feature,
  .platform-feature:nth-child(even) {
    display: flex;
    flex: 0 0 min(88vw, 520px);
    flex-direction: column;
    border: 1px solid var(--home-line-light);
    padding: 0;
    scroll-snap-align: start;
  }
  .platform-feature:nth-child(even) .platform-copy,
  .platform-copy { order: 1; padding: 32px 26px; }
  .platform-feature:nth-child(even) .platform-visual,
  .platform-visual { order: 2; width: 100%; min-height: 270px; border-width: 1px 0 0; }
  .platform-feature-assistant .platform-visual,
  .platform-feature-knowledge .platform-visual,
  .platform-feature-email .platform-visual,
  .platform-feature-integrations .platform-visual { min-height: 320px; }
  .platform-index { margin-bottom: 28px; }
  .platform-copy h3 { font-size: var(--type-display-secondary-mobile); }
  .source-flow { grid-template-columns: 1fr; gap: 28px; }
  .source-flow-list { grid-template-columns: 1fr; }
  .source-flow-line { display: flex; justify-content: center; }
  .source-flow-line i { display: none; }
  .source-flow-line::after { content: "↓"; color: #6a8874; font-size: 1.4rem; }
  .source-flow-core { width: 230px; min-height: 230px; justify-self: center; }
  .source-flow-output { grid-column: 1; grid-template-columns: 1fr; margin-top: 0; }
  .source-flow-output span { text-align: center; }
  .granada-combination { grid-template-columns: 1fr; }
  .granada-question { width: 94%; }
}

@media (max-width: 560px) {
  .home-page .brand-logo { height: 30px; }
  .home-page .site-nav { min-height: 68px; }
  .home-page .nav-links { top: 68px; }
  .home-hero { padding-top: 66px; }
  .home-hero h1 { font-size: var(--type-display-hero-mobile); }
  .home-hero-lead { font-size: 1.04rem !important; }
  .home-hero-conversion { padding: 24px 20px; }
  .scenario-stage { min-height: 980px; padding: 20px; }
  .scenario-stage-top { margin-bottom: 38px; }
  .scenario-question { font-size: 2.05rem; }
  .scenario-source-card { min-height: 290px; }
  .scenario-customer-reply { width: 92%; }
  .home-demo-form-card { padding: 24px; }
  .home-form-field label { font-size: .9rem; }
  .home-risk-note,
  .home-form-risk { font-size: .88rem !important; line-height: 1.55; }
  .value-item p,
  .platform-copy p,
  .knowledge-feature > div > p,
  .control-copy-item p,
  .customer-case > div:nth-child(2) > p,
  .multilingual-note p,
  .trust-list-home p { font-size: 1rem !important; }
  .source-flow-list article { min-height: 0; padding-block: 20px; }
  .source-flow-list p { font-size: .95rem !important; }
  .knowledge-mode-visual { padding: 18px; }
  .granada-question { width: 100%; }
}
