/* Finance (zerobill) page: what only /finance needs, on top of home-v2/assets/site.css.
   Same world: deep plum page, white sheets, plum-to-coral steps and sweep, Supreme 800 headings.
   The zerobill heart (from its wordmark) is this page's list mark. */

/* Hero: the homeowners photo under the home-v2 plum overlay, the zerobill mark over the heading */
.fin-hero .hero-bg { opacity: .5; object-position: 72% 42%; }
/* As tall as its copy, as on /legal (Sean, Oct 20: no blank space above the copy), not the whole screen. */
.hero.fin-hero { min-height: 0; justify-content: flex-end; padding: clamp(150px, 22vw, 220px) 0 clamp(36px, 5vw, 56px); }
@media (min-width: 1000px) { .hero.fin-hero { padding: 156px 0 64px; } }
.fin-mark { height: 34px; width: auto; margin-bottom: 28px; }
.fin-hero h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.032em; max-width: 22ch; text-wrap: balance; }
.fin-hero .lede { max-width: 50ch; color: #fff; text-shadow: 0 1px 8px rgba(41, 12, 63, .55); } /* full white: the photo shows through on the right on phones */
.fin-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 30px; }
.fin-acts .btn { margin-top: 0; }
.fin-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; border-radius: 6px;
}
.fin-link svg { width: 13px; height: 13px; flex: none; transition: transform .28s var(--ease); }
.fin-link:hover { color: var(--blush); }
.fin-link:hover svg, .fin-link:focus-visible svg { transform: translateY(2px); }

/* The zerobill heart as a list mark */
.zb-list { display: grid; gap: 10px; }
.zb-list li { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: start; column-gap: 11px; }
.zb-heart { width: 15px; height: 14px; margin-top: .32em; fill: var(--coral); }

/* Services (paper): three cards, every part on one shared row across them */
.fin-services { margin-top: var(--sheet-m); }
.fin-services .head { margin-bottom: clamp(30px, 3.6vw, 48px); }
.svc { display: grid; gap: 12px; }
.svc-card { display: grid; align-content: start; padding: 28px 26px 30px; border-radius: 18px; background: var(--paper-2); }
.svc-card h3 { font-weight: 800; font-size: clamp(22px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.12; }
.svc-card > p { margin-top: 10px; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.svc-card .zb-list { margin-top: 22px; }
.svc-card .zb-list li { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); gap: 0 14px; }
  .svc-card { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
}

/* How zerobill works (plum): four joined chevrons in the plum-to-coral steps. Each one points
   into the next: across on wide screens, down on phones. Text is padded clear of every cut. */
.fin-how .head { margin-bottom: clamp(30px, 3.6vw, 48px); }
.chev { --p: 16px; --gap: 6px; display: grid; }
.chev-step {
  position: relative; isolation: isolate; display: grid; align-content: start;
  padding: calc(var(--p) + 22px) 24px calc(var(--p) + 24px); color: #fff;
  clip-path: polygon(0 0, 50% var(--p), 100% 0, 100% calc(100% - var(--p)), 50% 100%, 0 calc(100% - var(--p)));
}
.chev-step + .chev-step { margin-top: calc(var(--gap) - var(--p)); }
.chev-step:first-child { padding-top: 26px; border-radius: 18px 18px 0 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--p)), 50% 100%, 0 calc(100% - var(--p))); }
.chev-step:last-child { padding-bottom: 28px; border-radius: 0 0 18px 18px; clip-path: polygon(0 0, 50% var(--p), 100% 0, 100% 100%, 0 100%); }
.chev-step:nth-child(1) { background: #3D1650; }
.chev-step:nth-child(2) { background: #6B1957; }
.chev-step:nth-child(3) { background: #9C1951; }
.chev-step:nth-child(4) { background: #D21B4A; }
.chev-step::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .09; mix-blend-mode: overlay; }
.chev-n { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.chev-step h3 { margin-top: 14px; font-weight: 800; font-size: clamp(20px, 1.7vw, 23px); letter-spacing: -.018em; line-height: 1.18; }
.chev-step p { margin-top: 8px; font-size: 16px; line-height: 1.5; max-width: 40ch; }
@media (min-width: 1000px) {
  .chev { --p: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); }
  .chev-step, .chev-step:first-child, .chev-step:last-child {
    grid-row: span 3; grid-template-rows: subgrid; row-gap: 0;
    padding: 30px calc(var(--p) + 18px) 34px calc(var(--p) + 22px);
    clip-path: polygon(0 0, calc(100% - var(--p)) 0, 100% 50%, calc(100% - var(--p)) 100%, 0 100%, var(--p) 50%);
  }
  .chev-step + .chev-step { margin: 0 0 0 calc(var(--gap) - var(--p)); }
  .chev-step:first-child { padding-left: 28px; border-radius: 18px 0 0 18px; clip-path: polygon(0 0, calc(100% - var(--p)) 0, 100% 50%, calc(100% - var(--p)) 100%, 0 100%); }
  .chev-step:last-child { padding-right: 28px; border-radius: 0 18px 18px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--p) 50%); }
  .chev-step h3 { margin-top: 18px; }
  .chev-step p { margin-top: 10px; font-size: 15.5px; }
}

/* Why finance companies choose zerobill: the sweep slide, three figures large */
.fin-why .head p { color: #fff; }
.figs-zb { margin-top: clamp(36px, 4.4vw, 64px); display: grid; gap: 28px; }
.figs-zb li { display: grid; gap: 8px; align-content: start; }
.figs-zb b { font-weight: 800; font-size: clamp(60px, 7.6vw, 112px); line-height: .92; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.figs-zb span { font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.3; }
@media (min-width: 760px) { .figs-zb { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); } }

/* Who we work with (paper): the partner list, and the flow of leads through zerobill on a plum card */
.who-in { display: grid; gap: 44px; }
.who-list { margin-top: 30px; gap: 14px 36px; }
.who-list li { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
@media (min-width: 560px) { .who-list { grid-template-columns: repeat(2, minmax(0, max-content)); } }
.flow { margin: 0; justify-self: center; width: 100%; max-width: 520px; padding: clamp(22px, 3vw, 36px) clamp(14px, 2.4vw, 30px); border-radius: 24px; background: var(--plum); color: #fff; }
.fl-label { text-align: center; font-size: 15px; font-weight: 700; color: var(--text-2); }
.fl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-people { margin-top: 14px; }
.fl-people li { display: grid; justify-items: center; }
.fl-people svg { width: 28px; height: 26px; fill: #fff; }
.fl-lines { display: block; width: 100%; height: 58px; margin: 8px 0; overflow: visible; }
.fl-lines path { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fl-base { stroke: rgba(255, 155, 179, .3); }
.fl-light { stroke: var(--coral-soft); stroke-width: 3; stroke-dasharray: 0 100; opacity: 0; }
.fl-hub { display: grid; place-items: center; width: 52%; min-height: 76px; margin: 0 auto; padding: 18px; border-radius: 16px; background: var(--sweep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.fl-hub img { height: 26px; width: auto; transform: translateY(2px); }
.fl-to li { display: grid; padding: 0 4px; }
.fl-to span {
  position: relative; display: grid; place-items: center; min-height: 66px; padding: 10px 6px; border-radius: 12px;
  background: var(--plum-2); text-align: center; font-size: 15.5px; font-weight: 700; line-height: 1.25; text-wrap: balance;
}
.fl-to span::before { /* the arrowhead, its tip where the line meets the tile */
  content: ""; position: absolute; left: 50%; top: -3px; width: 9px; height: 9px; margin-left: -5px;
  border: solid var(--coral-soft); border-width: 0 2px 2px 0; border-radius: 1px; transform: rotate(45deg);
}
/* A light runs down each line into zerobill, then out to the partners. Off with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .fl-light { opacity: 1; animation: fl-run 3.6s cubic-bezier(.45, 0, .25, 1) infinite; animation-delay: var(--d, 0s); }
}
@keyframes fl-run {
  0% { stroke-dasharray: 30 100; stroke-dashoffset: 30; }
  34% { stroke-dasharray: 30 100; stroke-dashoffset: -100; }
  100% { stroke-dasharray: 30 100; stroke-dashoffset: -100; }
}
@media (min-width: 1000px) {
  .who-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 5vw, 80px); align-items: center; }
  .flow { justify-self: end; }
}

/* Ready to grow (plum): the zerobill slide from the homepage, its real ads bleeding off the bottom */
.fin-cta { padding-bottom: 0; }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 36px;
  padding: clamp(32px, 4.6vw, 68px) clamp(22px, 4.4vw, 68px) 0; border-radius: var(--sheet-r); color: #fff;
  background: linear-gradient(205deg, #3D1650 0%, #3D1650 34%, #71195A 64%, #C81A4B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 180px; opacity: .09; mix-blend-mode: overlay; }
.cta-copy { display: grid; justify-items: start; align-content: center; }
.cta-copy h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.028em; max-width: 16ch; text-wrap: balance; }
.cta-copy p { margin-top: 16px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.cta-copy .btn { margin-top: 28px; }
/* The ads stand in three staggered columns, cut by the card's top and bottom edges. */
.cta-ads { --pt: clamp(32px, 4.6vw, 68px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: 250px; overflow: hidden; align-items: start; }
.cta-col { display: grid; gap: 10px; }
.cta-col img { width: 100%; height: auto; border-radius: 12px; background: var(--plum); }
.cta-col:nth-child(2) { margin-top: 28px; }
.cta-col:nth-child(3) { margin-top: 12px; }
@media (min-width: 900px) {
  .cta-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
  .cta-copy { padding-bottom: clamp(40px, 4.6vw, 68px); }
  .cta-ads { align-self: stretch; height: auto; min-height: 440px; contain: size; margin-top: calc(-1 * var(--pt)); gap: 12px; } /* sized by the copy, never by the ads */
  .cta-col { gap: 12px; }
  .cta-col:nth-child(1) { margin-top: -96px; }
  .cta-col:nth-child(2) { margin-top: -10px; }
  .cta-col:nth-child(3) { margin-top: -150px; }
}

@media (max-width: 479px) {
  .fin-hero h1 { text-wrap: wrap; }
  .fin-acts .btn { width: 100%; }
  .fl-to span { font-size: 14.5px; padding: 10px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .fin-link svg { transition: none; }
  .fl-light { display: none; }
}
