/* Homepage v2 previews — /home-preview-a/, /home-preview-b/.
 *
 * The previews are built from the homepage's own classes in main.css (hero,
 * trust strip, .why, .hiw, .stories, .midcta, .specialties, .integrations,
 * .hipaa, footer CTA). This file holds only what the homepage has no
 * component for, using its tokens and its measurements:
 *   - hero A: video slides inside .hero-bg
 *   - hero B: the split hero in the warm panel
 *   - example product cards on the .hiw-story glass card
 *   - challenge grid (4-up pillars), new-practice timeline
 *   - the #report dialog
 */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hv-body.hv-modal-open { overflow: hidden; }

/* ---------- hero A: three clips cross-fade in .hero-bg ---------- */
.hero-bg .hv-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-bg .hv-slide.is-active { opacity: 1; }
@media (max-width: 768px) { .hero-bg .hv-slide { object-position: 66% center; } }
/* Phone: the clips become a band across the top and the copy starts below
   it, so the doctor's face is never under the H1 (images pass; same
   treatment as the specialty, service and challenge heroes). */
@media (max-width: 768px) {
  .hero:has(> .hero-bg[data-hv-slider]) { background: var(--ink); }
  .hero-bg[data-hv-slider] { bottom: auto; height: 400px; }
  .hero-bg[data-hv-slider] .hv-slide { object-position: 74% center; }
  .hero-bg[data-hv-slider] .hero-gradient {
    background: linear-gradient(180deg, rgba(10,17,26,0.5) 0%, rgba(10,17,26,0) 26%, rgba(10,17,26,0) 58%, rgba(10,17,26,0.82) 88%, rgba(10,17,26,1) 100%);
  }
  .hero:has(> .hero-bg[data-hv-slider]) .hero-content { padding-top: 340px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg .hv-slide { transition: none; } }

/* ---------- hero B: split hero in the warm panel (.hiw / .stories frame) ---------- */
.hv-hero-b { padding: 40px 164px; }
.hv-hero-b-inner { background: var(--warm); padding: 72px 58px 0; }
.hv-hero-b-grid { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hv-hero-b-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hv-hero-b-h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.5vw, 50px); line-height: 1.12; letter-spacing: -0.5px; color: var(--ink); }
.hv-hero-b-h1 span { display: block; }
.hv-hero-b-sub { font-weight: 300; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.4; color: var(--ink); max-width: 540px; }
.hv-hero-b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 16px; }
.hv-body .stories-viewall-link { min-height: 44px; }
.hv-hero-b-note { font-weight: 300; font-size: 14px; color: var(--muted); margin-top: -8px; }
.hv-btn-ink { background: var(--ink); color: var(--white); }
.hv-btn-ink:hover { background: #1c2632; }
.hero-btn .hero-btn-arrow { margin-left: 10px; }
.hv-hero-b .hiw-img-wrap { flex: 0 0 44%; }
/* trust strip on the light panel: same layout, ink instead of white */
.hv-hero-b .trust-strip { padding: 0; margin-top: 64px; }
.hv-hero-b .trust-strip-inner { border-top-color: var(--border); padding-top: 32px; padding-bottom: 36px; }
.hv-hero-b .trust-label { color: var(--muted); }
.hv-hero-b .logo-item { color: var(--muted); }
@media (max-width: 1024px) {
  .hv-hero-b { padding: 24px; }
  .hv-hero-b-inner { padding: 48px 32px 0; }
  .hv-hero-b-grid { flex-direction: column; align-items: stretch; gap: 40px; }
  .hv-hero-b-copy, .hv-hero-b .hiw-img-wrap { flex: none; max-width: 100%; width: 100%; }
  .hv-hero-b .hiw-img-wrap { min-height: 400px; aspect-ratio: 4 / 3; }
}
@media (max-width: 768px) {
  .hv-hero-b { padding: 12px; }
  .hv-hero-b-inner { padding: 32px 16px 0; }
  .hv-hero-b-h1 { font-size: 38px; }
  .hv-hero-b-sub { font-size: 16px; }
  .hv-hero-b-actions .hero-btn { flex: 1 1 100%; }
  .hv-hero-b .hiw-img-wrap { min-height: 440px; aspect-ratio: auto; padding: 12px; }
  .hv-hero-b .trust-strip { margin-top: 32px; }
  .hv-hero-b .trust-strip-inner { padding-top: 24px; padding-bottom: 24px; }
  .hv-hero-b .trust-label { font-size: 14px; }
}

/* ---------- example product cards on the .hiw-story glass card ---------- */
.hv-story--cal .hiw-story-card,
.hv-story--report .hiw-story-card { left: 56px; right: 56px; bottom: 56px; padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.hv-story--report .hiw-story-img { object-position: 30% center; }
/* Hero B (layout fix): the full-width report card hid the whole photo. On desktop the photo is framed
   on the woman and her phone, and a compact card sits in the top-left corner over the lamp, clear of
   her face, so the photo reads. */
@media (min-width: 1025px) {
  .hv-hero-b .hv-story--report .hiw-story-img { object-position: 52% center; }
  .hv-hero-b .hv-story--report .hiw-story-card { top: 48px; left: 48px; right: auto; bottom: auto; width: min(244px, 57%); padding: 12px 14px 8px; gap: 4px; }
  .hv-hero-b .hv-story--report .hv-card-ex { font-size: 10px; }
  .hv-hero-b .hv-story--report .hv-card-score { font-size: 16px; }
  .hv-hero-b .hv-story--report .hv-card-score b { font-size: 32px; }
  .hv-hero-b .hv-story--report .hv-card-score span { font-size: 11.5px; margin-top: 2px; }
  .hv-hero-b .hv-story--report .hv-card-rows { font-size: 12px; line-height: 1.3; }
  .hv-hero-b .hv-story--report .hv-card-rows li { padding: 5px 0; gap: 10px; }
  .hv-hero-b .hv-story--report .hv-card-rows li > b:last-child { font-size: 15px; }
}
@media (min-width: 600px) and (max-width: 1024px) {
  /* Tablets: the frame is landscape; her face sits right, so the card takes the left half. */
  .hv-hero-b .hv-story--report .hiw-story-img { object-position: 66% center; }
  .hv-hero-b .hv-story--report .hiw-story-card { right: auto; width: min(360px, 54%); }
}
@media (max-width: 599px) {
  /* Phones: frame on her face, a taller frame and a compact card at the bottom, under her chin. */
  .hv-hero-b .hiw-img-wrap.hv-story--report { min-height: 520px; }
  .hv-hero-b .hv-story--report .hiw-story-img { object-position: 74% center; }
  .hv-hero-b .hv-story--report .hiw-story-card { padding: 10px 14px 6px; gap: 2px; }
  .hv-hero-b .hv-story--report .hv-card-score b { font-size: 30px; }
  .hv-hero-b .hv-story--report .hv-card-rows li { padding: 5px 0; }
}
.hv-card-ex { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.hiw-sms-thread .hv-card-ex { margin-bottom: 2px; }
.hv-card-rows { list-style: none; display: flex; flex-direction: column; font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.35; color: var(--white); }
.hv-card-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hv-card-rows li:first-child { border-top: 0; padding-top: 2px; }
.hv-card-rows b { font-weight: 500; }
.hv-card-rows li > b:last-child { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1; white-space: nowrap; }
.hv-card-rows li.is-new > span:last-child { text-align: right; opacity: 0.75; }
.hv-card-rows li.is-new b { display: block; opacity: 1; color: var(--white); }
.hv-card-tag { font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.14); padding: 4px 12px; border-radius: 30px; white-space: nowrap; }
.hv-card-quote span { opacity: 0.85; }
.hv-card-ok { display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; }
.hv-card-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hv-card-score { font-family: var(--serif); font-weight: 300; font-size: 22px; color: var(--white); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.hv-card-score b { font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -1px; }
.hv-card-score span { flex-basis: 100%; font-family: var(--sans); font-size: 13px; opacity: 0.72; margin-top: 4px; }
@media (max-width: 768px) {
  .hv-story--cal .hiw-story-card,
  .hv-story--report .hiw-story-card { left: 24px; right: 24px; bottom: 24px; padding: 14px 16px 16px; }
  .hv-card-rows { font-size: 13px; }
  .hv-card-rows li { padding: 8px 0; }
}

/* ---------- step 2: the SMS card sits under the photo, not over her face ----------
   The full-width overlay covered the woman's mouth and chin at every width. The photo is
   now a landscape window (the source is 16:9, so all of her and the phone show) and the
   card follows it in the frame, overlapping only the sofa at the photo's bottom edge. */
.hiw-img-wrap.hiw-story--followup { aspect-ratio: auto; min-height: 0; height: auto; display: flex; flex-direction: column; }
.hiw-story--followup .hiw-story-frames { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; flex: none; }
.hiw-story--followup .hiw-story-img { object-position: 70% 30%; }
/* Off the photo the clear glass would put white text on the beige frame: a solid warm brown
   from the photo's palette keeps the same look with readable contrast. */
.hiw-img-wrap.hiw-story--followup .hiw-story-card { position: relative; left: auto; right: auto; bottom: auto; margin: -44px 24px 0; background: rgba(98, 80, 66, 0.94); border-color: rgba(255, 255, 255, 0.16); }
@media (max-width: 768px) {
  .hiw-img-wrap.hiw-story--followup { padding: 12px; }
  .hiw-img-wrap.hiw-story--followup .hiw-story-card { margin: -28px 12px 0; padding: 14px 16px 16px; }
}

/* ---------- challenges: warm panel, 2 x 4 white cards (founder, 10-18) ---------- */
.hv-hiw-intro.hv-ch-intro { margin-bottom: 8px; }
.hv-ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hv-ch-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 10px; padding: 26px 28px 22px;
  background: var(--white); border: 1px solid var(--border2); border-radius: 18px; color: var(--ink); text-decoration: none;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.hv-ch-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(10,17,26,0.35); }
.hv-ch-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hv-ch-q { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.2; letter-spacing: -0.2px; }
.hv-ch-t { font-weight: 300; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.hv-ch-fix { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border2); font-size: 14px; line-height: 1.4; color: var(--ink); }
.hv-ch-fix span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep, #059bb4); }
.hv-ch-fix svg { margin-left: auto; flex-shrink: 0; transition: transform .25s ease; }
.hv-ch-card:hover .hv-ch-fix svg { transform: translateX(3px); }
@media (max-width: 768px) {
  .hv-ch-grid { grid-template-columns: 1fr; gap: 12px; }
  .hv-hiw-intro.hv-ch-intro { margin-bottom: 0; }
  .hv-ch-card { padding: 20px 20px 18px; }
  .hv-ch-q { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .hv-ch-card, .hv-ch-card:hover, .hv-ch-fix svg { transition: none; transform: none; } }

/* ---------- (old) challenges 4-up: kept for /challenges/ and service pages that reuse .hv-chal ---------- */
/* Same content edges as the sections around it (main.css .hipaa-inner padding), just no panel. */
.hv-plain .hipaa-inner { background: none; }
.hv-plain .hipaa-pillar { background: var(--warm); }
.hv-pillars-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hv-fix { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border2); display: flex; flex-direction: column; gap: 6px; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink); }
/* The whole card is the link (one big tap target, like /challenges/). Subgrid lines up
   the "Fixed by" rule and link across each row, whatever wraps. */
.hv-chal-body { display: flex; flex-direction: column; gap: 16px; }
.hv-chal { color: inherit; text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
.hv-chal:hover { border-color: var(--border); transform: translateY(-3px); }
.hv-chal:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@supports (grid-template-rows: subgrid) {
  .hv-chal { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 16px; align-content: start; }
  .hv-chal .hv-fix { margin-top: 0; align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .hv-chal, .hv-chal:hover { transition: none; transform: none; } }
@media (max-width: 1200px) { .hv-pillars-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .hv-pillars-4 { grid-template-columns: 1fr; } }

/* ---------- new practices: timeline under the .midcta copy ---------- */
#new-practices .midcta-heading { max-width: 20ch; }
/* Photo panel: a physician in her almost-finished practice (Atlas, 2026-10-19), copy over the dark left. */
#new-practices .hv-np { position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink) var(--np-bg) right center / cover no-repeat; }
@media (min-width: 1025px) {
  #new-practices .hv-np .midcta-heading { max-width: 16ch; }
}
#new-practices .hv-np::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,17,26,0.94) 0%, rgba(10,17,26,0.82) 38%, rgba(10,17,26,0.25) 72%, rgba(10,17,26,0.1) 100%),
              linear-gradient(0deg, rgba(10,17,26,0.85) 0%, rgba(10,17,26,0) 38%); }
.hv-timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hv-timeline li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.4; color: var(--white); }
.hv-timeline li:last-child { border-top-color: var(--cyan); }
.hv-timeline span { font-weight: 400; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 1024px) { .hv-timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .hv-timeline { grid-template-columns: 1fr; gap: 0; }
  .hv-timeline li { padding: 14px 0; }
  #new-practices .midcta-body { align-items: flex-start; text-align: left; }
  #new-practices .hv-np { background-image: var(--np-bg-m); background-position: 70% top; background-size: auto 46%; }
  #new-practices .hv-np::before { background: linear-gradient(180deg, rgba(10,17,26,0.15) 0%, rgba(10,17,26,0.9) 30%, var(--ink) 46%); }
  #new-practices .midcta-copy { align-items: flex-start; text-align: left; }
  #new-practices .midcta-sub { display: block; }
  /* main.css collapses .midcta-btn to its arrow on phones (it sits inside the
     pill there); this one is a standalone link, so keep its label. */
  #new-practices .midcta-btn { width: 100%; justify-content: center; padding: 13px 26px; font-size: 16px; background: var(--white); }
  #new-practices .midcta-btn-arrow { width: 24px; height: 24px; margin-left: 10px; background: var(--ink); color: var(--white); font-size: 13px; }
}

/* ---------- #report dialog ---------- */
.hv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.hv-modal:target, .hv-modal.is-open { display: flex; }
.hv-modal-overlay { position: absolute; inset: 0; background: rgba(10, 17, 26, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hv-modal-card { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; width: min(940px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--warm); animation: hvPop .28s ease; }
@keyframes hvPop { from { opacity: 0; transform: translateY(14px); } }
.hv-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); border: 1px solid var(--border2); }
.hv-modal-aside { padding: 40px 34px; background: var(--ink); background-image: radial-gradient(120% 140% at 100% 0%, rgba(6, 182, 212, 0.22), transparent 55%); color: var(--white); display: flex; flex-direction: column; gap: 28px; }
.hv-modal-h { font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1.15; }
.hv-modal-aside ul { list-style: none; display: grid; gap: 14px; }
.hv-modal-aside li { position: relative; padding-left: 22px; font-weight: 300; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.hv-modal-aside li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); }
.hv-modal-form .lp-form-card { background: transparent; padding: 40px 34px 34px; }
.hv-modal-form .ag-form-cal iframe { height: 560px; }
@media (prefers-reduced-motion: reduce) { .hv-modal-card { animation: none; } }
@media (max-width: 760px) {
  .hv-modal { padding: 0; align-items: stretch; }
  .hv-modal-card { grid-template-columns: 1fr; max-height: none; height: 100%; }
  .hv-modal-aside { display: none; }
  .hv-modal-form .lp-form-card { padding: 64px 20px 28px; }
}

/* ---------- hero A: the homepage's mid-CTA pill under the subhead ---------- */
.hv-hero-search { width: 100%; max-width: 540px; margin-top: 8px; }
.hv-hero-search .hero-btn-note { margin-top: 12px; }

/* ---------- How it works: pillar name above the step heading ---------- */
.hv-step-head { display: flex; flex-direction: column; gap: 14px; }
#how-it-works .hv-step-head .story-eyebrow { font-size: 12px; line-height: 1.3; }

/* tap target: the phone pill's round submit button is 42px in main.css */
@media (max-width: 768px) { .midcta-form .midcta-btn-arrow { width: 44px; height: 44px; } }

/* Proof cards: metric grids sized to their count (main.css assumes 3). */
.stories-cards .snap-metrics:has(> .snap-metric:only-child) { grid-template-columns: minmax(0, 1fr); }
.stories-cards .snap-metrics:has(> .snap-metric:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Headings never end on a single short word. */
.hv-body #content :is(h2, h3, h4) { text-wrap: balance; }

/* ---------- specialties: compact block (the eight keyword pages + "See all") ----------
   The homepage .specialties panel and .specialties-card, tighter: one heading,
   one line, two rows of four, and a link to /specialties/ for the rest. */
.hv-spec .specialties-inner { gap: 40px; padding-bottom: var(--panel-pb-tight); }
.hv-spec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hv-spec-head .specialties-heading { flex: 0 1 auto; }
.hv-spec-sub { flex: 0 1 420px; margin: 0 0 10px; font-weight: 300; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.hv-spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hv-spec-grid .specialties-card { padding: 22px 16px; align-items: center; }
.hv-spec-grid .specialties-icon-wrap { margin-top: 0; }
.hv-spec-all { display: flex; justify-content: flex-end; margin-top: -12px; }
.hv-spec-all .stories-viewall-link { min-height: 44px; }
@media (max-width: 1024px) {
  .hv-spec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hv-spec-sub { flex: none; margin: 0; }
  .hv-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hv-spec .specialties-inner { gap: 24px; }
  .hv-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hv-spec-grid .specialties-card { padding: 14px 12px; gap: 10px; min-height: 56px; }
  .hv-spec-grid .specialties-icon-wrap { font-size: 17px; }
  .hv-spec-grid .specialties-name { font-size: 17px; line-height: 1.25; }
  .hv-spec-all { justify-content: flex-start; margin-top: -4px; }
}

/* ---------- one evening: the story timeline under the hero (.hv-eve) ----------
   Replaces the scroll manifesto. Same frame as .hiw (164px outer, 58px inner
   on desktop), on the page background so it alternates with the warm .hiw
   panel below. Three moments on a rail; each has its time, one sentence and
   a small example card in the hero report card's style (warm panel, white
   rows, Manrope UI text). js/home-v2.js adds .is-js and then .is-in per step
   as the rail scrolls into view; without JS or with reduced motion
   everything is shown at once. */
.hv-eve { padding: var(--sec-y) var(--sec-x); background: var(--bg); }
.hv-eve-inner { padding: var(--panel-pt) var(--panel-x) var(--panel-pb); }
.hv-eve-kicker { margin-bottom: var(--stack-kicker); }
.hv-eve-h { max-width: 24ch; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.5px; color: var(--ink); text-wrap: balance; }
.hv-eve-lead { margin-top: var(--stack-lead, 20px); max-width: var(--measure-text, 56ch); font-size: var(--fs-lead, 18px); font-weight: 300; line-height: 1.5; color: var(--muted); }

.hv-eve-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 28px; margin-top: 56px; }
.hv-eve-step { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 16px; }
/* the rail: a grey line across each column (and its gap), cyan as each moment arrives */
.hv-eve-step::before, .hv-eve-step::after { content: ''; position: absolute; top: 9px; left: 0; right: -28px; height: 1px; background: var(--border); }
.hv-eve-step:last-child::before, .hv-eve-step:last-child::after { right: 0; }
.hv-eve-step::after { top: 8px; height: 2px; background: var(--cyan); transform-origin: left; transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 260ms); }
.hv-eve-time { position: relative; z-index: 1; display: flex; align-items: center; gap: 0; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #0c7a8c; }
.hv-eve-time i { flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; }
.hv-eve-time i::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hv-eve-time time { padding: 0 12px; background: var(--bg); }
.hv-eve-text { max-width: 30ch; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.75vw, 26px); line-height: 1.28; letter-spacing: -0.2px; color: var(--ink); text-wrap: pretty; }

/* the example cards */
.hv-eve-card { align-self: stretch; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--warm); border: 1px solid var(--border2); font-family: var(--sans); color: var(--ink); }
.hv-eve-ex { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hv-eve-chat, .hv-eve-call, .hv-eve-vm, .hv-eve-book { border-radius: 16px; background: var(--bg); }
.hv-eve-chat { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.hv-eve-q { align-self: flex-end; max-width: 86%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--warm2); font-size: 13px; line-height: 1.35; }
.hv-eve-a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.hv-eve-a img { width: 20px; height: 20px; margin-top: 1px; }
.hv-eve-a ol { list-style: none; counter-reset: eve; display: grid; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.hv-eve-a li { counter-increment: eve; display: flex; justify-content: space-between; gap: 10px; white-space: nowrap; }
.hv-eve-a li b { overflow: hidden; text-overflow: ellipsis; }
.hv-eve-a li b::before { content: counter(eve) '. '; font-weight: 400; color: var(--muted); }
.hv-eve-a b { font-weight: 600; color: var(--ink); }
.hv-eve-miss, .hv-eve-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 500; }
.hv-eve-miss span, .hv-eve-slot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-eve-miss em, .hv-eve-slot em { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 30px; background: var(--warm2); color: var(--muted); }
.hv-eve-chat .hv-eve-miss { padding-top: 10px; border-top: 1px solid var(--border2); }
.hv-eve-card > .hv-eve-miss, .hv-eve-slot { padding: 2px 4px; }
.hv-eve-call { display: flex; align-items: center; gap: 14px; padding: 14px; }
.hv-eve-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.hv-eve-call-name { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.hv-eve-call-st { margin-top: 2px; font-size: 13px; color: var(--muted); }
.hv-eve-vm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.hv-eve-vm-k { flex-shrink: 0; font-size: 12px; font-weight: 600; }
.hv-eve-wave { flex: 1; min-width: 0; height: 26px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.hv-eve-wave i { flex: 1 0 2px; max-width: 4px; height: var(--h); border-radius: 2px; background: var(--border); }
.hv-eve-book { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; }
.hv-eve-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); }
.hv-eve-book-k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hv-eve-book-name { margin-top: 3px; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-eve-book-t { margin-top: 2px; font-size: 13px; color: var(--muted); }
.hv-eve-slot { padding: 10px 14px; border: 1px dashed var(--border); border-radius: 14px; background: transparent; }

/* closing line + offer */
.hv-eve-end { display: flex; flex-direction: column; gap: 32px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border2); }
.hv-eve-close { max-width: 30ch; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; letter-spacing: -0.5px; color: var(--muted); text-wrap: balance; }
.hv-eve-close span, .hv-eve-close b { color: var(--ink); }
.hv-eve-close b { font-weight: 400; }
.hv-eve-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hv-eve-offer p { font-family: var(--sans); font-weight: 400; font-size: 18px; line-height: 1.4; color: var(--ink); }
.hv-eve-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--sans); font-weight: 500; font-size: 16px; white-space: nowrap; transition: background .2s ease; }
.hv-eve-btn:hover { background: #1c2632; color: var(--white); }
.hv-eve-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* reveal (js/home-v2.js) */
.hv-eve.is-js .hv-eve-step::after { transform: scaleX(0); }
.hv-eve.is-js .hv-eve-step > :not(.hv-eve-time) { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 260ms + 120ms); }
.hv-eve.is-js .hv-eve-step.is-in::after { transform: scaleX(1); }
.hv-eve.is-js .hv-eve-step.is-in > * { opacity: 1; transform: none; }
.hv-eve.is-js .hv-eve-end { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.hv-eve.is-js .hv-eve-end.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hv-eve-step::after, .hv-eve .hv-eve-step > *, .hv-eve .hv-eve-end { transition: none !important; }
}

@media (max-width: 1360px) {
  .hv-eve-card { padding: 14px 12px 12px; }
  .hv-eve-chat, .hv-eve-call, .hv-eve-book { padding: 12px; }
  .hv-eve-miss em, .hv-eve-slot em { padding: 4px 10px; }
}
@media (max-width: 1200px) {
  .hv-eve-steps { column-gap: 20px; }
  .hv-eve-step::before, .hv-eve-step::after { right: -20px; }
}
/* Tablet and phone: a vertical rail down the left, the moments stacked. */
@media (max-width: 900px) {
  .hv-eve-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; margin-top: 40px; }
  .hv-eve-step { grid-row: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 0 40px 34px; }
  .hv-eve-step:last-child { padding-bottom: 0; }
  .hv-eve-step::before, .hv-eve-step::after { top: 10px; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
  .hv-eve-step::after { left: 8.5px; width: 2px; }
  .hv-eve-step:last-child::before, .hv-eve-step:last-child::after { bottom: auto; height: 0; }
  .hv-eve-step::after { transform-origin: top; }
  .hv-eve.is-js .hv-eve-step::after { transform: scaleY(0); }
  .hv-eve.is-js .hv-eve-step.is-in::after { transform: scaleY(1); }
  .hv-eve-time { margin-left: -34px; }
  .hv-eve-time time { padding: 0 0 0 15px; background: none; }
  .hv-eve-text { max-width: 34ch; }
  .hv-eve-card { align-self: stretch; max-width: 440px; }
}
@media (max-width: 768px) {
  .hv-eve-kicker { font-size: 15px; }
  .hv-eve-text { font-size: 21px; }
  .hv-eve-end { margin-top: 48px; padding-top: 32px; gap: 24px; }
  .hv-eve-close { font-size: 28px; }
  .hv-eve-offer p { font-size: 17px; }
  .hv-eve-btn { width: 100%; min-height: 54px; }
}

/* ---------- How it works: one intro heading under the kicker ---------- */
.hv-hiw-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 56px; flex-wrap: wrap; margin-bottom: 80px; }
.hv-hiw-h { flex: 1 1 420px; max-width: 20ch; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.5px; color: var(--ink); }
.hv-hiw-sub { flex: 0 1 440px; font-family: var(--sans); font-weight: 300; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
.hv-hiw-sub a, .hv-stories-sub a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hv-hiw-sub a:hover { text-decoration-thickness: 2px; }
.hv-stories-sub { max-width: var(--measure-text); margin-top: var(--stack-lead); font-family: var(--sans); font-weight: 300; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); }
@media (max-width: 768px) {
  .hv-hiw-intro { margin-bottom: 48px; gap: 14px; }
  .hv-hiw-h { flex-basis: auto; }
}

/* Why now + one evening, merged (founder review 10-18): stats under the H2, then the three minutes. */
.hv-eve-stats { margin-top: 40px; }
.hv-eve-h3 { margin-top: 56px; max-width: 26ch; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -0.3px; color: var(--ink); text-wrap: balance; }
.hv-eve-h3 + .hv-eve-lead { margin-top: 12px; }
@media (max-width: 768px) { .hv-eve-stats { margin-top: 28px; } .hv-eve-h3 { margin-top: 40px; } }
