/* The preview is the first hero content, directly below the navigation. */
.theme-light .landing-hero { padding-top: 12px; padding-bottom: 28px; }
.theme-light .landing-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.theme-light .landing-nav { min-height: 68px; padding-block: 8px; }
.theme-light .landing-citizenship-logo { width: 44px; height: 44px; box-shadow: 0 3px 10px rgba(23, 37, 68, .12); }
.theme-light .landing-ai4ops-logo { height: 44px; }
.theme-light .landing-hero-grid > .landing-hero-copy { width: 100%; justify-self: stretch; margin-top: 4px; padding-top: 16px; border-top: 1px solid #e5dcc5; }
.theme-light .landing-hero-copy > h2 { margin: 0 0 10px; color: #172544; font-size: clamp(1.25rem, 2vw, 1.7rem); font-style: normal; }

/* Scoped photo-based preview. Keep shared landing typography out of score tiles. */
.theme-light .landing-hero-grid > .call-demo {
  position: relative;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
  margin-inline: 0;
  padding: 16px 18px;
  overflow: hidden;
  background: #fff;
  color: #172544;
  border: 1px solid #e5d6ad;
  border-top: 3px solid #c5a044;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(23, 37, 68, .07), 0 2px 6px rgba(23, 37, 68, .03);
}
.call-demo::before, .call-demo::after { display: none !important; }
.call-demo *, .call-demo *::before, .call-demo *::after { box-sizing: border-box; }
.call-demo-header, .call-demo-heading, .call-demo-feedback-heading, .call-demo-footer, .call-demo-invitation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.call-demo-header { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #eee7d6; }
.call-demo-heading { justify-content: flex-start; min-width: 0; gap: 10px; }
.call-demo-mark { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #f7f1df; color: #866314; font-size: 17px; }
.call-demo-eyebrow { display: block; margin-bottom: 3px; color: #806018; font-size: .63rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.theme-light .landing-hero .call-demo h1 { margin: 0; max-width: none; padding: 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.25; color: #172544; font-style: normal; text-align: left; text-wrap: balance; }
.theme-light .landing-hero .call-demo h1 span { color: #8a681c; }
.theme-light .landing-hero .call-demo-subtitle { margin: 4px 0 0; max-width: none; color: #5b6880; font-size: .72rem; line-height: 1.45; text-align: left; }
.call-demo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #d9e8df; background: #f3faf5; border-radius: 30px; color: #2e6c4b; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.call-demo-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #36865a; }
/* Keep the feature labels and feedback banner within the first preview frame. */
.call-demo-benefits { min-width: 0; margin-bottom: 12px; }
.theme-light .call-demo .landing-ai-points { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.theme-light .call-demo .landing-ai-points > span { min-width: 0; max-width: 100%; gap: 7px; padding: 6px 10px; border: 1px solid #e4d8b8; border-radius: 999px; background: #fffdf7; color: #243653; font-size: .73rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.theme-light .call-demo .landing-ai-points i { flex-shrink: 0; color: #8a681c; font-size: .85rem; }
.theme-light .call-demo .ai-agent-check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 8px 12px; border: 1px solid #ecdfba; border-left: 3px solid #c5a044; border-radius: 10px; background: linear-gradient(100deg, #faf5e6, #fffdf7); }
.theme-light .call-demo .ai-agent-check-title { min-width: 0; font-size: .76rem; font-weight: 600; line-height: 1.5; color: #526079; }
.theme-light .call-demo .ai-agent-check-title i { color: #8a681c; }
.theme-light .call-demo .ai-agent-metric { min-width: 0; width: 100%; max-width: 100%; flex: 0 1 160px; height: 24px; }
.theme-light .call-demo .ai-agent-metric .ai-agent-word,
.theme-light .call-demo .ai-agent-metric::before { color: #806018; font-size: .86rem; line-height: 1.5; }
.call-demo-feedback-promise { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.call-demo-language-showcase { display: flex; align-items: center; gap: 8px; width: 32rem; min-width: 0; max-width: 100%; margin-inline-start: auto; padding-inline-start: 12px; border-inline-start: 1px solid #e4d8b8; }
.call-demo-language-icon { flex-shrink: 0; color: #8a681c; font-size: 1rem; }
.call-demo-language-stage { display: inline-grid; align-items: center; flex: 1; min-width: 0; max-width: 100%; min-height: 36px; }
.call-demo-language { grid-area: 1 / 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; line-height: 1.6; overflow-wrap: anywhere; text-align: start; }
.call-demo-language-message { flex: 1; min-width: 0; color: #526079; font-size: .73rem; font-weight: 600; }
.call-demo-language-name { max-width: 40%; color: #806018; font-size: .86rem; font-weight: 700; }
.call-demo-language[hidden] { display: none; }
.call-demo-participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.call-demo-side { min-width: 0; }
.call-demo-officer-side { grid-column: 1; }
.call-demo-learner-side { grid-column: 2; container: maya-profile / inline-size; }
.call-demo-participant { --portrait-size: 72px; display: grid; grid-template-columns: var(--portrait-size) minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid #e4e9f1; border-radius: 12px; background: #f8faff; }
.call-demo-participant.call-demo-learner { background: #f6fbf7; }
.call-demo-learner-identity { display: grid; grid-template-columns: var(--portrait-size) minmax(0, 1fr); align-items: center; gap: 12px; grid-column: 1 / -1; min-width: 0; }
.call-demo-person { position: relative; width: var(--portrait-size); aspect-ratio: 1; overflow: hidden; isolation: isolate; border-radius: 50%; background: #263247; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(23, 37, 68, .08); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .3s; }
.call-demo-photo { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; object-position: center 30%; }
.call-demo-learner .call-demo-photo { left: -100%; }
.call-demo-portrait-wrap { position: relative; width: var(--portrait-size); }
.call-demo-golden-badge { position: absolute; bottom: -2px; right: -2px; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; background: #f9d45b; color: #6b4608; box-shadow: 0 3px 10px #99701433; font-size: .72rem; }
.call-demo[data-step="feedback"] .call-demo-participant.call-demo-learner { background: radial-gradient(ellipse at top left, #fff1bd, #fffcf3 75%); border-color: #e7c876; }
.call-demo[data-step="feedback"] .call-demo-learner .call-demo-person { outline-color: #d9a724; box-shadow: 0 0 0 5px #fff4cd, 0 0 25px #e5b63b4d; }
.call-demo-person-label { min-width: 0; color: #172544; }
.call-demo-person-label b { display: block; font-size: .92rem; font-weight: 750; }
.call-demo-person-label small { display: block; margin-top: 3px; color: #526079; font-size: .72rem; line-height: 1.5; }
.call-demo-speaking-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 2px 7px; border-radius: 24px; background: #e5f5eb; color: #1c663d; font-size: .65rem; font-weight: 750; opacity: 0; transition: opacity .25s; }
.call-demo-wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.call-demo-wave i { display: block; width: 2px; height: 3px; border-radius: 3px; background: #36865a; }
.call-demo[data-step="question"] .call-demo-officer .call-demo-person,
.call-demo[data-step="answer"] .call-demo-learner .call-demo-person { outline-color: #7cdda1; }
.call-demo[data-step="question"] .call-demo-officer .call-demo-speaking-chip,
.call-demo[data-step="answer"] .call-demo-learner .call-demo-speaking-chip { opacity: 1; }
.call-demo-conversation { display: grid; gap: 6px; margin: 10px 0; }
/* Maya's response and scores belong inside her profile frame, below the portrait. */
.call-demo-participant.call-demo-learner > .call-demo-conversation,
.call-demo-participant.call-demo-learner > .call-demo-feedback { grid-column: 1 / -1; min-width: 0; width: 100%; }
.call-demo-participant.call-demo-learner > .call-demo-conversation { margin: 0; }
.call-demo-caption { display: grid; grid-template-columns: 86px minmax(0, 1fr) 16px; gap: 8px; align-items: baseline; padding: 8px 10px; border: 1px solid #e4e9f1; border-radius: 10px; background: #f8faff; }
.call-demo-caption-label { color: #64738b; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.theme-light .landing-hero .call-demo-caption p { margin: 0; max-width: none; color: #33415b; font-size: .83rem; line-height: 1.45; font-weight: 600; }
.call-demo-answer { background: #f6fbf7; }
.call-demo[data-step="question"] .call-demo-question { border-color: #bac8eb; }
.call-demo[data-step="answer"] .call-demo-answer { border-color: #a9d6b8; }
.call-demo-word { transition: color .16s; }
.call-demo-word.is-spoken { color: #236846; }
.call-demo-word.is-current { border-bottom: 2px solid #388d5b; }
.call-demo-word.is-arriving { color: #185c3b; background: #ddf3e6; border-radius: 4px; box-shadow: 0 0 0 3px #ddf3e6; }
/* Words use the same playback clock as the captions, so pause freezes the
   mouth pulse and the entire flight without creating separate CSS timers. */
.call-demo-speech-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; user-select: none; }
.call-demo-flying-word { position: absolute; top: 0; left: 0; display: block; width: max-content; max-width: calc(100% - 24px); padding: 6px 11px; border: 1px solid #bddccf; border-radius: 12px 12px 12px 3px; background: #f7fffb; color: #185337; font: 750 clamp(.76rem, 1.05vw, .9rem)/1.2 Inter, sans-serif; box-shadow: 0 5px 16px rgba(13, 34, 29, .18); white-space: nowrap; opacity: 0; transform-origin: center; }
.call-demo-flying-word[data-speaker="question"] { border-color: #b9cdef; background: #f6f9ff; color: #244b82; }
.call-demo-mouth-pulse { position: absolute; top: 0; left: 0; width: 26px; height: 16px; border: 1.5px solid #b8f0d0; border-radius: 50%; box-shadow: 0 0 12px rgba(126, 231, 175, .35); opacity: 0; }
.call-demo-flying-word[hidden], .call-demo-mouth-pulse[hidden] { display: none; }
.call-demo-confetti-layer { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; user-select: none; border-radius: inherit; }
.call-demo-confetti { position: absolute; top: 0; left: 0; width: 5px; height: 10px; border-radius: 1px; background: var(--confetti-color); opacity: 0; }
.call-demo-confetti:nth-child(4n) { width: 7px; height: 7px; border-radius: 50%; }
.call-demo-celebration { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 10px; border: 1px solid #e5c46c; border-radius: 12px; background: linear-gradient(110deg, #fff0b8, #fffaf0 70%); }
.call-demo-celebration-copy { min-width: 0; }
.call-demo-celebration-kicker { display: block; margin-bottom: 4px; color: #77510d; font-size: .64rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.call-demo .call-demo-celebration h3 { margin: 0; color: #523708; font-size: clamp(.9rem, 1.4vw, 1.05rem); line-height: 1.4; font-style: normal; }
.theme-light .landing-hero .call-demo-celebration p { margin: 5px 0 0; color: #76633e; font-size: .65rem; line-height: 1.5; }
.call-demo-golden-buzzer { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 3px; border: 2px solid #b3821c; border-radius: 50%; background: #c2912e; box-shadow: 0 3px 0 #886114, 0 5px 12px #b18b3133; cursor: pointer; }
.call-demo-buzzer-cap { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid #ffed9b; border-radius: 50%; background: linear-gradient(155deg, #fff4b0, #f4c43a 65%, #dca315); color: #715008; font-size: 1.35rem; box-shadow: inset 0 2px 3px #fff9d6, 0 3px 0 #a77819; }
.call-demo-golden-buzzer:hover { border-color: #715008; }
.call-demo-golden-buzzer:focus-visible { outline: 3px solid #4264ff; outline-offset: 5px; }
.call-demo-celebration[hidden], .call-demo-golden-badge[hidden], .call-demo-confetti[hidden] { display: none; }
.call-demo[data-step="question"] .call-demo-answer p { color: #788598; }
.call-demo-accepted { font-size: .8rem; color: #267848; opacity: 0; }
.call-demo[data-step="feedback"] .call-demo-accepted { opacity: 1; }
.call-demo-feedback { padding: 10px 12px; border: 1px solid #e3e9f1; border-radius: 12px; background: #fcfdff; }
/* One outer Maya frame: feedback is an integrated section, not another card. */
.call-demo-participant.call-demo-learner > .call-demo-feedback { padding: 8px 0 0; border: 0; border-top: 1px solid #dce5dd; border-radius: 0; background: transparent; box-shadow: none; }
.call-demo-feedback-heading { margin-bottom: 8px; flex-wrap: wrap; }
.call-demo .call-demo-feedback-heading h3 { margin: 0; font-size: .78rem; font-style: normal; color: #243454; }
.call-demo-feedback-heading h3 > i { color: #8e711c; margin-right: 6px; }
.call-demo-feedback-heading > span { font-size: .7rem; font-weight: 700; color: #5b6880; }
.call-demo[data-step="feedback"] .call-demo-feedback-heading > span { color: #267848; }
.call-demo-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.call-demo-metric { min-width: 0; }
.call-demo-metric > span { display: flex; align-items: center; gap: 5px; color: #526079; font-size: .68rem; font-weight: 650; white-space: nowrap; }
.call-demo-metric > span > i { color: var(--score-color); }
.call-demo-metric > b { display: block; margin: 4px 0; color: #172544; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.call-demo-score-track { height: 5px; border-radius: 8px; background: #e6ebf3; overflow: hidden; }
.call-demo-score-track > span { display: block; height: 100%; width: var(--score); transform: scaleX(0); transform-origin: left; border-radius: inherit; background: var(--score-color); }
.call-demo[data-step="feedback"] .call-demo-score-track > span { transform: scaleX(1); }
/* Compact scores remain within Maya's shared frame at every screen width. */
.call-demo-learner .call-demo-feedback-heading { margin-bottom: 6px; gap: 4px 8px; }
.call-demo .call-demo-learner .call-demo-feedback-heading h3 { font-size: .72rem; }
.call-demo-learner .call-demo-feedback-heading > span { font-size: .64rem; }
.call-demo-learner .call-demo-metrics { gap: 8px 12px; }
.call-demo-learner .call-demo-metric > span { font-size: .65rem; white-space: normal; }
.call-demo-learner .call-demo-metric > b { margin: 2px 0; font-size: 1rem; line-height: 1.15; }
.call-demo-learner .call-demo-score-track { height: 4px; }
.call-demo-footer { margin-top: 10px; flex-wrap: wrap; }
.call-demo-steps { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.call-demo-steps li { display: flex; align-items: center; gap: 5px; color: #6a778b; font-size: .68rem; font-weight: 650; }
.call-demo-steps li > span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #edf1f7; font-size: .6rem; }
.call-demo-steps li[aria-current="step"] { color: #245d43; }
.call-demo-steps li[aria-current="step"] > span { background: #dff2e7; }
.call-demo-controls { display: flex; align-items: center; gap: 6px; }
.call-demo-controls[hidden] { display: none; }
.call-demo-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid #dbe2ed; border-radius: 8px; background: #fff; color: #31435f; font: 700 .7rem Inter, sans-serif; cursor: pointer; }
.call-demo-controls button:hover { background: #fff9e9; border-color: #c5a044; }
.call-demo-controls button:focus-visible { outline: 3px solid #4264ff; outline-offset: 2px; }
.call-demo-timeline { height: 3px; overflow: hidden; background: #e9eef5; border-radius: 3px; margin-top: 9px; }
.call-demo-timeline > span { display: block; height: 100%; width: 100%; transform: scaleX(1); transform-origin: left; background: #c5a044; }
.call-demo-invitation { margin-top: 8px; flex-wrap: wrap; }
.theme-light .landing-hero .call-demo-invitation p { color: #68768c; font-size: .66rem; line-height: 1.5; margin: 0; }
.call-demo-invitation a { color: #775710; font-weight: 750; font-size: .73rem; text-decoration: none; }
.call-demo-invitation a:hover { text-decoration: underline; }
.call-demo-invitation a:focus-visible { outline: 3px solid #c5a044; outline-offset: 4px; border-radius: 3px; }
.call-demo-invitation a i { margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .call-demo[data-step="question"] .call-demo-officer .call-demo-photo,
  .call-demo[data-step="answer"] .call-demo-learner .call-demo-photo { animation: callPhotoDrift 5s ease-in-out both; }
  .call-demo[data-step="question"] .call-demo-officer .call-demo-wave i,
  .call-demo[data-step="answer"] .call-demo-learner .call-demo-wave i { animation: callSpeaking .55s ease-in-out infinite alternate; }
  .call-demo .call-demo-wave i:nth-child(2) { animation-delay: -.21s !important; }
  .call-demo .call-demo-wave i:nth-child(3) { animation-delay: -.4s !important; }
  .call-demo .call-demo-wave i:nth-child(4) { animation-delay: -.12s !important; }
  .call-demo .call-demo-wave i:nth-child(5) { animation-delay: -.32s !important; }
  .call-demo[data-paused="true"] *, .call-demo[data-suspended="true"] * { animation-play-state: paused !important; }
}
@keyframes callSpeaking { to { height: 14px; } }
@keyframes callPhotoDrift { from { transform: scale(1); } to { transform: scale(1.025); } }
/* Use the actual width of Maya's frame, not the viewport, to keep scores legible. */
@container maya-profile (min-width: 520px) {
  .call-demo-participant.call-demo-learner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
  .call-demo-learner-identity { grid-column: 1; grid-row: 1; }
  .call-demo-learner-side .call-demo-learner > .call-demo-feedback { grid-column: 2; grid-row: 1; padding: 0 0 0 12px; border: 0; border-inline-start: 1px solid #dce5dd; }
  .call-demo-learner-side .call-demo-learner > .call-demo-conversation { grid-row: 2; }
}
/* Keep each speaker's content together when two columns become too narrow. */
@media (max-width: 767px) {
  .call-demo-participants { grid-template-columns: minmax(0, 1fr); }
  .call-demo-learner-side { grid-column: 1; }
  .call-demo-language-showcase { flex-basis: 100%; margin-inline-start: 0; padding-inline-start: 0; padding-top: 6px; border-inline-start: 0; border-top: 1px solid #e4d8b8; }
}
@media (max-width: 576px) {
  .theme-light .landing-nav { gap: 8px; }
  .theme-light .landing-ai4ops-logo { height: 38px; }
  .theme-light .landing-citizenship-logo { width: 38px; height: 38px; }
  .theme-light .landing-hero-grid > .call-demo { padding: 12px; border-radius: 14px; }
  .call-demo-header { flex-wrap: wrap; gap: 9px; }
  .call-demo-mark { width: 32px; height: 32px; }
  .call-demo-participants { gap: 8px; }
  .call-demo-participant { --portrait-size: 64px; gap: 10px; padding: 10px; }
  .call-demo-golden-badge { width: 24px; height: 24px; font-size: .68rem; }
  .call-demo-celebration { gap: 10px; padding: 10px; }
  .call-demo-golden-buzzer { flex-basis: 44px; width: 44px; height: 44px; padding: 3px; }
  .call-demo-buzzer-cap { font-size: 1rem; }
  .call-demo-person-label b { font-size: .86rem; }
  .call-demo-person-label small { font-size: .66rem; line-height: 1.4; }
  .call-demo-speaking-chip { margin-top: 5px; font-size: .6rem; padding: 2px 6px; }
  .call-demo-caption { grid-template-columns: minmax(0, 1fr) 14px; gap: 3px 8px; }
  .call-demo-caption-label { grid-column: 1 / -1; }
  .call-demo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .call-demo-footer { gap: 8px; }
  .call-demo-controls { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .call-demo *, .call-demo *::after { animation: none !important; transition: none !important; }
  .theme-light .call-demo .ai-agent-metric::before,
  .theme-light .call-demo .ai-agent-metric .ai-agent-word:not(.word-accuracy) { display: none; }
  .theme-light .call-demo .ai-agent-metric .word-accuracy { width: 100%; opacity: 1; transform: none; }
  .call-demo-speech-layer { display: none; }
  .call-demo-confetti-layer { display: none; }
}
