/* Hero photos, phone layout and Alice on small screens. */
.flexago-logo { display: inline-flex; flex: none; flex-direction: column; align-items: center; gap: 1px; line-height: 1; }
.flexago-logo-img { height: 34px !important; width: auto; display: block; }
.flexago-wordmark { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hero-slides { position: absolute; inset: 0; z-index: 1; background: #0f1115; }
.hero-slides video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slides:not(.is-running) video:first-child, .hero-slides video.is-on { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }

/* Delivery steps under the hero buttons. Each lights up with its clip. */
.hero.hero-flow { height: auto; min-height: 70vh; padding-bottom: 28px; }
.hero-steps { counter-reset: hero-step; display: flex; justify-content: center; gap: 10px; max-width: 900px; margin: 28px auto 0; padding: 0 16px; list-style: none; }
.hero-steps li { counter-increment: hero-step; position: relative; isolation: isolate; flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 12px; overflow: hidden; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.25; text-align: left; }
.hero-steps li::before { content: counter(hero-step); flex: none; position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #0a4dff; font-size: .8rem; font-weight: 700; line-height: 22px; text-align: center; }
.hero-steps li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #0a4dff; opacity: 0; transition: opacity .6s ease; }
.hero-steps li.is-on::after { opacity: 1; }

/* The About story has several short paragraphs, so the section grows to fit. */
.hero.about-section { height: auto; min-height: 430px; padding-bottom: 48px; background-color: #0f1115; }
.about-section .hero-content p { max-width: 720px; margin-left: auto; margin-right: auto; }
.about-section .hero-content p + p { margin-top: 14px; }

.contact-email { display: inline-flex; align-items: center; min-height: 44px; color: #0a4dff; font-weight: 700; }

/* Always readable: a solid button that doesn't depend on the photo behind it. */
.hero-buttons .btn-secondary,
.hero-buttons .btn-secondary:link,
.hero-buttons .btn-secondary:visited,
.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus,
.hero-buttons .btn-secondary:active {
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 2px solid #fff;
  opacity: 1;
  visibility: visible;
}
.hero-buttons .btn-secondary:hover { background: rgba(0, 0, 0, .8); }

.section-photo { display: block; width: 100%; max-width: 900px; height: 340px; margin: 0 auto 32px; border-radius: 16px; object-fit: cover; object-position: center 30%; }

@media (max-width: 768px) {
  html, body { overflow-x: clip; }

  .top-nav { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .top-nav-title-sub { display: none; }
  .top-nav-right { flex-wrap: wrap; justify-content: center; gap: 4px 12px; width: 100%; }
  .top-nav-right::after { content: ""; flex-basis: 100%; order: 2; }
  .lang-select, .login-btn, .signup-btn { order: 1; }
  .top-nav-link { order: 3; font-size: .8rem; }
  .top-nav-link, .login-btn, .signup-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .lang-select { min-height: 40px; font-size: 16px; }

  .hero { height: auto; min-height: 78vh; padding: 0 20px; }
  .hero-content { padding: 22vh 0 48px; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons a, .btn-primary, .btn-secondary { min-height: 48px; }
  .hero-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding: 0; }
  .hero-steps li { font-size: .85rem; }
  .hero.hero-flow { min-height: 78vh; padding: 0 20px 24px; }
  .hero-flow .hero-content { padding-bottom: 0; }

  .hero.about-section { min-height: 0; height: auto; padding-bottom: 8px; }
  .about-section .hero-content { height: auto; padding: 40px 0; }

  .uber-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .uber-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
  .cta-section .btn-secondary, .cta-section a + a { border-color: #fff; }

  .section-photo { height: 220px; margin-bottom: 20px; }
  .step-img { height: 230px; }
  .uber-footer-row { flex-wrap: wrap; gap: 8px 16px; }
}

@media (max-width: 480px) {
  /* A round button covers far less of the page on a phone. */
  #alice-bubble { width: 56px; height: 56px; padding: 0 !important; justify-content: center; border-radius: 50%; }
  #alice-bubble-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  #alice-widget { right: 12px !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
  #alice-window { width: calc(100vw - 24px) !important; max-height: 78dvh !important; }
  #alice-input { font-size: 16px !important; }
}
