/* Phone/tablet strip with the original adaptive height / fold fitting.
   No forced 16:9; pointer swiping and the existing scroll story own input. */
.proo-static-hero--three-card-stage {
  --formation-control-bg: #303033;
  --formation-control-border: #66666c;
  --formation-control-text: #f7f7f5;
  --formation-control-arrow: #c6c6cc;
}
.proo-static-hero--three-card-stage .proo-card-info { display: none; }

/* One stationary surface, deliberately no live clone, video or backdrop blur. */
.proo-service-dialog {
  --dialog-bg: #fdf9f9;
  --dialog-ink: #131314;
  --dialog-muted: #6c6c70;
  --dialog-line: #d8d5d3;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 34px 26px 24px;
  border: 0;
  outline: none;
  border-radius: 20px;
  background: var(--dialog-bg);
  color: var(--dialog-ink);
  font: 400 15px/1.5 "Google Sans", Arial, sans-serif;
  box-shadow: 0 20px 70px rgb(0 0 0 / .25);
}
.proo-service-dialog[data-hero-theme="dark"] {
  --dialog-bg: #202022;
  --dialog-ink: #f7f7f5;
  --dialog-muted: #a4a4a8;
  --dialog-line: #444448;
}
.proo-service-dialog::backdrop { background: rgb(0 0 0 / .72); }
.proo-service-dialog[open] { animation: proo-dialog-enter 180ms cubic-bezier(.22, 1, .36, 1); }
.proo-service-dialog .proo-service-dialog__eyebrow {
  margin: 0 44px 20px 0;
  font: 600 10px/1.3 "Google Sans", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dialog-muted);
}
.proo-service-dialog .proo-service-dialog__title {
  margin: 0 0 14px;
  color: inherit;
  font: 400 clamp(28px, 8vw, 36px)/1.1 "Junicode", Georgia, serif;
  letter-spacing: -.025em;
  -webkit-text-stroke: .65px currentColor;
  outline: none;
}
.proo-service-dialog[data-lang="el"] .proo-service-dialog__title {
  font-family: "Noto Serif", Georgia, serif;
  line-height: 1.3;
  -webkit-text-stroke: 1px currentColor;
}
.proo-service-dialog .proo-service-dialog__copy { margin: 0 0 26px; color: var(--dialog-muted); }
.proo-service-dialog .proo-service-dialog__links { border-top: 1px solid var(--dialog-line); }
.proo-service-dialog .proo-service-dialog__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 20px;
  border-bottom: 1px solid var(--dialog-line);
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.proo-service-dialog .proo-service-dialog__arrow { font-size: 21px; }
.proo-service-dialog button {
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}
.proo-service-dialog .proo-service-dialog__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 28px;
  font-weight: 300;
}
.proo-service-dialog .proo-service-dialog__stay {
  display: block;
  min-height: 44px;
  margin: 14px auto 0;
  padding: 8px 18px;
  color: var(--dialog-muted);
}
.proo-service-dialog :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.proo-service-dialog :is(a, button):active { opacity: .65; }
@keyframes proo-dialog-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .proo-service-dialog[open] { animation: none; } }

@media (min-width: 1024px) {
  .proo-static-hero--three-card-stage .proo-service-ring__action--formation {
    border-radius: 999px;
  }
  .proo-static-hero--three-card-stage .proo-service-ring__action--formation.is-proo-ring-action-active:hover {
    background: rgb(255 255 255 / .06);
  }
  .proo-static-hero--three-card-stage .proo-service-ring__action--formation.is-proo-ring-action-active:focus-visible {
    outline: 2px solid #f7f7f5;
    outline-offset: 3px;
  }
}

@media (max-width: 1023px) {
  /* The small marks return below the cards. Keep the original 46.25px
     fold budget and adaptive card-height owner; only their hit row is 32px. */
  .proo-static-hero--three-card-stage .proo-static-hero__subtitle {
    margin-top: calc(.4875rem * .95) !important;
  }
  .proo-static-hero--three-card-stage .proo-static-hero__join {
    --mobile-cta-unit: calc(var(--hero-title-size) * .95);
    min-width: calc(var(--mobile-cta-unit) * 2.72);
    min-height: calc(var(--mobile-cta-unit) * 1.1346);
    margin-top: calc(var(--mobile-cta-unit) * .352);
    padding-inline-start: calc(var(--mobile-cta-unit) * .476);
    padding-inline-end: calc(var(--mobile-cta-unit) * .508);
    font-size: calc(var(--mobile-cta-unit) * .426126);
  }

  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-tabs {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: 32px !important;
    margin: calc((2 * var(--flat-tab-balanced-gap) + var(--flat-tab-indicator-height) - 32px) / 2) auto !important;
    transform: none !important;
  }

  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-dots {
    height: 32px !important;
    gap: 0 !important;
  }

  /* A 5px painted dot / 13px active pill, with separate 24 x 32px hit areas.
     Fixed hit boxes keep the control still while its active mark changes. */
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-dot[aria-current="true"],
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-dot {
    position: relative;
    width: 24px !important;
    height: 32px !important;
    background: transparent !important;
    overflow: visible;
    transition: none !important;
  }
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-dot::before {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 99px;
    background: #48484d;
    transition: width 180ms ease, background-color 180ms ease;
  }
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__section4-dot[aria-current="true"]::before {
    width: 13px;
    background: #9a9aa0;
  }
  html[data-hero-theme="light"] .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs
  .proo-static-hero__section4-dot::before { background: #ceccca; }
  html[data-hero-theme="light"] .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs
  .proo-static-hero__section4-dot[aria-current="true"]::before { background: #696766; }
  .proo-static-hero--three-card-stage .proo-static-hero__section4-dot:focus-visible {
    outline: 2px solid var(--hero-text);
    outline-offset: -2px;
  }
  @media (prefers-reduced-motion: reduce) {
    .proo-static-hero--three-card-stage .proo-static-hero__section4-dot::before { transition: none !important; }
  }

  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted) {
    --mobile-card-side-gap: 0px !important;
    --mobile-card-width: var(--proo-phone-card-width, 100vw) !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards {
    gap: 0 !important;
    overflow-anchor: none;
    touch-action: pan-y pinch-zoom !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards > .proo-static-hero__slide > .proo-static-hero__card {
    /* One pixel of artwork bleed covers fractional compositor edge sampling.
       Slide pitch stays exact; the rail clips bleed at the viewport boundary. */
    width: calc(100% + 1px) !important;
    max-width: none !important;
    justify-self: start !important;
    border-radius: 0 !important;
    touch-action: pan-y pinch-zoom !important;
  }
  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards > .proo-static-hero__slide {
    flex: 0 0 var(--proo-phone-card-width, 100%) !important;
    width: var(--proo-phone-card-width, 100%) !important;
    max-width: none !important;
    margin-inline: 0 !important;
    overflow: visible !important;
  }

  /* Native cards carry only their artwork and title. Service destinations
     move to an on-demand dialog; nothing tracks a moving button overlay. */
  .proo-static-hero--three-card-stage.has-mobile-card-chooser[data-lang]
  :is(.proo-static-hero__card-action, .proo-static-hero__formation-actions) {
    display: none !important;
  }
  .proo-static-hero--three-card-stage.has-mobile-card-chooser[data-lang]:not(.is-proo-mobile-ring-mounted)
  :is(.proo-static-hero__card-title, .proo-static-hero__mobile-software-label) {
    --mobile-service-title-size: clamp(24px, 6.5vw, 36px);
    right: var(--mobile-service-title-inset) !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
  }
  .proo-static-hero--three-card-stage .proo-static-hero__card[role="button"] {
    cursor: pointer;
  }
  .proo-static-hero--three-card-stage.has-mobile-card-chooser[data-lang]:not(.is-proo-mobile-ring-mounted)
  :is(.proo-static-hero__card--software, .proo-static-hero__card--formation) .proo-static-hero__card-title {
    right: calc(var(--mobile-service-title-inset) + 52px) !important;
  }
  .proo-static-hero--three-card-stage.has-mobile-card-chooser .proo-card-info {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: var(--mobile-service-title-inset);
    bottom: var(--mobile-service-title-inset);
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 0 2px;
    border: 1px solid rgb(247 247 245 / .55);
    border-radius: 50%;
    background: #303033;
    color: #f7f7f5;
    font: 400 20px/1 "Noto Serif", Georgia, serif;
    font-synthesis: none;
    -webkit-text-stroke: 1.5px currentColor;
    z-index: 5;
    pointer-events: none;
  }
  .proo-static-hero--three-card-stage .proo-static-hero__card[role="button"]:focus-visible {
    outline: 2px solid #f7f7f5;
    outline-offset: -5px;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  :is(
    .proo-static-hero__responsive-mark,
    .proo-static-hero__builder-video,
    .proo-static-hero__card-media,
    .proo-static-hero__software-bg,
    .proo-static-hero__formation-bg,
    .proo-static-hero__hands,
    .proo-static-hero__globe
  ) {
    border-radius: 0 !important;
  }

  /* Keep controls inside the card surface. No page-colored corner cutout. */
  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-action {
    right: var(--mobile-service-title-inset) !important;
    bottom: var(--mobile-service-title-inset) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-action::before,
  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-action::after {
    content: none !important;
    display: none !important;
    box-shadow: none !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-action-circle {
    width: 48px !important;
    height: 48px !important;
    background: #f7f7f5 !important;
    color: #131314 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-action svg {
    width: 22px !important;
    height: 22px !important;
  }

  .proo-static-hero--three-card-stage[data-lang]:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--software .proo-static-hero__card-title {
    right: calc(var(--mobile-service-title-inset) + 48px + 12px) !important;
    max-width: none !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__formation-actions {
    left: auto !important;
    right: var(--mobile-service-title-inset) !important;
    bottom: var(--mobile-service-title-inset) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: max-content !important;
    max-width: calc(100% - 2 * var(--mobile-service-title-inset)) !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__formation-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    height: 44px !important;
    padding: 0 12px 0 16px !important;
    border-radius: 999px !important;
    border: 1px solid var(--formation-control-border) !important;
    background: var(--formation-control-bg) !important;
    color: var(--formation-control-text) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__formation-action-label {
    font-family: "Google Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    opacity: 1 !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__formation-action .proo-static-hero__card-action-circle {
    width: 14px !important;
    height: 14px !important;
    background: transparent !important;
    color: var(--formation-control-arrow) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__formation-action svg {
    width: 14px !important;
    height: 14px !important;
    transform: rotate(-45deg);
  }

  .proo-static-hero--three-card-stage[data-lang]:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__card--formation .proo-static-hero__card-title {
    right: calc(var(--mobile-service-title-inset) + var(--proo-formation-pill-width, 116px) + 12px) !important;
    width: auto !important;
    max-width: none !important;
  }

  /* One footer datum for every card/language. Font ink is aligned by the
     small label fitter; no per-card or per-language bottom offsets. */
  .proo-static-hero--three-card-stage[data-lang]:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__slide:first-child .proo-static-hero__mobile-software-label,
  .proo-static-hero--three-card-stage[data-lang]:not(.is-proo-mobile-ring-mounted)
  :is(.proo-static-hero__card--software, .proo-static-hero__card--formation)
  .proo-static-hero__card-title {
    bottom: var(--mobile-service-title-inset) !important;
    height: 26px !important;
    min-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
    font-size: var(--proo-card-label-size, var(--mobile-service-title-size)) !important;
    line-height: 1 !important;
  }

  .proo-static-hero--three-card-stage[data-lang]:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__slide:first-child
  .proo-static-hero__mobile-software-label > span {
    top: 0 !important;
  }

  .proo-static-hero--three-card-stage .proo-card-label-ink {
    position: relative;
    display: inline-block !important;
    flex: 0 0 auto;
    width: max-content;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: translateY(var(--proo-label-y, 0px)) !important;
  }

  .proo-static-hero--three-card-stage .proo-card-label-baseline {
    display: inline-block;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    vertical-align: baseline;
    visibility: hidden;
  }

  /* The video uses the same fitted ink/bottom inset as both service titles.
     Hide only its old mobile cue; the desktop Scroll label is independent. */
  .proo-static-hero.proo-static-hero--three-card-stage[data-lang] .proo-static-hero__card
  .proo-static-hero__mobile-software-label > svg {
    display: none !important;
  }

  .proo-static-hero--three-card-stage[data-lang="en"]
  .proo-static-hero__mobile-software-label {
    -webkit-text-stroke: .65px currentColor !important;
    text-stroke: .65px currentColor !important;
  }

  .proo-static-hero--three-card-stage[data-lang="el"]
  .proo-static-hero__mobile-software-label {
    -webkit-text-stroke: 1px currentColor !important;
    text-stroke: 1px currentColor !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  :is(.proo-static-hero__card-action, .proo-static-hero__formation-action):focus-visible {
    outline: 2px solid #f7f7f5 !important;
    outline-offset: 4px !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  :is(.proo-static-hero__card-action, .proo-static-hero__formation-action):active {
    transform: scale(.96);
  }

  @media (hover: hover) {
    .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
    .proo-static-hero__card--software .proo-static-hero__card-action:hover .proo-static-hero__card-action-circle {
      background: #e5e5e2 !important;
    }
    .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
    .proo-static-hero__formation-action:hover {
      background: #3b3b40 !important;
      border-color: #8e8e94 !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
    :is(.proo-static-hero__card-action, .proo-static-hero__formation-action) {
      transition: none !important;
      transform: none !important;
    }
  }
}

/* Selected A: phone cards run edge-to-edge with square corners.
   Keep exact slide clipping, the existing pitch and animation owner. */
@media (max-width: 600px) {
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted) {
    --proo-mobile-card-gutter: 0px;
    --mobile-card-width: calc(var(--proo-phone-card-width, 100vw) - 2 * var(--proo-mobile-card-gutter)) !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    border-radius: 0 !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards > .proo-static-hero__slide {
    box-sizing: border-box;
    padding-inline: var(--proo-mobile-card-gutter) !important;
    /* Clip artwork to its moving slide, never to a stationary inset frame. */
    overflow: hidden !important;
    border-radius: 0 !important;
  }

  .proo-static-hero--three-card-stage:not(.is-proo-mobile-ring-mounted)
  .proo-static-hero__cards > .proo-static-hero__slide > .proo-static-hero__card {
    width: 100% !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 580px) {
  .proo-static-hero--three-card-stage.proo-static-hero--section4-mobile-tabs:not(.is-proo-mobile-ring-mounted) {
    --proo-mobile-card-gutter: 0px;
  }
}
