/* The homepage phone is an illustrative, entirely local animation. */
.hero-layout {
  --phone-width: min(310px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: 36px;
}
.hero-layout h1 { font-size: clamp(2rem, 3.6vw, 3.75rem); }
.hero-layout .assistant-hero-copy > p.text-lg { font-size: clamp(1rem, 1.25vw, 1.125rem); }
@media (min-width: 900px) {
  .hero-layout {
    --phone-width: clamp(290px, calc((100svh - 240px) * .49), 330px);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(24px, 4vw, 64px);
    padding-block: clamp(28px, 4svh, 48px);
  }
}
@media (max-width: 479px) {
  .hero-layout { gap: 32px; }
  .hero-layout h1 { font-size: clamp(2rem, 8.5vw, 2.5rem); }
  .hero-layout .assistant-hero-actions { gap: 16px; }
}
#locapp-demo {
  --demo-accent: #315c9c;
  --demo-soft: #eaf1fd;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  padding: 4px 8px;
  color: #172c49;
  color-scheme: light;
}
#locapp-demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% -6% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 25% 30%, #dce9fd 0, transparent 66%), radial-gradient(ellipse at 75% 70%, #f5deec 0, transparent 65%);
  filter: blur(27px);
  opacity: .8;
}
#locapp-demo[data-scene="0"] { --demo-accent: #5267a0; --demo-soft: #edf0fb; }
#locapp-demo[data-scene="2"] { --demo-accent: #39745f; --demo-soft: #e6f2e9; }
#locapp-demo[data-scene="3"] { --demo-accent: #8c5274; --demo-soft: #f7e9f1; }
#locapp-demo [hidden] { display: none !important; }
#locapp-demo button { cursor: pointer; font: inherit; }
#locapp-demo button:focus-visible, #locapp-demo a:focus-visible, #demo-thread:focus-visible {
  outline: 3px solid #7b99c5;
  outline-offset: 4px;
}
.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 4px;
  margin: 0 auto 20px;
  max-width: 380px;
  background: #f0f3f8;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
}
#locapp-demo .demo-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 40px;
  padding: 6px 4px;
  color: #617086;
  font-size: 11px;
  font-weight: 600;
  transition: background .2s, color .2s, box-shadow .2s;
}
#locapp-demo .demo-tab[aria-selected="true"] {
  background: white;
  border-color: #e6eaf1;
  color: var(--demo-accent);
  box-shadow: 0 2px 5px #2337540c;
}
.demo-tab svg { width: 14px; height: 14px; flex: 0 0 14px; }
.demo-phone {
  position: relative;
  width: var(--phone-width);
  margin-inline: auto;
  padding: 7px;
  border: 1px solid #536074;
  border-radius: 44px;
  background: linear-gradient(145deg, #354052, #121c2a 42%, #29364b);
  box-shadow: 0 23px 46px -20px #23334b70, 0 5px 12px #1b293b20, inset 0 0 0 2px #ffffff18;
}
.demo-phone::before, .demo-phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: #47556a;
}
.demo-phone::before { left: -4px; top: 116px; height: 52px; box-shadow: 0 62px 0 #47556a; }
.demo-phone::after { right: -4px; top: 156px; height: 66px; }
.demo-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1.93;
  overflow: hidden;
  border-radius: 36px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.55;
}
.demo-statusbar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 8px 23px 1px; background: white; font-size: 10px; font-weight: 750; }
.demo-island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 81px; height: 21px; border-radius: 20px; background: #182332; }
.demo-signals { display: flex; align-items: center; gap: 4px; }
.demo-signals svg { width: 14px; height: 12px; }
.demo-battery { width: 19px; height: 9px; padding: 1px; border: 1px solid #87909d; border-radius: 3px; }
.demo-battery::after { content: ""; display: block; height: 100%; width: 86%; background: #172c49; border-radius: 1px; }
.demo-app-header { display: flex; align-items: center; gap: 10px; padding: 12px 17px 14px; border-bottom: 1px solid #e8edf3; background: white; }
.demo-brand { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; overflow: hidden; border: 1px solid #e5eaf1; border-radius: 13px; background: white; }
.demo-brand img { width: 37px; height: 37px; object-fit: contain; transform: scale(2.5); }
.demo-app-header strong { display: block; font-size: 14px; font-weight: 750; line-height: 1.3; }
.demo-app-header small { display: block; margin-top: 3px; color: #637187; font-size: 10px; }
.demo-app-header small::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #69a58a; }
.demo-label { margin-left: auto; padding: 3px 7px; border: 1px solid #e4eaf0; border-radius: 6px; color: #65748a; font-size: 8px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.demo-scene-heading { display: flex; align-items: center; gap: 8px; padding: 13px 17px 4px; color: var(--demo-accent); font-size: 10px; font-weight: 650; }
.demo-scene-heading::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-thread { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 13px 16px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d4dce7 transparent; overscroll-behavior: contain; }
.demo-message { flex-shrink: 0; max-width: 91%; margin: 0; padding: 10px 12px; border: 1px solid #e6ebf2; border-radius: 15px 15px 15px 4px; background: white; color: #32435b; overflow-wrap: anywhere; }
.demo-message p { margin: 0; }
.demo-message-user { align-self: flex-end; border-color: transparent; border-radius: 15px 15px 4px 15px; background: #243d60; color: white; }
.demo-message-role { display: block; margin-bottom: 4px; color: var(--demo-accent); font-size: 9px; font-weight: 750; }
.demo-result { flex-shrink: 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--demo-accent) 18%, white); border-radius: 14px; background: white; }
.demo-result-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--demo-accent); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.demo-result-kicker::before { content: "✓"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--demo-soft); font-size: 11px; }
.demo-result strong { display: block; font-size: 13px; font-weight: 700; }
.demo-result p { margin: 4px 0 10px; color: #6a778a; font-size: 10px; line-height: 1.6; }
.demo-result-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.demo-result-tags span { padding: 4px 7px; border-radius: 6px; background: var(--demo-soft); color: var(--demo-accent); font-size: 9px; }
.demo-document { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding: 12px; border: 1px solid #cfdaeb; border-radius: 14px; background: #edf3fc; color: #243d60; text-decoration: none; }
.demo-document:hover { border-color: #7b99c5; background: #e4edfb; }
.demo-document-preview { display: block; flex: 0 0 76px; width: 76px; height: auto; border: 1px solid #dce3ed; border-radius: 2px; box-shadow: 0 3px 8px #243d6014; }
.demo-document-details { min-width: 0; }
.demo-document-format { display: block; margin-bottom: 5px; font-size: 8px; font-weight: 700; letter-spacing: .06em; color: #61738d; }
.demo-document strong { display: block; font-size: 12px; line-height: 1.4; }
.demo-document-note { display: block; margin-top: 5px; color: #61738d; font-size: 9px; }
.demo-document-open { display: block; margin-top: 9px; font-size: 10px; font-weight: 700; }
.demo-delivery-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
#locapp-demo .demo-delivery-choice { flex: 1; min-height: 39px; padding: 8px 10px; border: 1px solid #aebdd5; border-radius: 10px; background: var(--demo-soft); color: #243d60; font-size: 11px; font-weight: 700; white-space: nowrap; }
#locapp-demo .demo-delivery-choice:hover { background: #dce7f9; border-color: #6a83aa; }
.demo-choice-hint { display: block; margin-top: 7px; color: #64748b; font-size: 9px; }
.demo-thread { container-type: size; }
.demo-delivery-result { flex-shrink: 0; min-width: 0; }
#locapp-demo .demo-change-delivery { display: block; margin: 8px auto 0; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: #5267a0; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.demo-email { display: flex; flex-direction: column; height: max(185px, calc(100cqh - 38px)); overflow: hidden; border: 1px solid #cfdaeb; border-radius: 14px; background: white; }
.demo-email-header { flex-shrink: 0; padding: 10px; border-bottom: 1px solid #e6ebf2; background: #edf3fc; }
.demo-email-to { display: block; margin: 0 0 5px; color: #637187; font-size: 9px; overflow-wrap: anywhere; }
.demo-email-header strong { display: block; font-size: 11px; line-height: 1.5; }
.demo-email-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; font-size: 11px; line-height: 1.6; color: #32435b; scrollbar-width: thin; overscroll-behavior: contain; }
.demo-email-body p { margin: 0 0 12px; }
.demo-email-body p:last-child { margin-bottom: 0; }
.demo-email-body:focus-visible { outline: 2px solid #7b99c5; outline-offset: -2px; }
.demo-email-footer { flex-shrink: 0; padding: 8px 10px; border-top: 1px solid #e6ebf2; }
#locapp-demo .demo-email-send { width: 100%; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 9px; background: #243d60; color: white; font-size: 11px; font-weight: 700; }
#locapp-demo .demo-email-send:hover { background: #315c9c; }
#locapp-demo .demo-email-send:disabled { cursor: default; background: #e6f2e9; color: #39745f; }
.demo-email-status { margin: 6px 0 0; text-align: center; color: #64748b; font-size: 9px; line-height: 1.5; }
#locapp-demo .demo-play:disabled { opacity: .45; cursor: default; }
.demo-typing { display: flex; align-items: center; gap: 4px; min-height: 32px; width: 51px; padding: 11px 12px; border: 1px solid #e6ebf2; border-radius: 13px 13px 13px 4px; background: white; }
.demo-typing span { width: 5px; height: 5px; border-radius: 50%; background: #8b9bb1; animation: demo-dot 1s ease-in-out infinite; }
.demo-typing span:nth-child(2) { animation-delay: .15s; }
.demo-typing span:nth-child(3) { animation-delay: .3s; }
.demo-step-enter { animation: demo-message-in .4s ease-out both; }
.demo-compose { display: flex; flex-shrink: 0; align-items: center; gap: 9px; padding: 10px 13px 5px; background: white; border-top: 1px solid #e8edf3; }
.demo-compose > span { display: grid; place-items: center; width: 24px; color: #718097; font-size: 21px; }
.demo-compose a { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1; min-width: 0; min-height: 36px; padding: 7px 11px; border: 1px solid #e4eaf2; border-radius: 20px; background: #f8fafc; color: #65738a; text-decoration: none; font-size: 10px; }
.demo-compose a:hover { border-color: #9aaec9; color: #243d60; }
.demo-draft { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.demo-compose.is-writing .demo-draft { color: #243d60; }
.demo-compose.is-writing .demo-draft::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: currentColor; animation: demo-caret .65s step-end infinite; }
.demo-compose a .demo-send { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: #243d60; color: white; font-size: 14px; }
.demo-home { flex-shrink: 0; height: 18px; background: white; }
.demo-home::after { content: ""; display: block; width: 88px; height: 4px; margin: 7px auto; border-radius: 5px; background: #1b2c44; }
.demo-playback { display: flex; align-items: center; gap: 10px; width: var(--phone-width); margin: 17px auto 0; }
.demo-progress { flex: 1; height: 3px; overflow: hidden; border-radius: 4px; background: #dfe6ef; }
.demo-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--demo-accent); border-radius: inherit; }
.demo-count { color: #6d7c90; font-size: 10px; font-variant-numeric: tabular-nums; }
#locapp-demo .demo-play { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #dce4ef; border-radius: 50%; background: #ffffffb3; color: #344c6c; }
.demo-play svg { width: 13px; height: 13px; }
.demo-caption { margin: 7px 0 0; text-align: center; color: #758198; font-size: 10px; }
#locapp-demo[data-paused="true"] .demo-typing span, #locapp-demo[data-paused="true"] .demo-draft::after { animation-play-state: paused; }
@keyframes demo-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes demo-message-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes demo-dot { 0%, 70%, 100% { opacity: .4; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 360px) { .demo-tab svg { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #locapp-demo *, #locapp-demo *::before, #locapp-demo *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
