/* Real People, Real Results
 * Page-specific styles. Loads after base, nav and footer.
 */

/* ---------- Hero ---------- */
.rp-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 680px);
  background: var(--dark) center/cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(10,31,31,0.55) 0%, rgba(10,31,31,0.72) 100%),
    url('/assets/img/pages/real-people/hero.jpg');
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(72px, 10vw, 132px) var(--gutter);
  isolation: isolate;
}
.rp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,31,31,0) 0%, rgba(10,31,31,0.35) 65%, rgba(10,31,31,0.8) 100%);
  z-index: -1;
  pointer-events: none;
}
.rp-hero__inner { max-width: 880px; }
.rp-hero__pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00E6CC;
  border: 1px solid #00E6CC;
  background: transparent;
  padding: 10px 24px;
  border-radius: 999px;
  margin: 0 0 26px;
}
.rp-hero__divider {
  width: 80px;
  height: 1px;
  border: 0;
  background: rgba(0, 230, 204, 0.4);
  margin: 32px auto;
}
.rp-hero__eyebrow { color: var(--teal); margin-bottom: 22px; }
.rp-hero__h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
  margin: 0 0 22px;
}
.rp-hero__h1 em { color: var(--teal); font-style: italic; }
.rp-hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.88);
  margin: 0 auto 28px;
  max-width: 720px;
}
.rp-hero__note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.62);
  margin: 0 auto;
  max-width: 560px;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.section-head .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00E6CC;
  margin: 0 0 16px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 24px;
}
.section-head h2 em { color: var(--teal-readable); font-style: italic; }
.section-head__sub {
  font-family: var(--font-sans);
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .section-head { padding-bottom: 48px; }
}
@media (max-width: 480px) {
  .section-head__sub { max-width: 100%; padding: 0 24px; }
}

/* ---------- Testimonial grid ---------- */
.rp-testimonials { background: var(--white); }
.rp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}
.rp-card {
  display: flex;
  flex-direction: column;
  background: #F4F1EA;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease);
}
.rp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(10, 31, 31, 0.10);
}
.rp-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #F4F1EA;
}
/* Eddie video card — dark teal panel hosting the live Vimeo embed.
   Compound selector keeps the card slot at 16/10 (matching placeholders)
   and neutralises base.css .testimonial-video-frame's portrait caps. The
   Vimeo player letterboxes the 9:16 source inside the 16:10 frame against
   the dark #0A1F1F background — that's the intended behaviour, not a bug. */
.rp-card__media--video {
  background: #0A1F1F;
  cursor: pointer;
}
.rp-card__media--video.testimonial-video-frame {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  max-height: none;
}
.rp-card__media--placeholder { cursor: default; background: #F4F1EA; }
.rp-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.rp-card__play svg { transition: transform var(--tx) var(--ease); }
.rp-card__media--video:hover .rp-card__play svg { transform: scale(1.06); }
.rp-card__tag {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
/* COMING SOON label sits centred on the cream placeholder panel */
.rp-card__tag--soon {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  color: var(--ink-soft);
}
.rp-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.rp-card__h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.3;
  color: #1A1A2E;
  margin: 0;
}
.rp-card__machine {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #00E6CC;
  margin: auto 0 0;
}

.rp-vimeo-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Lifestyle grid ---------- */
.rp-lifestyle { }
.rp-life-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rp-life-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
  color: var(--white);
}
.rp-life-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg, linear-gradient(135deg, var(--dark-2), var(--dark-3)));
  background-size: cover;
  background-position: center;
  transition: transform 600ms var(--ease);
  z-index: -2;
}
.rp-life-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,31,0.10) 0%, rgba(10,31,31,0.55) 60%, rgba(10,31,31,0.92) 100%);
  z-index: -1;
}
.rp-life-tile:hover::before { transform: scale(1.05); }
.rp-life-tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
}
.rp-life-tile__h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.rp-life-tile__p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  margin: 0;
}

/* ---------- Protocols grid ---------- */
.rp-proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rp-proto-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease), border-color var(--tx) var(--ease);
}
.rp-proto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 31, 31, 0.08);
  border-color: rgba(0, 184, 160, 0.4);
}
.rp-proto-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.rp-proto-card__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00E6CC;
  align-self: center;
  flex-shrink: 0;
}
.rp-proto-card__pill {
  background: rgba(0, 230, 204, 0.08);
  border: 1px solid rgba(0, 230, 204, 0.3);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  flex-shrink: 0;
}
.rp-proto-card__pill-dur {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: #00E6CC;
  margin: 0 0 4px;
}
.rp-proto-card__pill-freq {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00E6CC;
  line-height: 1.3;
}
.rp-proto-card__h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: #1A1A2E;
  margin: 0;
}
.rp-proto-card__p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Safety section ---------- */
.rp-safety__head { text-align: center; margin-bottom: 36px; }
.rp-safety__head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
}
.rp-safety__body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.rp-safety__body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.rp-safety__gp {
  margin-top: 28px;
  padding: 22px 26px;
  background: rgba(0, 230, 204, 0.08);
  border-left: 3px solid #00E6CC;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
}
.rp-safety__gp strong { color: var(--teal-readable); font-weight: 600; }
.rp-safety__head h2 em { color: var(--teal-readable); font-style: italic; }

/* ---------- Teal Bubbles CTA ---------- */
.rp-cta {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.rp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/img/pages/real-people/teal-bubbles.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: -2;
}
.rp-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,31,0.65) 0%, rgba(10,31,31,0.45) 50%, rgba(10,31,31,0.8) 100%);
  z-index: -1;
}
.rp-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}
.rp-cta__eyebrow { color: var(--teal); margin-bottom: 22px; }
.rp-cta__h {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 20px;
}
.rp-cta__h em { color: var(--teal); font-style: italic; }
.rp-cta__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 36px;
}
.rp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .rp-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-proto-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-life-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rp-grid { grid-template-columns: 1fr; gap: 22px; }
  .rp-proto-grid { grid-template-columns: 1fr; }
  .rp-life-grid { grid-template-columns: 1fr; }
  .rp-life-tile { aspect-ratio: 4 / 3; }
  .rp-proto-card { padding: 28px; }
  .rp-proto-card__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rp-proto-card__h { font-size: 24px; }
  .rp-proto-card__pill { padding: 12px 16px; }
  .rp-proto-card__pill-dur { font-size: 20px; }
}
@media (max-width: 640px) {
  .rp-card__body { padding: 22px 20px 24px; }
  .rp-life-tile__caption { padding: 18px; }
}
@media (max-width: 480px) {
  .rp-hero__pill { padding: 10px 16px; font-size: 11px; }
  .rp-cta__buttons { flex-direction: column; }
  .rp-cta__buttons .btn { width: 100%; }
  .rp-proto-card { padding: 24px; }
  .rp-proto-card__h { font-size: 22px; }
  .rp-proto-card__pill { padding: 10px 14px; }
  .rp-proto-card__pill-dur { font-size: 18px; }
}

/* ---------- Testimonial card attribution + disclosure ----------
   Mirrors .hp-tcard__attr and .hp-tcard__disclosure from homepage.css.
   Replicated here because homepage.css is not loaded on this page. */
.hp-tcard__attr {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 24px 0 0;
}
.hp-tcard__disclosure {
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: italic;
  line-height: 1.3;
  color: var(--dark);
  opacity: 0.55;
  letter-spacing: 0.02em;
  margin: 4px 0 0;
}
@media (max-width: 900px) {
  .hp-tcard__disclosure { font-size: 9px; }
}
