/*
 * ============================================================
 * home.css — Homepage-only sections (loaded by index.html ONLY)
 * ============================================================
 * what · how · features (bento) · skill · trust · cta
 * Tokens/nav/hero are in critical.css; shared shell is in common.css.
 * Grouped layout-origin (structural wrappers + responsive) first,
 * then component-origin, to preserve the original cascade order.
 * ============================================================
 */

/* ══════════════════════════
   WHAT IS TYPEDOJO — Section wrapper
══════════════════════════ */
.what{
  background:#ffffff;
  padding:clamp(64px,8vw,100px) var(--px);
}
.what__inner{
  max-width:1280px;margin:0 auto;
}

/* top — headline + body copy */
.what__top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(40px,6vw,100px);
  align-items:center;
  margin-bottom:clamp(48px,7vw,80px);
}

/* cards row */
.what__cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(16px,2vw,24px);
}

/* ══════════════════════════
   HOW IT WORKS — Section wrapper
══════════════════════════ */
.how{
  background:#EEF6FF;
  padding:clamp(64px,8vw,100px) var(--px);
  position:relative;
  overflow:hidden;
}
.how__inner{
  max-width:1280px;margin:0 auto;
}
.how__header{
  text-align:center;
  margin-bottom:clamp(48px,7vw,72px);
}

/* Steps row */
.how__steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  position:relative;
  align-items:start;
}

/* Dotted connector line */
.how__steps::before{
  content:'';
  position:absolute;
  top:52px;
  left:calc(16.66% + 16px);
  right:calc(16.66% + 16px);
  height:2px;
  background:repeating-linear-gradient(
    90deg,
    #c7dff7 0px,
    #c7dff7 8px,
    transparent 8px,
    transparent 16px
  );
  z-index:0;
  /* draw left to right on scroll */
  transform-origin:left;
  transform:scaleX(0);
  transition:transform 1s cubic-bezier(0.22,1,0.36,1);
}
.how__steps.revealed::before{
  transform:scaleX(1);
}

/* Each step */
.how__step{
  display:flex;flex-direction:column;
  align-items:center;text-align:center;
  padding:0 clamp(16px,2.5vw,40px);
  position:relative;z-index:1;
  /* start hidden for bounce animation */
  opacity:0;
  transform:translateY(40px) scale(0.92);
}
.how__step.revealed{
  opacity:1;
  transform:translateY(0) scale(1);
  transition:opacity 0.55s ease,
             transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
}
.how__step:nth-child(1).revealed{transition-delay:0s;}
.how__step:nth-child(2).revealed{transition-delay:0.15s;}
.how__step:nth-child(3).revealed{transition-delay:0.3s;}

/* ══════════════════════════
   FEATURES — BENTO grid wrapper
══════════════════════════ */
.features{
  background:#ffffff;
  padding:clamp(64px,8vw,100px) var(--px);
  border-top:1px solid #e8f0fb;
}
.features__inner{max-width:1280px;margin:0 auto;}
.features__header{
  text-align:center;
  margin-bottom:clamp(48px,7vw,72px);
}
.features__headline{
  font-size:clamp(24px,3.2vw,40px);
  font-weight:800;
  color:#1A2238;
  line-height:1.15;
  margin-bottom:12px;
}
.features__headline span{
  color:var(--yellow);
  font-weight:900;
}
.features__sub{
  font-size:clamp(14px,1.3vw,16px);
  font-weight:600;
  color:#5a7098;
  max-width:640px;
  margin:0 auto;
  line-height:1.7;
  text-wrap:balance;
}

/* Bento grid */
.features__bento{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.5fr;
  grid-template-rows:auto auto;
  gap:clamp(12px,1.5vw,20px);
}

/* Bento grid placement */
.fc-lessons{grid-column:1/span 2;grid-row:1;}
.fc-test{grid-column:3;grid-row:1;}
.fc-grade{grid-column:4;grid-row:1;}
.fc-wpm{grid-column:1;grid-row:2;}
.fc-games{grid-column:2;grid-row:2;}
.fc-progress{grid-column:3/span 2;grid-row:2;}

/* Small cards — prevent cramping */
.fc-test,.fc-grade,.fc-wpm,.fc-games{
  min-width:0;
  padding:clamp(24px,3vw,32px) clamp(20px,2vw,28px);
}
.fc-lessons,.fc-progress{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* ══════════════════════════
   BUILD SKILL SECTION — Wrapper
══════════════════════════ */
.skill{
  background:#EEF6FF;
  padding:clamp(64px,8vw,100px) var(--px);
}
.skill__inner{
  max-width:1280px;margin:0 auto;
}
.skill__header{
  text-align:center;
  margin-bottom:clamp(48px,7vw,72px);
}

/* Cards grid */
.skill__cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(16px,2vw,24px);
  margin-bottom:clamp(32px,5vw,52px);
  align-items:stretch;
}
.skill__card{
  display:flex;
  flex-direction:column;
}

/* ══════════════════════════
   TRUST SECTION — Wrapper
══════════════════════════ */
.trust{
  background:#ffffff;
  padding:clamp(64px,8vw,100px) var(--px);
}
.trust__inner{
  max-width:1100px;margin:0 auto;
  text-align:center;
}

/* 2x2 grid */
.trust__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(14px,2vw,20px);
}

/* ══════════════════════════
   CTA SECTION — Wrapper
══════════════════════════ */
.cta{
  background:linear-gradient(to bottom,#1A2238,#1A2038);
  padding:clamp(48px,6vw,80px) var(--px);
  position:relative;
  overflow:hidden;
  text-align:center;
}

/* Radial glow — same as hero */
.cta::before{
  content:'';position:absolute;
  top:0;left:50%;
  width:clamp(400px,70vw,900px);
  height:clamp(400px,70vw,900px);
  background:radial-gradient(circle,rgba(79,134,247,0.08) 0%,transparent 65%);
  transform:translateX(-50%);
  pointer-events:none;border-radius:50%;
}

/* Star particles — reuse hero style */
.cta__stars{
  position:absolute;inset:0;
  pointer-events:none;overflow:hidden;
}

.cta__inner{
  max-width:680px;margin:0 auto;
  position:relative;z-index:2;
}

/* CTA buttons wrapper */
.cta__btns{
  display:flex;gap:16px;
  justify-content:center;flex-wrap:wrap;
  opacity:0;transform:translateY(20px);
  transition:opacity 0.6s ease 0.3s,
             transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s;
}
.cta__btns.revealed{opacity:1;transform:translateY(0);}

/* ══════════════════════════
   RESPONSIVE — homepage sections
══════════════════════════ */

/* What section responsive */
@media(max-width:900px){
  .what__top{grid-template-columns:1fr;text-align:center;}
  .what__cards{grid-template-columns:1fr 1fr;}
}
@media(max-width:560px){
  .what__cards{grid-template-columns:1fr;}
}

/* How section responsive */
@media(max-width:768px){
  .how__steps{grid-template-columns:1fr;gap:40px;}
  .how__steps::before{display:none;}
}

/* Features bento responsive */
@media(max-width:900px){
  .features__bento{
    grid-template-columns:1fr 1fr;
  }
  .fc-lessons{grid-column:1/span 2;grid-row:1;}
  .fc-test{grid-column:1;grid-row:2;}
  .fc-grade{grid-column:2;grid-row:2;}
  .fc-wpm{grid-column:1;grid-row:3;}
  .fc-games{grid-column:2;grid-row:3;}
  .fc-progress{grid-column:1/span 2;grid-row:4;}
}
@media(max-width:560px){
  .features__bento{grid-template-columns:1fr;}
  .fc-lessons,.fc-test,.fc-grade,
  .fc-wpm,.fc-games,.fc-progress{
    grid-column:1;grid-row:auto;
  }
}

/* Skill section responsive */
@media(max-width:768px){
  .skill__cards{grid-template-columns:1fr;}
}

/* Trust section responsive */
@media(max-width:640px){
  .trust__grid{grid-template-columns:1fr;}
  .trust__badges{gap:4px;}
  .trust__badge:not(:last-child){border-right:none;border-bottom:1px solid #e2eeff;}
}

/* ══════════════════════════
   CTA — section buttons (component)
══════════════════════════ */
.cta__btn-primary{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--yellow);
  color:#1A2238;
  font-size:clamp(14px,1.3vw,16px);
  font-weight:800;
  padding:14px 32px;
  border-radius:100px;
  text-decoration:none;
  border:none;
  transition:transform 0.2s ease,
             box-shadow 0.2s ease,
             background 0.2s ease,
             color 0.2s ease;
  box-shadow:0 6px 16px rgba(255,140,97,0.2), 0 0 0 2px var(--yellow);
}
.cta__btn-primary:hover{
  transform:translateY(-3px);
  background:transparent;
  color:var(--yellow);
  box-shadow:0 8px 20px rgba(255,140,97,0.1), 0 0 0 2px var(--yellow);
}

/* ══════════════════════════
   ANIMATIONS — homepage-section keyframes
══════════════════════════ */
@keyframes fcFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
@keyframes trustFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
@keyframes ctaStarTwinkle{
  0%,100%{opacity:var(--smin,0.1);transform:scale(1);}
  50%{opacity:var(--smax,0.5);transform:scale(1.4);}
}
@keyframes blink{
  0%,100%{opacity:1;}
  50%{opacity:0;}
}

/* ══════════════════════════
   WHAT IS TYPEDOJO — Components
══════════════════════════ */
.what__eyebrow{
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:#1A2238;
  background:#EEF6FF;
  border:1.5px solid #c7dff7;
  display:inline-block;
  padding:5px 14px;
  border-radius:100px;
  margin-bottom:18px;
}
.what__headline{
  font-size:clamp(26px,3.5vw,44px);
  font-weight:800;
  color:#1A2238;
  line-height:1.15;
  margin-bottom:0;
}
.what__headline em{
  font-style:normal;
  color:var(--yellow);
}
.what__headline span{
  display:block;
  font-size:clamp(16px,2vw,26px);
  font-weight:600;
  font-style:italic;
  color:#5a7098;
  margin-top:8px;
}
.what__copy{
  font-size:clamp(14px,1.4vw,17px);
  font-weight:600;
  color:#5a7098;
  line-height:1.85;
  margin-bottom:14px;
}
.what__copy:last-child{margin-bottom:0;}
.what__copy strong{
  color:#1A2238;
  font-weight:800;
}

/* Cards */
.what__card{
  background:#f8fbff;
  border:1.5px solid #e2eeff;
  border-radius:20px;
  padding:clamp(24px,3vw,36px) clamp(20px,2.5vw,32px);
  box-shadow:0 2px 12px rgba(37,99,199,0.05);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
  opacity:0;
  transform:translateY(32px);
}
.what__card.revealed{
  opacity:1;
  transform:translateY(0);
  transition:opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1),
             box-shadow 0.25s ease;
}
.what__card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 40px rgba(37,99,199,0.1);
}
.what__card-icon{
  width:48px;height:48px;
  border-radius:14px;
  display:grid;place-items:center;
  font-size:22px;
  margin-bottom:18px;
}
.what__card-icon.blue{ background:#dbeafe; }
.what__card-icon.green{ background:#dcfce7; }
.what__card-icon.peach{ background:#ffe8de; }
.what__card-title{
  font-size:clamp(15px,1.4vw,18px);
  font-weight:800;color:#1A2238;
  margin-bottom:10px;
}
.what__card-desc{
  font-size:clamp(13px,1.1vw,15px);
  font-weight:600;color:#4a5568;
  line-height:1.7;
}

/* scroll reveal */
.what__left{
  opacity:0;transform:translateX(-28px);
  transition:opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.what__left.revealed{opacity:1;transform:translateX(0);}
.what__right{
  opacity:0;transform:translateX(28px);
  transition:opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.what__right.revealed{opacity:1;transform:translateX(0);}

/* ══════════════════════════
   SECTION HEADERS — shared scroll reveal
   How / Features / Skill / Trust.
   (What reveals via .what__left, CTA via .cta__headline.)
══════════════════════════ */
.how__header,
.features__header,
.skill__header,
.trust__header{
  opacity:0;
  transform:translateY(20px);
  transition:opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.how__header.revealed,
.features__header.revealed,
.skill__header.revealed,
.trust__header.revealed{
  opacity:1;
  transform:translateY(0);
}
@media(prefers-reduced-motion:reduce){
  .how__header,
  .features__header,
  .skill__header,
  .trust__header{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* ══════════════════════════
   HOW IT WORKS — Components
══════════════════════════ */
.how__headline{
  font-size:clamp(24px,3.2vw,40px);
  font-weight:800;
  color:#1A2238;
  line-height:1.15;
  margin-bottom:12px;
}
.how__headline span{
  color:var(--yellow);
  font-weight:900;
}
.how__sub{
  font-size:clamp(14px,1.3vw,16px);
  font-weight:600;
  color:#5a7098;
  max-width:480px;
  margin:0 auto;
  line-height:1.7;
}

/* Step blob shapes — organic, each different */
.how__bubble{
  width:clamp(80px,9vw,104px);
  height:clamp(80px,9vw,104px);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:24px;
  position:relative;
  transition:transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.how__step:hover .how__bubble{transform:scale(1.08) rotate(-4deg);}
.how__bubble.b1{
  background:linear-gradient(135deg,#dbeafe,#93c5fd);
  border-radius:60% 40% 55% 45% / 50% 60% 40% 50%;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}
.how__bubble.b2{
  background:linear-gradient(135deg,#dcfce7,#86efac);
  border-radius:45% 55% 40% 60% / 60% 40% 55% 45%;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}
.how__bubble.b3{
  background:linear-gradient(135deg,#ffe8de,#fdba9f);
  border-radius:55% 45% 60% 40% / 40% 55% 45% 60%;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}
.how__bubble svg{
  width:clamp(32px,4vw,44px);
  height:clamp(32px,4vw,44px);
}

/* Step number badge */
.how__num{
  position:absolute;
  top:-4px;right:-4px;
  width:22px;height:22px;
  background:#1A2238;
  color:white;
  border-radius:50%;
  font-size:11px;font-weight:800;
  display:grid;place-items:center;
  border:2px solid white;
}
.how__step-title{
  font-size:clamp(16px,1.6vw,20px);
  font-weight:800;color:#1A2238;
  margin-bottom:10px;
}
.how__step-desc{
  font-size:clamp(13px,1.1vw,15px);
  font-weight:600;color:#5a7098;
  line-height:1.7;
  min-height:3.4em;
}
.how__step-tag{
  display:inline-block;
  margin-top:12px;
  font-size:11px;font-weight:800;
  padding:4px 12px;
  border-radius:100px;
  background:#ffffff;
  color:#1A2238;
  border:1.5px solid #c7dff7;
}

/* ══════════════════════════
   FEATURES — Card components
══════════════════════════ */

/* Base card */
.fc{
  background:#f8fbff;
  border:1px solid rgba(28,25,23,0.08);
  border-radius:20px;
  padding:clamp(28px,3.5vw,40px) clamp(24px,2.5vw,32px);
  position:relative;
  overflow:hidden;
  box-shadow:0 4px 16px rgba(28,25,23,0.06);
  transition:transform 0.2s ease,
             box-shadow 0.2s ease,
             background 0.2s ease;
  opacity:0;
  transform:translateY(24px);
}
.fc.revealed{
  opacity:1;transform:translateY(0);
  transition:opacity 0.6s ease,
             transform 0.6s cubic-bezier(0.22,1,0.36,1),
             box-shadow 0.2s ease,
             background 0.2s ease;
}
.fc:nth-child(1).revealed{transition-delay:0s;}
.fc:nth-child(2).revealed{transition-delay:0.1s;}
.fc:nth-child(3).revealed{transition-delay:0.2s;}
.fc:nth-child(4).revealed{transition-delay:0.15s;}
.fc:nth-child(5).revealed{transition-delay:0.25s;}
.fc:nth-child(6).revealed{transition-delay:0.35s;}

/* Hover — subtle lift + shadow boost, all same speed */
.fc.revealed:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 32px rgba(28,25,23,0.10);
  transition:transform 0.2s ease,
             box-shadow 0.2s ease,
             background 0.2s ease;
}

/* Sweep tint overlay — slides in from left on hover */
.fc::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:20px;
  opacity:0;
  transform:translateX(-110%) skewX(-8deg);
  transition:transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
  pointer-events:none;
  z-index:0;
}
.fc:hover::before{
  opacity:1;
  transform:translateX(0) skewX(0deg);
}
.fc.blue::before{background:rgba(59,130,246,0.05);}
.fc.green::before{background:rgba(34,197,94,0.05);}
.fc.rose::before{background:rgba(244,63,94,0.05);}
.fc.peach::before{background:rgba(255,140,97,0.1);}
.fc.purple::before{background:rgba(139,92,246,0.05);}
.fc.amber::before{background:rgba(245,158,11,0.05);}
.fc.teal::before{background:rgba(20,184,166,0.05);}

/* Keep card content above tint */
.fc-icon,.fc-title,.fc-desc,.fc-badge,.fc-bar{position:relative;z-index:1;}

/* Each card unique default bg */
.fc.blue{background:#f0f7ff;}
.fc.green{background:#f0fdf4;}
.fc.rose{background:#fff1f2;}
.fc.peach{background:#fff5f0;}
.fc.purple{background:#faf5ff;}
.fc.amber{background:#fffbeb;}
.fc.teal{background:#f0fdfa;}

/* Icon — stronger gradient + subtle glow */
.fc-icon{
  width:52px;height:52px;
  border-radius:14px;
  display:grid;place-items:center;
  margin-bottom:clamp(16px,2vw,24px);
  transition:transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  animation:fcFloat var(--fd,4s) ease-in-out infinite var(--fdelay,0s);
}
.fc:hover .fc-icon{transform:scale(1.06);}
.fc.blue .fc-icon{
  background:linear-gradient(135deg,#dbeafe,#bfdbfe);
  box-shadow:0 4px 12px rgba(59,130,246,0.15);
}
.fc.green .fc-icon{
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  box-shadow:0 4px 12px rgba(34,197,94,0.15);
}
.fc.rose .fc-icon{
  background:linear-gradient(135deg,#ffe4e6,#fecdd3);
  box-shadow:0 4px 12px rgba(244,63,94,0.15);
}
.fc.peach .fc-icon{
  background:linear-gradient(135deg,#ffe8de,#fed7c3);
  box-shadow:0 4px 12px rgba(255,140,97,0.15);
}
.fc.purple .fc-icon{
  background:linear-gradient(135deg,#ede9fe,#ddd6fe);
  box-shadow:0 4px 12px rgba(139,92,246,0.15);
}
.fc.amber .fc-icon{
  background:linear-gradient(135deg,#fef9c3,#fef08a);
  box-shadow:0 4px 12px rgba(245,158,11,0.15);
}
.fc.teal .fc-icon{
  background:linear-gradient(135deg,#ccfbf1,#99f6e4);
  box-shadow:0 4px 12px rgba(20,184,166,0.15);
}
.fc-icon svg{width:26px;height:26px;}

/* Badge — dark for contrast */
.fc-badge{
  position:absolute;top:16px;right:16px;
  font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:0.08em;
  padding:3px 10px;border-radius:100px;
  background:#1A2238;color:#ffffff;
  border:none;
}

.fc-title{
  font-size:clamp(15px,1.5vw,19px);
  font-weight:800;color:#1A2238;
  margin-bottom:8px;
}
.fc-lessons .fc-title,
.fc-progress .fc-title{
  font-size:clamp(18px,2vw,24px);
}
.fc-desc{
  font-size:clamp(13px,1.1vw,15px);
  font-weight:600;color:#5a7098;
  line-height:1.7;
}

/* Remove random bar — replaced with nothing */
.fc-bar{display:none;}
.fc.blue .fc-bar{background:linear-gradient(90deg,#93c5fd,#3b82f6);}
.fc.teal .fc-bar{background:linear-gradient(90deg,#5eead4,#14b8a6);}

/* ══════════════════════════
   BUILD SKILL — Card components
══════════════════════════ */
.skill__eyebrow{
  font-size:12px;font-weight:800;
  text-transform:uppercase;letter-spacing:0.14em;
  color:#1A2238;
  background:#ffffff;
  border:1.5px solid #c7dff7;
  display:inline-block;
  padding:5px 14px;
  border-radius:100px;
  margin-bottom:16px;
}
.skill__headline{
  font-size:clamp(28px,4vw,52px);
  font-weight:800;color:#1A2238;
  line-height:1.1;margin-bottom:14px;
}
.skill__headline span{color:var(--yellow);}
.skill__sub{
  font-size:clamp(14px,1.4vw,17px);
  font-weight:600;color:#5a7098;
  max-width:540px;margin:0 auto;
  line-height:1.75;
}

/* Base card */
.skill__card{
  background:#ffffff;
  border:1px solid rgba(28,25,23,0.08);
  border-radius:20px;
  padding:clamp(24px,3vw,36px) clamp(20px,2.5vw,28px);
  box-shadow:0 4px 16px rgba(28,25,23,0.05);
  opacity:0;transform:translateY(28px);
  transition:opacity 0.6s ease,
             transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.skill__card.revealed{opacity:1;transform:translateY(0);}
.skill__card:nth-child(1).revealed{transition-delay:0s;}
.skill__card:nth-child(2).revealed{transition-delay:0.15s;}
.skill__card:nth-child(3).revealed{transition-delay:0.3s;}

/* Card header */
.skill__card-head{
  display:flex;align-items:center;gap:12px;
  margin-bottom:clamp(20px,3vw,32px);
}
.skill__card-icon{
  width:40px;height:40px;
  border-radius:12px;
  display:grid;place-items:center;
  flex-shrink:0;
}
.skill__card-icon.blue{background:#dbeafe;}
.skill__card-icon.green{background:#dcfce7;}
.skill__card-icon.peach{background:#ffe8de;}
.skill__card-icon svg{width:20px;height:20px;}
.skill__card-title{
  font-size:clamp(15px,1.5vw,18px);
  font-weight:800;color:#1A2238;
}

/* ── CARD 1: WPM Graph ── */
.wpm-visual{
  background:#f0f7ff;
  border-radius:12px;
  padding:16px 20px 12px;
  margin-bottom:16px;
  position:relative;
  overflow:hidden;
}
.wpm-numbers{
  display:flex;align-items:flex-end;
  gap:clamp(12px,2vw,24px);
  margin-bottom:12px;
}
.wpm-num{
  display:flex;align-items:baseline;gap:3px;
}
.wpm-val{
  font-size:clamp(22px,3vw,36px);
  font-weight:800;color:#1A2238;
  line-height:1;
  opacity:0;transform:translateY(10px);
  transition:opacity 0.5s ease,transform 0.5s ease;
}
.wpm-val.show{opacity:1;transform:translateY(0);}
.wpm-val:nth-child(1){transition-delay:0.2s;}
.wpm-unit{
  font-size:11px;font-weight:700;
  color:#94afd4;text-transform:uppercase;
  letter-spacing:0.06em;
}
/* SVG line chart */
.wpm-chart{width:100%;height:48px;}
.wpm-line{
  stroke:#3b82f6;stroke-width:2.5;
  fill:none;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:200;
  stroke-dashoffset:200;
  transition:stroke-dashoffset 1.2s cubic-bezier(0.22,1,0.36,1) 0.4s;
}
.wpm-line.draw{stroke-dashoffset:0;}
.wpm-area{
  fill:url(#wpmGrad);
  opacity:0;
  transition:opacity 0.8s ease 1s;
}
.wpm-area.show{opacity:1;}
.wpm-dot{
  fill:#3b82f6;
  opacity:0;
  transition:opacity 0.3s ease;
}
.wpm-dot.show{opacity:1;}

/* ── CARD 2: Accuracy Bar ── */
.acc-visual{
  background:#f0fdf4;
  border-radius:12px;
  padding:16px 20px;
  margin-bottom:16px;
}
.acc-row{
  display:flex;justify-content:space-between;
  align-items:baseline;margin-bottom:10px;
}
.acc-before{
  font-size:clamp(22px,3vw,36px);
  font-weight:800;color:#94afd4;line-height:1;
}
.acc-after{
  font-size:clamp(22px,3vw,36px);
  font-weight:800;color:#16a34a;line-height:1;
  opacity:0;transform:scale(0.8);
  transition:opacity 0.5s ease 0.8s,transform 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.8s;
}
.acc-after.show{opacity:1;transform:scale(1);}
.acc-pct{font-size:14px;font-weight:700;color:inherit;}
.acc-track{
  height:10px;background:#e2eeff;
  border-radius:10px;overflow:hidden;
}
.acc-fill{
  height:100%;width:0%;
  background:linear-gradient(90deg,#34d399,#16a34a);
  border-radius:10px;
  transition:width 1.2s cubic-bezier(0.22,1,0.36,1) 0.3s;
}

/* ── CARD 3: Muscle Memory Typewriter ── */
.muscle-visual{
  background:#fff5f0;
  border-radius:12px;
  padding:16px 20px;
  margin-bottom:16px;
  font-family:'Courier New',monospace;
  font-size:clamp(14px,1.6vw,18px);
  font-weight:600;
  color:#1A2238;
  min-height:64px;
  display:flex;align-items:center;
  letter-spacing:0.02em;
  overflow:hidden;
}
.muscle-text{
  display:flex;align-items:center;
  gap:6px;flex-wrap:wrap;
}
.muscle-step{
  opacity:0;transform:translateX(-8px);
  transition:opacity 0.3s ease,transform 0.3s ease;
  color:#94afd4;
  white-space:nowrap;
}
.muscle-step.show{opacity:1;transform:translateX(0);}
.muscle-step.active{color:#1A2238;font-weight:800;}
.muscle-arrow{color:#c7dff7;font-size:12px;}
.muscle-cursor{
  display:inline-block;width:2px;height:18px;
  background:var(--yellow);vertical-align:middle;
  animation:blink 0.9s step-end infinite;
}

/* Equal height visual areas across all 3 cards */
.wpm-visual,
.acc-visual,
.muscle-visual{
  min-height:120px;
}
.skill__card-desc{
  font-size:clamp(13px,1.1vw,15px);
  font-weight:600;color:#5a7098;
  line-height:1.7;
}

/* Bottom tagline */
.skill__tagline{
  text-align:center;
  font-size:clamp(14px,1.4vw,17px);
  font-weight:600;
  color:#94afd4;
}
.skill__tagline strong{
  color:#1A2238;font-weight:800;
}

/* ══════════════════════════
   TRUST SECTION — Components
══════════════════════════ */
.trust__headline{
  font-size:clamp(26px,3.8vw,48px);
  font-weight:800;color:#1A2238;
  line-height:1.1;margin-bottom:12px;
}
.trust__headline span{color:var(--yellow);}
.trust__sub{
  font-size:clamp(14px,1.3vw,16px);
  font-weight:600;color:#5a7098;
  max-width:480px;margin:0 auto 32px;
  line-height:1.7;
}

/* Badge pill row */
.trust__badges{
  display:inline-flex;
  align-items:center;gap:6px;
  background:#f8fbff;
  border:1px solid #e2eeff;
  border-radius:100px;
  padding:8px 16px;
  margin-bottom:clamp(40px,6vw,60px);
  flex-wrap:wrap;
  justify-content:center;
  opacity:0;transform:translateY(-12px);
  transition:opacity 0.5s ease, transform 0.5s ease;
}
.trust__badges.revealed{opacity:1;transform:translateY(0);}
.trust__badge{
  display:flex;align-items:center;gap:6px;
  font-size:12px;font-weight:700;color:#1A2238;
  padding:4px 10px;
  border-radius:100px;
}
.trust__badge:not(:last-child){
  border-right:1px solid #e2eeff;
}
.trust__badge-dot{
  width:18px;height:18px;
  border-radius:50%;
  display:grid;place-items:center;
  flex-shrink:0;
}
.trust__badge-dot.green{background:#dcfce7;}
.trust__badge-dot.blue{background:#dbeafe;}
.trust__badge-dot.peach{background:#ffe8de;}
.trust__badge-dot svg{width:10px;height:10px;}

/* Trust card */
.trust__card{
  background:#f8fbff;
  border:1px solid rgba(28,25,23,0.08);
  border-radius:20px;
  padding:clamp(24px,3vw,36px);
  display:flex;gap:20px;
  align-items:flex-start;
  text-align:left;
  box-shadow:0 4px 16px rgba(28,25,23,0.05);
  position:relative;overflow:hidden;
  opacity:0;transform:translateY(28px);
  transition:opacity 0.6s ease,
             transform 0.6s cubic-bezier(0.34,1.56,0.64,1),
             box-shadow 0.2s ease;
}
.trust__card.revealed{opacity:1;transform:translateY(0);}
.trust__card:nth-child(1).revealed{transition-delay:0s;}
.trust__card:nth-child(2).revealed{transition-delay:0.1s;}
.trust__card:nth-child(3).revealed{transition-delay:0.2s;}
.trust__card:nth-child(4).revealed{transition-delay:0.3s;}

/* Sweep tint on hover */
.trust__card::before{
  content:'';position:absolute;inset:0;
  border-radius:20px;opacity:0;
  transform:translateX(-110%) skewX(-8deg);
  transition:transform 0.4s cubic-bezier(0.22,1,0.36,1),opacity 0.3s ease;
  pointer-events:none;z-index:0;
}
.trust__card:nth-child(1)::before{background:rgba(34,197,94,0.06);}
.trust__card:nth-child(2)::before{background:rgba(59,130,246,0.06);}
.trust__card:nth-child(3)::before{background:rgba(255,140,97,0.06);}
.trust__card:nth-child(4)::before{background:rgba(139,92,246,0.06);}
.trust__card:hover::before{opacity:1;transform:translateX(0) skewX(0);}
.trust__card:hover{
  box-shadow:0 12px 32px rgba(28,25,23,0.09);
  transform:translateY(-3px);
}

/* Icon blob */
.trust__icon{
  width:56px;height:56px;
  border-radius:16px;
  display:grid;place-items:center;
  flex-shrink:0;
  position:relative;z-index:1;
  animation:trustFloat var(--fd,4s) ease-in-out infinite var(--fdelay,0s);
  transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.trust__card:hover .trust__icon{transform:scale(1.08);}
.trust__icon.green{
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  box-shadow:0 4px 12px rgba(34,197,94,0.15);
}
.trust__icon.blue{
  background:linear-gradient(135deg,#dbeafe,#bfdbfe);
  box-shadow:0 4px 12px rgba(59,130,246,0.15);
}
.trust__icon.peach{
  background:linear-gradient(135deg,#ffe8de,#fed7c3);
  box-shadow:0 4px 12px rgba(255,140,97,0.15);
}
.trust__icon.purple{
  background:linear-gradient(135deg,#ede9fe,#ddd6fe);
  box-shadow:0 4px 12px rgba(139,92,246,0.15);
}
.trust__icon svg{width:26px;height:26px;}

/* Card text */
.trust__card-body{position:relative;z-index:1;}
.trust__card-title{
  font-size:clamp(15px,1.5vw,18px);
  font-weight:800;color:#1A2238;
  margin-bottom:6px;
}
.trust__card-desc{
  font-size:clamp(13px,1.1vw,14px);
  font-weight:600;color:#5a7098;
  line-height:1.65;
}

/* ══════════════════════════
   CTA SECTION — Typography & star components
══════════════════════════ */
.cta__star{
  position:absolute;
  background:#ffffff;
  border-radius:50%;
  animation:ctaStarTwinkle var(--sd,3s) ease-in-out infinite var(--sdelay,0s);
}

/* Headline */
.cta__headline{
  font-size:clamp(28px,4.5vw,52px);
  font-weight:800;color:#ffffff;
  line-height:1.1;margin-bottom:12px;
  opacity:0;transform:translateY(20px);
  transition:opacity 0.6s ease 0.1s, transform 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s;
}
.cta__headline.revealed{opacity:1;transform:translateY(0);}
.cta__headline span{color:var(--yellow);}

/* Sub */
.cta__sub{
  font-size:clamp(14px,1.4vw,16px);
  font-weight:600;
  color:rgba(255,255,255,0.55);
  line-height:1.65;
  margin-bottom:clamp(36px,4vw,44px);
  opacity:0;transform:translateY(16px);
  transition:opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.cta__sub.revealed{opacity:1;transform:translateY(0);}
