/* Responsive layout refinements: mobile, tablet, desktop, and UHD television. */

:root {
  --dira-loader-bg: #fff0f5;
  --dira-loader-ink: #5b1e72;
}

html, body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

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

input, button, textarea, select {
  max-width: 100%;
}

.container, .wrap, .exp-main, .app-main, .promo, .panel, .exp-panel {
  min-width: 0;
}

/* One portrait per marketing card; all text and actions remain accessible HTML. */

.promo {
  position: relative;
  isolation: isolate;
  align-items: stretch;
}

.promo .promo-portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  object-position: center bottom;
  align-self: end;
  mix-blend-mode: multiply;
}

.promo .promo-copy {
  position: relative;
  z-index: 1;
}

.promo .promo-copy .btn {
  white-space: normal;
  text-align: center;
}

.panel .panel-portrait {
  display: block;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
  align-self: end;
}

.panels .panel {
  min-width: 0;
}

.panels .panel-content {
  min-width: 0;
}

.exp-shell, .exp-duo, .exp-chat, .exp-panel, .exp-form,
.exp-request-list, .app-columns, .promo-grid {
  min-width: 0;
}

.exp-table, .app-table {
  max-width: 100%;
}

/* Blocking screen shown until images, styles, page scripts and fonts finish. */

html.dira-loading,
html.dira-loading body {
  overflow: hidden !important;
}

html.dira-loading body > :not(#dira-loader):not(script) {
  visibility: hidden !important;
}

#dira-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 21px;
  padding: 24px;
  background: var(--dira-loader-bg);
  color: var(--dira-loader-ink);
  transition: opacity 300ms ease, visibility 300ms ease;
}

#dira-loader .dira-loader-logo {
  display: block;
  width: clamp(150px, 22vw, 245px);
  height: clamp(150px, 22vw, 245px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

#dira-loader .dira-loader-text {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: .03em;
}

#dira-loader .dira-loader-track {
  width: min(380px, 85vw);
  height: 11px;
  border-radius: 50px;
  background: #f6d1e2;
  overflow: hidden;
}

#dira-loader .dira-loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #5b1e72, #f72f8b);
  border-radius: inherit;
  transition: width 110ms linear;
}

#dira-loader .dira-loader-percent {
  font: 700 14px/1.4 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

#dira-loader.dira-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .promo-grid, .panels {
    grid-template-columns: 1fr;
  }
  .promo {
    min-height: 290px;
  }
  .promo .promo-portrait {
    max-height: 320px;
  }
  .panel .panel-portrait {
    max-height: 320px;
  }
  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .container, .wrap {
    width: min(100% - 32px, 680px);
  }
  .hero, .promo-grid, .newsletter, .panels {
    min-width: 0;
  }
  .hero-actions .btn, .buttons .pill {
    max-width: 100%;
  }
  .promo-grid {
    gap: 20px;
  }
  .promo {
    grid-template-columns: minmax(110px, 39%) minmax(0, 1fr);
  }
  .promo .promo-copy {
    padding: 23px 13px;
  }
  .promo .promo-portrait {
    min-height: 250px;
    height: 100%;
  }
  .panel .panel-portrait {
    min-width: 0;
  }
  .exp-top, .exp-title-row, .exp-request-footer {
    flex-wrap: wrap;
  }
  .exp-chat {
    min-width: 0;
  }
  .exp-chat-room, .exp-chat-write {
    min-width: 0;
  }
  .exp-chat-write input {
    min-width: 0;
  }
  .exp-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .app-table {
    display: block;
    overflow-x: auto;
  }
  .exp-bottom a {
    min-width: 0;
  }
}

@media (max-width: 490px) {
  .topbar, .header {
    max-width: 100%;
  }
  .promo, .promo:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .promo .promo-portrait {
    order: 0;
    height: 240px;
    min-height: 0;
    width: 100%;
    object-fit: contain;
  }
  .promo .promo-copy {
    order: 1;
    padding: 18px 21px 25px;
  }
  .promo:nth-child(2) .promo-copy {
    order: 1;
  }
  .promo:nth-child(2) .promo-portrait {
    order: 0;
  }
  .panels .panel {
    display: flex;
    flex-direction: column;
  }
  .panels .panel-portrait {
    order: 0;
    height: 220px;
    object-fit: contain;
    width: 100%;
  }
  .panels .panel-content {
    order: 1;
  }
  .form-grid, .exp-form, .app-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .exp-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exp-pro {
    min-width: 0;
  }
}

@media (min-width: 2200px) {
  .container, .wrap {
    width: min(90vw, 2300px);
  }
  .promo {
    min-height: 540px;
  }
  .promo .promo-portrait {
    min-height: 500px;
  }
  .promo .promo-copy {
    padding: 60px 45px;
  }
  .promo h2, .panel h2 {
    font-size: clamp(32px, 2vw, 52px);
  }
  .promo p, .promo li, .panel p {
    font-size: clamp(18px, 1.15vw, 26px);
  }
  #dira-loader .dira-loader-track {
    width: 540px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dira-loader, #dira-loader .dira-loader-bar {
    transition: none;
  }
}

/* Keep decorative hero illumination inside the viewport. */
.hero::before {
  right: 0 !important;
  max-width: 55%;
}
.hero h1 {
  color: #42104f;
}
.promo:nth-child(2) .promo-copy[style] {
  padding-left: clamp(18px, 2vw, 26px) !important;
}
