/* © Cross Link by Chris Neaves. All rights reserved. */

body.history-body{
  background:radial-gradient(circle at top left,#ff4fad 0,#6b1bbf 36%,#1a0633 80%);
  min-height:100vh;
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:#16052f;
}
.history-wrap{max-width:860px;margin:0 auto;padding:24px 16px 64px;display:flex;flex-direction:column;gap:18px}

/* ── Back link ── */
.history-back{
  display:inline-block;color:#7a2bd6;font-weight:900;text-decoration:none;font-size:13px;
}
.history-back:hover{text-decoration:underline}

/* ── Hero ── */
.history-hero{
  background:rgba(255,255,255,.96);
  border-radius:24px;
  padding:26px 24px 22px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
  text-align:center;
}
.history-hero h1{
  margin:14px 0 6px;
  font-size:34px;
  font-weight:900;
  letter-spacing:-.5px;
  color:#16052f;
  line-height:1.2;
}
.history-hero-lead{
  max-width:620px;
  margin:0 auto 8px;
  font-size:15px;
  line-height:1.55;
  color:#241044;
  font-weight:600;
}

/* ── Content sections ── */
.history-section{
  display:flex;
  align-items:flex-start;
  gap:24px;
  background:rgba(255,255,255,.96);
  border-radius:24px;
  padding:24px;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}
.history-section-reverse{flex-direction:row-reverse}
.history-section-img{
  flex:0 0 38%;max-width:38%;
}
.history-section-img img{
  width:100%;height:auto;display:block;
  border-radius:16px;object-fit:cover;
  box-shadow:0 8px 24px rgba(122,43,214,.14);
  transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease;
}
.history-section-img img:hover{
  transform:scale(1.03);
  box-shadow:0 12px 32px rgba(122,43,214,.24);
}
.cl-journey-beginning .history-section-img{
  border:2px solid transparent;
  border-radius:18px;
  background-origin:border-box;background-clip:padding-box,border-box;
  background-image:linear-gradient(rgba(255,255,255,.96),rgba(255,255,255,.96)),linear-gradient(135deg,#e04848,#4888e0,#48c878,#e0c848);
  animation:historyBorderGlow 4s ease-in-out infinite alternate;
}
@keyframes historyBorderGlow{
  0%{box-shadow:0 0 12px rgba(122,43,214,.15)}
  100%{box-shadow:0 0 22px rgba(177,76,232,.25)}
}
.history-section-text{flex:1 1 0%;min-width:0}
.history-section-text h2{
  font-size:22px;font-weight:900;color:#16052f;
  margin:0 0 14px;line-height:1.2;
}
.history-section-text p{
  font-size:14.5px;font-weight:600;color:#241044;
  line-height:1.6;margin:0 0 10px;max-width:520px;
}
.history-section-text ul{
  margin:6px 0 0 18px;padding:0;list-style:disc;
}
.history-section-text li{
  font-size:14.5px;font-weight:600;color:#241044;
  line-height:1.6;margin-bottom:4px;
}

/* ── Feedback section ── */
.history-feedback{
  background:rgba(255,255,255,.96);
  border-radius:24px;
  padding:24px;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}
.history-feedback-title{
  font-size:20px;font-weight:900;color:#16052f;
  margin:0 0 18px;line-height:1.2;text-align:center;
}
.history-quotes{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;
  margin-bottom:22px;
}
.history-quote{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#f7f5ff;
  border:1.5px solid rgba(122,43,214,.12);
  border-radius:14px;padding:14px 16px;
  transition:transform .2s ease,box-shadow .25s ease;
}
.history-quote:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(122,43,214,.12);
}
.history-quote-text{
  font-size:13.5px;font-weight:700;color:#241044;
  line-height:1.4;flex:1 1 0%;font-style:italic;
}
.history-quote-score{
  font-size:20px;font-weight:900;white-space:nowrap;
  background:linear-gradient(135deg,#7a2bd6,#b14ce8,#ff5fae);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}
.history-quote-score small{
  font-size:13px;font-weight:700;opacity:.6;
}
.history-ratings{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 16px;
}
.history-rating{display:flex;align-items:center;gap:10px}
.history-rating-label{
  font-size:13px;font-weight:800;color:#16052f;
  min-width:80px;text-align:right;
}
.history-rating-bar{
  flex:1 1 0%;height:8px;border-radius:6px;
  background:rgba(122,43,214,.1);overflow:hidden;
}
.history-rating-fill{
  display:block;height:100%;border-radius:6px;
  background:linear-gradient(90deg,#7a2bd6,#b14ce8,#ff5fae);
  transition:width .6s cubic-bezier(.22,1,.36,1);
}
.history-rating-val{
  font-size:14px;font-weight:900;color:#16052f;
  min-width:28px;
}

/* ── Stat cards ── */
.history-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;
}
.history-stat{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  background:rgba(255,255,255,.96);
  border:1.5px solid rgba(122,43,214,.12);
  border-radius:18px;padding:20px 10px;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
  transition:transform .2s ease,box-shadow .25s ease;
}
.history-stat:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.2);
}
.history-stat-icon{font-size:24px;line-height:1}
.history-stat-label{
  font-size:13px;font-weight:900;color:#16052f;text-align:center;
}

/* ── Future / Timeline ── */
.history-future{
  text-align:center;padding:32px 24px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 32px rgba(0,0,0,.18);
  position:relative;overflow:hidden;
}
.history-timeline{
  display:flex;align-items:center;justify-content:center;gap:0;
  margin-bottom:22px;
}
.history-node{
  width:14px;height:14px;border-radius:50%;
  background:linear-gradient(135deg,#7a2bd6,#b14ce8);
  box-shadow:0 0 12px rgba(122,43,214,.35);
  animation:historyNodePulse 2.4s ease-in-out infinite;
  flex-shrink:0;
}
.history-node:nth-child(3){animation-delay:.4s}
.history-node:nth-child(5){animation-delay:.8s}
@keyframes historyNodePulse{
  0%,100%{box-shadow:0 0 8px rgba(122,43,214,.25);transform:scale(1)}
  50%{box-shadow:0 0 18px rgba(177,76,232,.45);transform:scale(1.15)}
}
.history-line{
  width:48px;height:3px;border-radius:2px;
  background:linear-gradient(90deg,rgba(122,43,214,.25),rgba(177,76,232,.4));
  flex-shrink:0;
}
.history-future h2{
  font-size:22px;font-weight:900;color:#16052f;
  margin:0 0 14px;line-height:1.2;
}
.history-future p{
  font-size:14.5px;font-weight:600;color:#241044;
  line-height:1.6;margin:0 auto 10px;max-width:520px;
}
.history-highlight{
  font-size:17px!important;font-weight:900!important;
  background:linear-gradient(135deg,#7a2bd6,#b14ce8,#ff5fae);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
  margin:4px auto 14px!important;
}

/* ── CTA ── */
.history-cta{
  text-align:center;padding:32px 24px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}
.history-cta h2{
  font-size:22px;font-weight:900;color:#16052f;
  margin:0 0 12px;line-height:1.2;
}
.history-cta p{
  font-size:14.5px;font-weight:600;color:#241044;
  line-height:1.6;margin:0 auto 10px;max-width:520px;
}
.history-cta-buttons{
  display:flex;align-items:center;justify-content:center;gap:12px;
  flex-wrap:wrap;margin-top:10px;
}
.history-cta-btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 28px;border:none;border-radius:14px;cursor:pointer;
  background:linear-gradient(135deg,#7a2bd6 0%,#b14ce8 60%,#ff5fae 100%);
  color:#fff;font-weight:900;font-size:15px;
  box-shadow:0 8px 22px rgba(122,43,214,.3);
  transition:filter .12s ease,transform .08s ease;
  text-decoration:none;
}
.history-support-btn{
  background:linear-gradient(135deg,#c232a8 0%,#ff5fae 60%,#ff8fd4 100%);
  box-shadow:0 8px 22px rgba(194,50,168,.3);
}
.history-cta-btn:hover{filter:brightness(1.08)}
.history-cta-btn:active{transform:scale(.97)}

/* ── Footer ── */
.history-footer{
  text-align:center;
  padding:8px 0;
}

/* ── Reveal animation ── */
.cl-reveal{opacity:0;transform:translateY(28px);transition:opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1)}
.cl-reveal.is-visible{opacity:1;transform:none}

/* ── Responsive ── */
@media(max-width:720px){
  .history-hero h1{font-size:26px}
  .history-hero-lead{font-size:14px}
  .history-section{flex-direction:column;gap:18px;padding:20px 18px}
  .history-section-reverse{flex-direction:column}
  .history-section-img{max-width:100%;flex:none}
  .history-stats{grid-template-columns:1fr 1fr}
  .history-future{padding:24px 18px}
  .history-cta{padding:24px 18px}
  .history-future h2,.history-cta h2{font-size:20px}
  .history-section-text h2{font-size:20px}
  .history-feedback{padding:20px 18px}
  .history-feedback-title{font-size:18px}
  .history-quotes{grid-template-columns:1fr}
  .history-ratings{grid-template-columns:1fr}
}
@media(max-width:480px){
  .history-hero{padding:20px 14px}
  .history-hero h1{font-size:22px}
  .history-section{padding:18px 14px}
  .history-stats{gap:8px}
  .history-stat{padding:14px 8px}
  .history-stat-icon{font-size:20px}
  .history-stat-label{font-size:12px}
  .history-future{padding:20px 14px}
  .history-cta{padding:20px 14px}
  .history-feedback{padding:16px 14px}
  .history-rating-label{min-width:68px;font-size:12px}
}
