/* ==========================================================================
   AI Agent Digital Twin page
   All page-specific styles live here; styles.css is untouched.
   ========================================================================== */

/* Title-case kickers used on this page (Questions stays uppercase) */
.twin-kicker { text-transform: none; }

/* Hero
   ========================================================================== */

.hero--twin { background-image: url("/assets/img/2027/ai-digital-twins/digital-twin-hero-bg.jpg"); }

.hero--twin .hero__content { max-width: 860px; }

.hero .twin-hero__tagline {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
}

.hero .twin-hero__subhead {
  max-width: none;
  margin-top: 28px;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 600;
}

.hero .twin-hero__badge {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 30px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Why video (maroon stats band)
   ========================================================================== */

.twin-stats .section-head { margin-bottom: 50px; }

.twin-stats h2 { color: var(--white); }

.twin-stats .kicker {
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 600;
  text-transform: none;
  color: var(--white);
}

.twin-stats .section-head > p:last-child {
  margin-top: 36px;
  color: rgba(255, 255, 255, .9);
}

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

.twin-stats .stat { padding-bottom: 30px; }
.twin-stats .stat__value { margin-bottom: 20px; }

/* Sample reels
   ========================================================================== */

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 39px);
  max-width: 1260px;
  margin-inline: auto;
}

.reel__media {
  position: relative;
  aspect-ratio: 394 / 700;
  background: #111;
}

.reel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The poster already shows the play icon, so the button is an invisible hit area */
.reel__play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reel__play:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.reel figcaption {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

.reel__type { margin-right: 10px; color: var(--red); }

/* What's included
   ========================================================================== */

.twin-highlights { margin-top: 44px; }

.twin-highlights strong { font-size: clamp(22px, 1.6vw, 31px); }

.twin-highlights em { font-size: 15px; }

/* Pricing (builds on the shared .plans / .plan cards)
   ========================================================================== */

.twin-pricing .section-head > p:last-child { max-width: 760px; }

.twin-pricing .plans {
  max-width: 1030px;
  margin: 0 auto;
  align-items: stretch;
}

/* Reset the homepage's alignment padding on the plain card */
.twin-pricing .plan,
.twin-pricing .plan:not(.plan--featured),
.twin-pricing .plan--featured { padding: 30px 30px 60px; }

.twin-pricing .plan__name { font-size: 18px; }
.twin-pricing .plan__badge { text-transform: uppercase; }

.twin-pricing .plan__note { margin-block: 18px 16px; }

.twin-pricing__accent { font-weight: 600; color: var(--red); }

.twin-pricing__fee {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 30px;
  border-radius: 4px;
  background: #f5f5f5;
  font-size: 16px;
}

.twin-pricing__fee s { margin-right: 10px; }

.twin-pricing .plan .checklist { margin: 0 0 40px 4px; }

.twin-pricing .plan .btn { width: 100%; margin-left: 0; }

/* Add-on card */
.twin-pricing__badge--dark { background: var(--black); }

.twin-pricing__per-reel {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
}

.twin-pricing__reel {
  width: 62%;
  margin: 18px auto 28px;
}

.twin-pricing__reel .reel__media { aspect-ratio: 306 / 544; }

.twin-pricing__btn--dark { background: var(--black); color: var(--white); }
.twin-pricing__btn--dark:hover { background: #333; }

/* FAQ
   ========================================================================== */

.faq details p + p { padding-top: 4px; }

/* Final CTA
   ========================================================================== */

.cta p { margin-block: 24px 20px; }

/* Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .twin-stats .stats__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 768px) {
  /* Reels become a swipeable row */
  .reels {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .reels::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; }
}

@media (max-width: 520px) {
  .reels { grid-auto-columns: 78%; }
  .hero .twin-hero__badge { padding-inline: 20px; font-size: 13px; }
  .twin-pricing__fee { padding-inline: 16px; font-size: 15px; }
  .twin-pricing__reel { width: 70%; }
  #sample-reels .section-head br { display: none; }
}