/* =====================================================
   Deepoint conversion pages: cases, solutions, downloads
   ===================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  padding: 96px 0 72px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, url("../screens_media/hero/2.webp"))
    center/cover no-repeat;
  opacity: 0.28;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 25, 56, 0.94),
    rgba(8, 25, 56, 0.74),
    rgba(8, 25, 56, 0.36)
  );
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
}
.page-hero h1 {
  max-width: 780px;
  color: var(--white);
  margin: 12px 0 18px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 650px;
  font-size: 1.08rem;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-panel h3 {
  color: var(--blue-primary);
  margin-bottom: 12px;
}
.hero-panel ul {
  display: grid;
  gap: 12px;
}
.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-gray);
  font-size: 0.92rem;
}
.hero-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.hero-panel strong {
  color: var(--blue-deep);
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.split-head p {
  max-width: 620px;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.case-detail:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}
.case-detail:nth-child(even) .case-visual {
  order: 2;
}
.case-visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.case-visual img,
.case-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-copy h2 {
  margin-bottom: 0;
  color: var(--blue-deep);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--bg-light);
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 700;
}
.case-value-grid,
.solution-card-grid,
.more-case-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.mini-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
}
.mini-card h3,
.mini-card h4 {
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.mini-card p {
  font-size: 0.93rem;
}
.mini-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.solution-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.pain-list,
.system-list {
  display: grid;
  gap: 12px;
}
.pain-list li,
.system-list li {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--text-gray);
}
.system-list strong {
  display: block;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.picker-card {
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.picker-card h2 {
  color: var(--white);
  margin-bottom: 8px;
}
.picker-card p {
  color: rgba(255, 255, 255, 0.75);
}
.picker-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.picker-form select,
.gate-form input,
.gate-form select {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: var(--white);
  color: var(--text-dark);
  font: inherit;
}
.solution-result {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 18px;
}
.solution-result strong {
  color: var(--gold);
  font-size: 1.1rem;
}
.solution-result span,
.solution-result em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}
.config-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.config-table th,
.config-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}
.config-table th {
  background: var(--bg-light);
  color: var(--blue-deep);
}
.config-table tr:last-child td {
  border-bottom: 0;
}

.download-hero {
  --hero-image: url("../assets/photos/showroom-1.jpg");
}
.gate-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}
.gate-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.gate-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gate-status {
  min-height: 22px;
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.library[hidden] {
  display: none;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.download-card .type {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--bg-light);
  color: var(--blue-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.download-card h3 {
  color: var(--blue-deep);
  font-size: 1rem;
}
.download-card p {
  font-size: 0.88rem;
}
.download-card .btn {
  margin-top: auto;
}

.download-card .btn + .btn {
  margin-top: 10px;
}

/* ---------- About page ---------- */
.about-hero {
  --hero-image: url("../assets/photos/showroom-3.jpg");
}
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
}
.about-split > div:first-child {
  position: sticky;
  top: 104px;
}
.about-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.about-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.about-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.about-process-grid article {
  min-height: 220px;
  padding: 22px 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.about-process-grid article span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
}
.about-process-grid h3 {
  color: var(--blue-deep);
  margin-bottom: 10px;
}
.about-process-grid p {
  font-size: 0.9rem;
}
.about-service-band {
  background: var(--blue-deep);
}
.about-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.about-service-grid div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}
.about-service-grid strong,
.about-service-grid span {
  display: block;
}
.about-service-grid strong {
  color: var(--white);
  margin-bottom: 8px;
}
.about-service-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- Resources and articles ---------- */
.resources-hero,
.article-hero {
  background:
    linear-gradient(135deg, rgba(8, 25, 56, 0.92), rgba(25, 64, 133, 0.86)),
    url("../screens_media/hero/2.webp") center/cover;
  color: var(--white);
}

.resources-hero p,
.article-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.resources-grid .download-card,
.resource-card {
  min-height: 280px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.resource-actions .btn {
  margin-top: 0;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: center;
}

.article-back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-back:hover {
  color: var(--white);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.article-meta span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.article-hero-figure {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 10px;
}

.article-hero-figure img {
  border-radius: var(--radius-md);
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-body {
  max-width: 960px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.article-body > p,
.article-body li {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.78;
}

.article-body h2 {
  color: var(--blue-deep);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 42px 0 14px;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding-left: 20px;
}

.article-body li {
  list-style: disc;
}

.article-body figure {
  margin: 34px 0;
}

.article-body figure img {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-body figcaption {
  color: var(--text-mute);
  font-size: 0.84rem;
  margin-top: 10px;
  text-align: center;
}

.key-takeaways {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin: 0 0 34px;
  padding: 28px;
}

.key-takeaways h2 {
  margin-top: 0;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.takeaway-grid div {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.takeaway-grid strong {
  color: var(--red-accent);
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 8px;
}

.takeaway-grid span {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-callout {
  background: #eef4ff;
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-md);
  color: var(--blue-deep);
  font-size: 1rem;
  line-height: 1.65;
  margin: 28px 0;
  padding: 18px 20px;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.article-gallery figure {
  margin: 0;
}

.article-cta {
  border-radius: var(--radius-lg);
  margin-top: 58px;
  padding: 36px;
}

.article-cta h2,
.article-cta p {
  color: var(--white);
}

.article-cta h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .article-hero-grid,
  .takeaway-grid,
  .article-gallery {
    grid-template-columns: 1fr;
  }

  .article-body {
    padding-top: 52px;
  }
}

.band-blue {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
  color: var(--white);
}
.band-blue h2 {
  color: var(--white);
}
.band-blue p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .page-hero-grid,
  .case-detail,
  .case-detail:nth-child(even),
  .solution-intro,
  .gate-wrap,
  .about-split,
  .about-proof-grid,
  .about-process-grid,
  .about-service-grid {
    grid-template-columns: 1fr;
  }
  .about-split > div:first-child {
    position: static;
  }
  .about-process-grid article {
    min-height: 0;
  }
  .case-detail:nth-child(even) .case-visual {
    order: 0;
  }
  .picker-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 72px 0 52px;
  }
  .split-head {
    display: block;
  }
  .case-detail {
    padding: 18px;
  }
  .case-visual {
    min-height: 220px;
  }
  .gate-form .row {
    grid-template-columns: 1fr;
  }
}
