/* Phone and touch refinements, loaded after the established site styles. */
.alex-msg p, .alex-escalation-status, [data-alex-escalation-status] { overflow-wrap: anywhere; }
.alex-panel__head, .alex-panel__foot { flex-shrink: 0; }
.alex-panel__scroll { -webkit-overflow-scrolling: touch; }
.alex-panel__actions { display: grid; grid-template-columns: 1fr; }
.alex-privacy { color: #606b63; font-size: 16px; line-height: 1.45; margin-top: 6px; }
.alex-privacy summary { cursor: pointer; padding: 7px 2px; text-align: center; }
.alex-privacy .alex-legal { margin: 0 0 4px; color: #606b63; font-size: 16px; }
.alex-privacy a { text-decoration: underline; }
.alex-icon-btn:focus-visible, .alex-input button:focus-visible { outline-offset: -3px; }
@media (max-width: 1024px) {
  .nav__panel { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .nav__panel[inert] { visibility: hidden; }
  .nav__item:not(.is-open) .mega { visibility: hidden; }
  .nav__item.is-open .mega { visibility: visible; }
  .mega__inner { visibility: inherit; }
  .mega__list a, .mega__grid a, .mega__links a { min-height: 44px; }
  .alex2__grid > *, .hero-home__grid > *, .msg-page__grid > *, .section-head > * { min-width: 0; }
}
@media (max-width: 640px), (max-width: 960px) and (max-height: 500px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 80px; }
  .nav, .is-scrolled .nav { height: 64px; }
  .logo img { height: 32px; }
  .nav__toggle { flex-shrink: 0; }
  main h1, main h2, main h3, main p, .legal-doc { overflow-wrap: break-word; }
  main .btn { white-space: normal; text-align: center; }
  main .btn-row { gap: 10px; }
  main .hero-home__copy .btn-row { display: grid; grid-template-columns: 1fr; width: min(100%, 360px); margin-inline: auto; }
  .hero-home__grid { gap: 32px; padding-block: 40px 48px; }
  .hero-home .display { font-size: clamp(34px, 9.6vw, 46px); line-height: 1.08; }
  .hero-home__copy .lead { font-size: 17px; }
  main input:not([type=checkbox]):not([type=radio]), main textarea, main select { font-size: 16px; min-height: 48px; }
  main textarea { min-height: 120px; }
  .field, .field-row > * { min-width: 0; }
  .footer__col ul { gap: 0; }
  .footer__col a, .footer__contact a, .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__contact a { display: flex; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .chips-scroll { scroll-padding-inline: var(--gutter); }
  .chip, .res-filter button, .billing button, .tour__tabs button { min-height: 44px; }
  .compare { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
  .alex-widget { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .alex-launcher { min-height: 48px; padding: 5px 16px 5px 5px; gap: 8px; }
  .alex-launcher__label { display: inline; }
  .alex-widget.is-open { top: var(--chat-viewport-top, 0px); right: 0; bottom: auto; left: 0; height: var(--chat-viewport-height, 100dvh); width: 100%; z-index: 1000; gap: 0; }
  .alex-widget.is-open .alex-panel { width: 100%; height: 100%; max-height: none; min-height: 0; border: 0; border-radius: 0; clip-path: none; box-shadow: none; animation: none; }
  .alex-panel__head { min-height: 64px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
  .alex-panel__who strong { font-size: 17px; }
  .alex-panel__who small { font-size: 16px; }
  .alex-icon-btn { width: 44px; height: 44px; }
  .alex-panel__scroll { min-height: 0; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); scroll-padding-block: 16px; }
  .alex-stage--portrait { display: none; }
  .alex-log { margin-top: 0; gap: 12px; }
  .alex-msg p { font-size: 16px; line-height: 1.5; padding: 12px 14px; max-width: 94%; }
  .alex-quick { gap: 8px; margin-block: 16px 4px; }
  .alex-quick button { min-height: 44px; padding: 10px 14px; font-size: 16px; text-align: left; }
  .alex-panel__foot { max-height: 55%; overflow-y: auto; padding: 10px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .alex-panel__actions { grid-template-columns: 1.3fr 1fr; gap: 8px; margin-bottom: 8px; }
  .alex-panel__actions .alex-sales { margin: 0; padding: 8px; min-height: 44px; font-size: 16px; line-height: 1.25; }
  .alex-input { min-height: 54px; padding: 4px 4px 4px 12px; gap: 6px; }
  .alex-input input { font-size: 16px; min-height: 44px; }
  .alex-input button { flex: 0 0 44px; width: 44px; height: 44px; }
  .alex-privacy { margin-top: 2px; }
  .alex-privacy summary { min-height: 36px; padding-block: 9px; font-size: 16px; }
  .alex-escalation { margin-top: 16px; padding: 14px; }
  .alex-escalation h3 { font-size: 18px; }
  .alex-escalation p, .alex-escalation label { font-size: 16px; }
  .alex-escalation input, .alex-escalation textarea { min-height: 48px; font-size: 16px; scroll-margin-block: 16px; }
  .alex-escalation textarea { min-height: 120px; }
  .alex-escalation .alex-btn, .alex-escalation .alex-cancel { min-height: 44px; font-size: 16px; }
  .alex-escalation .alex-btn { width: 100%; }
  .alex-escalation .alex-cancel { margin-left: 0; }
  .chat-open, .chat-open body { overscroll-behavior: none; }
  .chat-open body { position: fixed; top: var(--chat-page-top, 0px); left: 0; right: 0; width: 100%; overflow: hidden; }
  .nav-open .alex-widget:not(.is-open) { visibility: hidden; }
}
@media (hover: none) {
  .btn:hover { transform: none; }
  .alex-launcher:hover { transform: none; }
  .alex-panel button { touch-action: manipulation; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__panel, .nav__item { transition: none; }
}

/* A clear, readable baseline shared by local and hosted builds. */
body { font-size: 16px; }

/* Preserve SVG illustration proportions; website body copy remains 16px. */
.hp-kicker { font-size: 6px; font-weight: 700; letter-spacing: .12em; fill: var(--green-600); }
.hp-title { font-size: 9px; font-weight: 700; fill: var(--ink); }
.hp-meta { font-size: 7px; fill: var(--muted); }
.hp-btn-t { font-size: 7px; font-weight: 600; fill: #fff; }

/* Homepage product film: user-controlled playback and no initial video download. */
.launch-video { background: var(--surface); }
.launch-video__intro { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.launch-video__intro .h2 { margin-block: 12px 16px; }
.launch-video__figure { max-width: 1120px; margin: 0 auto; }
.launch-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #062e19; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(4, 39, 18, .12); }
.launch-video video:focus-visible { outline: 3px solid var(--green-500); outline-offset: 4px; }
.launch-video figcaption { margin-top: 14px; text-align: center; font-size: 16px; color: var(--muted); }
@media (max-width: 640px) { .launch-video__intro { margin-bottom: 24px; } .launch-video video { border-radius: 10px; } }

/* Make the film unmistakably playable without starting sound automatically. */
.launch-video__player { position: relative; isolation: isolate; }
.launch-video__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 28, 12, .22); border-radius: 16px; pointer-events: none; }
.launch-video__overlay[hidden] { display: none; }
.launch-video__play { display: flex; align-items: center; gap: 16px; padding: 16px 24px 16px 16px; max-width: calc(100% - 32px); border: 2px solid #fff; border-radius: 18px; background: #043b20; color: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.25); cursor: pointer; pointer-events: auto; text-align: left; font: inherit; touch-action: manipulation; }
.launch-video__play-icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: #91f675; color: #043b20; }
.launch-video__play-icon svg { width: 36px; height: 36px; }
.launch-video__play strong { display: block; font-size: 22px; line-height: 1.25; }
.launch-video__play small { display: block; margin-top: 5px; font-size: 16px; line-height: 1.4; color: #e4f8df; }
.launch-video__play:focus-visible { outline: 3px solid #91f675; outline-offset: 5px; }
.launch-video__play:disabled { cursor: progress; }
@media (hover: hover) { .launch-video__play:hover { background: #07582e; } }
@media (max-width: 640px) {
  .launch-video__overlay { border-radius: 10px; }
  .launch-video__play { padding: 10px 14px 10px 10px; gap: 10px; border-radius: 14px; }
  .launch-video__play-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .launch-video__play-icon svg { width: 30px; height: 30px; }
  .launch-video__play strong { font-size: 18px; }
  .launch-video__play small { margin-top: 2px; font-size: 16px; }
}

/* Menu preview labels are sized in SVG coordinates, independently of body text. */
.mega__shot--ill .i2-label, .mega__shot--ill .i2-mini-title { font-size: 8px; letter-spacing: 0; }
.mega__shot--video { position: relative; }
.mega__video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; background: #043b20; color: #91f675; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.mega__video-play svg { width: 32px; height: 32px; }
.mega__video-time { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 5px; background: #043b20; color: #fff; font-size: 16px; line-height: 1.4; }
