/* Home module — hero, fact strip, flow, showcase, featured event, compliance band */

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, #f7f9ff 0%, #fff 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
}

.glow-a { width: 520px; height: 520px; left: -160px; top: -200px; background: rgba(47, 76, 240, .22); }
.glow-b { width: 460px; height: 460px; right: -120px; bottom: -220px; background: rgba(255, 185, 49, .28); }

.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(18, 28, 69, .08) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .9rem;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--po-line);
    box-shadow: var(--po-shadow);
    font-size: .85rem;
    font-weight: 700;
    color: var(--po-ink-2);
}

.eyebrow-pill .pulse-dot { color: var(--po-teal); }

.hero-title {
    margin: 1.5rem 0 1.25rem;
    font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.text-highlight {
    background: linear-gradient(100deg, var(--po-blue) 10%, #7a5cff 60%, #d9a400 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead { font-size: 1.2rem; line-height: 1.7; color: var(--po-muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }

.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--po-ink-2); font-size: .95rem; }
.hero-checks .icon { color: var(--po-teal); }

/* ---------- hero product mock ---------- */
.hero-visual { position: relative; padding: 2rem 1rem 2rem 2rem; }

.mock-window {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--po-line);
    box-shadow: 0 50px 80px -40px rgba(18, 28, 69, .45), 0 10px 30px -15px rgba(18, 28, 69, .2);
    overflow: hidden;
    transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
    transition: transform .6s ease;
}

.hero-visual:hover .mock-window { transform: perspective(1600px) rotateY(-2deg) rotateX(0); }

.mock-top {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .65rem .9rem;
    background: var(--po-bg);
    border-bottom: 1px solid var(--po-line);
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dbe6; }
.mock-dot:nth-child(1) { background: #ff8b80; }
.mock-dot:nth-child(2) { background: #ffd166; }
.mock-dot:nth-child(3) { background: #7fdcae; }

.mock-url {
    margin-left: .75rem;
    padding: .15rem .75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--po-line);
    font-size: .72rem;
    color: var(--po-muted);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 360px; }

.mock-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: .9rem 0;
    background: var(--po-navy);
}

.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--po-blue); margin-bottom: .5rem; box-shadow: inset -8px -8px 0 rgba(255, 185, 49, .9); }
.mock-rail-item { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: rgba(255, 255, 255, .55); }
.mock-rail-item.is-active { background: rgba(255, 255, 255, .12); color: #fff; }

.mock-main { padding: 1.1rem 1.2rem; display: grid; gap: .9rem; align-content: start; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.mock-kicker { margin: 0; font-size: .7rem; color: var(--po-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mock-title { margin: 0; font-weight: 800; font-size: 1.05rem; }

.mock-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    border-radius: 99px;
    background: var(--po-teal-50);
    color: #0b7a6f;
    font-size: .68rem;
    font-weight: 800;
    white-space: nowrap;
}

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

.mock-kpi {
    padding: .65rem .75rem;
    border-radius: 12px;
    border: 1px solid var(--po-line);
    display: grid;
    gap: .1rem;
}

.mock-kpi span { font-size: .68rem; color: var(--po-muted); font-weight: 700; }
.mock-kpi strong { font-size: 1.15rem; font-weight: 800; }
.mock-kpi em { font-style: normal; font-size: .68rem; color: var(--po-muted); font-weight: 700; }
.mock-kpi em.is-up { color: #0b7a6f; }

.mock-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: .6rem; }
.mock-panel { padding: .75rem; border-radius: 12px; border: 1px solid var(--po-line); }
.mock-panel-title { font-size: .72rem; font-weight: 800; margin-bottom: .6rem; color: var(--po-ink-2); }

.mock-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: .35rem; height: 110px; }
.mock-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.mock-bar i { display: block; width: 100%; max-width: 16px; height: var(--h); border-radius: 4px 4px 0 0; background: var(--po-blue); opacity: .85; }
.mock-bar:nth-child(4) i { background: var(--po-gold); opacity: 1; }
.mock-bar span { font-size: .6rem; color: var(--po-muted); font-weight: 700; }

.mock-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.mock-row + .mock-row { border-top: 1px dashed var(--po-line); }
.mock-row-text { flex: 1; min-width: 0; line-height: 1.15; }
.mock-row-text b { display: block; font-size: .72rem; }
.mock-row-text small { font-size: .62rem; color: var(--po-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.mock-pill { font-size: .62rem; font-weight: 800; padding: .1rem .45rem; border-radius: 99px; background: var(--po-teal-50); color: #0b7a6f; }
.mock-pill.pill-late { background: #fff4dc; color: #8a5a00; }
.mock-pill.pill-leave { background: #f0edff; color: var(--po-violet); }

.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--po-line);
    box-shadow: var(--po-shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.float-chip b { display: block; font-size: .82rem; }
.float-chip small { display: block; font-size: .7rem; color: var(--po-muted); }

.chip-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.tone-teal { background: var(--po-teal-50); color: var(--po-teal); }
.tone-gold { background: #fff4dc; color: #a86d00; }
.tone-blue { background: var(--po-sky); color: var(--po-blue); }

.chip-a { left: -28px; bottom: 9%; }
.chip-b { right: -10px; top: 6%; animation-delay: -2s; }
.chip-c { right: 8%; bottom: -4px; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- fact strip ---------- */
.fact-strip { padding: 0 0 1rem; margin-top: -2.5rem; position: relative; z-index: 2; }

.fact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    box-shadow: var(--po-shadow);
}

.fact { padding: 1.5rem 1.75rem; }
.fact + .fact { border-left: 1px solid var(--po-line); }
.fact strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--po-navy); line-height: 1.1; }
.fact span { color: var(--po-muted); font-size: .92rem; font-weight: 500; }

/* ---------- flow ---------- */
.flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.flow::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 58px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--po-blue) 0 8px, transparent 8px 16px);
    opacity: .35;
}

.flow-step {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    text-align: center;
}

.flow-num { position: absolute; top: 1rem; right: 1.1rem; font-weight: 800; font-size: .8rem; color: var(--po-line); }

.flow-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--po-navy);
    color: var(--po-gold);
    box-shadow: 0 0 0 8px #fff;
}

.flow-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.flow-step p { color: var(--po-muted); margin: 0; font-size: .95rem; }

/* ---------- showcase ---------- */
.showcase-tabs { gap: .75rem; margin-top: 1.75rem; }

.showcase-tab {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius);
    background: #fff;
    text-align: left;
    color: var(--po-ink);
    transition: border-color .2s, box-shadow .2s;
}

.showcase-tab b { display: block; font-size: 1.05rem; }
.showcase-tab small { display: block; color: var(--po-muted); font-size: .9rem; margin-top: .15rem; }

.showcase-tab-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--po-bg);
    color: var(--po-muted);
}

.showcase-tab.active { border-color: var(--po-blue); box-shadow: var(--po-shadow); }
.showcase-tab.active .showcase-tab-icon { background: var(--po-blue); color: #fff; }

.showcase-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--po-blue);
}

.showcase-tab.is-running .showcase-progress { animation: showcase-progress var(--showcase-ms, 7000ms) linear forwards; }

@keyframes showcase-progress { from { width: 0; } to { width: 100%; } }

.showcase-stage {
    padding: 1.5rem;
    border-radius: 26px;
    background: linear-gradient(150deg, var(--po-sky) 0%, #fff6e3 100%);
}

.stage-card {
    padding: 1.5rem;
    border-radius: var(--po-radius-lg);
    background: #fff;
    box-shadow: var(--po-shadow-lg);
    min-height: 360px;
}

.stage-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-size: .9rem;
}

.stage-head > span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.stage-chip { padding: .2rem .7rem; border-radius: 99px; background: var(--po-navy); color: #fff; font-size: .78rem; }

.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--po-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .35rem; }

/* register grid */
.register { display: grid; gap: .35rem; overflow-x: auto; }
.register-row { display: grid; grid-template-columns: 150px repeat(14, minmax(22px, 1fr)) 46px; gap: .25rem; align-items: center; }
.register-name { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.register-day { text-align: center; font-size: .65rem; color: var(--po-muted); font-weight: 700; }
.register-paid { text-align: right; font-weight: 800; font-size: .8rem; }
.register-days .register-paid { font-size: .65rem; color: var(--po-muted); }

.register-cell {
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: .62rem;
    font-weight: 800;
}

.cell-p { background: #dff5ef; color: #0b7a6f; }
.cell-h { background: #fff1cc; color: #8a5a00; }
.cell-l { background: #ece8ff; color: var(--po-violet); }
.cell-a { background: #ffe1e1; color: #b3261e; }
.cell-w { background: #eef0f5; color: #8a90a6; }

/* payroll breakup */
.breakup-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--po-muted); margin-bottom: .75rem; }
.breakup { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }

.breakup li {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: var(--po-bg);
    overflow: hidden;
    font-size: .9rem;
}

.breakup li span, .breakup li b { position: relative; z-index: 1; }
.breakup li i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: rgba(47, 76, 240, .1); }
.breakup-minus li { background: #fff4f4; }

.breakup-total { display: flex; justify-content: space-between; margin: .9rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--po-line); font-weight: 800; }

.net-pay {
    margin-top: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--po-radius);
    background: var(--po-navy);
    color: rgba(255, 255, 255, .75);
    display: grid;
}

.net-pay strong { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.15; }
.net-pay small { font-size: .72rem; color: rgba(255, 255, 255, .5); }

/* phone */
.stage-mobile { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; }

.phone {
    position: relative;
    padding: 12px;
    border-radius: 34px;
    background: var(--po-navy);
    box-shadow: 0 30px 60px -30px rgba(18, 28, 69, .6);
}

.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 18px; border-radius: 0 0 12px 12px; background: var(--po-navy); z-index: 1; }

.phone-screen {
    border-radius: 24px;
    padding: 2rem 1rem 1.25rem;
    background: linear-gradient(180deg, #f2f5ff 0%, #fff 60%);
    min-height: 400px;
}

.phone-greet { margin: 0; font-weight: 800; font-size: 1.1rem; }
.phone-date { margin: 0 0 1rem; font-size: .75rem; color: var(--po-muted); }

.phone-fence {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
    border-radius: 99px;
    background: var(--po-teal-50);
    color: #0b7a6f;
    font-size: .72rem;
    font-weight: 700;
}

.phone-punch {
    width: 150px;
    height: 150px;
    margin: 1.5rem auto;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .35rem;
    background: radial-gradient(circle at 30% 30%, #5470ff, var(--po-blue));
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
    box-shadow: 0 0 0 10px rgba(47, 76, 240, .12), 0 0 0 20px rgba(47, 76, 240, .06);
    pointer-events: none;
}

.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }

.phone-tiles span {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .55rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--po-line);
    font-size: .7rem;
    font-weight: 700;
}

.phone-tiles .icon { color: var(--po-blue); }

.mobile-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mobile-points li { display: flex; gap: .75rem; color: var(--po-muted); }
.mobile-points b { color: var(--po-ink); }
.mobile-points .icon { color: var(--po-blue); margin-top: .2rem; }

/* ---------- featured event ---------- */
.featured-event {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    margin-bottom: 4rem;
    border-radius: 28px;
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(420px 280px at 100% 100%, rgba(255, 185, 49, .35), transparent 70%),
        linear-gradient(120deg, var(--po-navy) 0%, #24317a 100%);
}

.featured-event::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.featured-event-copy { position: relative; max-width: 620px; }
.featured-event-tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--po-gold); }
.featured-event h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem); margin: .5rem 0 .75rem; }
.featured-event p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.featured-event-meta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }

.featured-event-count { position: relative; display: flex; gap: .75rem; }

.featured-event-count div {
    min-width: 92px;
    padding: 1rem .75rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

.featured-event-count strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.featured-event-count span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- compliance band ---------- */
.compliance-band {
    padding: 6rem 0;
    background:
        radial-gradient(500px 360px at 0% 0%, rgba(47, 76, 240, .45), transparent 70%),
        var(--po-navy);
    color: rgba(255, 255, 255, .75);
}

.compliance-lead { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.75rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.stat-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem;
    border-radius: var(--po-radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: background .2s;
}

.stat-tile:hover { background: rgba(255, 255, 255, .1); }
.stat-tile-wide { grid-column: 1 / -1; }

.stat-tile b {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--po-gold);
    color: var(--po-navy);
    font-size: 1rem;
    font-weight: 800;
}

.stat-tile span { padding-top: .2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .chip-a { left: 0; }
    .chip-b { right: 0; }
}

@media (max-width: 991.98px) {
    .hero { padding: 3.5rem 0 5rem; }
    .fact-grid { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--po-line); }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .flow::before { display: none; }
    .stage-mobile { grid-template-columns: 1fr; justify-items: center; }
    .phone { width: 240px; }
}

@media (max-width: 575.98px) {
    .hero-visual { padding: 1rem 0; }
    .float-chip { display: none; }
    .mock-window { transform: none; }
    .mock-grid, .mock-kpis { grid-template-columns: 1fr; }
    .fact-grid, .flow, .stat-tiles { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--po-line); }
    .featured-event { padding: 1.75rem; }
    .featured-event-count div { min-width: 0; flex: 1; }
}
