/* ============================================================================
   Home page (Pages/Index.cshtml). Ported from "Effortless Home.dc.html".
   Shared pieces (.section, .card, .marquee, .chat-card, .cta-panel, ...) live in site.css.
   No JavaScript: the hero backdrop is static inline SVG, the marquees are CSS keyframes.
   ============================================================================ */

/* ---- Hero ---- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 32px 0;
    min-height: calc(100svh - var(--header-h) - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-hero__backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 62% at 6% -4%, rgba(39, 165, 221, .34) 0%, rgba(39, 165, 221, .14) 44%, rgba(39, 165, 221, 0) 76%),
        radial-gradient(46% 62% at 94% -4%, rgba(112, 190, 68, .30) 0%, rgba(112, 190, 68, .12) 44%, rgba(112, 190, 68, 0) 76%),
        radial-gradient(40% 30% at 50% 30%, rgba(250, 175, 66, .26) 0%, rgba(250, 175, 66, .11) 48%, rgba(250, 175, 66, 0) 78%);
}
.home-hero__backdrop > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(44% 54% at 50% 44%, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .46) 54%, rgba(255, 255, 255, 0) 100%);
}
.home-hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .58) 72%, rgba(255, 255, 255, .88) 100%);
}

.home-hero__inner { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; }

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 8px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: 0 1px 2px rgba(24, 34, 51, .05);
    white-space: nowrap;
}
.home-hero__dots { display: inline-flex; gap: 3px; }
.home-hero__dots span { width: 7px; height: 7px; border-radius: 50%; }
.home-hero__dots span:nth-child(1) { background: var(--blue); }
.home-hero__dots span:nth-child(2) { background: var(--green); }
.home-hero__dots span:nth-child(3) { background: var(--gold); }

.home-hero__title { margin-top: 26px; font-size: 72px; line-height: 1.02; font-weight: 800; color: var(--ink); }
.home-hero__title em { font-style: normal; color: var(--purple); }
.home-hero__lead {
    margin: 24px auto 0;
    max-width: 660px;
    font-size: 20px;
    line-height: 1.55;
    color: var(--muted);
    text-wrap: pretty;
}
.home-hero .btn-row { margin-top: 34px; }
.home-hero .btn--lg { box-shadow: 0 8px 22px rgba(24, 34, 51, .22); }
.home-hero .btn--outline.btn--lg { box-shadow: none; padding: 15px 24px; }

.home-hero__trust {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 500;
    color: var(--steel);
}
.home-hero__trust li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.home-hero__trust .icon { height: 12px; width: auto; color: var(--green); }
.home-hero__trust .icon--star-solid { color: var(--gold); }

.home-hero__video { margin-top: 60px; display: flex; justify-content: center; }
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 9px 22px 9px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(24, 34, 51, .07);
    transition: box-shadow .15s, border-color .15s, background-color .15s;
}
.video-link:hover { background: #fff; border-color: #c9cdd5; color: var(--ink); box-shadow: 0 6px 18px rgba(24, 34, 51, .12); }
.video-link__play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: 14px;
}
.video-link__play .icon { margin-left: 2px; }


/* Spacer between the hero content and the section below it. */
.home-hero__foot { max-width: 1160px; margin: 0 auto; height: 110px; }

/* Purple orb at the bottom centre, in the brand purple. A real circle rather than an ellipse stretched
   across the hero, and anchored to the hero's bottom edge (not to the content) so it reads the same at
   any window height; the hero clips whatever falls past that edge. It sits above the backdrop's bottom
   fade, which would otherwise wash it out to nothing. */
.home-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -650px;
    width: 1000px;
    height: 1000px;
    margin-left: -500px;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(122, 92, 224, .20) 0%, rgba(122, 92, 224, .10) 42%, rgba(122, 92, 224, 0) 70%);
}

/* ---- Stats band ---- */
.stats-band {
    padding: 34px 32px;
    background:
        radial-gradient(58% 120% at 18% 0%, rgba(39, 165, 221, .20) 0%, rgba(39, 165, 221, 0) 68%),
        radial-gradient(46% 110% at 82% 100%, rgba(122, 92, 224, .18) 0%, rgba(122, 92, 224, 0) 70%),
        linear-gradient(180deg, var(--dk-3) 0%, var(--dk-2) 100%);
}
.stats-band__list {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 72px;
}
.stats-band a {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 9px 16px;
    margin: -9px -16px;
    border-radius: var(--r-btn);
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s;
}
.stats-band a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.stats-band__n { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #fff; }
.stats-band__l { font-size: 14px; color: #c2cedd; }

/* ---- Latest articles ---- */
.articles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.articles__head .section__title { margin-top: 14px; font-size: 34px; line-height: 1.15; }
.articles__head .link-arrow { padding-bottom: 4px; }
.articles__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card-sm);
    overflow: hidden;
    color: inherit;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.article-card:hover { color: inherit; box-shadow: 0 14px 34px rgba(24, 34, 51, .10); transform: translateY(-3px); border-color: #d7dae1; }
.article-card__media { aspect-ratio: 2 / 1; background: var(--blue-tint); overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--steel); }
.article-card__title { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.article-card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.article-card__more {
    margin-top: auto;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--blue-d);
}
.article-card__more .icon { height: 11px; width: auto; }

/* ---- The problem ---- */
.problem { padding: 110px 32px; }
.brand-bar {
    width: 118px;
    height: 6px;
    border-radius: 4px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--blue) 0 33.3%, var(--green) 33.3% 66.6%, var(--gold) 66.6% 100%);
}
.problem .eyebrow { margin-top: 28px; }
.problem .lead { margin: 22px auto 0; max-width: 760px; }
.problem .link-arrow { margin-top: 26px; }
.problem__grid { max-width: 1160px; margin: 52px auto 0; }
.pain-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pain-card .icon-well { background: #fdecec; color: #c0202f; --duo-secondary: #e0555f; --duo-opacity: .4; }
.pain-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fdecec;
    border: 1px solid #f6cdcd;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #c0202f;
    white-space: nowrap;
}
.pain-tag .icon { height: 10px; width: auto; }

/* ---- Independent by design + carrier marquee ---- */
.independent { position: relative; overflow: hidden; padding: 100px 0 90px; }
.independent__inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.independent__copy { max-width: 780px; }
.pills { margin: 26px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 8px 15px;
    border-radius: 999px;
    white-space: nowrap;
}
.independent .link-arrow { margin-top: 28px; }
.carrier-marquee {
    position: relative;
    margin-top: 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.carrier-marquee .marquee__track { animation-duration: 83s; }
.carrier-marquee .marquee__group { gap: 16px; padding-right: 16px; }
.carrier-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 210px;
    height: 70px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .85);
}
.carrier-tile img { max-width: 100%; max-height: 38px; width: auto; height: auto; object-fit: contain; }

/* ---- Built to change with you / HR & payroll integration ---- */
.card--column { display: flex; flex-direction: column; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 26px; }
.home .check-list, .home .stat-tiles { margin-top: 28px; }
.hris-marquee .logo-tile img { max-height: 38px; }

/* ---- Security & trust / The Effortless difference ---- */
.security-grid { margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.security-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}
.security-item .icon-duotone { height: 15px; color: var(--blue-d); --duo-secondary: var(--blue); }

.diff-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.diff-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.diff-list__bar { width: 8px; height: 26px; border-radius: 3px; flex: none; }
.diff-list__bar--blue { background: var(--blue); }
.diff-list__bar--green { background: var(--green); }
.diff-list__bar--gold { background: var(--gold); }
.diff-list__bar--purple { background: var(--purple); }
.diff-list__t { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.diff-list__n { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }

/* ---- Getting started ---- */
.steps { padding: 100px 32px 90px; }
.steps .section__intro { max-width: 720px; }
.steps .section__title { font-size: 38px; }
.steps__grid { margin: 52px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-card {
    border: 1px solid var(--line);
    border-radius: var(--r-card-sm);
    padding: 32px 30px 38px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(24, 34, 51, .06);
}
.step-card__n {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}
.step-card--1 .step-card__n { background: #e3f2fa; color: var(--blue-d); }
.step-card--2 .step-card__n { background: #e9f5e0; color: #4e8f2f; }
.step-card--3 .step-card__n { background: #fdf1da; color: #b97a10; }
.step-card__title { margin-top: 24px; font-size: 18px; font-weight: 700; }
.step-card__body { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---- Demo ---- */
.demo { padding: 0 32px 110px; }

/* ---- Responsive ---- */
@media (max-width: 959px) {
    .home-hero { min-height: 0; padding: 56px 24px 0; }
    /* The orb keeps its proportions to the hero rather than spreading across a narrow screen. */
    .home-hero::after { width: 520px; height: 520px; margin-left: -260px; bottom: -210px; }
    .home-hero__title { font-size: 48px; }
    .home-hero__video { margin-top: 40px; }
    .stats-band { padding: 28px 24px; }
    .stats-band__list { gap: 14px 40px; }
    .articles__grid { grid-template-columns: 1fr; }
    .problem { padding: 72px 24px; }
    .independent { padding: 72px 0 64px; }
    .independent__inner { padding: 0 24px; }
    .steps { padding: 72px 24px; }
    .steps__grid { grid-template-columns: 1fr; }
    .demo { padding: 0 24px 72px; }
}
@media (max-width: 559px) {
    .home-hero { padding: 40px 20px 0; }
    /* Capped against the viewport so it stays an orb on the narrowest phones instead of a band. */
    .home-hero::after {
        width: min(320px, 74vw);
        height: min(320px, 74vw);
        margin-left: calc(min(320px, 74vw) / -2);
        bottom: calc(40px - min(320px, 74vw) / 2);
    }
    .home-hero__badge { white-space: normal; text-align: left; }
    .home-hero__title { font-size: 38px; }
    .home-hero__lead { font-size: 17px; }
    .home-hero__foot { height: 60px; }
    .video-link { font-size: 14px; }
    .stats-band a { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
    .problem { padding: 56px 20px; }
    .problem .section__title br { display: none; }
    .independent__inner { padding: 0 20px; }
    .security-grid { grid-template-columns: 1fr; }
    .steps { padding: 56px 20px; }
    .steps .section__title br { display: none; }
    .demo { padding: 0 20px 56px; }
}
