/* =====================================================================
   FuelCard marketing home page (Views/Home/Index.cshtml)
   Uses the "Sky & Navy" tokens from site.css. All classes are prefixed hm-.
   ===================================================================== */

html:has(.hm-page) body { overflow-x: clip; }
.hm-page { margin-top: -1.5rem; }
.hm-bleed { margin-inline: calc(50% - 50vw); padding-inline: max(16px, calc(50vw - 50%)); }
.hm-bleed > .container-xxl { padding-inline: 0; }

.hm-section { padding: 5rem 0; }
.hm-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.hm-head h2, .hm-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.hm-head p { color: var(--muted); font-size: 1.08rem; margin: .6rem 0 0; }
.hm-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-600); margin-bottom: .6rem; }
.hm-kicker.light { color: var(--sky-300); }

/* ---------- Hero ---------- */
.hm-hero { position: relative; padding-top: 4.5rem; padding-bottom: 5rem; overflow: hidden;
    background: radial-gradient(1200px 500px at 85% -10%, #DCEBFF 0%, rgba(220,235,255,0) 60%), linear-gradient(180deg, #FFFFFF 0%, var(--sky-50) 100%);
    border-bottom: 1px solid var(--line); }
.hm-hero-glow { position: absolute; inset: auto -10% -40% auto; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,165,65,.18) 0%, rgba(242,165,65,0) 65%); pointer-events: none; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font-size: .82rem; font-weight: 600; color: var(--navy-500); box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.hm-eyebrow i { color: var(--amber); }
.hm-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.1rem; }
.hm-underline { background: linear-gradient(180deg, transparent 62%, rgba(242,165,65,.45) 62%); padding: 0 .1em; }
.hm-lead { font-size: 1.15rem; color: #475569; max-width: 560px; margin-bottom: 1.75rem; }
.hm-cta { box-shadow: 0 10px 24px rgba(242,165,65,.35); }
.hm-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: #475569; font-size: .92rem; font-weight: 500; }
.hm-checks i { color: var(--mint); margin-right: .3rem; }

/* card stage */
.hm-stage { position: relative; height: 420px; max-width: 520px; margin: 0 auto; }
.hm-card { position: absolute; width: 340px; aspect-ratio: 1.586; border-radius: 20px; padding: 1.25rem 1.35rem; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hm-card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 32px solid rgba(255,255,255,.09); }
.hm-card > * { position: relative; z-index: 1; }
.hm-card-front { left: 50%; top: 105px; transform: translateX(-42%) rotate(-4deg);
    background: radial-gradient(120% 140% at 100% 0%, rgba(125,184,255,.55) 0%, rgba(125,184,255,0) 55%), linear-gradient(135deg, #0B2545 0%, #1D4E89 58%, #2F80ED 100%);
    box-shadow: 0 30px 60px rgba(11,37,69,.32); animation: hm-float 7s ease-in-out infinite; }
.hm-card-back { left: 50%; top: 50px; transform: translateX(-62%) rotate(-12deg); opacity: .95;
    background: linear-gradient(135deg, #13315C 0%, #0B2545 100%); box-shadow: 0 20px 40px rgba(11,37,69,.22); }
.hm-card-num { letter-spacing: .16em; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-chip-sm { font-size: .65rem; letter-spacing: .1em; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.hm-emv { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #F6D58E, #D9A441); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@keyframes hm-float { 0%, 100% { transform: translateX(-42%) rotate(-4deg) translateY(0); } 50% { transform: translateX(-42%) rotate(-3deg) translateY(-10px); } }

.hm-toast { position: absolute; display: flex; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: .65rem .9rem .65rem .7rem; box-shadow: var(--shadow-md); font-size: .88rem; color: var(--navy); white-space: nowrap;
    opacity: 0; animation: hm-pop .6s cubic-bezier(.2,.8,.2,1) forwards; }
.hm-toast .small { font-size: .78rem; }
.hm-toast-1 { right: 0; top: 10px; animation-delay: .4s; }
.hm-toast-2 { left: 0; bottom: 60px; animation-delay: 1.1s; }
.hm-toast-3 { right: 20px; bottom: 10px; animation-delay: 1.8s; }
@keyframes hm-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

.hm-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.hm-ico.ok { background: #E3F7EF; color: #1FA97A; }
.hm-ico.no { background: #FDECEC; color: #D64545; }
.hm-ico.info { background: var(--sky-100); color: var(--sky-600); }

/* ---------- Trust strip ---------- */
.hm-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2;
    background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-md); }
.hm-strip-item { display: flex; gap: .8rem; align-items: flex-start; }
.hm-strip-item > i { font-size: 1.3rem; color: var(--sky); background: var(--sky-100); width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; }
.hm-strip-item b { display: block; color: var(--navy); font-size: .95rem; }
.hm-strip-item span { color: var(--muted); font-size: .84rem; line-height: 1.35; display: block; }

/* ---------- Feature explorer ---------- */
.hm-explorer { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; }
.hm-tabs { display: flex; flex-direction: column; gap: .4rem; }
.hm-tab { display: flex; gap: .85rem; align-items: center; text-align: left; border: 1px solid transparent; background: transparent; border-radius: .9rem;
    padding: .8rem .95rem; color: #475569; transition: background .15s, border-color .15s, box-shadow .15s; }
.hm-tab > i { font-size: 1.25rem; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy-500); }
.hm-tab b { display: block; color: var(--navy); font-size: .97rem; }
.hm-tab small { color: var(--muted); font-size: .8rem; }
.hm-tab:hover { background: #fff; border-color: var(--line); }
.hm-tab.active { background: #fff; border-color: #BFD8FB; box-shadow: var(--shadow-sm); }
.hm-tab.active > i { background: var(--sky); border-color: var(--sky); color: #fff; }
.hm-tab:focus-visible { outline: 3px solid rgba(47,128,237,.35); outline-offset: 2px; }
.hm-panels { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 2rem; box-shadow: var(--shadow-sm); min-height: 420px; }
.hm-panel.active { animation: hm-fade .35s ease; }
.hm-panel h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
@keyframes hm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hm-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.hm-list li { display: flex; gap: .55rem; color: #334155; }
.hm-list i { color: var(--mint); font-size: 1.1rem; line-height: 1.3; }

/* mock UI */
.hm-mock { background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 18px 40px rgba(11,37,69,.10); overflow: hidden; }
.hm-mock-bar { display: flex; align-items: center; gap: .35rem; padding: .6rem .9rem; background: var(--sky-50); border-bottom: 1px solid var(--line); font-size: .82rem; }
.hm-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D7E1EE; }
.hm-mock-bar b { margin-left: .5rem; color: var(--navy); }
.hm-rule { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line); color: #334155; font-size: .92rem; }
.hm-rule i { color: var(--muted); margin-right: .4rem; }
.hm-switch { width: 40px; height: 22px; border-radius: 999px; background: #D7E1EE; position: relative; }
.hm-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.hm-switch.on { background: var(--sky); }
.hm-switch.on::after { left: 21px; }
.hm-big { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: .8rem 0 .5rem; gap: 2px; }
.hm-split div { width: var(--w); }
.hm-split .a, .hm-legend .a { background: #0B2545; }
.hm-split .b, .hm-legend .b { background: #2F80ED; }
.hm-split .c, .hm-legend .c { background: #F2A541; }
.hm-split .d, .hm-legend .d { background: #D7E1EE; }
.hm-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); }
.hm-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .3rem; }
.hm-budget { margin-bottom: 1rem; font-size: .9rem; color: #334155; }
.hm-budget i.bi { color: var(--muted); margin-right: .3rem; }
.hm-meter { height: 8px; border-radius: 999px; background: var(--sky-100); margin-top: .4rem; overflow: hidden; }
.hm-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2F80ED, #7DB8FF); }
.hm-note { background: #FFF7EA; border: 1px solid #F7DDB2; color: #7A4F12; border-radius: .7rem; padding: .6rem .8rem; font-size: .86rem; }
.hm-feed { padding: .4rem .9rem; }
.hm-feed-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--navy); }
.hm-feed-row:last-child { border-bottom: 0; }
.hm-feed-row > div { flex: 1; min-width: 0; }
.hm-feed-row small { display: block; color: var(--muted); font-size: .78rem; }
.hm-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: .5rem; }
.hm-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2F80ED, #9CC5FA); }
.hm-bars i:last-child { background: linear-gradient(180deg, #F2A541, #F7C982); }
.hm-file { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; font-weight: 600; padding: .35rem .65rem; border-radius: .55rem; border: 1px solid var(--line); background: #fff; }
.hm-file.pdf i { color: #D64545; } .hm-file.xls i { color: #1FA97A; } .hm-file.csv i { color: var(--sky); }
.hm-code { background: #0B2545; color: #CFE2FF; border-radius: 1rem; padding: 1.25rem 1.4rem; font-size: .84rem; line-height: 1.6; margin: 0; box-shadow: 0 18px 40px rgba(11,37,69,.18); }
.hm-code .c { color: #7F9CC4; } .hm-code .k { color: #7DB8FF; } .hm-code .s { color: #F7C982; } .hm-code .n { color: #7FE0BE; }

/* ---------- Bands ---------- */
.hm-band { padding-top: 5rem; padding-bottom: 5rem; background: linear-gradient(180deg, #FFFFFF 0%, #EEF5FF 100%); border-block: 1px solid var(--line); }
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.hm-steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; border-top: 2px dashed #BFD8FB; z-index: 0; }
.hm-step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.hm-step > i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px; background: var(--sky-100); color: var(--sky-600); font-size: 1.5rem; }
.hm-step-num { position: absolute; top: 12px; left: 14px; font-size: .75rem; font-weight: 800; color: var(--amber-600); }
.hm-step h4 { font-size: 1.05rem; font-weight: 700; }
.hm-step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Planner ---------- */
.hm-planner { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.75rem; box-shadow: var(--shadow-md); height: 100%; }
.hm-range { display: block; margin-bottom: 1.15rem; }
.hm-range > span { display: flex; justify-content: space-between; font-size: .88rem; color: #475569; font-weight: 500; margin-bottom: .35rem; }
.hm-range b { color: var(--navy); font-variant-numeric: tabular-nums; }
.hm-range input[type=range] { width: 100%; accent-color: var(--sky); }
.hm-seg { display: flex; align-items: center; gap: .3rem; }
.hm-seg button { border: 1px solid #D7E1EE; background: #fff; border-radius: .5rem; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; color: #475569; }
.hm-seg button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.hm-result { background: linear-gradient(160deg, #0B2545 0%, #1D4E89 70%, #2F80ED 130%); color: #fff; border-radius: 1rem; padding: 1.4rem; height: 100%; display: flex; flex-direction: column; }
.hm-result-label { font-size: .82rem; opacity: .8; }
.hm-result-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.hm-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: auto; }
.hm-result-grid div { background: rgba(255,255,255,.09); border-radius: .7rem; padding: .6rem .75rem; }
.hm-result-grid span { display: block; font-size: .72rem; opacity: .75; }
.hm-result-grid b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hm-result .text-muted { color: rgba(255,255,255,.65) !important; }

/* ---------- Tiles ---------- */
.hm-tile { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.hm-tile h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hm-tile-dark { background: radial-gradient(600px 300px at 100% 0%, rgba(47,128,237,.45), transparent 60%), #0B2545; color: #D6E4F7; border-color: #0B2545; }
.hm-tile-dark h3 { color: #fff; }
.hm-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.hm-flow span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: .7rem; padding: .5rem .8rem; font-weight: 600; color: #fff; font-size: .9rem; }
.hm-flow > i { color: var(--amber); }
.hm-phone { width: 190px; margin: 1.25rem auto 0; border-radius: 28px; padding: 10px; background: #0B2545; box-shadow: 0 20px 40px rgba(11,37,69,.25); }
.hm-phone-screen { background: var(--sky-50); border-radius: 20px; padding: 1rem .9rem; min-height: 220px; }
.hm-phone-row { background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: .5rem .65rem; margin-top: .5rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.hm-phone-row i { color: var(--sky); margin-right: .3rem; }

/* ---------- Industries + security ---------- */
.hm-industries { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hm-industries span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font-weight: 600; color: var(--navy); font-size: .92rem; box-shadow: var(--shadow-sm); }
.hm-industries i { color: var(--sky); margin-right: .35rem; }
.hm-sec { display: flex; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; height: 100%; }
.hm-sec-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #FFF4E3; color: var(--amber-600); font-size: 1.2rem; }
.hm-sec b { color: var(--navy); }
.hm-sec p { color: var(--muted); font-size: .88rem; margin: .2rem 0 0; }

/* ---------- Pricing ---------- */
.hm-price-pt { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; height: 100%; }
.hm-price-pt i { font-size: 1.3rem; color: var(--sky); display: block; margin-bottom: .4rem; }
.hm-price-pt b { display: block; color: var(--navy); }
.hm-price-pt span { color: var(--muted); font-size: .9rem; }
.hm-pricing { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); overflow-x: auto; }
.hm-pricing .lg-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hm-pricing .lg-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.hm-pricing .lg-table td { padding: .85rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; color: #334155; }
.hm-pricing .lg-table tr:last-child td { border-bottom: 0; }
.hm-pricing .svc-details summary { cursor: pointer; color: var(--sky-600); font-size: .85rem; margin-top: .25rem; }

/* ---------- FAQ ---------- */
.hm-faq .accordion-item { border: 1px solid var(--line); border-radius: .9rem !important; margin-bottom: .6rem; overflow: hidden; background: #fff; }
.hm-faq .accordion-button { font-weight: 650; color: var(--navy); font-size: 1rem; padding: 1rem 1.2rem; }
.hm-faq .accordion-button:not(.collapsed) { background: var(--sky-100); color: var(--navy); box-shadow: none; }
.hm-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(47,128,237,.2); }
.hm-faq .accordion-body { color: #475569; }

/* ---------- Final CTA ---------- */
.hm-final { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 0 0 3rem;
    background: radial-gradient(700px 300px at 0% 100%, rgba(242,165,65,.25), transparent 60%), linear-gradient(135deg, #0B2545 0%, #1D4E89 100%);
    color: #D6E4F7; border-radius: 1.5rem; padding: 2.75rem 3rem; box-shadow: 0 24px 50px rgba(11,37,69,.22); }
.hm-final h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.hm-final p { margin: 0; }

/* ---------- Reveal ---------- */
.hm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.hm-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hm-card-front, .hm-toast, .hm-panel.active { animation: none !important; opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .hm-explorer { grid-template-columns: 1fr; }
    .hm-tabs { flex-direction: row; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
    .hm-tab { flex: 0 0 auto; }
    .hm-tab small { display: none; }
}
@media (max-width: 991.98px) {
    .hm-strip { grid-template-columns: 1fr 1fr; }
    .hm-steps { grid-template-columns: 1fr 1fr; }
    .hm-steps::before { display: none; }
    .hm-hero { padding-top: 3rem; }
}
@media (max-width: 575.98px) {
    .hm-section { padding: 3.5rem 0; }
    .hm-strip, .hm-steps { grid-template-columns: 1fr; }
    .hm-stage { height: 360px; }
    .hm-card { width: 290px; padding: 1rem; }
    .hm-card-front { top: 80px; }
    .hm-card-back { top: 30px; }
    .hm-card-loaded { display: none; }
    .hm-toast-1 { top: 0; }
    .hm-toast-2 { bottom: 20px; }
    .hm-card-num { font-size: .95rem; }
    .hm-toast { font-size: .8rem; }
    .hm-toast-3 { display: none; }
    .hm-panels { padding: 1.25rem; }
    .hm-final { padding: 2rem 1.5rem; }
}
