/* V7 homepage: testimonials. Ported from the prototype (src/css/12-home-t.css); the Spotlight display (data-testi="spot") is the
   shipped default; the review-only Slider option is removed. */

#p-home-t{overflow-x:clip}
#p-home-t .t-sec{padding-block:var(--sec)}
#p-home-t .t-head{text-align:center;max-width:1000px;margin-inline:auto}
#p-home-t .t-head h2{margin:0}
#p-home-t .t-head p{margin:14px auto 0;font:400 var(--t-lede)/1.45 var(--f);color:var(--mute);max-width:36em}
#p-home-t .t-grid{margin-top:clamp(26px,2.4cqi,34px)}
@container site (min-width: 961px){
  #p-home-t .t-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:stretch;border-top:1px solid var(--line)}
  #p-home-t .t-card+.t-card{border-left:1px solid var(--line)}
}
@container site (min-width: 601px) and (max-width: 960px){
  #p-home-t .t-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--line)}
  #p-home-t .t-card:nth-child(even){border-left:1px solid var(--line)}
  #p-home-t .t-card:nth-child(n+3){border-top:1px solid var(--line)}
}
/* open columns: hairlines and type only, no box */
#p-home-t .t-card{display:flex;flex-direction:column;margin:0;padding:clamp(22px,2cqi,28px) clamp(18px,1.9cqi,28px) 0;color:var(--ink)}
#p-home-t .t-card:first-child{padding-left:0}
#p-home-t .t-card:last-child{padding-right:0}
/* client logos: one ink, matched by eye to the same optical height (each mark draws differently, so heights differ) */
#p-home-t .t-logo{height:32px;display:flex;align-items:center}
#p-home-t .t-logo img{display:block;width:auto;max-width:150px;filter:brightness(0);opacity:.88}
#p-home-t .t-logo--alexa img{height:32px}
#p-home-t .t-logo--lever img{height:26px}
#p-home-t .t-logo--nextiva img{height:24px}
#p-home-t .t-logo--sandvik img{height:19px}
#p-home-t .t-text{margin:18px 0 0;font:400 16px/1.55 var(--f);letter-spacing:-.01em;text-wrap:pretty;color:var(--ink)}
#p-home-t .t-who{margin-top:auto;padding-top:20px;padding-bottom:4px;display:flex;align-items:center;gap:12px}
#p-home-t .t-face{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none;background:var(--line-2);border:1px solid var(--line)}
#p-home-t .t-name{display:block;font:600 16px/1.25 var(--f);letter-spacing:-.01em}
#p-home-t .t-role{display:block;min-height:2.7em;margin-top:1px;font:400 14px/1.35 var(--f);color:var(--mute)}
#p-home-t .t-cta{margin-top:clamp(22px,2cqi,28px);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 22px;text-align:center}
#p-home-t .t-cta .sg-small{margin:0}
@container site (max-width: 600px){
  #p-home-t .t-nb{white-space:nowrap}
  /* V5 (Jev review item 1): one WHOLE testimonial per view, no sliver of the next (gap is wider than the side gutter) */
  #p-home-t .t-grid{margin-top:28px;grid-auto-columns:100%;column-gap:calc(var(--gut) + 8px)}
  #p-home-t .t-grid>.t-card{scroll-snap-stop:always}
  #p-home-t .t-text{font-size:16px}
  #p-home-t .t-cta{flex-direction:column;margin-top:32px}
  #p-home-t .t-card,#p-home-t .t-card:first-child,#p-home-t .t-card:last-child{padding:0 4px 0 0}
}
/* V6 11-05 (Shaun 11-04: the case + testimonial sections don't hold attention): review option "Testimonials": Current (four open
   columns) | Spotlight = one large quote at a time, the client logos as the switch, rotating every 6s while in view (pauses on
   hover/focus; still under reduced motion). */
#p-home-t .t-tabs{display:none}
#p-home-t[data-testi="spot"] .t-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:6px clamp(18px,3cqi,44px);margin-top:clamp(26px,2.4cqi,34px)}
#p-home-t .t-tab{appearance:none;background:none;border:0;cursor:pointer;height:52px;padding:0 6px;position:relative;opacity:.38;transition:opacity .3s ease}
#p-home-t .t-tab img{display:block;width:auto;max-width:140px;filter:brightness(0)}
#p-home-t .t-tab::after{content:"";position:absolute;left:6px;right:6px;bottom:2px;height:2px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
#p-home-t .t-tab:hover{opacity:.7}
#p-home-t .t-tab[aria-selected="true"]{opacity:1}
#p-home-t .t-tab[aria-selected="true"]::after{transform:none}
#p-home-t .t-tab.t-logo--alexa img{height:30px} #p-home-t .t-tab.t-logo--lever img{height:24px} #p-home-t .t-tab.t-logo--nextiva img{height:22px} #p-home-t .t-tab.t-logo--sandvik img{height:18px}
#p-home-t[data-testi="spot"] .t-grid{display:block!important;border-top:0;margin-top:clamp(18px,2cqi,28px);overflow:visible!important}
#p-home-t[data-testi="spot"] .t-card{display:none;max-width:46em;margin:0 auto;padding:clamp(24px,2.6cqi,40px) 0 0!important;border:0!important;text-align:center;align-items:center}
#p-home-t[data-testi="spot"] .t-card.is-on{display:flex;animation:t-in .5s var(--ease)}
@keyframes t-in{from{opacity:0;transform:translateY(8px)}}
#p-home-t[data-testi="spot"] .t-card .t-logo{display:none}
#p-home-t[data-testi="spot"] .t-text{margin:0;font:500 clamp(22px,2.3cqi,32px)/1.35 var(--f);letter-spacing:-.02em}
#p-home-t[data-testi="spot"] .t-who{justify-content:center;text-align:left;padding-top:26px}
#p-home-t[data-testi="spot"] .t-role{min-height:0}
#p-home-t[data-testi="spot"] .sg-swipe__dots{display:none!important}
@container site (max-width: 600px){
  #p-home-t[data-testi="spot"] .t-tabs{gap:4px 14px}
  #p-home-t[data-testi="spot"] .t-tab img{max-width:96px}
  #p-home-t[data-testi="spot"] .t-text{font-size:20px}
}
/* r16b: Amazon + Nasdaq logos (Eric 11-14) */
#p-home-t img[src$="logo-amazon.png"]{height:24px!important;width:auto}
#p-home-t img[src$="logo-nasdaq.png"]{height:22px!important;width:auto}
/* r34 (Kriste 11-18): the four client logos as 2 x 2 on phone (they wrapped 3 + 1) */
@container site (max-width: 600px){
  #p-home-t[data-testi="spot"] .t-tabs{display:grid;grid-template-columns:repeat(2,max-content);justify-content:center;column-gap:36px;row-gap:8px}
}

/* WP theme leak guard (main-home-v3.css: a:hover recolours links and drops the underline; img{height:auto}; figure/blockquote reset). */
:where(#p-home-t) a.sg-link:hover{color:var(--ink);text-decoration-line:underline}
