/* Homepage (/), final build: the ETHOS FROSTED design (home-ethos ccf0940, Figma 595:58 / 596:58; style guide 610:59 / 610:457),
   rebuilt on tokens.css + components.css. Only what is particular to this page lives here: the photo's anchor, the tablet
   panel, the strip under the hero, the insurer logos, and the homepage's section layouts. */

/* Hero photo: anchored 17% from the left on desktop so both faces and the baby stay right of the 540 px panel */
@media (min-width: 1024px) { .f-hero-pic img { object-position: 17% 0; } }
/* Tablet (700 to 1023): the phone photo with a 360 px panel bottom right, so the baby (left of centre) stays clear */
@media (min-width: 700px) and (max-width: 1023px) {
  .f-hero .f-panel { width: 360px; max-width: none; margin: 0 0 0 auto; padding: 12px 16px 16px; }
}

/* Under-hero strip: Or call + two green check rows */
.hm-under { background: var(--off); padding: 14px 20px 18px; text-align: center; }
.hm-orcall { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); font-size: 18px; line-height: 1.5; color: var(--body-c); }
.f .hm-orcall a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: .18em; }
.hm-checks { justify-content: center; gap: 6px; margin-top: 6px; }
.hm-checks li { font-size: 18px; line-height: 1.3; }

/* Insurer strip */
.hm-strip { background: var(--white); padding: 36px 0; text-align: center; }
.hm-strip-h { font: 600 16px/1.5 var(--body); color: var(--body-c); }
.hm-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 20px; }
.hm-logos li { display: flex; align-items: center; justify-content: center; height: 56px; }
.f .hm-logos img { width: auto; height: 26px; max-width: 140px; object-fit: contain; }
.f .hm-logos li:nth-child(3) img, .f .hm-logos li:nth-child(4) img, .f .hm-logos li:nth-child(5) img { height: 36px; }
.f .hm-logos li:nth-child(6) img { height: 35px; }

/* Problem tiles */
.hm-tiles { gap: 12px; }

/* Coverage: two photo cards and the "Not sure" card */
.hm-card-pic { height: 180px; }
.hm-pair { display: grid; gap: 6px; justify-items: start; }
.hm-pair p:last-child { color: var(--body-c); line-height: 1.5; }
.hm-terms div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.hm-terms dt { flex: none; width: 96px; font-weight: 700; color: var(--navy); }
.hm-terms dd { color: var(--body-c); }
.hm-unsure { display: grid; gap: 16px; margin-top: 28px; padding: var(--s3); border-radius: var(--r-xl); background: var(--white); }
.hm-unsure-t { display: grid; gap: 8px; }
.f .hm-unsure h3 { font-size: 22px; line-height: 1.3; }
.hm-unsure-t p { color: var(--body-c); line-height: 1.5; }
.hm-unsure-b { display: grid; gap: 12px; }

/* Funeral cost */
.hm-num-s { font-size: 32px; }
.hm-links { margin-top: 28px; flex-direction: column; }

/* Reviews */
.hm-revs { margin-bottom: 28px; }
.hm-revs li { display: flex; }
.hm-rev-stars { display: block; }

/* FAQ */
.hm-faq-h { margin-bottom: 24px; }
.hm-faq-h .f-btn { justify-self: start; }

/* Close: copy beside a photo (photo first on phones), then two info cards */
.hm-close { display: flex; flex-direction: column; gap: 24px; }
.hm-close-pic { order: -1; height: 260px; overflow: hidden; border-radius: var(--r-xl); }
.hm-close-pic img { width: 100%; height: 100%; object-fit: cover; }
.hm-close-t { display: grid; gap: 16px; }
.f .hm-close-t h2 { font-size: var(--fs-h2); line-height: 1.16; }
.hm-close-t > p { color: var(--body-c); line-height: 1.5; }
.hm-close-b { display: grid; gap: 12px; }
.hm-info { margin-top: 28px; }
.hm-info-c { gap: 8px; padding: 24px 24px 12px; border-radius: var(--r-l); }
.f .hm-info-c h3 { font-size: 20px; }
.hm-info-c .f-link { margin-top: auto; }

/* Popular guides: phone = closed groups; desktop = four open cards (home.js) */
.hm-guides { gap: 12px; }

@media (min-width: 768px) {
  .hm-logos { grid-template-columns: repeat(3, 1fr); }
  .hm-cards, .hm-stats, .hm-info { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hm-card-pic { height: 240px; }
  .hm-close-b, .hm-unsure-b { display: flex; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hm-under { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 16px 24px; }
  .hm-checks { display: flex; gap: 24px; margin-top: 0; }
  .hm-checks li { font-size: 17px; }

  .hm-strip { padding: 40px 0; }
  .hm-logos { grid-template-columns: repeat(6, 1fr); gap: 28px; }
  .hm-logos li { height: 64px; }
  .f .hm-logos img { height: 29px; max-width: 160px; }
  .f .hm-logos li:nth-child(3) img { height: 42px; }
  .f .hm-logos li:nth-child(4) img, .f .hm-logos li:nth-child(5) img { height: 44px; }
  .f .hm-logos li:nth-child(6) img { height: 40px; }

  .hm-tiles { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .hm-tiles .f-tile { flex-direction: column; min-height: 202px; }

  .hm-card-pic { height: 300px; }
  .hm-unsure { display: flex; align-items: center; gap: 40px; margin-top: 40px; padding: 32px 40px; }
  .hm-unsure-t { flex: 1; }
  .hm-unsure-b { flex-wrap: nowrap; }
  .hm-unsure-b .f-btn { min-height: 52px; padding: 0 28px; font-size: 18px; }

  .hm-stats { align-items: start; }
  .hm-num-s { font-size: 40px; }
  .hm-stats .f-stat-l { font-size: 19px; }
  .hm-links { flex-direction: row; gap: 32px; margin-top: 40px; }

  .hm-revs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; margin-bottom: 40px; }

  .hm-faqwrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
  .hm-faq-h { margin-bottom: 0; }

  .hm-close { flex-direction: row; align-items: center; gap: 64px; }
  .hm-close-t { flex: 1; }
  .f .hm-close-t h2 { font-size: 48px; line-height: 1.1; }
  .hm-close-pic { order: 0; flex: 1; height: 440px; }
  .hm-info { margin-top: 40px; }
  .hm-info-c { min-height: 188px; }

  .hm-guides { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .hm-guide > summary { min-height: 48px; cursor: default; }
  .hm-guide .f-pmc { display: none; }
  .hm-guide ul { padding-bottom: 0; }
}
