/* Product-focused refresh for the existing static Formio site. */

.hero-product-copy {
  display: block;
  max-width: 680px;
  margin-top: clamp(24px, 4vw, 42px);
  padding: clamp(16px, 2vw, 20px) clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  line-height: 1.45;
}

.product-theme-grid {
  align-items: stretch;
}

.product-theme-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
}

.theme-visual {
  display: grid;
  height: 150px;
  place-items: center;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(41, 179, 165, 0.16);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, var(--soft-turquoise));
}

.theme-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.theme-visual-illustration {
  position: relative;
  isolation: isolate;
}

.theme-visual-illustration span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.theme-jungle {
  background:
    radial-gradient(circle at 22% 74%, rgba(41, 179, 165, 0.22), transparent 24%),
    linear-gradient(145deg, #ffffff, #e8f8f2);
}

.theme-jungle span:nth-child(1) {
  left: 22%;
  bottom: 22%;
  width: 76px;
  height: 76px;
  background: #29b3a5;
  clip-path: ellipse(44% 48% at 50% 50%);
  transform: rotate(-22deg);
}

.theme-jungle span:nth-child(2) {
  right: 24%;
  bottom: 26%;
  width: 92px;
  height: 92px;
  background: #14756f;
  clip-path: ellipse(40% 50% at 50% 50%);
  transform: rotate(28deg);
}

.theme-jungle span:nth-child(3) {
  right: 18%;
  top: 22%;
  width: 54px;
  height: 54px;
  background: rgba(161, 29, 31, 0.78);
}

.theme-halloween {
  background:
    radial-gradient(circle at 72% 28%, rgba(161, 29, 31, 0.16), transparent 22%),
    linear-gradient(145deg, #ffffff, #fff4f3);
}

.theme-halloween span:nth-child(1) {
  left: 50%;
  bottom: 22%;
  width: 92px;
  height: 74px;
  background: #a11d1f;
  transform: translateX(-50%);
}

.theme-halloween span:nth-child(2) {
  left: 50%;
  bottom: 74px;
  width: 18px;
  height: 36px;
  background: #14756f;
  transform: translateX(-50%) rotate(12deg);
}

.theme-halloween span:nth-child(3) {
  right: 23%;
  top: 22%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(161, 29, 31, 0.28);
  background: transparent;
}

.pdf-parts {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  gap: 16px;
}

.pdf-part {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(27, 62, 70, 0.05);
}

.pdf-part > img,
.paper-preview {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(27, 62, 70, 0.08);
  border-radius: 18px;
  background: #ffffff;
}

.pdf-part > img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.paper-preview {
  display: grid;
  min-height: 210px;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.paper-preview-text {
  background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.paper-preview-text strong {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.paper-preview-text p {
  margin: 0;
  color: var(--muted);
}

.paper-preview-image {
  padding: 18px;
}

.paper-preview-image img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.pdf-part span {
  display: block;
  margin-bottom: 6px;
  color: var(--turquoise-dark);
  font-weight: 900;
}

.pdf-part h3 {
  margin-bottom: 0;
}

.benefit-grid-three {
  grid-template-columns: 1fr;
}

.benefit-grid-three .benefit-card:nth-child(n) {
  grid-column: auto;
}

.compact-trust-section {
  background: #ffffff;
}

.compact-trust-box {
  display: grid;
  gap: 14px;
}

.compact-trust-box p:not(.eyebrow) {
  padding-right: 118px;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 120px 0 0;
  padding: 0;
  list-style: none;
}

.trust-points li {
  padding: 7px 11px;
  border: 1px solid rgba(41, 179, 165, 0.18);
  border-radius: 999px;
  color: var(--turquoise-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 780;
}

.compact-tally-wrapper {
  overflow: hidden;
}

.compact-tally-wrapper .test-note,
.compact-tally-wrapper .privacy-note {
  max-width: 760px;
}

.compact-tally-wrapper .privacy-note {
  margin-top: 12px;
}

.mission-compact-grid {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  gap: 18px;
}

.mission-compact-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(27, 62, 70, 0.05);
}

.mission-compact-card p:last-child {
  margin-bottom: 0;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 60px;
  align-items: center;
  padding-right: 58px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list p {
  max-width: 760px;
  line-height: 1.62;
}

.example-page .demo-story {
  background: linear-gradient(180deg, #ffffff, #f8fcfb);
}

.example-page .demo-story em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.example-page .demo-story small {
  color: var(--turquoise-dark);
  font-weight: 850;
}

@media (min-width: 680px) {
  .pdf-parts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-product-copy {
    margin-top: clamp(32px, 4.5vw, 54px);
    margin-bottom: clamp(42px, 5vw, 72px);
  }

  .pdf-parts {
    grid-template-columns: 1.08fr repeat(3, minmax(0, 1fr));
  }

  .mission-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-compact-card:nth-child(3),
  .mission-compact-card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .hero-product-copy {
    max-width: 100%;
    margin-top: 26px;
    margin-right: 0;
    margin-bottom: 34px;
    border-radius: 22px;
  }

  .theme-visual {
    height: 128px;
  }

  .paper-preview {
    min-height: 176px;
    padding: 20px;
  }

  .compact-trust-box p:not(.eyebrow),
  .trust-points {
    margin-right: 0;
    padding-right: 0;
  }

  .trust-points {
    display: grid;
  }

  .faq-list summary {
    min-height: 64px;
    padding: 18px 54px 18px 18px;
  }
}
