/* Design D "Slider": builds on home-c.css (grid hero). Carousel + mobile-fluid headline. */

/* ---------- headline: fluid on every screen ---------- */
.hero-d .hero-h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; }
.hero-d .hero-h1-sub { font-size: max(16px, .42em); margin-top: 12px; line-height: 1.25; }
@media (max-width: 960px) {
  .hero-d .hero-h1 { font-size: clamp(38px, 9.4vw, 66px); }
  .hero-d .hero-sub { font-size: clamp(16px, 4.2vw, 19px); }
}
@media (max-width: 560px) {
  .hero-d .hero-eyebrow { font-size: 11px; }
  .hide-sm { display: none; }
  .hero-d .hero-checks-grid { font-size: 13.5px; }
}

/* ---------- carousel ---------- */
.hero-d .hero-c-right { max-width: 560px; margin: 0 auto; width: 100%; }
.tcar { position: relative; outline: none; }
.tcar:focus-visible .tcar-viewport { box-shadow: 0 0 0 3px rgba(36,87,245,.45), 0 36px 70px -34px rgba(23,24,28,.4); }
.tcar-viewport { position: relative; overflow: hidden; border-radius: 30px; background: #fff; border: 1px solid rgba(23,24,28,.08); box-shadow: 0 2px 4px rgba(23,24,28,.04), 0 36px 70px -34px rgba(23,24,28,.4); }
.tcar-track { display: flex; transition: transform .6s cubic-bezier(.22,1,.36,1); will-change: transform; }
.tcar-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; padding: 14px; align-items: stretch; }

.tcar-media { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(420px 220px at 78% 12%, rgba(226,30,38,.55), transparent 70%), radial-gradient(360px 220px at 8% 100%, rgba(36,87,245,.45), transparent 70%), #17181C; transform: translateZ(0); }
.tcar-video { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; border-radius: inherit; }
.tcar-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(16,17,20,.22), rgba(16,17,20,0) 36%); }
.tcar-slide.is-playing .tcar-media::after { display: none; }

.tcar-play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0,0,0,.35); cursor: pointer; transition: transform .2s; }
.tcar-play span { display: grid; place-items: center; margin-left: 3px; }
.tcar-play:hover { transform: scale(1.08); }
.tcar-play::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: tcring 2.2s ease-out infinite; }
@keyframes tcring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.tcar-slide.is-playing .tcar-play, .tcar-slide.is-done .tcar-play { display: none; }
.tcar-metric { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 10px; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22); font-size: 11.5px; color: var(--muted); }
.tcar-metric b { font-size: 14.5px; letter-spacing: -.02em; color: var(--red); }
.tcar-metric i { font-style: normal; font-weight: 600; }
.tcar-slide.is-playing .tcar-metric { display: none; }

/* arrows sit on the video edges so the next review is always visible */
.tcar-arrow { position: absolute; z-index: 5; top: 38%; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; background: rgba(23,24,28,.55); border: 1px solid rgba(255,255,255,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0,0,0,.3); transition: transform .2s, background .2s, opacity .2s; }
.tcar-arrow:hover { background: var(--red); transform: scale(1.08); }
.tcar-prev { left: 24px; }
.tcar-next { left: calc(14px + (100% - 28px) * .475 - 52px); }   /* on the video's right edge */
.tcar-arrow { animation: nudge 2.6s ease-in-out 1.2s 3; }
.tcar-next { animation-name: nudgeR; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes nudgeR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.tcar-viewport:has(.is-playing) .tcar-arrow { opacity: 0; pointer-events: none; }
.tcar-count { position: absolute; z-index: 5; left: calc(14px + (100% - 28px) * .475 - 66px); top: 24px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(23,24,28,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); letter-spacing: .04em; }
.tcar-count b { font-weight: 800; }
.tcar-viewport:has(.is-playing) .tcar-count { opacity: 0; }

/* end-of-video overlay: black gradient + pop-in button */
.tcar-end { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 24px 18px 26px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s;
  background: linear-gradient(180deg, rgba(8,9,11,.45) 0%, rgba(8,9,11,.82) 55%, rgba(8,9,11,.96) 100%); border-radius: inherit; }
.tcar-slide.is-done .tcar-end { opacity: 1; visibility: visible; transition: opacity .45s; }
.tcar-end-k { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.tcar-nextbtn { padding: 13px 20px; border-radius: 99px; font: 750 15px/1 var(--font); color: #fff; cursor: pointer; background: linear-gradient(135deg, #F0434A, #E21E26 55%, #FF7A45); box-shadow: 0 14px 34px -8px rgba(226,30,38,.8), inset 0 1px 0 rgba(255,255,255,.35); transform: scale(.6) translateY(14px); opacity: 0; }
.tcar-slide.is-done .tcar-nextbtn { animation: tcpop .6s .15s cubic-bezier(.34,1.56,.64,1) forwards; }
.tcar-nextbtn:hover { filter: brightness(1.08); transform: scale(1.04) !important; }
@keyframes tcpop { to { transform: scale(1) translateY(0); opacity: 1; } }
.tcar-replay { padding: 8px 14px; border-radius: 99px; font: 650 13px/1 var(--font); color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); cursor: pointer; }
.tcar-replay:hover { background: rgba(255,255,255,.2); }

.tcar-body { display: flex; flex-direction: column; justify-content: center; padding: 10px 10px 10px 20px; min-width: 0; }
.tcar-stars { color: #F5B301; letter-spacing: 3px; font-size: 15px; }
.tcar-q { margin: 8px 0 14px; font-size: 15.5px; line-height: 1.55; font-weight: 520; color: var(--ink); }
.tcar-who { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tcar-logo { width: 72px; height: 32px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 3px 6px; box-sizing: border-box; flex: none; }
.tcar-who b { display: block; font-size: 15px; letter-spacing: -.01em; }
.tcar-who small { color: var(--muted); font-size: 13px; }

.tcar-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tcar-chip { display: flex; align-items: center; gap: 9px; padding: 9px 10px; text-align: left; border-radius: 14px; background: #fff; border: 1.5px solid rgba(23,24,28,.1); cursor: pointer; min-width: 0; transition: transform .2s, border-color .2s, box-shadow .2s; }
.tcar-chip:hover { transform: translateY(-2px); }
.tcar-chip img { width: 42px; height: 20px; object-fit: contain; flex: none; }
.tcar-chip span { min-width: 0; display: block; line-height: 1.2; }
.tcar-chip b { display: block; font-size: 13px; }
.tcar-chip small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcar-chip.is-on { border-color: var(--red); box-shadow: 0 8px 20px -10px rgba(226,30,38,.5); }

/* phones: video on top with fully rounded corners, quote below */
@media (max-width: 560px) {
  .tcar-viewport { border-radius: 26px; }
  .tcar-slide { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tcar-media { border-radius: 20px; }
  .tcar-prev { left: 22px; } .tcar-next { left: auto; right: 22px; }
  .tcar-arrow { top: 36%; width: 40px; height: 40px; }
  .tcar-count { left: auto; right: 22px; top: 22px; }
  .tcar-body { padding: 16px 6px 6px; }
  .tcar-q { font-size: 15.5px; }
  .tcar-chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcar-track { transition: none; }
  .tcar-arrow, .tcar-play::before { animation: none !important; }
}
