/*
 * ALZA responsive layer
 * Mobile-first layout rules loaded after master.css.
 * Breakpoints: 40rem / 640px, 48rem / 768px, 64rem / 1024px,
 * 80rem / 1280px, 100rem / 1600px.
 */

:root {
  --header: 72px;
  --max: 1440px;
  --page-gutter: 16px;
  --section-space: clamp(64px, 9vw, 112px);
}

html {
  min-width: 320px;
  overflow-x: clip;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

main,
section,
header,
footer,
article,
figure,
form,
nav,
div {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.container,
.narrow {
  width: min(calc(100% - (2 * var(--page-gutter))), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.section {
  padding-block: var(--section-space);
}

.section-sm {
  padding-block: clamp(48px, 7vw, 76px);
}

h1 {
  font-size: clamp(2.35rem, 12vw, 3.7rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.85rem, 8vw, 3rem);
  overflow-wrap: anywhere;
}

h3,
h4,
p,
li,
dd,
dt,
a,
button,
label,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.lead {
  font-size: clamp(1rem, 3.8vw, 1.15rem);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.actions .btn {
  width: 100%;
}

.btn,
.nav-toggle,
.app-tab,
.tab-button,
.faq-question {
  min-height: 44px;
}

/* Header and mobile navigation */
.site-header {
  height: var(--header);
}

.contact-bar {
  display: none;
}

.nav-wrap {
  height: var(--header);
  gap: 12px;
}

.brand {
  min-width: 0;
  max-width: calc(100% - 58px);
  flex: 1 1 auto;
  gap: 9px;
}

.brand-logo {
  width: 46px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-copy span {
  display: block;
  max-width: 210px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  display: none;
}

.nav-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-content: center;
}

.desktop-nav {
  position: fixed;
  inset: var(--header) 0 0;
  z-index: 95;
  display: none;
  align-content: start;
  gap: 0;
  padding: 18px var(--page-gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(2, 12, 29, 0.985);
  border-top: 1px solid rgba(111, 176, 239, 0.18);
  -webkit-overflow-scrolling: touch;
}

.desktop-nav.open {
  display: grid;
}

.desktop-nav a,
.desktop-nav .btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(111, 176, 239, 0.14);
  font-size: 1rem;
}

.desktop-nav a::after {
  display: none !important;
}

.desktop-nav .btn {
  justify-content: center;
  margin-top: 16px;
  border-bottom: 0;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Home hero */
.page-index .hero.hero-branded {
  min-height: 0;
  padding-bottom: 180px;
  background:
    linear-gradient(180deg, #020a18 0%, rgba(2, 10, 24, 0.98) 55%, rgba(2, 10, 24, 0.72) 77%, rgba(2, 10, 24, 0.2) 100%),
    url("../img/hero-cloud-migration-v21.webp") center bottom / 100% auto no-repeat,
    #020a18;
}

.page-index .hero.hero-branded .hero-grid {
  min-height: 0;
  display: block;
}

.page-index .hero.hero-branded .hero-copy {
  max-width: 720px;
  padding: 54px 0 24px;
}

.page-index .hero.hero-branded h1 {
  max-width: 100%;
  font-size: clamp(2.4rem, 12vw, 3.8rem);
}

.page-index .hero.hero-branded .lead {
  max-width: 100%;
}

.page-index .proof-strip-shell {
  margin-top: 0;
}

.proof-strip {
  border-radius: 18px;
  overflow: hidden;
}

.proof-grid {
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 0;
}

.proof-grid > div {
  padding: 17px 16px;
  border-right: 0;
  border-bottom: 1px solid rgba(110, 172, 233, 0.16);
}

.proof-grid > div:last-child {
  border-bottom: 0;
}

/* Generic responsive grids */
.heading-row,
.two-col,
.tabs,
.contact-hero-grid,
.solutions-hero-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.heading-row {
  margin-bottom: 34px;
}

.cards,
.resource-grid,
.use-case-grid,
.pricing-grid,
.pricing-value-grid,
.plan-grid,
.license-control-grid,
.signal-grid,
.feature-grid,
.field-grid,
.process,
.footer-grid {
  grid-template-columns: 1fr;
}

.cards,
.resource-grid,
.use-case-grid,
.pricing-grid,
.pricing-value-grid,
.plan-grid,
.license-control-grid,
.signal-grid,
.feature-grid,
.process {
  gap: 18px;
}

.card,
.resource-card,
.use-case,
.form-card,
.glass-panel,
.tab-panel,
.cutover-stage,
.plan-card,
.price-card {
  padding: 24px;
}

.card,
.resource-card,
.use-case,
.plan-card,
.price-card {
  min-width: 0;
}

.service-six {
  grid-template-columns: 1fr;
}

.two-col-start {
  align-items: stretch;
}

/* Tabs */
.tabs {
  display: grid;
}

.tab-list,
.app-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab-button,
.app-tab {
  min-width: max-content;
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}

.tab-panel {
  min-height: 0;
}

/* Architecture and flows */
.architecture-layout {
  grid-template-columns: 1fr;
}

.architecture-diagram-figure,
.solutions-hero-media,
.contact-hero-media {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.architecture-diagram-image,
.solutions-hero-media img,
.contact-hero-media img {
  width: 100%;
  object-fit: contain;
}

.data-path,
.cutover-flow {
  grid-template-columns: 1fr;
}

.flow-arrow,
.cutover-connector {
  transform: rotate(90deg);
  text-align: center;
}

.boundary-diagram {
  min-height: 0;
  padding: 58px 18px 20px;
}

.cutover-stage {
  min-height: 0;
}

/* Page heroes */
.page-hero,
.page-hero.cloud-page-hero {
  min-height: 0;
  padding: 64px 0 56px;
}

.page-hero.cloud-page-hero::before {
  inset: 38% -10% 0 0;
  background-position: right bottom !important;
  background-size: contain !important;
  opacity: 0.4;
}

.page-hero.cloud-page-hero::after {
  background: linear-gradient(180deg, #031026 0%, rgba(3, 16, 38, 0.95) 58%, rgba(3, 16, 38, 0.55) 100%) !important;
}

.page-hero h1,
.page-hero.cloud-page-hero h1 {
  max-width: 100%;
  font-size: clamp(2.35rem, 11vw, 3.6rem);
}

.page-hero .lead,
.page-hero.cloud-page-hero .lead {
  max-width: 100%;
}

.solutions-hero-media,
.contact-hero-media {
  border-radius: 20px;
}

.solutions-hero-media figcaption,
.contact-hero-media figcaption {
  padding: 12px 14px;
}

/* Pricing */
.pricing-section-head {
  margin-bottom: 30px;
  text-align: left;
}

.plan-card {
  padding: 24px 20px 20px;
}

.plan-card h3 {
  min-height: 0;
}

.plan-price strong {
  font-size: clamp(1.9rem, 8vw, 2.35rem);
}

.plan-facts {
  margin-block: 18px;
}

.pricing-disclaimer {
  display: block;
  padding: 14px 16px;
  text-align: left;
}

body.page-pricing .pricing-hero {
  min-height: 360px;
}

body.page-pricing .pricing-hero::before {
  inset: 40% -10% 0 0;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.62;
}

.live-rays-overlay .ray-1,
.live-rays-overlay .ray-2,
.live-rays-overlay .ray-3,
.live-rays-overlay .ray-4 {
  width: 70vw;
  min-width: 210px;
  right: 4%;
}

/* FAQ */
.faq {
  padding: 10px;
  border-radius: 20px;
}

.faq-item {
  border-radius: 15px;
}

.faq-question {
  padding: 18px 16px;
  font-size: 0.98rem;
}

.faq-answer {
  padding: 0 16px 18px;
}

/* Forms and modals */
.field-full {
  grid-column: auto;
}

.form-card {
  width: 100%;
}

input,
select,
textarea {
  min-height: 46px;
  font-size: 16px;
}

textarea {
  min-height: 132px;
}

.modal {
  align-items: end;
  padding: 0;
}

.modal-dialog {
  width: 100%;
  max-height: min(92dvh, 760px);
  padding: 28px 18px 22px;
  border-radius: 22px 22px 0 0;
}

.consent-banner {
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: auto;
  flex-direction: column;
  align-items: stretch;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Tables and long-form content */
.prose,
.article-header,
.article {
  min-width: 0;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.prose pre,
.prose code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.release-meta {
  grid-template-columns: 1fr;
}

/* CTA and footer */
.cta-band {
  padding: 36px 22px;
  border-radius: 22px;
}

.footer-grid {
  gap: 32px;
}

.footer-brand .brand {
  max-width: 100%;
}

.footer-bottom {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.site-footer {
  margin-inline: 8px;
  padding: 42px 0 22px;
  border-radius: 24px;
}

.whatsapp-chat {
  right: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 16px;
}

.whatsapp-chat img,
.whatsapp-icon {
  width: 27px;
  height: 27px;
}

/* Small tablets */
@media (min-width: 40rem) {
  :root {
    --page-gutter: 24px;
  }

  .actions {
    display: flex;
    width: auto;
  }

  .actions .btn {
    width: auto;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid > div:nth-child(odd) {
    border-right: 1px solid rgba(110, 172, 233, 0.16);
  }

  .cards,
  .resource-grid,
  .use-case-grid,
  .pricing-value-grid,
  .signal-grid,
  .feature-grid,
  .field-grid,
  .process,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .plan-grid,
  .license-control-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal {
    place-items: center;
    padding: 20px;
  }

  .modal-dialog {
    width: min(100%, 590px);
    padding: 34px;
    border-radius: 22px;
  }

  .site-footer {
    margin-inline: 14px;
  }
}

/* Tablets */
@media (min-width: 48rem) {
  :root {
    --page-gutter: 32px;
  }

  h1 {
    font-size: clamp(3rem, 7vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.25rem, 5vw, 3.35rem);
  }

  .brand-logo {
    width: 52px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 1.3rem;
  }

  .brand-copy span {
    max-width: none;
    font-size: 0.64rem;
  }

  .page-index .hero.hero-branded {
    padding-bottom: 290px;
  }

  .page-index .hero.hero-branded .hero-copy {
    padding-top: 70px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-grid > div {
    border-right: 1px solid rgba(110, 172, 233, 0.16);
  }

  .proof-grid > div:nth-child(3n) {
    border-right: 0;
  }

  .service-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .app-tab {
    min-width: 0;
    white-space: normal;
  }

  .cta-band {
    padding: 52px 42px;
  }
}

/* Wide tablets and compact laptops */
@media (min-width: 60rem) {
  .cards,
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Laptops: switch to desktop navigation */
@media (min-width: 72rem) {
  :root {
    --header: 118px;
    --page-gutter: 36px;
  }

  .site-header {
    height: var(--header);
  }

  .contact-bar {
    display: block;
    height: 38px;
  }

  .contact-bar-inner {
    gap: clamp(12px, 1.5vw, 26px);
    font-size: clamp(0.66rem, 0.8vw, 0.75rem);
  }

  .nav-wrap {
    height: 80px;
  }

  .brand {
    max-width: none;
    min-width: 235px;
    flex: 0 1 auto;
  }

  .brand-logo {
    width: 62px;
    height: 54px;
  }

  .brand-copy strong {
    font-size: 1.48rem;
  }

  .brand-copy span {
    font-size: 0.67rem;
  }

  .brand-copy small {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .desktop-nav,
  .desktop-nav.open {
    position: static;
    inset: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 22px);
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .desktop-nav a,
  .desktop-nav .btn {
    width: auto;
    min-height: 42px;
    padding: 0;
    border: 0;
    font-size: clamp(0.76rem, 0.9vw, 0.9rem);
    white-space: nowrap;
  }

  .desktop-nav a:not(.btn)::after {
    display: block !important;
  }

  .desktop-nav .btn {
    margin-top: 0;
    padding-inline: 16px;
  }

  body.menu-open {
    overflow: auto;
    touch-action: auto;
  }

  .page-index .hero.hero-branded {
    min-height: 820px;
    padding-bottom: 42px;
    background:
      linear-gradient(90deg, #020a18 0%, rgba(2, 10, 24, 0.98) 26%, rgba(2, 10, 24, 0.76) 47%, rgba(2, 10, 24, 0.18) 69%, rgba(2, 10, 24, 0.04) 100%),
      url("../img/hero-cloud-migration-v21.webp") center center / contain no-repeat,
      #020a18;
  }

  .page-index .hero.hero-branded .hero-grid {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 700px);
    align-items: center;
  }

  .page-index .hero.hero-branded .hero-copy {
    padding: 72px 0 44px;
  }

  .page-index .hero.hero-branded h1 {
    font-size: clamp(3.7rem, 5.3vw, 5.45rem);
  }

  .proof-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .proof-grid > div,
  .proof-grid > div:nth-child(3n) {
    border-right: 1px solid rgba(110, 172, 233, 0.16);
    border-bottom: 0;
  }

  .proof-grid > div:last-child {
    border-right: 0;
  }

  .heading-row {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: clamp(44px, 6vw, 80px);
  }

  .two-col,
  .contact-hero-grid,
  .solutions-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: clamp(38px, 5vw, 70px);
  }

  .tabs {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 36px;
  }

  .tab-list {
    display: grid;
    overflow: visible;
  }

  .tab-button {
    min-width: 0;
    white-space: normal;
  }

  .cards,
  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .use-case-grid,
  .pricing-value-grid,
  .signal-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process,
  .license-control-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .data-path {
    grid-template-columns: 1fr auto 1.15fr auto 1fr;
  }

  .cutover-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .flow-arrow,
  .cutover-connector {
    transform: none;
  }

  .page-hero,
  .page-hero.cloud-page-hero {
    padding: 96px 0 82px;
  }

  .page-hero.cloud-page-hero::before {
    inset: 0 0 0 45%;
    background-position: center right !important;
    background-size: cover !important;
    opacity: 0.5;
  }

  .page-hero.cloud-page-hero::after {
    background: linear-gradient(90deg, #031026 0%, #031026 32%, rgba(3, 16, 38, 0.78) 58%, rgba(3, 16, 38, 0.18) 100%), linear-gradient(0deg, #041329 0%, transparent 45%) !important;
  }

  .pricing-section-head {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1.45fr 1.05fr 0.8fr 0.9fr;
    gap: clamp(28px, 4vw, 48px);
  }

  .footer-bottom {
    display: flex;
  }

  .site-footer {
    margin-inline: 18px;
  }
}

/* Large laptops and desktops */
@media (min-width: 80rem) {
  :root {
    --page-gutter: 48px;
  }

  .plan-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .desktop-nav {
    gap: clamp(16px, 1.35vw, 24px);
  }

  .desktop-nav a,
  .desktop-nav .btn {
    font-size: 0.9rem;
  }
}

/* Ultra-wide displays: limit line lengths while retaining generous canvas */
@media (min-width: 100rem) {
  :root {
    --max: 1520px;
  }

  .page-index .hero.hero-branded {
    background-size: min(100%, 1920px) auto;
  }

  .page-index .hero.hero-branded .hero-copy {
    max-width: 720px;
  }
}

@media (orientation: landscape) and (max-height: 34rem) and (max-width: 72rem) {
  .desktop-nav {
    padding-top: 8px;
  }

  .desktop-nav a,
  .desktop-nav .btn {
    min-height: 44px;
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav,
  .nav-toggle,
  .nav-toggle::before,
  .nav-toggle::after,
  .nav-toggle span {
    transition: none !important;
  }
}


/* ===== BUILD 32: FULL WEBP VISIBILITY + STABLE BRAND ICON ===== */
/* Content images always retain their complete intrinsic frame. */
img[src$=".webp"] {
  max-width: 100%;
  height: auto;
}
.architecture-diagram-image,
.solutions-hero-media img,
.contact-hero-media img,
.media-banner img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}
.architecture-diagram-figure,
.solutions-hero-media,
.contact-hero-media,
.media-banner {
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
}

/* Generic inner-page artwork: never crop animated WebP frames. */
.page-hero.cloud-page-hero::before {
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: right center !important;
}

/* Homepage full artwork. */
.page-index .hero.hero-branded {
  background-size: auto, contain, auto !important;
  background-position: center, center center, center !important;
  background-repeat: no-repeat !important;
}

/* Pricing artwork must remain complete at tablet widths too. */
body.page-pricing .pricing-hero::before {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
}

@media (max-width: 767px) {
  /* Reserve a dedicated lower visual area on phones, avoiding text overlap. */
  .page-hero.cloud-page-hero:not(.contact-hero):not(.pricing-hero) {
    padding-bottom: clamp(190px, 53vw, 330px) !important;
  }
  .page-hero.cloud-page-hero:not(.contact-hero):not(.pricing-hero)::before {
    inset: auto 0 0 0 !important;
    height: clamp(180px, 50vw, 310px);
    background-size: contain !important;
    background-position: center bottom !important;
    opacity: .48;
  }
  .page-index .hero.hero-branded {
    background-size: auto, 100% auto, auto !important;
    background-position: center, center bottom, center !important;
  }
  body.page-pricing .pricing-hero::before {
    inset: auto 0 0 0 !important;
    height: clamp(170px, 48vw, 300px);
    background-size: contain !important;
    background-position: center bottom !important;
  }
}

@media (min-width: 768px) and (max-width: 1151px) {
  .page-hero.cloud-page-hero::before {
    inset: 12% 0 0 34% !important;
    background-size: contain !important;
  }
  body.page-pricing .pricing-hero::before {
    inset: 8% 0 0 34% !important;
    background-size: contain !important;
  }
}

@media (min-width: 1152px) {
  .page-hero.cloud-page-hero::before {
    inset: 0 max(18px, calc((100vw - var(--max)) / 2)) 0 43% !important;
    background-size: contain !important;
  }
  body.page-pricing .pricing-hero::before {
    inset: 0 max(18px, calc((100vw - var(--max)) / 2)) 0 40% !important;
    background-size: contain !important;
  }
}
