/* Reference-aligned interface icons and arrows. */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.button [data-icon], .link [data-icon] { width: 20px; height: 20px; }
.button [data-icon] .icon, .link .icon { width: 18px; height: 18px; }
.button [data-icon] { color: inherit; }
.link { display: inline-flex; align-items: center; gap: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 15px; }
.text-button i { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: 0; }
.text-button .icon { width: 18px; height: 18px; }
.to-top .icon { width: 17px; height: 17px; }

/* Explicit grid cells keep the arrow beside the title, even with a description. */
.app-tabs button { grid-template-columns: 38px minmax(0, 1fr) 22px; align-items: start; }
.app-tabs button > span { grid-column: 1; grid-row: 1; display: flex; align-items: center; min-height: 24px; }
.app-tabs button > b { grid-column: 2; grid-row: 1; line-height: 24px; }
.app-tabs button > i { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 22px; height: 24px; color: #8ca1c6; transform-origin: center; }
.app-tabs button > i .icon { width: 20px; height: 20px; }
.app-tabs button > small { grid-column: 2 / 4; grid-row: 2; margin-top: 12px; }
.app-tabs button.active > i { color: var(--blue); transform: rotate(90deg); }
.app-tabs button.active { box-shadow: 0 8px 24px #153c7704; }
.privacy { display: flex; align-items: flex-start; gap: 10px; max-width: 430px; margin-top: 27px; line-height: 1.8; color: #8b9cba !important; }
.privacy > [data-icon] { margin-top: 2px; }
.privacy .icon { width: 20px; height: 20px; }

/* The connection card retains separate, sharp icons, text, and dashed paths. */
.who i { flex-shrink: 0; }
.who i .icon { width: 25px; height: 25px; stroke-width: 1.65; }
.who:first-child i { color: #dc8b13; background: #fff3d9; }
.who:last-child i { color: #354bd2; background: #edf2ff; }
.bridge { --connector-x: -43px; --connector-travel: 42px; }
.bridge::before { left: var(--connector-x); }
.bridge::after { left: calc(var(--connector-x) + 1px); width: var(--connector-travel); }
.connection-dot { position: absolute; left: calc(var(--connector-x) - 2px); top: -22px; width: 6px; height: 6px; border-radius: 50%; background: #ffb03a; opacity: 0; pointer-events: none; }

/* Closing banner proportions and independent high-resolution phone. */
.cta { height: auto; min-height: 413px; padding: 62px 65px; border-radius: 28px; background: #3047bb; isolation: isolate; }
.cta-copy { position: relative; z-index: 3; width: 65%; }
.cta-copy > p { margin: 0 0 22px; color: #c7d1ff; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.cta h2 { margin: 0 0 23px; font-size: 50px; line-height: 1.18; letter-spacing: -.035em; }
.cta h2 em { color: #ffd06a; }
.cta .cta-description { color: #c3cff5; font-size: 15px; line-height: 1.75; }
.cta .button.white { margin-top: 29px; min-height: 58px; padding: 17px 27px; gap: 17px; font-size: 15px; line-height: 24px; box-shadow: none; }
.cta .button [data-icon] { display: inline-flex; color: inherit; }
.cta .cta-phone { left: auto; top: 58px; right: 10%; width: 224px; height: 485px; border-width: 4px; border-color: #303845; border-radius: 34px; transform: rotate(12deg); z-index: 2; box-shadow: 0 20px 45px #10236a38; }
.cta-phone img { display: block; width: 100%; height: auto; min-height: 100%; object-fit: cover; }
.cta .cta-island { position: absolute; top: 9px; left: calc(50% - 28px); width: 56px; height: 15px; border-radius: 20px; background: #171e28; }
.cta::after { content: none; }
.cta-rings { position: absolute; z-index: 0; right: -2%; top: calc(50% - 300px); width: 600px; height: 600px; border: 1px solid #ffffff13; border-radius: 50%; pointer-events: none; }
.cta-rings::after { content: ""; position: absolute; inset: 77px; border: 1px solid #ffffff13; border-radius: inherit; }

/* A fixed-height slot prevents content shifts when the navbar contracts. */
.navbar-slot { position: sticky; top: 0; z-index: 30; height: 90px; pointer-events: none; }
.navbar-slot .topbar { position: relative; top: auto; pointer-events: auto; transition: height .3s var(--motion-ease), box-shadow .3s ease, background-color .3s ease; }
.navbar-slot .topbar.is-scrolled { height: 76px; background: #fffffff5; box-shadow: 0 7px 24px #19346412; }
.topbar .wordmark { transform-origin: left center; transition: transform .3s var(--motion-ease); }
.topbar.is-scrolled .wordmark { transform: scale(.95); }
.topbar nav { position: relative; }
.topbar nav a { transition: color .2s ease; }
.topbar nav a[aria-current="location"] { color: var(--blue); }
.topbar nav a[aria-current="location"]::after { opacity: 0; }
.nav-active-indicator { position: absolute; left: 0; bottom: 3px; width: var(--nav-indicator-width, 0px); height: 2px; border-radius: 2px; background: var(--blue); opacity: var(--nav-indicator-opacity, 0); transform: translateX(var(--nav-indicator-x, 0px)); transition: transform .32s var(--motion-ease), width .32s var(--motion-ease), opacity .2s ease; pointer-events: none; }
.nav-scroll-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #f4a137; transform: scaleX(var(--scroll-progress, 0)); transform-origin: left; pointer-events: none; }

/* A compact pause control accompanies the continuously animated banner. */
.banner-caption { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 15px; }
.banner-caption .scene-caption { margin: 0; }
.banner-motion-toggle { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #7c8fab; background: transparent; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.banner-motion-toggle[hidden] { display: none; }
.banner-motion-toggle .icon { width: 17px; height: 17px; }
.banner-motion-toggle:hover, .banner-motion-toggle:focus-visible { color: var(--blue); background: #eef3ff; }

/* Only the requested banner loops; other automatic entrances stay finite. */
@media (prefers-reduced-motion: no-preference) {
  .hero-composition.motion-start .scene-roles i::after { animation: role-flow 3.2s linear infinite; }
  .hero-composition.motion-start .scene-roles i:last-of-type::after { animation-delay: .55s; }
  .hero-composition.motion-start .scene-roles b { animation: role-pulse 3.2s ease-in-out infinite; }
  .hero-composition.motion-start .hero-device { animation: banner-float 5s ease-in-out infinite; }
  .hero-composition.motion-start .scene-status { animation: layer-card-enter .7s var(--motion-ease) both, banner-float 5.8s .7s ease-in-out infinite; }
  .app-tabs.motion-start button { animation: tab-arrive .55s var(--motion-ease) backwards; }
  .app-tabs.motion-start button:nth-child(2) { animation-delay: .08s; }
  .app-tabs.motion-start button:nth-child(3) { animation-delay: .16s; }
  .app-tabs.motion-start button:nth-child(4) { animation-delay: .24s; }
  .app-tabs.motion-start button:nth-child(5) { animation-delay: .32s; }
  .app-tabs button.active > small { animation: description-arrive .32s var(--motion-ease); }
  .app-tabs button.active > span .icon { animation: icon-select .4s var(--motion-ease); }
  .connection-card.motion-start .connection-dot { animation: connection-delivery 2.25s ease-in-out 2; }
  .connection-card.motion-start .bridge { animation: bridge-pulse 2.25s ease-in-out 2; }
  .connection-card.motion-start .who:first-child i { animation: connection-icon 2.25s ease-in-out 2; }
  .connection-card.motion-start .who:last-child i { animation: connection-icon 2.25s .35s ease-in-out 2; }
  .cta.motion-start .cta-phone { animation: cta-phone-float 2.2s ease-in-out 2; }
  .cta.motion-start .cta-rings { animation: cta-ripple 2.2s ease-in-out 2; }
  .motion-paused, .motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
}
@keyframes role-flow {
  0% { left: 0; opacity: 0; }
  8%, 90% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}
@keyframes banner-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes role-pulse { 0%, 100% { opacity: 1; } 42% { opacity: .65; } }
@keyframes tab-arrive { from { opacity: 0; translate: -12px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes description-arrive { from { opacity: 0; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@keyframes icon-select { 0% { scale: .88; } 60% { scale: 1.08; } 100% { scale: 1; } }
@keyframes connection-delivery {
  0%, 4% { opacity: 0; top: -22px; translate: 0 0; }
  10% { opacity: 1; }
  32% { top: calc(50% - 2px); translate: 0 0; opacity: 1; }
  48% { top: calc(50% - 2px); translate: var(--connector-travel) 0; opacity: 1; }
  55% { top: calc(50% - 2px); translate: var(--connector-travel) 0; opacity: 0; }
  56% { top: calc(50% - 2px); translate: 0 0; opacity: 0; }
  64% { opacity: 1; }
  88% { top: calc(100% + 16px); translate: 0 0; opacity: 1; }
  100% { top: calc(100% + 16px); translate: 0 0; opacity: 0; }
}
@keyframes bridge-pulse { 0%, 100% { box-shadow: 0 0 0 0 #334bc300; } 50% { box-shadow: 0 0 0 5px #334bc308; border-color: #b7c7ff; } }
@keyframes connection-icon { 0%, 100% { scale: 1; } 25% { scale: 1.055; } }
@keyframes cta-phone-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes cta-ripple { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.035; opacity: .55; } }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover [data-icon="arrowRight"] { transform: translateX(3px); }
  .button:hover [data-icon="arrowUpRight"] { transform: translate(2px, -2px); }
  .link [data-icon] { transition: transform .25s var(--motion-ease); }
  .link:hover [data-icon] { transform: translateX(4px); }
  .app-tabs button:not(.active):hover > i { transform: translateX(3px); }
  .app-tabs button.active:hover > i { transform: rotate(90deg) translateX(2px); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cta { padding-inline: 48px; }
  .cta h2 { font-size: 43px; }
  .cta .cta-phone { right: 8%; width: 210px; height: 455px; }
}
@media (max-width: 900px) {
  .navbar-slot { height: 76px; }
  .navbar-slot .topbar.is-scrolled { height: 66px; }
  .topbar.open nav { position: absolute; top: 100%; }
  .nav-active-indicator { display: none; }
  .topbar nav a[aria-current="location"]::after { opacity: 1; transform: scaleX(1); width: 30px; }
  .cta { padding: 50px 36px; min-height: 395px; }
  .cta-copy { width: 66%; }
  .cta h2 { font-size: clamp(31px, 4.7vw, 43px); }
  .cta .cta-phone { right: 6%; width: 188px; height: 408px; top: 74px; }
  .cta-rings { right: -155px; }
}
@media (max-width: 640px) {
  .app-tabs button { grid-template-columns: 34px minmax(0, 1fr) 20px; }
  .app-tabs button b { font-size: 15px; }
  .app-tabs button > i { width: 20px; }
  .privacy { max-width: 100%; padding-inline: 3px; }
  .bridge { --connector-x: -30px; --connector-travel: 29px; }
  .cta { display: block; min-height: 600px; padding: 38px 26px 280px; border-radius: 24px; }
  .cta-copy { width: 100%; }
  .cta-copy > p { font-size: 9px; letter-spacing: .1em; margin-bottom: 22px; }
  .cta h2 { font-size: clamp(28px, 8vw, 40px); margin-bottom: 20px; }
  .cta .cta-description { font-size: 14px; max-width: 265px; }
  .cta .button.white { min-height: 54px; font-size: 14px; padding: 15px 22px; margin-top: 25px; gap: 13px; }
  .cta .cta-phone { top: auto; bottom: -174px; right: calc(50% - 88px); width: 190px; height: 412px; }
  .cta-rings { top: auto; bottom: -278px; right: calc(50% - 280px); width: 560px; height: 560px; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-slot *, .navbar-slot *::after { transition: none !important; }
  [data-motion], [data-motion] *, [data-motion] *::before, [data-motion] *::after { animation: none !important; transition: none !important; }
}
