.testimonials-section{padding:64px 0 96px;background:#fff}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:start}
.testimonial-card{margin:0;padding:18px;border:1px solid var(--rule);border-radius:10px;background:#fff;min-width:0}
.testimonial-video{aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#071936}
.testimonial-video iframe{display:block;width:100%;height:100%;border:0}
.testimonial-card blockquote{margin:24px 6px 20px;color:var(--text);font-size:1.0625rem;line-height:1.75}
.testimonial-card figcaption{margin:0 6px 8px;color:var(--ink);font-weight:700}
@media(max-width:1040px){.testimonials-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.testimonials-grid{grid-template-columns:1fr}.testimonials-section{padding:40px 0 64px}}

.testimonial-card:only-child{grid-column:1 / -1;width:min(100%,560px);justify-self:center}

.written-testimonials{padding:72px 0 96px;border-top:1px solid var(--rule);background:#fff}
.written-testimonials-grid{columns:2;column-gap:28px}
.written-testimonial{break-inside:avoid;display:flow-root;margin:0 0 28px;padding:32px;border:1px solid var(--rule);border-radius:10px;background:#fff;min-width:0}
.written-testimonial-stars{color:#b47814;letter-spacing:3px;font-size:22px;line-height:1.2}
.written-testimonial blockquote{margin:22px 0 28px;color:var(--text);font-size:1rem;line-height:1.8}
.written-testimonial-person{display:flex;align-items:center;gap:16px}
.written-testimonial-person img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.written-testimonial-person strong{display:block;color:var(--ink);font-weight:700}
.written-testimonial-person span{display:block;color:#56667d;font-size:.9375rem;margin-top:4px}
@media(max-width:760px){.written-testimonials{padding:48px 0 64px}.written-testimonials-grid{columns:1}.written-testimonial{padding:24px}}

.written-testimonial blockquote p+p{margin-top:18px}
.written-testimonial blockquote ul{margin:18px 0;padding-left:22px;list-style:disc}

/* Testimonials body follows the shared navy, gray, white rhythm. */
.sp-testimonials .testimonials-section,.sp-testimonials .written-testimonials{position:relative;isolation:isolate;border:0;padding-bottom:112px}
.sp-testimonials .testimonials-section{background:#f1f3f5}
.sp-testimonials .written-testimonials{background:#071936}
.sp-testimonials .testimonials-section::after,.sp-testimonials .written-testimonials::after{content:"";position:absolute;inset:auto 0 -1px;height:40px;clip-path:polygon(0 0,38% 100%,100% 0,100% 100%,0 100%);pointer-events:none;z-index:-1}
.sp-testimonials .testimonials-section::after{background:#071936}
.sp-testimonials .written-testimonials::after{background:#fff}
.sp-testimonials .shared-process::before{display:none}
@media(max-width:640px){.sp-testimonials .testimonials-section,.sp-testimonials .written-testimonials{padding-bottom:76px}.sp-testimonials .testimonials-section::after,.sp-testimonials .written-testimonials::after{height:24px}}

body.sp-testimonials .shared-process{--step-surface:#f1f3f5;background:var(--step-surface)}
body.sp-testimonials .shared-process::after{background:#fff}
body.sp-testimonials .shared-cta-centered{position:relative;isolation:isolate;background:#fff;padding-bottom:24px}
body.sp-testimonials .shared-cta-centered::after{content:"";position:absolute;inset:auto 0 -1px;height:40px;background:#f1f3f5;clip-path:polygon(0 0,38% 100%,100% 0,100% 100%,0 100%);pointer-events:none;z-index:-1}
@media(max-width:640px){body.sp-testimonials .shared-cta-centered{padding-bottom:24px}body.sp-testimonials .shared-cta-centered::after{height:24px}}

.sp-testimonials .written-testimonials .section-head h2{color:#fff}
body.sp-testimonials .shared-cta-centered::after{background:#f1f3f5}
body.sp-testimonials .shared-process::after{display:none}

/* Testimonials closing order: gray CTA area, white steps, gray reviews. */
body.sp-testimonials .shared-cta-centered{background:#f1f3f5}
body.sp-testimonials .written-testimonials::after{background:#f1f3f5}
body.sp-testimonials .shared-cta-centered::after{background:#fff}
body.sp-testimonials .shared-process{--step-surface:#fff;background:var(--step-surface)}
body.sp-testimonials .shared-process::after{display:block;background:#f1f3f5}

/* Written reviews now lead directly into the white steps. */
.sp-testimonials .written-testimonials::after{background:#fff}
body.sp-testimonials .shared-cta-centered::after{display:none}

body.sp-testimonials .written-testimonials::after{background:#fff}

/* Compact transition from video reviews into written reviews. */
body.sp-testimonials .testimonials-section{padding-bottom:40px}
body.sp-testimonials .written-testimonials{padding-top:32px}
@media(max-width:640px){body.sp-testimonials .testimonials-section{padding-bottom:32px}body.sp-testimonials .written-testimonials{padding-top:24px}}
