/* Shared layout refinements, followed by tablet and phone layouts.
   Keep the existing brand tokens, illustration, photos and card shapes. */
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; opacity: 1; }
.hero-lede-compact { display: none; }
.care-demo-cta > .demo-intro-compact { display: none; }
.products, .capabilities, .how, .evidence, .faq, .contact, .demo { padding-block: 80px; }
.story-demo-section, .call-demo-section, .demo-call-cta { min-height: 0; }
.story-caption { color: var(--butter); margin-bottom: 16px; }
.story-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
.story-stage .story-progress { flex: 1 1 420px; gap: 12px; margin: 0; direction: rtl; }
.story-stage .story-progress button {
  flex: 1 1 0; min-width: 0; height: auto; min-height: 44px;
  display: grid; place-items: center; position: relative;
  padding: 8px 8px 18px; border: 0; border-radius: 0; overflow: visible;
  background: transparent; color: #daeaf7; font: inherit; font-size: 14px;
}
.story-stage .story-progress .story-track {
  display: block; position: absolute; inset: auto 0 4px; height: 6px; overflow: hidden;
  border-radius: 999px; background: rgba(255,255,255,.3);
}
.story-stage .story-progress button.active { color: var(--butter); font-weight: 700; }
.story-stage .story-progress .story-fill { display: block; inset: 0 0 0 auto; height: 100%; border-radius: inherit; }
.story-stage :focus-visible, .care-demo-cta a:focus-visible { outline-color: var(--butter); }
.story-scene { min-height: 0; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr); align-items: center; }
.story-scene.image-right { grid-template-columns: minmax(340px, 1fr) minmax(0, 1.05fr); }
.story-person { height: clamp(440px, 38vw, 540px); min-height: 0; }
.story-transcript { padding-block: 12px; }
.story-stage .story-person img, .story-stage.is-playing .story-person img { scale: 1; transition: none; }
.story-transcript-head { margin-bottom: 22px; }
.story-transcript-head h2 { max-width: 20ch; font-size: clamp(32px, 2.8vw, 40px); }
.story-stage .conversation { gap: 14px; direction: rtl; }
.story-stage .bubble {
  opacity: 1; visibility: visible; transform: none;
  width: fit-content; max-width: 86%; padding: 13px 16px;
  border-radius: 18px; text-align: right; font-size: 18px; line-height: 1.55;
}
.story-stage .bubble small { margin-bottom: 5px; font-size: 14px; font-weight: 900; color: var(--ink); }
body.palette-electric-butter .demo .story-stage .person-bubble {
  justify-self: start; background: var(--butter); color: var(--ink); border-bottom-right-radius: 5px;
}
body.palette-electric-butter .demo .story-stage .liora-bubble {
  justify-self: end; background: #fff; color: var(--ink); border-bottom-left-radius: 5px;
}
.story-stage .person-bubble small, .story-stage .liora-bubble small { color: var(--ink); font-size: 14px; }
.demo-call-cta { padding-block: 0; gap: 22px; }
.call-voice-visualizers { display: none; }
.call-voice-visualizers.is-connected { display: grid; }
body.palette-electric-butter .demo-call-panel .live-call-button:not(.is-live) { background: #117a4d; }
.product-card.care .product-label, .product-card.community .product-label { background: var(--ink); }
.contact-facts span { font-size: 13px; }
.footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-grid b { font-size: 14px; }
.footer-grid a:not(.brand, .button) { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.footer-grid > div { gap: 4px; }
.footer-bottom { margin-top: 32px; font-size: 12px; line-height: 1.6; }
button.dialog-close[aria-label] { width: 44px; height: 44px; top: 6px; left: 6px; }

@media (max-width: 960px) {
  .story-scene, .story-scene.image-right { grid-template-columns: 1fr; grid-template-areas: "photo" "transcript"; gap: 24px; }
  .story-person { width: 100%; max-width: 640px; height: 260px; aspect-ratio: auto; justify-self: center; }
  .story-transcript { padding: 0; }
  .story-transcript-head h2 { max-width: none; }
  .story-stage .bubble { width: fit-content; max-width: 86%; }
  .orbit-chip, .orbit-chip:nth-of-type(n) { animation: none; scale: 1; }
  .orbit-chip small { max-height: none; margin-top: 4px; font-size: 13px; opacity: 1; translate: none; }
  .orbit-chip:hover, .orbit-chip:focus-within, .orbit-chip.is-auto-expanded { scale: 1; }
  body.palette-electric-butter .orbit-center { animation: none; }
  body.palette-electric-butter .orbit-center::before { display: none; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .nav { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 12px; gap: 8px 10px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { height: auto; min-height: 0; padding: clamp(260px, 42svh, 350px) 12px 12px; }
  .hero-copy { padding: 22px 18px; }
  .hero h1 { font-size: clamp(28px, 7.7vw, 34px); line-height: 1.15; margin-bottom: 16px; }
  body.palette-electric-butter .hero-lede { font-size: 17px; line-height: 1.55; }
  .hero-lede-full { display: none; }
  .hero-benefits { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; line-height: 1.5; }
  .hero-lede-compact { display: block; }
  .hero-actions { flex-wrap: wrap; gap: 12px 16px; margin-top: 22px; }
  .hero-actions .button { padding-inline: 14px; font-size: 13px; }
  .hero-actions .text-link { font-size: 13px; }
  .hero-cover-video { height: calc(clamp(260px, 42svh, 350px) + 90px); }
  .products, .capabilities, .demo, .how, .evidence, .trust, .faq, .contact { padding-block: 40px; }
  .section-heading { gap: 20px; }
  .section-heading h2, .faq-intro h2 { font-size: clamp(30px, 8.5vw, 36px); line-height: 1.12; }
  .section-heading p:last-child { font-size: 16px; }
  .eyebrow, .hero .eyebrow { font-size: 12px; letter-spacing: 0; }
  .capability-orbit { margin-top: 28px; padding: 18px; gap: 10px; border-width: 2px; border-radius: 28px; box-shadow: 4px 5px 0 var(--ink); }
  .orbit-center { width: 136px; height: 136px; padding: 12px; min-height: 0; }
  .orbit-center b { font-size: 23px; }
  .orbit-center small { font-size: 11px; }
  .orbit-center .sound-wave { height: 42px; margin-block: 3px; }
  .orbit-chip, .orbit-chip:nth-of-type(n) { min-height: 72px; padding: 12px; font-size: 15px; border-radius: 18px; box-shadow: 3px 4px 0 rgba(var(--ink-rgb), .8); }
  .orbit-chip span { width: 36px; height: 36px; }
  .orbit-chip small { font-size: 12px; line-height: 1.5; }
  .story-stage { width: calc(100% - 32px); }
  .story-toolbar { gap: 8px; margin-bottom: 18px; }
  .story-stage .story-progress { flex-basis: 100%; gap: 8px; }
  .story-stage .story-progress button { padding-inline: 2px; font-size: 12px; }
  .story-caption { display: flex; align-items: flex-start; font-size: 12px; line-height: 1.5; }
  .story-caption::before { flex-shrink: 0; margin-top: 3px; }
  .story-person { height: 190px; border-radius: 22px; box-shadow: 4px 5px 0 rgba(12,138,188,.58); }
  .story-scene, .story-scene.image-right { gap: 20px; }
  .story-transcript-head { margin-bottom: 16px; }
  .story-transcript-head h2 { font-size: clamp(28px, 7.6vw, 32px); }
  .story-stage .conversation { gap: 12px; }
  .story-stage .bubble { width: fit-content; max-width: 86%; padding: 12px 14px; font-size: 17px; line-height: 1.5; }
  .story-stage .bubble small { font-size: 14px; margin-bottom: 4px; }
  .product-grid { margin-top: 28px; gap: 22px; }
  .product-card { padding: 22px; border-width: 2px; }
  body.palette-electric-butter .product-card { border-radius: 26px; box-shadow: 4px 5px 0 var(--ink); }
  .product-top { gap: 14px; align-items: center; }
  .product-label { padding: 8px 10px; font-size: 16px; line-height: 1.3; }
  .doodle-icon { width: 56px; height: 56px; border-width: 2px; box-shadow: 3px 4px 0 rgba(var(--ink-rgb), .8); }
  .doodle-icon svg { width: 28px; height: 28px; }
  .product-grid .product-card h3 { min-height: 0; margin-top: 24px; font-size: 32px; }
  .product-card > p { font-size: 16px; }
  .product-grid .product-points { padding-top: 20px; }
  .product-points > span { min-height: 58px; gap: 10px; padding: 10px 12px; font-size: 14px; }
  .point-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .care-demo-cta { gap: 18px; }
  .care-demo-cta > .demo-intro-full { display: none; }
  .care-demo-cta > .demo-intro-compact { display: block; max-width: 28ch; font-size: 18px; line-height: 1.55; }
  .demo-call-cta h2 { font-size: clamp(30px, 8vw, 36px); line-height: 1.12; margin: 8px 0; }
  .demo-call-cta > p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
  .demo-call-panel .call-status { margin-top: 24px; font-size: 14px; }
  .demo-call-panel .live-call-button { width: 180px; height: 180px; box-shadow: 5px 6px 0 #0d477f; }
  .demo-call-panel .live-call-button strong { font-size: 18px; }
  .call-button-icon { width: 64px; height: 64px; }
  .call-button-icon svg { width: 44px; height: 44px; }
  .faq-layout { gap: 28px; }
  .faq-intro h2 { margin-block: 14px; }
  .faq-intro .text-link { min-height: 44px; align-items: center; }
  summary { padding: 16px; gap: 14px; }
  .faq-answer { padding: 0 16px 18px; font-size: 16px; }
  .contact-box { width: calc(100% - 32px); padding: 24px 16px; gap: 24px; border: 2px solid var(--ink); border-radius: 26px; }
  body.palette-electric-butter .contact-box { box-shadow: 4px 5px 0 var(--ink); }
  body.palette-electric-butter .contact-copy > p:not(.eyebrow) { font-size: 22px; }
  .contact-facts { margin-top: 18px; }
  .contact-facts span { padding: 7px 10px; font-size: 12px; }
  .contact-form { min-height: 0; padding: 20px 16px; border-width: 2px; border-radius: 22px; }
  .contact-form h3 { font-size: 28px; margin-bottom: 20px; }
  .contact-form > div > label { margin-bottom: 0; }
  .field-row { gap: 16px; margin-bottom: 16px; }
  .form-button { padding-inline: 12px; font-size: 14px; }
  .form-error { font-size: 14px; }
  footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-grid a { max-width: 100%; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid b { font-size: 13px; }
  .footer-bottom { gap: 12px; font-size: 12px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .hero { background-image: none; }
  .hero::before { content: ""; position: absolute; z-index: -3; inset: 0 0 auto; height: calc(clamp(260px, 42svh, 350px) + 90px); background: url("assets/hero-video/liora-hero-background-slow-24s-final-poster.png") 31% center / cover no-repeat; }
}

/* Keep the live status region available for connection/error messages. */
.demo-call-panel .call-status:empty { min-height: 0; margin: 0; }
