/* =====================================================================
   EPMS homepage: infographic sections (loaded after site.css on the home page)
   ===================================================================== */
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(212,175,55,.35); }
.btn-gold:hover { color: var(--navy-deep); filter: brightness(1.05); transform: translateY(-1px); }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.section-head h2 span { color: var(--brand); }

/* hero, dark navy */
.hero.dark { background: radial-gradient(900px 480px at 85% 0, rgba(212,175,55,.18), transparent 60%), radial-gradient(700px 500px at 0 100%, rgba(43,65,144,.55), transparent 60%), linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #24357a); color: #fff; padding: 84px 0 120px; position: relative; overflow: hidden; }
.hero.dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero.dark .wrap { position: relative; }
.hero.dark h1 { color: #fff; }
.hero.dark h1 span { color: var(--gold); }
.hero.dark .lead { color: #c9d0e6; }
.hero.dark .eyebrow { background: rgba(212,175,55,.15); color: var(--gold-light); border: 1px solid rgba(212,175,55,.35); }
.hero.dark .ticks { color: #c9d0e6; }
.hero.dark .ticks li::before { color: var(--gold); }
.hero.dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero.dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.hero.dark .preview { border: 0; box-shadow: 0 30px 60px rgba(0,0,0,.35); color: var(--ink); }

/* preview charts */
.pv-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { transform: rotate(-90deg); display: block; }
.donut .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.15; }
.donut .c b { font-size: 24px; display: block; }
.donut .c small { color: var(--muted); font-size: 11px; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { margin-left: auto; }
.preview .chart span:nth-child(odd) { background: linear-gradient(180deg, #3b54b8, var(--navy)); }
.preview .chart span:nth-child(even) { background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); }

/* fact band overlapping the hero */
.facts { position: relative; margin-top: -64px; z-index: 5; }
.facts .wrap { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 8px; }
.fact { text-align: center; padding: 20px 10px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .n { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -1px; }
.fact .n small { font-size: 15px; color: var(--gold-dark); margin-left: 2px; letter-spacing: 0; }
.fact .l { color: var(--muted); font-size: 13px; margin-top: 6px; }
.fact .ic { color: var(--gold); font-size: 18px; margin-bottom: 8px; display: block; }

/* personas */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; }
.persona::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--brand-soft); }
.persona .ic { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #3b54b8, var(--navy)); margin-bottom: 14px; }
.persona h3 { font-size: 17px; }
.persona p { color: var(--muted); font-size: 14px; margin: 0; }

/* before / after */
.vs { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: stretch; }
.vs .side { border-radius: 18px; padding: 28px; }
.vs .before { background: #fff6f6; border: 1px solid #fde1e1; }
.vs .after { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; }
.vs h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.vs .after h3 { color: #fff; }
.vs ul { list-style: none; padding: 0; margin: 16px 0 0; }
.vs li { padding: 9px 0 9px 30px; position: relative; font-size: 15px; border-top: 1px dashed rgba(0,0,0,.08); }
.vs .after li { border-top-color: rgba(255,255,255,.12); color: #dfe4f3; }
.vs li::before { font-family: FontAwesome; position: absolute; left: 0; top: 9px; }
.vs .before li::before { content: "\f00d"; color: var(--danger); }
.vs .after li::before { content: "\f00c"; color: var(--gold); }
.vs .mid { display: grid; place-items: center; }
.vs .mid span { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 18px rgba(212,175,55,.45); }

/* module hub */
.hub { display: grid; grid-template-columns: 1fr 250px 1fr; grid-template-rows: auto auto; gap: 22px 34px; align-items: center; }
.hub .core { grid-column: 2; grid-row: 1 / span 2; justify-self: center; width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 30% 25%, #3b54b8, var(--navy) 55%, var(--navy-deep)); color: #fff; box-shadow: 0 0 0 14px var(--brand-soft), 0 0 0 15px var(--line), 0 24px 50px rgba(17,28,69,.3); position: relative; }
.hub .core b { font-size: 34px; letter-spacing: 1px; display: block; }
.hub .core small { color: var(--gold-light); font-size: 13px; }
.hub .core::before { content: ""; position: absolute; inset: -34px; border: 2px dashed rgba(34,53,122,.22); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cluster { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.cluster h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 10px; }
.cluster h4 i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 15px; }
.cluster .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); }
.c-prop h4 i { background: #22357a; } .c-fin h4 i { background: var(--gold-dark); } .c-ppl h4 i { background: #0f766e; } .c-ops h4 i { background: #7c3aed; }
.hub .c-prop { grid-column: 1; grid-row: 1; } .hub .c-fin { grid-column: 3; grid-row: 1; }
.hub .c-ppl { grid-column: 1; grid-row: 2; } .hub .c-ops { grid-column: 3; grid-row: 2; }

/* lifecycle timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 40px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), #3b54b8 50%, var(--gold)); }
.tl { text-align: center; position: relative; }
.tl .dot { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); display: grid; place-items: center; font-size: 22px; color: var(--navy); position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(17,28,69,.15); }
.tl:nth-child(n+5) .dot { border-color: var(--gold); color: var(--gold-dark); }
.tl .num { position: absolute; top: -6px; left: calc(50% + 16px); background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 7px; z-index: 2; }
.tl h4 { font-size: 15px; margin: 0 0 4px; }
.tl p { font-size: 13px; color: var(--muted); margin: 0; }

/* installment plan infographic */
.plan-viz { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.plan-viz h3 { font-size: 19px; margin-bottom: 2px; }
.stack { display: flex; height: 54px; border-radius: 12px; overflow: hidden; margin: 18px 0 14px; }
.stack div { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.stack .s1 { background: var(--navy); } .stack .s2 { background: #3b54b8; } .stack .s3 { background: linear-gradient(90deg, #6b7fd0, #8fa0e0); } .stack .s4 { background: var(--gold); color: var(--navy-deep); }
.stack-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack-legend div { border-top: 3px solid; padding-top: 8px; font-size: 14px; }
.stack-legend b { display: block; font-size: 15px; }
.stack-legend span { color: var(--muted); font-size: 13px; }
.months { display: flex; gap: 3px; margin-top: 24px; align-items: flex-end; height: 46px; }
.months i { flex: 1; background: #d5dcf3; border-radius: 3px 3px 0 0; height: 100%; }
.months i.paid { background: var(--navy); }
.months i.due { background: var(--gold); }
.months i.late { background: var(--danger); }
.months-key { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.months-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.example { font-size: 12px; color: var(--muted); text-align: right; margin: 12px 0 0; font-style: italic; }

/* at a glance (dashboard infographic) */
.glance { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; }
.glance h2 { font-size: 32px; }
.glance ul.points { list-style: none; padding: 0; margin: 18px 0 0; }
.glance ul.points li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance ul.points li i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.glance ul.points b { display: block; }
.glance ul.points span { color: var(--muted); font-size: 14px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.tile h5 { margin: 0 0 12px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.tile.wide { grid-column: span 2; }
.hbar { margin: 10px 0; font-size: 13px; }
.hbar div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.hbar .track { height: 9px; background: var(--bg-alt); border-radius: 9px; overflow: hidden; display: block; }
.hbar .track span { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--navy), #3b54b8); transition: width 1.4s ease; }
.hbar.g .track span { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.js .hbar .track span { width: 0 !important; }
.js .in .hbar .track span, .js .hbar.in .track span { width: var(--w) !important; }
.gauge { position: relative; width: 170px; margin: 0 auto; }
.gauge svg { display: block; }
.gauge .v { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.gauge .v small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.spark span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #3b54b8, var(--navy)); }
.spark span:last-child { background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); }
.spark-labels { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.spark-labels span { flex: 1; text-align: center; }

/* security layers */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.rings { position: relative; width: 340px; height: 340px; margin: 0 auto; }
.rings div { position: absolute; border-radius: 50%; display: grid; place-items: start center; padding-top: 13px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.rings .r1 { inset: 0; background: #eef1fb; color: var(--brand); }
.rings .r2 { inset: 36px; background: #d9dff5; color: var(--brand); }
.rings .r3 { inset: 72px; background: #b9c3ec; color: var(--navy); }
.rings .r4 { inset: 108px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold-light); place-items: center; padding: 0; text-align: center; font-size: 12px; line-height: 1.35; }
.rings .r4 i { display: block; font-size: 26px; color: var(--gold); margin-bottom: 4px; }
.layer-list { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.layer-list li { counter-increment: l; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.layer-list li::before { content: counter(l); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.layer-list b { display: block; }
.layer-list span { color: var(--muted); font-size: 14px; }

/* trial steps with connector */
.howto { position: relative; }
.howto::before { content: ""; position: absolute; top: 40px; left: 12%; right: 12%; border-top: 3px dashed #c9d2f0; }
.howto > div { position: relative; }
.howto .ic { width: 64px; height: 64px; font-size: 24px; background: linear-gradient(135deg, #3b54b8, var(--navy)); box-shadow: 0 0 0 8px #fff; }
.howto > div:last-child .ic { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--navy-deep); }

/* pricing comparison */
.compare { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.compare th, .compare td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { background: var(--navy); color: #fff; font-size: 15px; }
.compare thead th:first-child { color: var(--gold-light); }
.compare thead th.hot { background: var(--gold); color: var(--navy-deep); }
.compare td .fa-check { color: var(--good); }
.compare td .fa-minus { color: #c0c6d4; }
.compare tr:last-child td { border-bottom: 0; }
.plan.hot { border-color: var(--gold); box-shadow: 0 18px 40px rgba(212,175,55,.18); }
.plan .badge { background: var(--gold); color: var(--navy-deep); }

/* reveal on scroll (only when JS runs; content stays visible without it) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hub .core::before { animation: none; }
}

.final { background: radial-gradient(600px 300px at 90% 0, rgba(212,175,55,.25), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.final .btn-light { color: var(--navy); }

@media (max-width: 980px) {
  .facts .wrap { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .vs { grid-template-columns: 1fr; gap: 14px; }
  .vs .mid span { transform: rotate(90deg); }
  .hub { grid-template-columns: 1fr 1fr; }
  .hub .core { grid-column: 1 / span 2; grid-row: 1; margin: 34px auto; }
  .hub .c-prop { grid-column: 1; grid-row: 2; } .hub .c-fin { grid-column: 2; grid-row: 2; }
  .hub .c-ppl { grid-column: 1; grid-row: 3; } .hub .c-ops { grid-column: 2; grid-row: 3; }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
  .glance, .layers { grid-template-columns: 1fr; }
  .howto::before { display: none; }
}
@media (max-width: 620px) {
  .hero.dark { padding: 50px 0 100px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .personas, .hub { grid-template-columns: 1fr; }
  .hub .core { grid-column: 1; width: 180px; height: 180px; }
  .hub .c-prop, .hub .c-fin, .hub .c-ppl, .hub .c-ops { grid-column: 1; grid-row: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stack div { font-size: 12px; }
  .stack .lg { display: none; } /* the legend below names each part */
  .stack-legend { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .rings { width: 280px; height: 280px; }
  .rings .r2 { inset: 28px; } .rings .r3 { inset: 56px; } .rings .r4 { inset: 84px; }
  .pv-row { grid-template-columns: 1fr; justify-items: center; }
  .glance h2 { font-size: 26px; }
}
