/* 40-home.css */
/* Home page sections. */

/* Hero */
.hero-home { padding-top: 60px; overflow: hidden; }
.hero-home__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px 64px; align-items: center; }
.hero-home__grid > * { min-width: 0; }
.hero-home__kicker { display: inline-flex; align-items: center; margin-bottom: 10px; padding: 7px 16px 7px 0; font-family: var(--f-display); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.hero-home__title { margin-bottom: 20px; font-size: var(--t-hero-home); font-weight: 600; line-height: 1.07; letter-spacing: var(--track-head); color: var(--teal-hover); }
.hero-home__title .accent { color: var(--teal-bright); }
.hero-home__lede { max-width: var(--measure-text); margin: 22px 0 28px; font-family: var(--f-display); font-size: 20px; font-weight: 400; line-height: 1.55; color: var(--steel); text-wrap: pretty; }  /* 70 characters a line at most, no word alone on the last */
.hero-home__ctas { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
.hero-home__fine { margin-top: 16px; }

/* The gap between the words and the picture: 64px, none between 1280 and 1319px, 56px from 1320px (as live) */
@media (min-width: 1280px) and (max-width: 1319px) { .hero-home__grid { column-gap: 0; } }
@media (min-width: 1320px) and (max-width: 1365px) { .hero-home__grid { column-gap: 56px; } }

/* Hero picture: dotted field, the photo with a light grain on the person, and two floating cards, lighter with a
   glossy finish (James: "make the hero boxes lighter with a glossy finish"): frosted white glass over the dotted field,
   a sheen from the top edge, a bright inner rim and a hairline edge, with the soft shadow straight under each from
   James's reference */
.hv { position: relative; top: -1.5px; width: calc(100% + 28px); max-width: 483px; margin-left: max(-28px, 100% - 483px); }
.hv::before { content: ""; position: absolute; inset: -10% -12% -8% -16%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(27, 42, 78, .32) 1.2px, transparent 1.5px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.hv__panel { position: relative; z-index: 1; height: 0; padding-bottom: 100%; border-radius: var(--radius-xl); overflow: hidden; }
.hv__panel img { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; height: auto; }
.hv__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/assets/img/grain.png) 0 0 / 200px 200px repeat; mix-blend-mode: soft-light; opacity: .2;
  -webkit-mask: url(/assets/img/ecw-hero-v2.webp) 50% 100% / 100% auto no-repeat; mask: url(/assets/img/ecw-hero-v2.webp) 50% 100% / 100% auto no-repeat; }
.hv__card { position: absolute; display: flex; align-items: center; column-gap: 10px; padding: 12px 18px 12px 12px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .92) 45%, rgba(240, 243, 248, .9) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: var(--shadow-drop), 0 0 0 1px rgba(16, 24, 40, .06), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(16, 24, 40, .04);
  text-align: left; -webkit-font-smoothing: antialiased; }
.hv__card::before { content: ""; position: absolute; inset: 1px 1px 48%; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }  /* the sheen */
.hv__card > * { position: relative; }  /* the icon and words over the sheen */
.hv__card--save { top: 14.69%; left: -11.39%; z-index: 3; }
.hv__card--hours { top: -1.52%; left: -3.63%; z-index: 2; }
.hv__ic { display: flex; flex: 0 0 42px; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.hv__ic svg { width: 58%; height: 58%; stroke-width: 1.6; }
.hv__t1 { font-family: var(--f-system); font-size: 15.98px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; white-space: nowrap; color: var(--navy); }
.hv__t2 { margin-top: 3px; font-family: var(--f-system); font-size: 12px; font-weight: 400; line-height: 1.25; color: var(--steel-2); }
.hv__card--save .hv__t2 { font-size: 16.57px; }
/* The hours card's second line exactly as wide as its first ("Every Single Week" under "Save 30+ Hours", as the savings
   card's two lines): sized to about that width, then spread to the first line's width on any font (it adds nothing to the
   card's width itself) */
.hv__card--hours .hv__t2 { width: 0; min-width: 100%; font-size: 14.75px; white-space: nowrap; text-align: justify; text-align-last: justify; }
.hv__num { font-size: 1.3em; font-weight: 700; letter-spacing: -.02em; }

/* Hero numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding-bottom: 30px; border-top: 1px solid var(--line-3); }
.stats__item { padding: 30px 28px 0; border-left: 1px solid var(--line-3); }
.stats__item:first-child { padding-left: 0; border-left: 0; }
.stats__num { font-family: var(--f-display); font-size: 34.4px; font-weight: 700; line-height: 1.1; color: var(--teal-text); }
.stats__num span { color: var(--navy-ink); }
.stats__cap { font-family: var(--f-display); font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--navy-deep); }

/* "Your VA handles" strip: its label, then the VA's tasks on a slow belt moving right to left (James: "move right to
   left beautifully and professionally"), faded in and out at both ends, pausing under the pointer (James: no pause
   button). For anyone whose device asks for less motion it stands still with every task in view.
   The list is written twice so the belt loops without a seam; the second copy is hidden from screen readers. Its
   words are the box words' size (48-type.css). */
.tasks { padding-block: 20px; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tasks__row { display: flex; align-items: center; }
.tasks__cap { display: flex; flex: none; align-items: center; column-gap: 24px; margin-right: 24px; font-family: var(--f-display); font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--steel-2); }
.tasks__cap::after { content: ""; width: 1px; height: 24px; background: var(--line); }  /* the rule between the label and the belt */
.tasks__run { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.tasks__belt { display: flex; width: max-content; animation: tasks-belt 84s linear infinite; }  /* 40px a second on desktop, 34 on phones */
.tasks__list { display: flex; flex: none; column-gap: 52px; margin: 0; padding: 0 52px 0 0; list-style: none; }
.tasks__item { display: flex; align-items: center; column-gap: 11px; white-space: nowrap; }
.tasks__item svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--teal-icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tasks__t { font-family: var(--f-display); font-weight: 400; line-height: 1.25; color: var(--navy); }
@media (hover: hover) { .tasks__run:hover .tasks__belt { animation-play-state: paused; } }
@keyframes tasks-belt { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .tasks { padding-block: 16px; }
  .tasks__row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .tasks__cap { margin: 0; }
  .tasks__cap::after { display: none; }
  .tasks__list { column-gap: 40px; padding-right: 40px; }
  .tasks__item svg { width: 20px; height: 20px; }
}
/* Where the device asks for less motion the belt stands still: on desktop every task in view in centered rows; on
   smaller screens one row to swipe through, the belt's own height, faded at the right edge where more follow (a stack
   of twelve would run a phone's whole screen) */
@media (prefers-reduced-motion: reduce) {
  .tasks__belt { animation: none; }
  .tasks__list[aria-hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 992px) {
  .tasks__run { -webkit-mask-image: none; mask-image: none; }
  .tasks__belt { width: auto; }
  .tasks__list { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; column-gap: 36px; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 991px) {
  .tasks__run { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .tasks__run::-webkit-scrollbar { display: none; }
  .tasks__list { padding-right: 56px; }
  .tasks__item { scroll-snap-align: start; }
}

/* Hire section, laid out and sized as Hello Rache's hire section: the picture (5px corners) and the words in two equal
   columns 30px apart, the picture always exactly as tall as the title, words and button beside it (cropped to fit, never
   stretched); one column below 768px with the picture first (16:9), and everything centered on phones. Its title is Hello Rache's size (35.5px on desktop, down to 26px on phones), the words
   16px at 1.47 (70 characters a line at most); its button is the hero's own (btn--lift, full width on phones as the
   hero's); gaps by the spacing standard (01-tokens.css). The title is navy (end of this file). */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-action) 30px; align-items: stretch; }
.media-split__media { position: relative; }
.media-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.grainy::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: var(--radius-md); background: url(/assets/img/grain.png) 0 0 / 200px 200px repeat; mix-blend-mode: soft-light; opacity: .2; }
.media-split__media.grainy::after { border-radius: 5px; }
.media-split__body { display: flex; flex-direction: column; align-items: flex-start; }
.media-split__body .h2 { max-width: var(--measure-title); margin-bottom: var(--sp-title); font-size: clamp(25.9px, calc(22.5px + .956vw), 35.5px); line-height: 1.19; text-wrap: balance; }
.media-split__body .text { max-width: var(--measure-text); margin: 0 0 var(--sp-action); font-size: 16px; line-height: 1.467; text-wrap: pretty; }

@media (max-width: 991px) {
  .hero-home { padding-block: 64px; }
  .hero-home__grid { grid-template-columns: 1fr; row-gap: 44px; }
  .hero-home__title { margin-bottom: 18px; line-height: 1.12; }
  .hero-home__lede { margin-bottom: 24px; }
  .hv { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin: 28px auto 60px; top: 0; }
  .hv__panel { order: 3; align-self: stretch; width: 100%; }
  .hv__card { position: relative; inset: auto; min-width: 216px; justify-content: center; }
  .hv__card--hours { order: 1; margin: 0 0 10px; }
  .hv__card--save { order: 2; margin: 0 0 -20px; }
}
@media (max-width: 767px) {
  .hero-home { padding-block: 52px; }
  .hero-home__kicker { font-size: 14.4px; }
  .hero-home__title { margin-bottom: 16px; line-height: 1.16; }
  .hero-home__lede { font-size: 18px; margin-bottom: 22px; }
  .hv { max-width: 100%; margin: 28px auto 0; }
  .hv::before { inset: -7% -5% -5%; }
  .stats { grid-template-columns: 1fr; }
  .stats__item, .stats__item:first-child { padding-left: 0; border-left: 0; border-top: 1px solid transparent; }  /* live keeps a 1px (invisible) rule above each number */
  .media-split { grid-template-columns: 1fr; }
  .media-split__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 479px) {
  .hero-home { padding-block: 46px; }
  .hero-home__title { line-height: 1.2; }
  .hero-home__ctas { flex-direction: column; align-items: stretch; row-gap: 12px; }
  .hero-home__ctas .btn--line { margin-top: 16px; }
  .hero-home__fine { text-align: center; }
  .hv__t2 { font-size: 10px; }
  .media-split__body { align-items: center; text-align: center; }
  .media-split__body .btn { align-self: stretch; }
}

/* Section spacing on the home page: the spacing standard's (90px above and below on desktop, 76 on laptops, 65 on
   tablets, 49 on phones, growing smoothly in between), the same for every section under the hero */
.hx .section { padding-block: var(--sp-section); }

/* Titles on the home page in navy, as on the Webflow staging site (the hero title keeps its teal), in even lines; the
   rate sheet's head sized as the other section heads here (47-clinical.css), on this page only */
.hx .h2 { color: var(--navy); text-wrap: balance; }
.hx .rate .h2 { font-size: var(--t-head); line-height: 1.176; }
.hx .rate__sub { font-size: 16px; line-height: 1.467; }
