/* ===== INSIGHTS LANDING PAGE ===== */

/* — Listing Section — */
.insights-listing{
  background:var(--white);padding:100px 0 120px;
}
.insights-listing-grid{
  display:flex;flex-direction:column;gap:32px;
}

/* — Listing Card (horizontal layout) — */
.insight-listing-card{
  display:grid;grid-template-columns:340px 1fr;
  background:var(--white);
  border:1px solid rgba(20,20,64,.06);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .4s var(--ease-out-expo),box-shadow .4s,border-color .3s;
  text-decoration:none;color:inherit;
  position:relative;
}
.insight-listing-card:hover{
  transform:translateY(-6px);
  border-color:rgba(38,55,244,.15);
  box-shadow:0 20px 50px rgba(20,20,64,.08);
}
/* insight-listing-card chevron/glow now in global.css shared card patterns */
.insight-listing-card::before{z-index:1} /* keep z-index override */

/* — Card Image — */
.insight-listing-img{
  height:100%;min-height:220px;
  position:relative;overflow:hidden;
  background:var(--indigo);
}
.insight-listing-img img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .6s var(--ease-out-expo);
}
.insight-listing-card:hover .insight-listing-img img{transform:scale(1.05)}

/* — Card Body — */
.insight-listing-body{
  padding:36px 40px;
  display:flex;flex-direction:column;justify-content:center;gap:6px;
}
.insight-listing-meta{
  display:flex;align-items:center;gap:12px;margin-bottom:8px;
}
.insight-listing-body .insight-tag{
  display:inline-block;padding:4px 14px;border-radius:20px;
  font-size:11px;font-weight:500;
  background:rgba(38,55,244,.07);color:var(--system-blue);
}
.insight-read-time{
  font-size:12px;font-weight:400;color:rgba(20,20,64,.4);
}
.insight-listing-body h2{
  font-weight:700;font-size:clamp(20px,2.5vw,26px);
  line-height:1.3;margin-bottom:8px;color:var(--indigo);
  transition:color .2s;
}
.insight-listing-card:hover h2{color:var(--system-blue)}
.insight-listing-body p{
  font-size:15px;font-weight:300;line-height:1.75;
  color:rgba(20,20,64,.55);margin-bottom:12px;
}
.insight-listing-body .insight-link{
  font-size:13px;font-weight:500;color:var(--system-blue);
  display:inline-flex;align-items:center;gap:6px;
  transition:gap .3s;margin-top:auto;
}
.insight-listing-card:hover .insight-link{gap:12px}
.insight-listing-body .insight-link .arrow{transition:transform .3s}
.insight-listing-card:hover .insight-link .arrow{transform:translateX(3px)}

/* insight-listing-card ::after (glow bar) now in global.css shared card patterns */

/* ===== CASE STUDY CTA ===== */
.case-study-section{
  background:var(--indigo);padding:100px 0;
  position:relative;overflow:hidden;color:#fff;
}

/* Animated background lines (same pattern as Alex section) */
.case-study-bg-lines{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:.06;
}
.case-study-bg-lines span{
  position:absolute;width:1px;height:200%;
  background:linear-gradient(180deg,transparent,#fff 30%,#fff 70%,transparent);
  animation:csLineSlide 8s linear infinite;
}
.case-study-bg-lines span:nth-child(1){left:10%;animation-delay:0s}
.case-study-bg-lines span:nth-child(2){left:25%;animation-delay:2s}
.case-study-bg-lines span:nth-child(3){left:45%;animation-delay:4s}
.case-study-bg-lines span:nth-child(4){left:65%;animation-delay:1s}
.case-study-bg-lines span:nth-child(5){left:80%;animation-delay:3s}
.case-study-bg-lines span:nth-child(6){left:92%;animation-delay:5s}
@keyframes csLineSlide{
  0%{transform:translateY(-50%) rotate(15deg)}
  100%{transform:translateY(0%) rotate(15deg)}
}

/* — Header — */
.case-study-header{margin-bottom:52px;position:relative}
.case-study-header h2{
  font-weight:800;font-size:clamp(28px,4vw,42px);
  line-height:1.12;max-width:720px;margin-bottom:16px;color:#fff;
}
.case-study-subtitle{
  font-size:17px;font-weight:300;line-height:1.8;
  color:rgba(255,255,255,.6);max-width:680px;
}

/* — 3-Column Content Grid — */
.case-study-columns{
  display:grid;grid-template-columns:1fr 1fr 1fr;gap:32px;
  margin-bottom:52px;position:relative;
}
.case-study-col h3{
  font-weight:700;font-size:15px;
  text-transform:uppercase;letter-spacing:1.5px;
  color:var(--chartreuse);margin-bottom:14px;
}
.case-study-col p{
  font-size:15px;font-weight:300;line-height:1.8;
  color:rgba(255,255,255,.65);
}
.case-study-col ul{
  list-style:none;display:flex;flex-direction:column;gap:8px;
  margin-bottom:28px;
}
.case-study-col li{
  font-size:14px;font-weight:300;line-height:1.65;
  color:rgba(255,255,255,.6);
  padding-left:18px;position:relative;
}
.case-study-col li::before{
  content:'';position:absolute;left:0;top:8px;
  width:6px;height:6px;border-radius:3px;
  background:var(--reverse-blue);
}
.case-study-results li{
  font-size:15px;
}
.case-study-results li strong{
  font-weight:700;color:var(--chartreuse);
  font-family:var(--font-heading);
}

/* — Visual column — */
.case-study-col-visual{
  display:flex;align-items:stretch;justify-content:center;
}
.case-study-visual{
  position:relative;overflow:hidden;
  width:100%;min-height:280px;
  border-radius:var(--radius);
}
.case-study-visual img{
  width:100%;height:100%;
  object-fit:cover;
  border-radius:var(--radius);
}

/* — Form — */
.case-study-form-wrap{
  position:relative;
  padding-top:40px;
  border-top:1px solid rgba(255,255,255,.08);
}
.case-study-form-row{
  display:flex;gap:12px;align-items:flex-start;
  max-width:560px;
}
.case-study-input-wrap{
  flex:1;display:flex;flex-direction:column;gap:4px;
}
.case-study-input{
  width:100%;padding:14px 16px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--radius-sm);
  font-family:var(--font-body);font-size:15px;font-weight:400;
  color:#fff;background:rgba(255,255,255,.06);
  transition:border-color .2s,box-shadow .2s;
  outline:none;
}
.case-study-input::placeholder{color:rgba(255,255,255,.35);font-weight:300}
.case-study-input:focus{
  border-color:var(--reverse-blue);
  box-shadow:0 0 0 3px rgba(86,137,255,.15);
}
.case-study-input.form-input-invalid{
  border-color:var(--burnt-orange);
  box-shadow:0 0 0 3px rgba(223,109,78,.15);
}
.case-study-form .btn{
  white-space:nowrap;padding:14px 28px;flex-shrink:0;
}
.case-study-form .btn-spinner{
  display:inline-block;width:16px;height:16px;
  border:2px solid rgba(20,20,64,.2);border-top-color:var(--indigo);
  border-radius:50%;animation:caseStudySpin .6s linear infinite;
}
@keyframes caseStudySpin{to{transform:rotate(360deg)}}

/* — Consent — */
.case-study-form .consent-row{
  display:flex;align-items:flex-start;gap:8px;margin-top:14px;
}
.case-study-form .consent-row input[type="checkbox"]{
  width:16px;height:16px;margin-top:2px;flex-shrink:0;
  accent-color:var(--reverse-blue);cursor:pointer;
}
.case-study-form .consent-row label{
  font-size:13px;font-weight:300;line-height:1.5;
  color:rgba(255,255,255,.45);cursor:pointer;
}

/* — Form error under input — */
.case-study-form .form-error{
  font-size:13px;font-weight:400;color:var(--burnt-orange);
  min-height:18px;
}

/* — Success / Error states — */
.case-study-success{
  display:flex;align-items:center;gap:10px;
  padding:14px 0;
}
.case-study-success .form-success-icon{
  width:32px;height:32px;border-radius:50%;
  background:rgba(34,197,94,.15);color:#22c55e;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:500;flex-shrink:0;
}
.case-study-success p{
  font-size:14px;font-weight:400;color:rgba(255,255,255,.8);
  margin:0;
}
.case-study-error p{
  font-size:13px;font-weight:400;color:var(--burnt-orange);
  margin:8px 0 0;
}

/* — Responsive — */
@media(max-width:900px){
  .insight-listing-card{grid-template-columns:1fr}
  .insight-listing-img{min-height:180px;height:180px}
  .insight-listing-body{padding:26px}
  .case-study-columns{grid-template-columns:1fr;gap:28px}
  .case-study-visual{min-height:180px}
}
@media(max-width:640px){
  .insights-listing{padding:60px 0 80px}
  .insight-listing-body{padding:22px}
  .insight-listing-body h2{font-size:18px}
  .case-study-section{padding:60px 0}
  .case-study-header h2{font-size:24px}
  .case-study-form-row{flex-direction:column}
  .case-study-form .btn{width:100%;justify-content:center}
}
