/* ==========================================================================
   AEROSOL IO — Shared Product Landing Page Extensions
   Builds on css/modern-ui.css & css/gaia-sense.css
   Preserves exact #FFFFFF background and #37635D / #2d3d4c brand palette
   ========================================================================== */

/* Light-background Hero Visual Stage (for white-bg product diagrams & illustrations) */
.pp-hero-stage-light {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-hero-stage-light img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.pp-hero-stage-full {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.pp-hero-stage-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Preview + Live Demo Split */
.pp-preview-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: stretch;
}

.pp-video-frame {
  background-color: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pp-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background-color: #162229;
}

.pp-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pp-demo-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.pp-demo-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.pp-demo-card > div > p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.pp-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-person-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--bg-page);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

.pp-person-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--brand);
}

.pp-person-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pp-person-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.pp-person-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

/* Split Feature Showcase */
.pp-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.pp-split-media {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  overflow: hidden;
}

.pp-split-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.45s var(--ease);
}

.pp-split-media:hover img {
  transform: scale(1.025);
}

/* Clean Checklist */
.pp-checklist {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-body);
}

.pp-checklist li i {
  color: var(--brand);
  margin-top: 4px;
  font-size: 15px;
  flex-shrink: 0;
}

/* Capability Pills */
.pp-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.pp-pill i {
  color: var(--brand);
}

/* 2-Column Illustrated Cards (E-Tollfree Advantages & Dual Highlights) */
.pp-illust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pp-illust-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s var(--ease);
}

.pp-illust-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.pp-illust-media {
  padding: 24px 24px 12px;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  cursor: zoom-in;
}

.pp-illust-media img {
  max-height: 196px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.pp-illust-card:hover .pp-illust-media img {
  transform: scale(1.04);
}

.pp-illust-body {
  padding: 26px 28px 28px;
  flex: 1;
}

.pp-illust-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.pp-illust-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.pp-illust-body p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-body);
  margin: 0;
}

/* Custom Icon Image inside Module Cards (e.g., E-Tollfree Features) */
.pp-img-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.pp-img-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Dual Visual Showcase (E-Quarry Solution & Benefits) */
.pp-dual-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pp-visual-tile {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.pp-visual-tile:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
}

.pp-visual-tile img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Hardware Integration 5-Column Grid (E-Quarry) */
.pp-hardware-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.pp-hardware-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pp-hardware-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.pp-hardware-card img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.pp-hardware-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .pp-preview-grid,
  .pp-split-grid,
  .pp-illust-grid,
  .pp-dual-visual {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pp-hardware-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .pp-hardware-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pp-illust-media {
    height: 200px;
  }
  .pp-illust-body {
    padding: 20px;
  }
}

/* ==========================================================================
   Auto-Opening Demo Request Popup Modal
   ========================================================================== */
.ae-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background-color: rgba(25, 38, 48, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ae-demo-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ae-demo-dialog {
  width: 100%;
  max-width: 470px;
  background-color: var(--bg-page);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 64px rgba(25, 38, 48, 0.28);
  overflow: hidden;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.ae-demo-overlay.is-open .ae-demo-dialog {
  transform: translateY(0) scale(1);
}

.ae-demo-head {
  background-color: var(--brand);
  color: #ffffff;
  padding: 24px 26px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ae-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ae-demo-head h3 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 5px;
}

.ae-demo-head p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

.ae-demo-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ae-demo-close:hover {
  background-color: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

.ae-demo-body {
  padding: 24px 26px 26px;
  background-color: var(--bg-page);
}

.ae-demo-error {
  display: none;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background-color: #fdf2f2;
  border: 1px solid #f5c6cb;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.ae-demo-error.is-visible {
  display: block;
}

.ae-field {
  margin-bottom: 14px;
}

.ae-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.ae-req {
  color: #d92d20;
}

.ae-input-wrap {
  position: relative;
}

.ae-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 14px;
  pointer-events: none;
}

.ae-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background-color: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ae-input-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.ae-input-wrap input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.ae-field-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #d92d20;
  margin-top: 5px;
}

.ae-field-error.is-visible {
  display: block;
}

.ae-req-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 2px 0 12px;
}

.ae-input-wrap input::placeholder {
  color: #9aa7b2;
}

.ae-demo-submit {
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 14.5px;
}

.ae-demo-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.ae-demo-success {
  text-align: center;
  padding: 16px 8px 6px;
}

.ae-demo-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  color: var(--brand);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ae-demo-success h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.ae-demo-success p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-body);
  margin-bottom: 22px;
}

@media (max-width: 520px) {
  .ae-demo-head {
    padding: 20px;
  }
  .ae-demo-body {
    padding: 20px;
  }
}
