/* ============================================================================
   Billing optimization (Pages/Platform/Billing.cshtml). Ported from "Billing Optimization.dc.html".
   Hero backdrop: "Hero Backdrop", pattern "Isometric grid", tone Light. Shared pieces (.hero, .subnav, .section,
   .split, .icon-well, .cta-panel, ...) live in site.css. Razor only, no JS.
   ============================================================================ */

/* ---- Hero ---- */
.bill-hero { padding: 80px 32px 68px; }
.bill-hero .hero__title { font-size: 62px; line-height: 1.06; }
.bill-hero .hero__lead { max-width: 740px; margin-top: 26px; }

/* Small grey kicker above the Timing / Reporting headings (the design used it in place of an eyebrow). */
.bill-kicker {
    margin: 0;
    font-size: 12.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--steel);
}
.bill-h2 { margin-top: 12px; font-size: 31px; line-height: 1.18; font-weight: 700; color: var(--ink); }
.bill-h2--lg { font-size: 38px; line-height: 1.14; }
.bill-h2--panel { font-size: 34px; line-height: 1.16; }
.bill-strong { color: var(--ink); }

/* ---- Intro ---- */
.bill-intro { padding-bottom: 84px; }

/* ---- Timing ---- */
.bill-timing { padding: 96px 32px; }
.bill-timing__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
}
.bill-timing .lead { margin-top: 18px; }
.bill-timing .lead + .lead { margin-top: 14px; }
.bill-cutoffs { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.bill-cut {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: #fff;
    padding: 26px 24px;
}
.bill-cut--ea {
    border-color: rgba(122, 92, 224, .30);
    box-shadow: 0 0 0 6px rgba(122, 92, 224, .07), 0 22px 48px rgba(122, 92, 224, .16);
}
.bill-cut__label {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--steel);
}
.bill-cut--ea .bill-cut__label { color: var(--purple); }
.bill-cut__chips { margin-top: 16px; display: flex; gap: 8px; }
.bill-cut__chips--ea { align-items: center; gap: 10px; }
.bill-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--mist);
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--steel);
}
.bill-chip--ea {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(122, 92, 224, .30);
}
.bill-cut__day { font-family: var(--font-display); font-size: 15px; line-height: 1.25; font-weight: 700; color: #4a3a86; }
.bill-cut__body { margin: 16px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.bill-cut__foot {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #8a8d94;
}
.bill-cut__foot span { display: flex; font-size: 12px; }
.bill-cut__foot--ea { color: #4a3a86; }
.bill-cut__foot--ea span { color: var(--green); }

/* ---- Reporting ---- */
.bill-reporting { padding-top: 0; }
.bill-formats { margin: 26px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.bill-format {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.bill-format span { display: flex; font-size: 13px; color: var(--blue-d); }

.bill-consolidate { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.bill-providers { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bill-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    color: #c3c7cc;
}
.bill-connector { display: block; height: 34px; width: 2px; }
.bill-connector--in { background: linear-gradient(180deg, rgba(122, 92, 224, .15), rgba(122, 92, 224, .55)); }
.bill-connector--out { background: linear-gradient(180deg, rgba(122, 92, 224, .55), rgba(122, 92, 224, .15)); }
.bill-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 8px 20px rgba(122, 92, 224, .30);
    color: #fff;
    font-size: 16px;
}
.bill-statement {
    width: 100%;
    border: 1px solid #cde9f6;
    border-radius: var(--r-card);
    background: #fff;
    padding: 26px 26px 24px;
    box-shadow: 0 22px 48px rgba(24, 34, 51, .10);
}
.bill-statement__head { display: flex; align-items: center; gap: 12px; }
.bill-statement__head .icon-well { font-size: 16px; }
.bill-statement__title { font-size: 19px; font-weight: 800; color: var(--ink); }
.bill-statement__rows { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bill-statement__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: var(--mist);
    font-size: 13.5px;
    color: var(--muted);
}
.bill-statement__dot { width: 8px; height: 8px; border-radius: 2px; background: #cfd4da; flex: none; }
.bill-statement__text { flex: 1; min-width: 0; }
.bill-statement__bar { width: 52px; height: 8px; border-radius: 4px; background: #dfe3e7; }

/* ---- Real-time billing panel ---- */
.bill-realtime { padding: 88px 32px; }
.bill-realtime__panel {
    border: 1px solid #cde9f6;
    border-radius: var(--r-card-lg);
    background: linear-gradient(180deg, #f4fbfe 0%, #e8f6fc 100%);
    padding: 46px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
    align-items: center;
}
.bill-realtime__eyebrow { letter-spacing: .2em; font-weight: 700; }
.bill-realtime__body { margin: 16px 0 0; max-width: 620px; font-size: 16.5px; line-height: 1.65; color: #3c6a83; text-wrap: pretty; }
.bill-snapshot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--r-card);
    background: #fff;
    border: 1px solid #cde9f6;
    box-shadow: 0 18px 40px rgba(28, 132, 179, .14);
    white-space: nowrap;
}
.bill-snapshot__icon { width: 42px; height: 42px; background: #eef8e9; color: var(--green-d); --duo-secondary: var(--green); --duo-opacity: .4; }
.bill-snapshot__text { display: block; }
.bill-snapshot__title { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.bill-snapshot__sub { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ---- Payroll loop (dark) ---- */
.bill-payroll { position: relative; overflow: hidden; padding: 100px 32px; }
.bill-payroll__inner { position: relative; }
.bill-payroll .section__intro { max-width: 820px; }
.bill-payroll .section__title { font-size: 40px; }
.bill-flow {
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.bill-step {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, .05);
    padding: 28px 26px;
}
.bill-step--ea { border-color: rgba(122, 92, 224, .40); background: rgba(122, 92, 224, .14); }
.bill-step__icon { background: rgba(255, 255, 255, .08); color: var(--gold); --duo-secondary: #ffd694; --duo-opacity: .38; font-size: 16px; }
.bill-step--ea .bill-step__icon { background: rgba(255, 255, 255, .10); color: #fff; --duo-secondary: #c9b8ff; --duo-opacity: .5; }
.bill-step__title { margin-top: 18px; font-size: 18px; font-weight: 700; color: #fff; }
.bill-step__body { margin: 9px 0 0; font-size: 14.5px; line-height: 1.6; color: #a8bbd0; }
.bill-step--ea .bill-step__body { color: #cdc4ee; }
.bill-flow__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--purple);
    border: 1px solid #6a4ed1;
    box-shadow: 0 6px 16px rgba(122, 92, 224, .40);
    color: #fff;
    font-size: 14px;
}

/* ---- "More of the platform" cross-links (Pages/Shared/_PlatformMore.cshtml). Shared CSS candidate: all four product pages carry this block. ---- */

/* ---- Demo panel: product-page variant (Shared CSS candidate: same as .platform-demo in platform.css). ---- */

/* ---- Responsive ---- */
@media (max-width: 959px) {
    
    .bill-hero { padding: 64px 24px 56px; }
    .bill-hero .hero__title { font-size: 44px; }
    .bill-intro { padding-bottom: 56px; }
    .bill-timing { padding: 72px 24px; }
    .bill-timing__grid { grid-template-columns: 1fr; gap: 28px; }
    .bill-h2 { font-size: 27px; }
    .bill-h2--lg { font-size: 30px; }
    .bill-h2--panel { font-size: 28px; }
    .bill-realtime { padding: 64px 24px; }
    .bill-realtime__panel { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
    .bill-snapshot { white-space: normal; justify-self: start; }
    .bill-payroll { padding: 72px 24px; }
    .bill-payroll .section__title { font-size: 32px; }
    .bill-flow { grid-template-columns: 1fr; max-width: 520px; }
    .bill-flow__arrow { transform: rotate(90deg); justify-self: center; }
    .platform-more { padding: 56px 24px 0; }
    .platform-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-demo .cta-panel { padding: 64px 28px 72px; }
}
@media (max-width: 559px) {
    .bill-hero { padding: 48px 20px 40px; }
    .bill-hero .hero__title { font-size: 34px; }
    .bill-timing { padding: 56px 20px; }
    .bill-cutoffs { grid-template-columns: 1fr; }
    .bill-realtime { padding: 48px 20px; }
    .bill-realtime__panel { padding: 26px 20px; border-radius: var(--r-card); }
    .bill-payroll { padding: 56px 20px; }
    .bill-statement { padding: 22px 18px; }
    .platform-more { padding: 48px 20px 0; }
    .platform-more__list { grid-template-columns: 1fr; }
    .pf-demo .cta-panel { padding: 48px 20px 56px; }
}
