/* ==========================================================================
   pseo.css — styling for programmatic-SEO (/data/...) pages.
   Self-contained, written in the DynaPictures visual language:
   Rubik font (inherited from body), brand purple #7f0052, accent red #ff7171,
   turquoise #E5F9F3. Reuses the global .container and .btn helpers from site.css.
   All classes are prefixed .pseo- to avoid collisions.
   ========================================================================== */

.pseo-page {
  color: #383838;
}

/* ---- Section scaffolding ------------------------------------------------ */
.pseo-section {
  padding: 56px 16px;
}

.pseo-section--alt {
  background-color: #e5f9f3; /* turquoise */
}

/* Dark section variant (e.g. tiles with variant="dark") */
.pseo-section--dark {
  background-color: #300224;
}

.pseo-section--dark .pseo-section__title {
  color: #ffffff;
}

.pseo-section--dark .pseo-section__lead {
  color: #b7b6b6;
}

.pseo-section--dark .pseo-tile {
  background-color: rgba(255, 255, 255, 0.13);
  border: none;
  box-shadow: none;
}

.pseo-section--dark .pseo-tile__title {
  color: #ffffff;
}

.pseo-section--dark .pseo-tile__text {
  color: #d8cfd4;
}

.pseo-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px auto;
}

.pseo-section__title {
  font-family: Rubik, Open-Sans, sans-serif;
  font-weight: bold;
  color: #7f0052;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 12px 0;
  padding-bottom: 16px;
}

.pseo-section__lead {
  font-size: 18px;
  color: #515050;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .pseo-section {
    padding: 80px 48px;
  }
  .pseo-section__title {
    font-size: 38px;
  }
}

/* ---- Hero (uses native hero_xs / api_hero classes; only the hint needs CSS) */
.hero_button_hint,
.hero_button_hint_xs {
  text-align: center;
  color: #666;
  margin-top: 16px;
}

.hero_button_hint {
  font-size: 18px;
}

.hero_button_hint_xs {
  font-size: 15px;
}

/* img-responsive is used in DP markup but not defined in the linked stylesheets */
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* ---- Feature subsections (native DP feature look, defined here because
        welcome_feature_subsection_content / section_feature_image are not in
        the stylesheets pseo pages link) ------------------------------------- */
.pseo-feature-shell {
  padding-top: 56px;
  padding-bottom: 56px;
}

.pseo-feature-section {
  background-color: #ffffff;
}

.welcome_feature_subsection_content {
  display: flex;
  flex-direction: column;
}

.welcome_feature_subsection_content h3 {
  font-family: Rubik, Open-Sans, sans-serif;
  font-weight: bold;
  color: #7f0052;
  font-size: 26px;
  line-height: 1.3;
  text-align: center;
  margin: 16px 0 0 0;
}

.section_feature_image {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* check_text is referenced in DP markup but not defined in any stylesheet */
.check_text {
  flex: 1;
  color: #515050;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .pseo-feature-shell {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .welcome_feature_subsection_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    align-items: center;
  }
  .welcome_feature_subsection_content h3 {
    text-align: left;
    margin-top: 0;
  }
}

/* ---- Generic buttons (lean on .btn / .btn_red from site.css) ------------ */
.pseo-btn {
  font-size: 17px;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 500;
}

.pseo-btn-arrow {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 20px;
}

/* ---- How-to steps ------------------------------------------------------- */
.pseo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.pseo-step {
  text-align: center;
}

.pseo-step__circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #f3e2ee;
  color: #7f0052;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.pseo-step__circle .material-symbols-rounded {
  font-size: 34px;
}

.pseo-step__num {
  font-size: 28px;
  font-weight: bold;
}

.pseo-step__title {
  font-size: 18px;
  font-weight: 600;
  color: #383838;
  margin: 0;
}

@media (min-width: 768px) {
  .pseo-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ---- Tiles (cards) ------------------------------------------------------ */
.pseo-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.pseo-tiles--2 {
  max-width: 1100px;
}

.pseo-tile {
  background: #ffffff;
  border: 1px solid #ecdfe8;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(127, 0, 82, 0.04);
}

.pseo-tile__title {
  font-size: 20px;
  font-weight: 600;
  color: #7f0052;
  margin: 0 0 10px 0;
}

.pseo-tile__text {
  font-size: 16px;
  color: #515050;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .pseo-tiles--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* ---- Catalogue / related items (native related_content_block_md) -------- */
/* related_content_block_md is a fixed 3-col grid in site.css; make it stack on mobile */
@media (max-width: 767.99px) {
  .related_content_block_md {
    grid-template-columns: 1fr;
  }
}

.pseo-catalogue__cta {
  text-align: center;
  margin-top: 40px;
}

/* ---- FAQ accordion ------------------------------------------------------ */
.pseo-faq {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ecdfe8;
  border-radius: 12px;
  padding: 12px 28px;
}

.pseo-faq__item {
  border-bottom: 1px solid #f0e6ee;
}

.pseo-faq__item:last-child {
  border-bottom: none;
}

.pseo-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  color: #383838;
  background: none;
  border: none;
  font-family: Rubik, Open-Sans, sans-serif;
}

.pseo-faq__q::after {
  content: "expand_more";
  font-family: "Material Symbols Rounded";
  font-size: 26px;
  color: #7f0052;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pseo-faq__item.pseo-open .pseo-faq__q::after {
  transform: rotate(180deg);
}

.pseo-faq__a {
  padding: 0 0 22px 0;
  font-size: 16px;
  color: #515050;
  line-height: 1.7;
}

.pseo-faq__a p {
  margin: 0;
}

/* ---- Video -------------------------------------------------------------- */
.pseo-video {
  max-width: 960px;
  margin: 0 auto;
}

.pseo-video__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pseo-video__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Demo app (embedded widget) ----------------------------------------- */
.pseo-demo {
  max-width: 1000px;
  margin: 0 auto;
}

.pseo-demo .dynapictures-form-widget {
  width: 100%;
  min-height: 700px;
  margin: auto;
  background-color: #fff;
  border: 3px dashed #ff7170;
  border-radius: 2rem;
  padding: 2rem;
}

/* ---- Final CTA ---------------------------------------------------------- */
.pseo-cta {
  text-align: center;
  padding: 72px 16px;
}

.pseo-cta--primary {
  background-color: #7f0052;
}

.pseo-cta--dark {
  background-color: #300224;
}

.pseo-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.pseo-cta__title {
  font-family: Rubik, Open-Sans, sans-serif;
  font-weight: bold;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

.pseo-cta__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 28px 0;
}

/* High-contrast button for use on the coloured CTA band */
.pseo-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Rubik, Open-Sans, sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 4px;
  background-color: #ffffff;
  color: #7f0052;
  text-decoration: none;
  border: none;
}

.pseo-cta__btn:hover {
  background-color: #f3e2ee;
  color: #7f0052;
}

@media (min-width: 768px) {
  .pseo-cta {
    padding: 96px 48px;
  }
  .pseo-cta__title {
    font-size: 40px;
  }
}

/* ---- Listing / category pages ------------------------------------------- */
.pseo-listing__category {
  margin-bottom: 48px;
}

.pseo-listing__category-title {
  font-family: Rubik, Open-Sans, sans-serif;
  font-weight: bold;
  color: #7f0052;
  font-size: 24px;
  margin: 0 0 20px 0;
}

.pseo-listing__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pseo-listing__link {
  display: block;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #ecdfe8;
  border-radius: 8px;
  color: #7f0052;
  text-decoration: none;
  font-weight: 500;
}

.pseo-listing__link:hover {
  box-shadow: 0 4px 14px rgba(127, 0, 82, 0.1);
}

.pseo-listing__back {
  display: inline-block;
  margin-bottom: 24px;
  color: #ff7171;
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 768px) {
  .pseo-listing__links {
    grid-template-columns: repeat(3, 1fr);
  }
}
