/* =====================================================
   Refinement pass — loaded last.
   One accent colour (brand blue) for every icon, consistent cards,
   more generous spacing, and the redesigned "How it works" section.
   ===================================================== */

:root {
  --card-border: #e3ebf7;
  --card-shadow: 0 1px 2px rgba(16, 28, 58, .04), 0 14px 34px -14px rgba(26, 110, 240, .16);
  --card-shadow-hover: 0 2px 4px rgba(16, 28, 58, .05), 0 22px 44px -14px rgba(26, 110, 240, .28);
  --tile: linear-gradient(145deg, #f0f6ff, #dfeaff);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography & rhythm ---------- */
h2 { text-wrap: balance; letter-spacing: -.028em; }
section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.eyebrow {
  padding: 7px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark);
  font-size: .7rem; letter-spacing: .14em; margin-bottom: 18px;
}
.eyebrow::before { display: none; }
.hero .eyebrow { background: #fff; border: 1px solid #d6e6fb; box-shadow: 0 2px 8px rgba(26,110,240,.06); }

/* ---------- One accent colour for all icons ---------- */
.badge[class*="b-"] { background: var(--tile); color: var(--blue); box-shadow: inset 0 0 0 1px #d2e2fb; }
.trust-item .ic-xl, .c-green, .c-pink, .c-purple, .c-blue { color: var(--blue); }
.chip .ic { color: var(--blue); }
.cta-tags .ic { color: #fff; }
.a-pink, .a-green, .a-orange, .a-red { background: linear-gradient(135deg, #4aa8ff, #1a6ef0); }
.a-blue { background: linear-gradient(135deg, #2f86ff, #1554c4); }
.a-indigo { background: linear-gradient(135deg, #5b9dff, #2f6fe0); }
.problem:nth-child(n) { border-top-color: var(--blue); }

/* ---------- Softer, cohesive section backgrounds ---------- */
.hero {
  background:
    radial-gradient(800px 480px at 88% 8%, #d6e8ff 0%, transparent 62%),
    radial-gradient(600px 400px at 0% 100%, #e6f0ff 0%, transparent 60%),
    linear-gradient(180deg, #f2f8ff 0%, #fff 100%);
}
.blob-1 { background: #dcebff; }
.blob-2 { background: #eaf3ff; }
.values { background: linear-gradient(180deg, #fff, var(--sky)); }
.values::after { background: #dcebff; opacity: .55; }
.problems { background: linear-gradient(180deg, var(--sky), #fff); }

/* ---------- Consistent cards ---------- */
.trust-item, .value, .feature, .problem, .quote, .step, .faq-list details {
  background: #fff; border: 1px solid var(--card-border); border-radius: 22px; box-shadow: var(--card-shadow);
}
.trust-item:hover, .value:hover, .feature:hover, .problem:hover, .quote:hover, .step:hover { box-shadow: var(--card-shadow-hover); border-color: #cfe0f8; }
.trust-item { background: rgba(255,255,255,.85); }
.value { padding: 26px; }
.feature { padding: 28px; }
.feature p, .problem p:not(.outcome), .value p { font-size: .93rem; line-height: 1.65; }
.problem { padding: 28px; border-top: 4px solid var(--blue); }
.faq-list details { box-shadow: none; }
.faq-list details[open] { box-shadow: var(--card-shadow); }

/* ---------- How it works ---------- */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.steps::before { display: none; }
.step {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 30px 28px 34px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-6px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.num {
  width: 58px; height: 58px; margin: 0; border-radius: 18px; display: grid; place-items: center;
  background: var(--tile); color: var(--blue); box-shadow: inset 0 0 0 1px #d2e2fb;
}
.num .ic { width: 26px; height: 26px; }
.step-no {
  font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.6px #c6daf8;
}
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { font-size: .95rem; line-height: 1.7; color: var(--ink-2); }

/* Final step is the goal — give it the brand fill */
.step:last-child {
  background: radial-gradient(360px 220px at 100% 0%, #4d97ff 0%, transparent 65%), linear-gradient(145deg, #1a6ef0, #0f3f9c);
  border-color: transparent; box-shadow: 0 24px 48px -16px rgba(21, 84, 196, .5);
}
.step:last-child h3 { color: #fff; }
.step:last-child p { color: rgba(255,255,255,.86); }
.step:last-child .num { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.step:last-child .step-no { -webkit-text-stroke-color: rgba(255,255,255,.4); }

/* Dashed connectors between the cards in a row */
@media (min-width: 1100px) {
  .step:not(:nth-child(4n))::after {
    content: ''; position: absolute; top: 59px; right: -28px; width: 28px; height: 2px;
    background: repeating-linear-gradient(90deg, #b7d0f7 0 5px, transparent 5px 9px);
  }
}
@media (min-width: 1500px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step:not(:nth-child(4n))::after { right: -32px; width: 32px; }
}
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 639px) { .steps { grid-template-columns: 1fr; } .step { padding: 26px 24px 28px; } }

.how-close {
  display: block; max-width: 880px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 22px 32px;
  text-align: center; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2);
  background: var(--sky); border: 1px solid var(--card-border); border-radius: 24px;
}
.how-close strong { color: var(--blue-dark); }

/* ---------- Trust panel & misc polish ---------- */
.trust-panel { border-radius: 32px; }
.trust-item { padding: 30px 22px; }
.quote { padding: 28px; }
.quote::after { background: var(--blue-soft); }
.hero-badges li { font-size: .84rem; }
.site-footer h4 { color: var(--ink); font-size: .85rem; }

/* =====================================================
   How it works — pale finish + slow sequential highlight
   ===================================================== */
/* Last card: pale blue instead of solid */
.step:last-child {
  background: linear-gradient(145deg, #f3f8ff, #e2edff); border: 1px solid #cfe0f8; box-shadow: var(--card-shadow);
}
.step:last-child h3 { color: var(--ink); }
.step:last-child p { color: var(--ink-2); }
.step:last-child .num { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px #d2e2fb; }
.step:last-child .step-no { -webkit-text-stroke-color: #c6daf8; }

/* Smooth state changes */
.step, .num, .step-no { transition: transform .6s ease, box-shadow .6s ease, border-color .6s ease, background .6s ease, color .6s ease, filter .6s ease; }

/* Active card */
.js .steps .step.active, .js .steps .step:hover { transform: translateY(-8px); border-color: #9cc3fa; box-shadow: 0 0 0 5px rgba(26,110,240,.07), var(--card-shadow-hover); }
.step.active .num { background: linear-gradient(145deg, #3d8bff, #1a6ef0); color: #fff; box-shadow: 0 10px 22px -6px rgba(26,110,240,.55); }

/* The active number fills with a shimmering, glowing gradient */
.step.active .step-no {
  -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(100deg, #1a6ef0 0%, #8fc0ff 35%, #1a6ef0 50%, #8fc0ff 65%, #1a6ef0 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 12px rgba(46,132,255,.6));
  animation: num-shimmer 2.4s linear infinite;
}
@keyframes num-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Connector after the active card "runs" toward the next one */
@media (min-width: 1100px) {
  .step.active:not(:nth-child(4n))::after {
    height: 3px; top: 58.5px; border-radius: 2px;
    background: linear-gradient(90deg, #1a6ef0 5px, transparent 5px) 0 0 / 9px 3px repeat-x;
    animation: dash-run .7s linear infinite;
  }
}
@keyframes dash-run { to { background-position: 9px 0; } }

@media (prefers-reduced-motion: reduce) {
  .step.active .step-no { animation: none; }
  .step.active::after { animation: none; }
}

/* keep the reveal fade AND the highlight transitions on the step cards */
.js .step.reveal { transition: opacity .6s ease, transform .6s ease, box-shadow .6s ease, border-color .6s ease, background .6s ease; }
