/* ============================================================
   capify.gr v2 — Sections: hero + WebGL, steps, eligibility,
   timeline, contact, legal prose
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 70px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__canvas canvas { width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { margin-bottom: 24px; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--t-mid); max-width: 600px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 52px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: .88rem; color: var(--t-low); }
.hero__trust b { color: var(--t-hi); }
.hero__trust-sep { width: 1px; height: 18px; background: var(--line-strong); }

/* Floating glass cards (desktop only) */
.hero__float { position: absolute; z-index: 2; display: none; }
@media (min-width: 1100px) { .hero__float { display: block; } }
.hero__float--1 { top: 24%; right: 6%; width: 250px; }
.hero__float--2 { top: 56%; right: 16%; width: 230px; }
.hero__float--3 { top: 38%; right: 30%; width: 210px; }
.float-card {
  border-radius: 18px; padding: 18px 20px;
  background: rgba(13, 16, 38, .62); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px); box-shadow: var(--shadow-float);
  animation: floaty 7s ease-in-out infinite;
}
.hero__float--2 .float-card { animation-delay: -2.3s; }
.hero__float--3 .float-card { animation-delay: -4.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.float-card__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t-low); margin-bottom: 6px; }
.float-card__value { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.float-card__value.grad-text { font-size: 1.5rem; }
.float-card__bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-top: 12px; overflow: hidden; }
.float-card__bar i { display: block; height: 100%; border-radius: 4px; background: var(--c-grad); }
.float-card__row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--t-mid); margin-top: 8px; }

/* Scroll cue */
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--t-low); }
.hero__scroll::after { content: ""; width: 1.5px; height: 42px; background: linear-gradient(180deg, var(--c-cyan), transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 940px) { .trust-strip { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step__num {
  position: relative; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: #fff;
  background: var(--c-grad); box-shadow: 0 12px 32px -10px rgba(99, 102, 241, .7);
  margin-bottom: 20px; z-index: 1;
}
.step__num::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 46px; background: linear-gradient(180deg, var(--c-primary), transparent); }
.step:last-child .step__num::after { display: none; }

/* ---------- Eligibility checker ---------- */
.elig-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .elig-card { grid-template-columns: 1fr; } }
.elig-check { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.elig-check li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--t-mid); }
.elig-check li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; background: rgba(45, 212, 191, .16); color: var(--c-teal); font-size: .72rem; font-weight: 800; margin-top: 2px; }
.elig-result { display: none; border-radius: 18px; padding: 26px; margin-top: 22px; }
.elig-result.is-visible { display: block; animation: stepIn .55s var(--ease-out); }
.elig-result--ok { background: linear-gradient(140deg, rgba(99, 102, 241, .16), rgba(34, 211, 238, .1)); border: 1px solid rgba(99, 102, 241, .45); }
.elig-result--no { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .3); }
.elig-result__amount { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 14px; }
.elig-result--ok .elig-result__amount { background: var(--c-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Timeline (how-it-works detail) ---------- */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--c-primary), var(--c-violet), var(--c-cyan)); }
.tl-item { position: relative; padding-bottom: 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -40px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--c-primary); box-shadow: 0 0 0 5px rgba(99, 102, 241, .15), 0 0 18px rgba(99, 102, 241, .55);
}
.tl-item h3 { margin-bottom: 8px; }
.tl-item p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 18px; align-items: flex-start; }
.info-card__body h4 { margin-bottom: 4px; }
.info-card__body p { margin: 0; font-size: .92rem; }

/* ---------- Legal prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose li { color: var(--t-mid); }
.prose strong { color: var(--t-hi); }
.prose__meta { font-size: .86rem; color: var(--t-low); margin-bottom: 40px; }

/* ---------- Pricing "not charged" checklist ---------- */
.no-fee { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .no-fee { grid-template-columns: 1fr; } }
.no-fee li { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; color: var(--t-mid); }
.no-fee li::before { content: "✕"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 212, 191, .16); color: var(--c-teal); font-weight: 800; font-size: .78rem; }

/* Repayment schedule table */
.sched { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sched th { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t-low); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.sched td { padding: 11px 8px; border-bottom: 1px solid var(--line); color: var(--t-mid); }
.sched td b { color: var(--t-hi); font-family: var(--f-display); }
.sched tr:last-child td { border-bottom: 0; }
.sched td:last-child, .sched th:last-child { text-align: right; }
