@media screen and (min-width: 721px) {
  /* The grid's plane crosses the tilted tiles and otherwise intercepts clicks. */
  #aiva-database .page-plane { pointer-events: none; }
  #aiva-database .page-tile { pointer-events: auto; }
}

.content-effects {
  --effect-surface: #191b24;
  --effect-quiet: #6e7893;
  --effect-blue: #88c7e5;
  --effect-rose: #d7a4d0;
  margin-top: clamp(38px, 4.4vw, 68px);
  padding-top: clamp(34px, 3.6vw, 54px);
  border-top: 1px solid var(--mn-edge);
  scroll-margin-top: 100px;
}

.content-effects .section-copy { max-width: none; }
.content-effects :is(h3, h4, dl, figure, ul, p) { margin: 0; }
.content-effects .section-copy { color: var(--muted); }

.content-effects .effect-panel {
  min-width: 0;
  padding: clamp(18px, 2.1vw, 32px);
  border: 1px solid var(--mn-edge);
  border-radius: 14px;
  background: var(--effect-surface);
}

.content-effects .effect-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.content-effects h3 + .effect-note { margin-top: 6px; }
.content-effects figure { margin-top: 14px; }
.content-effects figcaption { margin-top: 10px; }
.content-effects :is(.effect-metrics, .effect-pair) {
  display: grid;
  gap: clamp(14px, 1.4vw, 22px);
}

.content-effects .effect-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-effects > .effect-pair,
.content-effects > .effect-benchmarks { margin-top: clamp(14px, 1.4vw, 22px); }

.content-effects .effect-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.content-effects .effect-metrics > div {
  min-width: 0;
  border-top: 1px solid var(--mn-edge);
  padding-top: 14px;
}

.content-effects dt { color: var(--ink); font-size: 14px; }
.content-effects dd { margin: 0; }
.content-effects dt + dd {
  margin: 3px 0;
  color: var(--accent);
  font: 500 clamp(27px, 3.15vw, 48px)/1.12 var(--mn-mono);
  letter-spacing: -.07em;
  white-space: nowrap;
}

.content-effects .effect-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.content-effects .effect-chart text {
  fill: var(--muted);
  font: 11px var(--mn-mono);
}

.content-effects .effect-chart-grid { stroke: var(--mn-edge); }
.content-effects .effect-chart polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-effects .effect-chart .effect-line-sample { stroke: var(--effect-quiet); stroke-width: 1.3; }
.content-effects .effect-chart .effect-line-main { stroke: var(--accent); stroke-width: 3; }
.content-effects .effect-tail-label { --tail-line: var(--effect-quiet); }
.content-effects .effect-tail-label-mean { --tail-line: var(--accent); }
.content-effects .effect-tail-label path {
  fill: none;
  stroke: var(--tail-line);
  stroke-width: .85;
}
.content-effects .effect-tail-label circle { fill: var(--tail-line); }
.content-effects .effect-tail-label-mean text { fill: var(--accent); }
.content-effects .effect-line-A { stroke: var(--accent); }
.content-effects .effect-line-B { stroke: var(--effect-blue); }
.content-effects .effect-line-C { stroke: var(--effect-rose); }
.content-effects .effect-line-forecast { stroke: var(--ink); stroke-dasharray: 5 4; }

.content-effects .effect-point { --point-ink: var(--accent); }
.content-effects .effect-point-B { --point-ink: var(--effect-blue); }
.content-effects .effect-point-C { --point-ink: var(--effect-rose); }
.content-effects .effect-point-forecast { --point-ink: var(--ink); }

.content-effects .effect-point path {
  stroke: var(--point-ink);
  stroke-width: .85;
  fill: none;
}

.content-effects .effect-point circle {
  fill: var(--point-ink);
  stroke: var(--effect-surface);
  stroke-width: 1.15;
}

.content-effects .effect-point text {
  fill: var(--point-ink);
  font-size: 13px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--effect-surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* Original Doubao comparison, scoped to the integrated preview. */
.effect-benchmarks .cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: 18px;
}

.effect-benchmarks .cmphead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  border-top: 1px solid var(--mn-edge);
  padding-top: 18px;
  margin-bottom: 8px;
}

.effect-benchmarks .cmphead b { font-size: 16px; color: var(--ink); }
.effect-benchmarks .cmphead span { font-size: 12px; color: var(--muted); }

.effect-benchmarks .cmprow {
  display: grid;
  grid-template-columns: minmax(110px, 1.35fr) minmax(24px, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  padding-block: 13px;
  border-bottom: 1px solid var(--mn-edge);
}

.effect-benchmarks .cmprow:last-of-type { border-bottom: 0; }
.effect-benchmarks .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.effect-benchmarks .name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.effect-benchmarks .cmpbar {
  height: 9px;
  border-radius: 2px;
  background: var(--mn-edge);
}

.effect-benchmarks .cmpbar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--effect-quiet);
}

.effect-benchmarks .val {
  min-width: 4.5em;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  font: 600 15px var(--mn-mono);
}

.effect-benchmarks .hl .cmpbar i { background: var(--accent); }
.effect-benchmarks .hl .val { color: var(--accent); }

.content-effects .cmpfoot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.content-effects .cmpfoot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (prefers-reduced-motion: no-preference) {
  .mn-case-feature.visible .mn-case-portrait {
    animation: case-portrait-reveal 720ms cubic-bezier(.22, .72, .25, 1) backwards;
  }

  .mn-case-ledger.visible .mn-case-row {
    animation: case-row-arrive 440ms cubic-bezier(.22, .72, .25, 1) backwards;
  }

  .mn-case-ledger.visible .mn-case-row:nth-child(2) { animation-delay: 85ms; }
  .mn-case-ledger.visible .mn-case-row:nth-child(3) { animation-delay: 170ms; }

  .effect-chart.visible .effect-traces {
    animation: effect-chart-reveal 820ms cubic-bezier(.22, .65, .3, 1) backwards;
  }

  .effect-benchmarks .cards2.visible .cmpbar i {
    transform-origin: left center;
    animation: effect-bar-grow 600ms cubic-bezier(.22, .65, .3, 1) backwards;
  }

  .effect-benchmarks .cards2.visible .cmprow:nth-child(3) i { animation-delay: 45ms; }
  .effect-benchmarks .cards2.visible .cmprow:nth-child(4) i { animation-delay: 90ms; }
  .effect-benchmarks .cards2.visible .cmprow:nth-child(5) i { animation-delay: 135ms; }
  .effect-benchmarks .cards2.visible .cmprow:nth-child(6) i { animation-delay: 180ms; }
}

@keyframes case-portrait-reveal {
  from { opacity: .35; clip-path: inset(0 0 0 16%); }
  to { opacity: .93; clip-path: inset(0); }
}

@keyframes case-row-arrive {
  from { opacity: .86; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clip the data traces together so both axes and labels stay readable. */
@keyframes effect-chart-reveal {
  from { clip-path: inset(0 100% 0 0) view-box; }
  to { clip-path: inset(0) view-box; }
}

@keyframes effect-bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-preview .overview-photo.visible::after { animation: none; }
}

.dashboard-sample-visual {
  position: relative;
  container-type: inline-size;
}

.dashboard-sample-visual img {
  display: block;
  height: auto;
}

/* The preview replaces the counter area in the original dashboard sample. */
.dashboard-sample-count {
  position: absolute;
  inset: 50.7% auto auto 45%;
  width: 39.3%;
  height: 16.5%;
  display: flex;
  align-items: flex-start;
  gap: 0.75cqw;
  padding: 0.35cqw 0.5cqw;
  background: linear-gradient(110deg, #fdfbf7, #fefbf6);
  color: #171717;
}

.dashboard-sample-digits {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.25cqw;
  padding: 0.72cqw;
  border: 1px solid #e4e0d8;
  border-radius: 1.45cqw;
  background: #faf9f5;
  box-shadow: 0 1.25cqw 2.5cqw -1cqw #81776c48;
  font: 750 5.85cqw/1.12 ui-monospace, Menlo, monospace;
  text-align: center;
}

.dashboard-sample-digits > span {
  flex: 1;
  min-width: 0;
  background: linear-gradient(#fff 49%, #e4e1da 50%, #f5f4ef 51%);
  border: 1px solid #e2ded6;
  border-radius: 0.76cqw;
}

.dashboard-sample-digits > :is(:nth-child(3), :nth-child(6)) {
  margin-inline-start: 0.45cqw;
}

.dashboard-sample-unit {
  align-self: center;
  color: #767068;
  font-size: 1.9cqw;
  font-weight: 650;
}

@media (max-width: 800px) {
  .content-effects .effect-pair,
  .effect-benchmarks .cards2 { grid-template-columns: 1fr; }
  .content-effects .section-copy { margin-top: 6px; }
}

@media (max-width: 480px) {
  .content-effects .effect-metrics { grid-template-columns: 1fr; }
}
