/* ============================================================
   S-PULSE PAGE (s-pulse.html)
   ------------------------------------------------------------
   Loaded after styles.css and reading-skills.css, on this page
   only. The banner, section spacing, titles (.rs-title), body text
   (.rs-text) and the contact section come from those two files;
   this file only adds what is new on this page:
     - .sp-photo     full-width rounded photo under a title
     - .sp-view      the two outlined boxes (navy / orange)
     - .sp-action    the grey "See S-Pulse in action" band with
                     the phone-shaped video frame
     - .sp-card      the grey feature cards with an orange icon
     - .sp-promise   the dark blue "S-Pulse Promise" band
   ============================================================ */

/* ---- Banner ---- */
.sp-hero .hero-description p {
  margin-bottom: 0.9em;
}

.sp-hero .hero-description p:last-child {
  margin-bottom: 0;
}

/* "Learn more", the navbar's "Book a Demo" and the homepage strip's
   "Watch Demo" jump to these; the offset keeps the heading clear of
   the fixed navbar. */
#s-pulse-demo,
#s-pulse-advantage,
#contact {
  scroll-margin-top: 100px;
}

/* ---- Photos ---- */
.sp-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 32px;
}

/* ---- The two outlined boxes ---- */
/* only top and bottom: the row keeps Bootstrap's negative side margins,
   so the boxes line up with the text */
.sp-views {
  margin-top: 8px;
  margin-bottom: 28px;
}

.sp-view {
  --tone: var(--rs-indigo);
  border: 1px solid var(--tone);
  border-radius: 10px;
  padding: 16px 18px;
  background: #ffffff;
}

.sp-view--orange {
  --tone: var(--rs-orange);
}

.sp-view-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tone);
  margin-bottom: 8px;
}

.sp-view-text {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

/* ---- See S-Pulse in action ---- */
.sp-action {
  margin-top: 72px;
  padding: 72px 0;
  background: #f7f7f7;
}

.rs-title.sp-action-title {
  text-align: left;
  margin-bottom: 20px;
}

.sp-action-lead {
  font-size: clamp(17px, calc(10px + 0.7vw), 20px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 520px;
}

.sp-quote {
  font-size: clamp(17px, calc(10px + 0.7vw), 20px);
  font-style: italic;
  line-height: 1.6;
  color: #333333;
  max-width: 540px;
  margin: 0;
}

/* Phone-shaped frame for the demo video. The black padding is the screen's
   bezel, so the video's own corners stay clear of the frame's round corners.
   9:16 is the video's own shape, so nothing is cut off. */
.sp-phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 8px;
  border: 7px solid #3d3d3d;
  border-radius: 40px;
  background: #111111;
}

.sp-phone-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 24px;
  background: #000000;
  cursor: pointer;
}

/* The only control: a round play/pause button in the middle of the video.
   While the video plays it hides, and comes back when the mouse is over
   the video (on phones, tapping the video pauses it). */
.sp-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 38px;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.sp-phone.is-playing .sp-play {
  opacity: 0;
}

@media (hover: hover) {
  .sp-phone.is-playing:hover .sp-play,
  .sp-phone .sp-play:focus-visible {
    opacity: 1;
  }
}

/* ---- Title with a subtitle under it ---- */
.rs-title.sp-title-tight {
  margin-bottom: 12px;
}

.sp-subtitle {
  font-size: clamp(17px, calc(10px + 0.7vw), 21px);
  line-height: 1.5;
  text-align: center;
  color: #333333;
  max-width: 720px;
  margin: 0 auto 48px;
}

/* ---- Feature cards ---- */
.sp-grid {
  display: grid;
  gap: 28px;
}

.sp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.sp-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.sp-card {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
}

/* the last card of an odd-numbered grid spans the full row */
.sp-card--wide {
  grid-column: 1 / -1;
}

.sp-card-icon {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: var(--rs-orange);
  margin-bottom: 12px;
}

.sp-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  margin-bottom: 8px;
}

.sp-card--large .sp-card-title {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.sp-card-text {
  font-size: 15.5px;
  line-height: 1.5;
  color: #333333;
  margin: 0;
}

.sp-note {
  font-size: clamp(16px, calc(10px + 0.6vw), 19px);
  line-height: 1.6;
  text-align: center;
  max-width: 960px;
  margin: 56px auto 0;
}

.sp-leaders-intro {
  margin-bottom: 40px;
}

/* ---- The S-Pulse Promise ---- */
.sp-promise {
  margin-top: 80px;
  padding: 72px 0 80px;
  color: #ffffff;
  /* the same navy background as the awards slider on sambhutilearning.com
     (award_background3.png, made lighter); the colour shows while it loads */
  background: #1e2264 url("../images/s-pulse-promise-bg.jpg") center / cover no-repeat;
}

.sp-promise-title {
  font-size: clamp(28px, calc(14px + 2vw), 42px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  margin-bottom: 28px;
}

.sp-promise-big {
  font-size: clamp(32px, calc(14px + 3vw), 60px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 48px;
}

.sp-promise-text {
  font-size: clamp(17px, calc(10px + 0.7vw), 21px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.4em;
}

.sp-promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-promise-list li {
  font-size: clamp(17px, calc(10px + 0.7vw), 21px);
  font-weight: 700;
  line-height: 1.6;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.sp-promise-list li:first-child {
  padding-top: 0;
}

.sp-promise-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---- Book a Demo ----
   The form itself is the shared VidyaBuddhi contact form (styles.css). */
.sp-contact h2.rs-title {
  margin-bottom: 40px;
}

/* ============================================================
   TABLET (below 992px)
   ============================================================ */
@media (max-width: 991.98px) {
  .sp-action {
    margin-top: 56px;
    padding: 56px 0;
  }

  .sp-grid {
    gap: 16px;
  }

  .sp-card {
    padding: 20px;
  }

  .sp-card--large .sp-card-title {
    font-size: 22px;
  }

  .sp-note {
    margin-top: 40px;
  }

  .sp-promise {
    margin-top: 56px;
    padding: 56px 0 64px;
  }

  .sp-promise-big {
    margin-bottom: 32px;
  }
}

/* ============================================================
   PHONE (below 768px)
   ============================================================ */
@media (max-width: 767.98px) {
  .sp-hero .hero-description p {
    margin-bottom: 0.7em;
  }

  .sp-photo {
    border-radius: 12px;
    margin-bottom: 24px;
  }

  .sp-views {
    margin-top: 4px;
    margin-bottom: 24px;
  }

  .sp-view-title {
    font-size: 18px;
  }

  .sp-view-text {
    font-size: 16px;
  }

  .sp-action {
    margin-top: 48px;
    padding: 48px 0;
  }

  .sp-action-lead {
    margin-bottom: 24px;
  }

  .sp-phone {
    max-width: 240px;
    padding: 6px;
    border-width: 6px;
    border-radius: 32px;
  }

  .sp-phone-video {
    border-radius: 20px;
  }

  .sp-subtitle {
    margin-bottom: 32px;
  }

  .sp-grid--3,
  .sp-grid--2 {
    grid-template-columns: 1fr;
  }

  .sp-card-title {
    font-size: 19px;
  }

  .sp-card--large .sp-card-title {
    font-size: 21px;
  }

  .sp-card-text {
    font-size: 15px;
  }

  .sp-leaders-intro {
    margin-bottom: 28px;
  }

  .sp-promise {
    margin-top: 48px;
    padding: 48px 0 56px;
  }

  .sp-promise-title {
    margin-bottom: 16px;
  }

  .sp-contact h2.rs-title {
    margin-bottom: 24px;
  }
}
