/* ==========================================================================
   FNTY Accounts - marketing landing page (public/home.php)
   Loaded only on the home page via the `pageCss` view variable.
   ========================================================================== */

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 20px 96px;
    background:
        radial-gradient(ellipse 70% 55% at 85% 0%, rgba(47,166,178,0.16) 0%, rgba(47,166,178,0) 60%),
        radial-gradient(ellipse 80% 60% at 0% 0%, var(--primary-tint) 0%, #fff 62%);
}
.lp-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(23,61,104,0.045) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(23,61,104,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}
.lp-hero-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
@media (min-width: 1020px) {
    .lp-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 40px; }
}
.lp-copy { text-align: left; }
.lp-copy .hero-badge { margin-bottom: 20px; }
.lp-copy h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.lp-copy .lp-lead {
    font-size: 1.1rem; line-height: 1.65; color: var(--muted);
    max-width: 520px; margin: 0 0 30px;
}
.lp-copy .hero-actions { justify-content: flex-start; }
.lp-checks {
    list-style: none; padding: 0; margin: 30px 0 0;
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    color: var(--muted); font-size: 0.86rem; font-weight: 600;
}
.lp-checks li { display: inline-flex; align-items: center; gap: 7px; }
.lp-checks svg { width: 16px; height: 16px; stroke: var(--success); fill: none; stroke-width: 2.4; flex: none; }

/* ---------- Laptop device ---------- */
.lp-stage { position: relative; padding: 0 0 8px; }
.lp-stage::before {            /* soft brand glow behind the device */
    content: ""; position: absolute; z-index: 0;
    left: 6%; right: 6%; top: 8%; bottom: 0;
    background: var(--gradient); opacity: 0.18; filter: blur(70px); border-radius: 50%;
}
.laptop { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; }
.laptop-lid {
    position: relative;
    background: linear-gradient(180deg, #2b3646 0%, #1b2432 100%);
    border-radius: 16px 16px 4px 4px;
    padding: 14px 14px 18px;
    box-shadow: 0 0 0 1.5px #0d141f, 0 30px 70px -20px rgba(15,23,42,0.45);
}
.laptop-lid::before {          /* camera */
    content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px;
    margin-left: -2.5px; border-radius: 50%; background: #0b111a; box-shadow: inset 0 0 0 1px #3a4658;
}
.laptop-screen {
    position: relative; overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fff; border-radius: 4px;
    container-type: inline-size;
}
.laptop-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop-base {
    position: relative; height: 15px; margin: 0 -4.5%;
    background: linear-gradient(180deg, #d9e0e9 0%, #b9c3d0 70%, #9aa6b6 100%);
    border-radius: 2px 2px 18px 18px / 2px 2px 14px 14px;
    box-shadow: 0 18px 30px -12px rgba(15,23,42,0.4);
}
.laptop-base::before {         /* thumb notch */
    content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 6px; margin-left: -8%;
    background: linear-gradient(180deg, #9aa6b6, #c4ccd8); border-radius: 0 0 10px 10px;
}

/* ---------- Mini product UI inside the screen (scales with the screen) ---------- */
.ui { font-size: 1.45cqw; line-height: 1.35; color: var(--text); display: grid; grid-template-columns: 17% 1fr; height: 100%; text-align: left; font-family: Inter, system-ui, sans-serif; }
.ui * { box-sizing: border-box; }
.ui-side { background: #fff; border-right: 1px solid var(--border); padding: 3.2% 6%; display: flex; flex-direction: column; gap: 0.5em; }
.ui-brand { display: flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 1.15em; margin-bottom: 0.8em; }
.ui-brand i { width: 1.7em; height: 1.7em; border-radius: 0.45em; background: var(--gradient); display: block; }
.ui-nav { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.7em; border-radius: 0.5em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ui-nav::before { content: ""; width: 0.95em; height: 0.95em; border-radius: 0.25em; background: currentColor; opacity: 0.35; flex: none; }
.ui-nav.on { background: var(--primary-tint); color: var(--primary-dark); }
.ui-nav.on::before { opacity: 0.9; }
.ui-main { background: var(--bg); padding: 2.6% 3%; display: flex; flex-direction: column; gap: 1.1em; min-width: 0; }
.ui-top { background: var(--gradient); color: #fff; border-radius: 0.9em; padding: 1.1em 1.4em; display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.ui-top b { display: block; font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.ui-top span { opacity: 0.8; font-size: 0.9em; }
.ui-btn { background: #fff; color: var(--primary-dark); font-weight: 700; padding: 0.55em 1em; border-radius: 0.5em; white-space: nowrap; }
.ui-row { display: grid; gap: 1em; grid-template-columns: 1fr 1fr; }
.ui-row.kpis { grid-template-columns: repeat(4, 1fr); gap: 0.8em; }
.ui-card { background: #fff; border: 1px solid var(--border); border-radius: 0.8em; padding: 1em 1.2em; min-width: 0; }
.ui-card small { display: block; color: var(--muted); font-weight: 600; font-size: 0.88em; }
.ui-card strong { display: block; font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.15em; }
.ui-card.kpi strong { font-size: 1.35em; }
.ui-card .up { color: var(--success); font-weight: 700; font-size: 0.85em; }
.ui-card .down { color: var(--danger); font-weight: 700; font-size: 0.85em; }
.ui-bar { display: flex; height: 0.65em; border-radius: 99px; overflow: hidden; background: var(--bg-deep); margin: 0.8em 0 0.6em; }
.ui-bar i { display: block; }
.ui-legend { display: flex; gap: 1.2em; color: var(--muted); font-size: 0.85em; }
.ui-legend em { font-style: normal; display: inline-flex; align-items: center; gap: 0.4em; }
.ui-legend em::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--c, var(--primary)); }
.ui-table { width: 100%; border-collapse: collapse; margin-top: 0.7em; font-size: 0.92em; }
.ui-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3em 0; }
.ui-table td { padding: 0.55em 0; border-top: 1px solid var(--border); }
.ui-table td:last-child, .ui-table th:last-child { text-align: right; }
.ui-pill { display: inline-block; padding: 0.15em 0.7em; border-radius: 99px; font-weight: 700; font-size: 0.82em; }
.ui-pill.paid { background: #dcfce7; color: #15803d; }
.ui-pill.due { background: #fef3c7; color: #b45309; }
.ui-pill.over { background: #fee2e2; color: #b91c1c; }
.ui-chart { display: flex; align-items: flex-end; gap: 0.5em; height: 5.2em; margin-top: 0.8em; }
.ui-chart i { flex: 1; border-radius: 0.3em 0.3em 0 0; background: var(--primary-tint); }
.ui-chart i.hi { background: var(--gradient); }

/* floating cards that overlap the device */
.lp-float {
    position: absolute; z-index: 2; display: none;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-xl); padding: 12px 16px; text-align: left; font-size: 0.82rem;
}
@media (min-width: 640px) { .lp-float { display: flex; align-items: center; gap: 11px; } }
.lp-float .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #dcfce7; color: #15803d; flex: none; }
.lp-float .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.lp-float b { display: block; font-size: 0.9rem; letter-spacing: -0.01em; }
.lp-float span { color: var(--muted); }
.lp-float.f1 { left: -3%; bottom: 14%; animation: lp-bob 6s ease-in-out infinite; }
.lp-float.f2 { right: -2%; top: 6%; animation: lp-bob 7s ease-in-out -2s infinite; }
.lp-float.f2 .ico { background: var(--primary-tint); color: var(--primary-dark); }
@keyframes lp-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none !important; } }

/* ---------- Stats strip ---------- */
.lp-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; padding: 26px 20px; }
.lp-strip .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
@media (min-width: 760px) { .lp-strip .container { grid-template-columns: repeat(4, 1fr); } }
.lp-strip b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); }
.lp-strip span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- Showcase (alternating device + copy) ---------- */
.lp-showcase { padding: 96px 20px; background: #fff; }
.lp-showcase.alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-showcase-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1020px) {
    .lp-showcase-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 64px; }
    .lp-showcase.flip .lp-showcase-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); }
    .lp-showcase.flip .lp-stage { order: 2; }
}
.lp-showcase .section-eyebrow { text-align: left; }
.lp-showcase h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.lp-showcase p.lp-p { color: var(--muted); line-height: 1.65; margin-bottom: 22px; max-width: 480px; }
.lp-bullets { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.lp-bullets li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.lp-bullets .tick { width: 30px; height: 30px; border-radius: 9px; background: var(--primary-tint); color: var(--primary-dark); display: grid; place-items: center; }
.lp-bullets .tick svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.lp-bullets b { display: block; font-size: 0.97rem; }
.lp-bullets span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Modules ---------- */
.lp-modules .feature-card { display: flex; flex-direction: column; }
.lp-modules .feature-card .price { margin-top: auto; padding-top: 14px; color: var(--primary-dark); font-weight: 700; font-size: 0.88rem; }
.lp-modules .feature-card p { margin-bottom: 0; }

/* ---------- How it works ---------- */
.lp-steps { padding: 96px 20px; background: #fff; }
.lp-steps-grid { display: grid; gap: 22px; margin-top: 44px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 820px) { .lp-steps-grid { grid-template-columns: repeat(3, 1fr); } }
.lp-step { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: left; counter-increment: step; }
.lp-step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.lp-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.lp-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0; }

/* ---------- Phone-size tuning ---------- */
@media (max-width: 640px) {
    .lp-hero { padding: 44px 16px 64px; }
    .lp-showcase, .lp-steps { padding: 64px 16px; }
    .laptop-lid { padding: 8px 8px 11px; border-radius: 10px 10px 3px 3px; }
    .ui-side { display: none; }
    .ui { grid-template-columns: 1fr; font-size: 2.3cqw; }
    .ui-row.kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Secondary devices are narrower, so give their screens slightly larger type */
.lp-showcase .ui { font-size: 1.8cqw; }
@media (max-width: 640px) { .lp-showcase .ui { font-size: 2.6cqw; } }
