/*
 * Persona pages redesign (software/clubs, /scouts, /coaches, /agents), loaded after style_index_min.css.
 * Every rule is scoped to .sd-pp; each page sets its colour with .sd-pp--clubs / --scouts / --coaches / --agents.
 * Every button of these pages (shape and colours) comes from buttons_redesign.css.
 */

/* ------------------------------------------------------------------ Page colours */

.sd-pp {
  --sd-text: #1B2333;
  --sd-muted: #435066;
  --sd-border: #E8ECF1;
  --sd-ground: #F2F4F7;
  --sd-green: #50D878;
  --sd-navy: #29364D;
  background: var(--sd-ground);
  /* Blocks that slide in from the side (scroll reveal) must not widen the page on phones */
  overflow-x: clip;
}

.sd-pp--clubs { --sd-accent: #226F18; --sd-soft: #E3F1E0; --sd-deep: #1A5213; --sd-deep2: #133D0E; }
.sd-pp--scouts { --sd-accent: #136B6B; --sd-soft: #DDF3F3; --sd-deep: #0F4C4D; --sd-deep2: #0B3A3B; }
.sd-pp--coaches { --sd-accent: #1F55B8; --sd-soft: #E1EBFD; --sd-deep: #183F87; --sd-deep2: #122F66; }
.sd-pp--agents { --sd-accent: #611F69; --sd-soft: #F1E3F3; --sd-deep: #4A1850; --sd-deep2: #36113B; }

/* style_index_min.css gives every section a 100px bottom margin; spacing here is set per block */
.sd-pp section {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ Hero */

/* Copy on the left, demo video on a dark panel on the right; white to the soft page colour, with a strong
   line in the page colour at the bottom */
.sd-pp-hero {
  position: relative;
  padding: 4.5rem 0 6.5rem;
  color: var(--sd-text);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--sd-soft) 100%);
  border-bottom: 4px solid var(--sd-accent);
}

.sd-pp-hero .sd-pp-copy {
  gap: 1.125rem;
}

/* "Software for ..." line as a pill */
.sd-pp-tag {
  margin: 0;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--sd-accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.sd-pp-title {
  text-wrap: balance;
}

.sd-pp-title h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--sd-text);
}

/* Persona word of the title (the old underline span) in the page colour */
.sd-pp-title span {
  color: var(--sd-accent);
}

.sd-pp-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--sd-muted);
}

.sd-pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.sd-pp-video {
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
  border: 1px solid var(--sd-border);
  background: #FFFFFF;
  box-shadow: 0 24px 56px -12px rgba(27, 35, 51, 0.22);
}

/* Video on a dark dotted panel in the page colour */
.sd-pp-hero-frame {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--sd-deep);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  box-shadow: 0 32px 64px -20px rgba(27, 35, 51, 0.45);
}

.sd-pp-hero-frame .sd-pp-video {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------------ Main features panel */

/* Pulled up a little over the bottom of the hero */
.sd-pp-panel {
  position: relative;
  margin-top: -3.5rem;
}

.sd-pp-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  padding: 0.625rem;
  background: #FFFFFF;
  border-radius: 1.25rem;
  box-shadow: 0 28px 56px -16px rgba(27, 35, 51, 0.22), 0 2px 6px rgba(27, 35, 51, 0.06);
}

.sd-pp-cells--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Each cell is a link to its block, on the soft page colour */
.sd-pp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1.125rem 1.375rem;
  border-radius: 0.75rem;
  border-top: 4px solid var(--sd-accent);
  background: var(--sd-soft);
  text-align: center;
  color: var(--sd-text);
  text-decoration: none;
  transition: transform .2s ease;
}

.sd-pp-cell:hover,
.sd-pp-cell:focus-visible {
  color: var(--sd-text);
  transform: translateY(-2px);
}

.sd-pp-cell-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.375rem;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--sd-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 6px 14px -6px rgba(27, 35, 51, 0.25);
}

.sd-pp-cell-title {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--sd-accent);
  text-wrap: balance;
}

.sd-pp-cell-text {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--sd-muted);
}

/* ------------------------------------------------------------------ Trusted by (logos carousel, restyled) */

.sd-pp-trust {
  padding: 2.5rem 0 1rem;
}

.sd-pp-trust h2 {
  font-size: 0.8125rem !important;
  letter-spacing: 1px;
  color: #5F6A7D !important;
}

.sd-pp-trust .lp-partners-cards {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.sd-pp-trust .lp-partners-cards img {
  transition: transform .2s ease;
}

.sd-pp-trust .lp-partners-cards:hover img {
  transform: scale(1.06);
}

/* ------------------------------------------------------------------ Feature blocks */

.sd-pp-section {
  padding: 5.5rem 0 0;
}

/* Full-width band on the soft page colour */
.sd-pp-band {
  margin-top: 4rem;
  padding: 5rem 0;
  background: var(--sd-soft);
  border-top: 4px solid var(--sd-accent);
}

/* Copy and video side by side */
.sd-pp-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
}

.sd-pp-row--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.sd-pp-row--reverse .sd-pp-copy {
  order: 2;
}

.sd-pp-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.sd-pp-media {
  min-width: 0;
}

/* Section label (the original h2) and title (the original h3) */
.sd-pp-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sd-accent);
}

.sd-pp-h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--sd-text);
  text-wrap: balance;
}

/* Paragraphs shown as a checklist in the page colour */
.sd-pp-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sd-pp-checks li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sd-muted);
}

.sd-pp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--sd-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sd-pp-copy .btn,
.sd-pp-card .btn {
  margin-top: 0.375rem;
}

/* Two full-width cards, copy on the left and a big video on the right; the second one on the dark page colour */
.sd-pp-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.sd-pp-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: 3rem;
  row-gap: 0.875rem;
  align-content: center;
  align-items: start;
  padding: 2.5rem;
  background: #FFFFFF;
  border: 1px solid var(--sd-border);
  border-radius: 1.25rem;
  scroll-margin-top: 90px;
}

.sd-pp-card > * {
  grid-column: 1;
}

.sd-pp-card > .btn {
  justify-self: start;
}

.sd-pp-card > .sd-pp-card-video {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
}

.sd-pp-card--dark {
  background: var(--sd-deep);
  border-color: var(--sd-deep);
}

.sd-pp-card--dark .sd-pp-eyebrow {
  color: var(--sd-soft);
}

.sd-pp-card--dark .sd-pp-h3 {
  color: #FFFFFF;
}

.sd-pp-card--dark .sd-pp-checks li {
  color: rgba(255, 255, 255, 0.82);
}

.sd-pp-card--dark .sd-pp-checks li::before {
  background-color: var(--sd-green);
}

.sd-pp-card--dark .sd-pp-video {
  border-color: rgba(255, 255, 255, 0.15);
}

.sd-pp-band,
.sd-pp-section {
  scroll-margin-top: 90px;
}

/* ------------------------------------------------------------------ Book a call (Calendly) */

.sd-pp-head {
  max-width: 44rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.sd-pp-h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--sd-text);
}

.sd-pp-sub {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--sd-muted);
}

/*
 * No box of our own around Calendly: its own card floats on the page. The widget is at least 1000px wide
 * on large screens so Calendly uses its two-column layout (no inner scroll); the drop shadow follows the
 * shape of Calendly's card because the rest of its frame is transparent.
 */
.sd-pp-call-card {
  max-width: 70rem;
  margin: -2.5rem auto 0;
}

.sd-pp-call-card .calendly-inline-widget {
  filter: drop-shadow(0 18px 24px rgba(27, 35, 51, 0.16));
}

/* Phones: Calendly has no card of its own there, so it gets the white floating card */
@media (max-width: 767.98px) {
  .sd-pp-call-card {
    margin-top: 0;
    padding: 0.5rem;
    background: #FFFFFF;
    border: 1px solid var(--sd-border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 36px -24px rgba(27, 35, 51, 0.3);
  }

  .sd-pp-call-card .calendly-inline-widget {
    filter: none;
  }
}

/* ------------------------------------------------------------------ FAQs (original accordion markup, restyled) */

.sd-pp .sd-pp-faq {
  margin-top: 5.5rem;
  padding-bottom: 4rem;
  background: var(--sd-ground) !important;
}

/* The decorative wedges belonged to the old layout */
.sd-pp .sd-pp-faq > svg {
  display: none;
}

.sd-pp .sd-pp-faq h2.h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.8px;
}

.sd-pp .sd-pp-faq .accordion-item {
  border: 1px solid var(--sd-border);
  border-left: 4px solid var(--sd-accent);
  border-radius: 0.75rem !important;
  box-shadow: none !important;
  overflow: hidden;
  margin-bottom: 0.75rem !important;
}

.sd-pp .sd-pp-faq .accordion-button {
  color: var(--sd-text);
  font-weight: 700;
  padding: 1.125rem 1.25rem;
}

.sd-pp .sd-pp-faq .accordion-button:not(.collapsed) {
  color: var(--sd-accent);
  box-shadow: none;
}

.sd-pp .sd-pp-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--sd-accent) 25%, transparent);
}

.sd-pp .sd-pp-faq .accordion-body {
  color: var(--sd-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------------ Bands, boards and centred blocks */

/* Full-width band on the dark page colour, copy centred above a wide video */
.sd-pp-band--dark {
  background: var(--sd-deep);
  border-top: 0;
}

.sd-pp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.sd-pp-head--light {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  max-width: 48rem;
  margin: 0 auto;
}

.sd-pp-band--dark .sd-pp-eyebrow {
  color: var(--sd-soft);
}

.sd-pp-band--dark .sd-pp-h3 {
  color: #FFFFFF;
}

.sd-pp-band--dark .sd-pp-checks li {
  color: rgba(255, 255, 255, 0.82);
}

.sd-pp-band--dark .sd-pp-checks li::before {
  background-color: var(--sd-green);
}

.sd-pp-checks--center {
  align-items: center;
  text-align: left;
}

.sd-pp-wide-media {
  width: 100%;
  max-width: 64rem;
}

.sd-pp-band--dark .sd-pp-video {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

/* Dark board: a rounded block on the darker page colour (Coaches drills, Agents sharing) */
.sd-pp-board {
  padding: 3.5rem;
  border-radius: 1.5rem;
  background: var(--sd-deep2);
  color: #FFFFFF;
}

.sd-pp-board .sd-pp-eyebrow {
  color: var(--sd-soft);
}

.sd-pp-board .sd-pp-h3 {
  color: #FFFFFF;
}

.sd-pp-board .sd-pp-checks li {
  color: rgba(255, 255, 255, 0.82);
}

.sd-pp-board .sd-pp-checks li::before {
  background-color: var(--sd-green);
}

.sd-pp-board .sd-pp-video {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Soft band holding two feature rows (Coaches) */
.sd-pp-band--split {
  padding: 1rem 0 5rem;
}

.sd-pp-subsection {
  padding-top: 4rem;
  scroll-margin-top: 90px;
}

/* ------------------------------------------------------------------ Testimonials, team solution, communities (original markup) */

/* Testimonials band takes the darker page colour; its wedges match the page ground */
.sd-pp-testimonials {
  margin-top: 5.5rem;
}

.sd-pp-testimonials .lp-bg-gray-700 {
  background-color: var(--sd-deep2) !important;
}

.sd-pp-testimonials svg path {
  fill: var(--sd-ground);
}

/* "Looking for a team solution?" card on the dark page colour */
.sd-pp .sd-pp-team {
  margin-top: 5.5rem;
  margin-bottom: 0 !important;
}

.sd-pp .sd-pp-team .lp-bg-gray-900 {
  background: var(--sd-deep) !important;
  border-radius: 1.25rem !important;
}

.sd-pp .sd-pp-team .mkd-separator {
  background: var(--sd-green);
}

/* Communities: white card, WhatsApp-green buttons */
.sd-pp .sd-pp-community {
  padding: 0.5rem 0 4rem;
}

.sd-pp .sd-pp-community .lp-bg-gray-100 {
  background: #FFFFFF !important;
  border: 1px solid var(--sd-border);
  border-radius: 1.25rem !important;
  box-shadow: 0 18px 36px -24px rgba(27, 35, 51, 0.3);
}

.sd-pp .sd-pp-community a.google-analytics-whatsapp.btn {
  color: #FFFFFF;
  background: #25D366;
  border-color: #25D366;
  font-weight: 700;
}

.sd-pp .sd-pp-community a.google-analytics-whatsapp.btn:hover,
.sd-pp .sd-pp-community a.google-analytics-whatsapp.btn:focus-visible {
  color: #FFFFFF;
  background: #1EBE5A;
  border-color: #1EBE5A;
}

.sd-pp .sd-pp-community a.google-analytics-whatsapp.btn > div {
  background: rgba(255, 255, 255, 0.22) !important;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 991.98px) {
  .sd-pp-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .sd-pp-card > .sd-pp-card-video {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.75rem;
  }

  .sd-pp-cells--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-pp-row,
  .sd-pp-row--reverse,
  .sd-pp-bento {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Copy always before the video on small screens */
  .sd-pp-row--reverse .sd-pp-copy {
    order: 0;
  }

  .sd-pp-hero {
    padding-bottom: 5rem;
  }

  .sd-pp-board {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .sd-pp-hero {
    padding-top: 2.5rem;
  }

  .sd-pp-hero-frame {
    padding: 0.625rem;
  }

  .sd-pp-cells,
  .sd-pp-cells--4 {
    grid-template-columns: 1fr;
  }

  /* Compact rows on phones: icon on the left, title and subtitle beside it */
  .sd-pp-cell {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.875rem;
    row-gap: 0.125rem;
    align-items: start;
    padding: 0.875rem 1rem;
    text-align: left;
    border-top: 0;
    border-left: 4px solid var(--sd-accent);
  }

  .sd-pp-cell-icon {
    grid-row: span 2;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    font-size: 1rem;
  }

  .sd-pp-cell-title {
    font-size: 0.9375rem;
  }

  .sd-pp-cell-text {
    font-size: 0.8125rem;
  }

  .sd-pp-section {
    padding-top: 4rem;
  }

  .sd-pp-band {
    margin-top: 1.5rem;
    padding: 3.5rem 0;
  }

  /* The soft band holding two feature rows keeps its own padding */
  .sd-pp-band--split {
    padding: 1rem 0 5rem;
  }

  .sd-pp-card {
    padding: 1.5rem;
  }

  .sd-pp-board {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .sd-pp-center {
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-pp-cell,
  .sd-pp-trust .lp-partners-cards img {
    transition: none;
  }

  .sd-pp-trust .lp-partners-cards:hover img {
    transform: none;
  }

  .sd-pp-cell:hover,
  .sd-pp-cell:focus-visible {
    transform: none;
  }
}

/* ------------------------------------------------------------------ Scroll reveal (Scouts & Analysts page only)
   Elements start hidden only once the page script has added .sd-reveal-on, so without JavaScript everything stays visible. */

.sd-reveal-on [data-sd-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--sd-reveal-delay, 0s);
  will-change: opacity, transform;
}

.sd-reveal-on [data-sd-reveal="left"] {
  transform: translateX(-24px);
}

.sd-reveal-on [data-sd-reveal="right"] {
  transform: translateX(24px);
}

.sd-reveal-on [data-sd-reveal="zoom"] {
  transform: scale(.97);
}

.sd-reveal-on [data-sd-reveal].sd-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .sd-reveal-on [data-sd-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
