/* Tailwise — Home page (index.html). Prefix: .hm-*  (+ .hm-gallery / .hm-testi / .hm-metrics / .hm-pricing scoped overrides).
   Loads after brand.css. url()s are relative to /css/. */

/* ───────── Rhythm ───────── */
.hm-hero { margin-top: 56px; }
.hm-ticker-wrap { margin-top: 72px; padding-block: 24px; overflow: hidden; }
.hm-ticker { margin-top: 0; position: relative; z-index: 2; }
.hm-talk { margin-top: 128px; }
.hm-services { margin-top: 160px; }
.hm-steps { margin-top: 150px; }
.hm-why { margin-top: 150px; }
.hm-slogan { margin-top: 140px; }
@media (max-width: 1024px) { .hm-hero { margin-top: 40px; } .hm-ticker-wrap { margin-top: 48px; } .hm-talk { margin-top: 96px; } }
@media (max-width: 640px) { .hm-hero { margin-top: 24px; } .hm-ticker-wrap { margin-top: 32px; } .hm-talk { margin-top: 72px; } }

/* shared bits */
.hm-arrow { border: 2px solid var(--ink); border-radius: 50%; background: var(--white); }
.hm-tile { border: 2px solid var(--ink); border-radius: 50%; }

/* ───────── Hero ───────── */
.hm-hero { grid-template-columns: minmax(0, 1fr) 440px 280px; column-gap: 40px; }
.hm-hero-intro { width: auto; margin-top: 28px; gap: 64px; }
.hm-hero-titles { gap: 24px; }
.hm-hero .display { max-width: 520px; }
.hm-hero-rating { color: var(--ink); font-weight: 600; }
.hm-hero-sub { max-width: 430px; font-size: 18px; color: var(--cocoa); }
.hm-hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 8px; }
.hm-hero-titles .btn { margin-top: 0; }
.hm-hero-trust { gap: 12px; }
.hm-hero-trust p { width: auto; max-width: 200px; color: var(--ink); line-height: 1.45; }
.hm-avatars img { width: 44px; height: 44px; border: 2px solid var(--ink); margin-right: -10px; background: var(--sand); }

.hm-arch { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--butter); border-radius: 999px 999px var(--r-xl) var(--r-xl); }
.hm-arch .hm-hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hm-hero-portrait { height: 600px; overflow: visible; border-radius: 0; }
.hm-hero-portrait .hm-hero-photo { object-position: 50% 40%; }
.hm-sticker {
  position: absolute; z-index: 3; top: 96px; left: -40px; width: 116px; height: 116px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  background: var(--peach); color: var(--white); border: var(--outline); box-shadow: var(--pop-sm);
  font-family: var(--font-display); font-style: italic; font-size: 21px; font-weight: 500; letter-spacing: -.3px; rotate: 12deg;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hm-sticker::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .7); }
.hm-chips { left: 20px; right: 20px; bottom: 28px; justify-content: center; z-index: 2; }
.hm-chips .chip { height: 38px; padding: 0 14px 0 10px; font-size: 15px; gap: 6px; }
.hm-chips .chip img, .hm-hero-girl .chip img { width: 16px; height: 16px; }

.hm-hero-side { margin: 28px 0 0; gap: 36px; }
.hm-hero-peace { max-width: none; gap: 12px; }
.hm-hero-peace .h3s { font-size: 32px; }
.hm-hero-peace p { color: var(--cocoa); }
.hm-hero-girl { width: 100%; height: 360px; overflow: visible; border-radius: 0; }
.hm-hero-girl .hm-arch { background: var(--sky); border-radius: var(--r-xl); }
.hm-hero-girl .hm-hero-photo { object-position: 50% 40%; }
.hm-hero-girl .chip { top: auto; bottom: -18px; right: auto; left: 50%; translate: -50% 0; height: 38px; z-index: 2; font-size: 15px; }
@media (min-width: 1440px) { .hm-hero-girl { width: 100%; } }

@media (max-width: 1240px) {
  .hm-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; row-gap: 64px; }
  .hm-hero-intro { width: auto; margin-top: 0; gap: 40px; }
  .hm-hero .display { max-width: 640px; }
  .hm-hero-portrait { height: auto; aspect-ratio: 5 / 6; }
  .hm-hero-side { margin: 0; justify-content: flex-start; gap: 40px; }
  .hm-hero-girl { height: auto; aspect-ratio: 4 / 5; }
  .hm-sticker { left: -24px; }
  .hm-chips { left: 12%; right: 12%; }
}
@media (max-width: 820px) {
  .hm-hero-intro { gap: 36px; }
  .hm-hero-peace .h3s { font-size: 26px; }
  .hm-sticker { width: 96px; height: 96px; font-size: 17px; top: 40px; left: -10px; }
  .hm-chips { left: 12px; right: 12px; bottom: 16px; gap: 6px; }
  .hm-chips .chip { height: 34px; font-size: 14px; }
}
@media (max-width: 640px) {
  .hm-hero { grid-template-columns: 1fr; row-gap: 48px; }
  .hm-hero-portrait { aspect-ratio: 4 / 5; width: calc(100% - 8px); }
  .hm-sticker { left: -4px; top: 24px; }
  .hm-hero-sub { font-size: 17px; }
  .hm-hero-girl { aspect-ratio: 4 / 3; width: calc(100% - 6px); }
  .hm-hero-girl .hm-hero-photo { object-position: 50% 30%; }
}

/* ───────── Feel the difference ───────── */
.hm-talk-session { background: var(--sky); border: var(--outline); padding: 20px; gap: 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hm-talk-session:hover, .hm-expert:hover, .hm-stat:hover { transform: translate(-3px, -3px); box-shadow: var(--pop); }
.hm-talk-media { border: var(--outline); height: 430px; }
.hm-talk-tags { left: 14px; bottom: 16px; flex-wrap: wrap; }
.hm-talk-tags .chip { height: 34px; font-size: 14px; padding: 0 12px; }
.hm-talk-caption p, .hm-talk-head p, .hm-expert p, .hm-expert dd { color: var(--ink); }
.hm-talk-head p { color: var(--cocoa); font-size: 18px; }
.hm-talk-head { margin-top: 24px; }

.hm-stat { background: var(--peach); border: var(--outline); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hm-stat .hm-tile { width: 40px; height: 40px; background: var(--butter); }
.hm-pill { border: 2px solid var(--ink); font-weight: 700; padding: 2px 12px; }
.hm-stat-slide { top: 88px; }
.hm-stat-num { font-family: var(--font-display); font-weight: 560; font-size: 76px; line-height: 1; letter-spacing: -2.5px; font-variation-settings: "SOFT" 100; }
.hm-stat-label { margin-top: 10px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.hm-stat-text { margin-top: 18px; font-size: 15px; font-weight: 500; line-height: 1.55; max-width: 320px; }
.hm-bars i { background: rgba(20, 33, 61, .28); }
.hm-chev:hover { background: rgba(255, 255, 255, .22); }

.hm-expert { background: var(--butter); border: var(--outline); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hm-expert-head p { font-weight: 600; line-height: 1.5; margin-top: 4px; }
.hm-expert-stats { top: 168px; gap: 20px; }
.hm-expert-stats div:first-child { height: auto; }
.hm-expert-stats dt { font-weight: 560; font-size: 40px; line-height: 1; }
.hm-expert-stats dd { line-height: 1.4; font-weight: 600; margin-top: 4px; }
.hm-expert-photo {
  left: auto; top: auto; right: 22px; bottom: -2px; width: 190px; height: 250px; object-position: 50% 25%;
  border: var(--outline); border-bottom: 0; border-radius: 999px 999px 0 0; background: var(--sky);
}

@media (max-width: 1240px) { .hm-talk-head { margin-top: 0; } }
@media (max-width: 820px) {
  .hm-talk-media { height: 380px; }
  .hm-expert-photo { right: 16px; width: 160px; height: 220px; }
}
@media (max-width: 640px) {
  .hm-talk-media { height: 320px; }
  .hm-stat-num { font-size: 64px; }
  .hm-expert-photo { right: 16px; bottom: -2px; width: 150px; height: 205px; }
}

/* ───────── Services ───────── */
.hm-services-head > div { align-items: flex-start; }
.hm-services-head p { max-width: 520px; }
.hm-services-head { margin-bottom: 56px; }
.hm-service { border-bottom: 2px solid rgba(20, 33, 61, .14); min-height: 150px; transition: background-color .25s var(--ease), box-shadow .25s var(--ease), border-radius .25s var(--ease), transform .25s var(--ease); }
.hm-service-name { padding-top: 0; gap: 20px; }
.hm-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: var(--outline); font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.hm-service p { color: var(--cocoa); font-weight: 500; }
.hm-service.is-active, .hm-service:hover { background: var(--butter); border-bottom-color: transparent; box-shadow: inset 0 0 0 2px var(--ink), 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }
.hm-service.is-active p, .hm-service:hover p { color: var(--ink); }
.hm-service.is-active .hm-num, .hm-service:hover .hm-num { background: var(--peach); color: var(--white); }
.hm-services-list:hover .hm-service.is-active:not(:hover) { background: transparent; box-shadow: none; transform: none; border-bottom-color: rgba(20, 33, 61, .14); }
.hm-services-list:hover .hm-service.is-active:not(:hover) .hm-num { background: var(--white); color: var(--ink); }
.hm-services-list:hover .hm-service.is-active:not(:hover) p { color: var(--cocoa); }
@media (max-width: 640px) { .hm-num { width: 40px; height: 40px; font-size: 15px; } .hm-service-name { gap: 14px; } .hm-service { margin-right: 4px; } }

/* ───────── How a visit works ───────── */
.hm-steps { background: var(--sand); border: var(--outline); box-shadow: var(--pop); }
.hm-steps-media { grid-column: 1; grid-row: 1 / -1; height: 650px; overflow: hidden; border-radius: 999px 999px var(--r-xl) var(--r-xl); background: var(--butter); animation: hm-fade .45s var(--ease); }
.hm-steps-media .hm-steps-photo { width: 100%; height: 100%; min-height: 0; border-radius: 0; aspect-ratio: auto; margin: 0; }
.hm-steps-copy { gap: 16px; align-items: flex-start; }
.hm-steps-copy h2 { max-width: 470px; }
.hm-steps-copy p { color: var(--ink); font-size: 18px; font-weight: 500; }
.hm-steps-tabs { gap: 16px; margin-top: 48px; }
.hm-step, .hm-step + .hm-step { width: auto; flex: 1 1 0; gap: 12px; opacity: .72; padding: 18px 16px; border-radius: var(--r-md); border: 2px solid transparent; transition: opacity .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.hm-step .hm-tile { width: 40px; height: 40px; background: var(--white); font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.hm-step-text { margin-top: -8px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.hm-step[aria-selected="true"] { background: var(--white); border-color: var(--ink); box-shadow: var(--pop-sm); opacity: 1; }
.hm-step[aria-selected="true"] .hm-tile { background: var(--peach); color: var(--white); }
.hm-steps-btn { margin-top: 40px; }
@media (max-width: 1240px) {
  .hm-steps-media { height: 100%; min-height: 560px; }
  .hm-steps-tabs { gap: 10px; }
  .hm-step, .hm-step + .hm-step { padding: 14px 12px; }
}
@media (max-width: 1024px) { .hm-steps-tabs { flex-direction: column; } .hm-step, .hm-step + .hm-step { flex: none; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; } .hm-step .hm-tile { grid-row: span 2; } .hm-step-text { margin-top: 0; } }
@media (max-width: 820px) {
  .hm-steps-media { grid-column: 1; grid-row: 1; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-bottom: 32px; border-radius: 240px 240px var(--r-lg) var(--r-lg); }
  .hm-steps { box-shadow: var(--pop); }
}
@media (max-width: 640px) {
  .hm-steps { margin-right: 4px; }
  .hm-steps-media { aspect-ratio: 1 / 1; border-radius: 999px 999px var(--r-lg) var(--r-lg); margin-bottom: 24px; }
  .hm-step, .hm-step + .hm-step { border-left: 2px solid transparent; padding: 12px; }
  .hm-step[aria-selected="true"] { border-color: var(--ink); }
  .hm-step[aria-selected="false"] { opacity: .72; }
}

/* ───────── Why pet parents choose us ───────── */
.hm-why .why-head { margin-bottom: 64px; }
.hm-why-card { padding: 44px 36px 40px; gap: 28px; min-height: 0; }
.hm-why-card p { color: var(--ink); font-weight: 500; }
.hm-why-card h3 { font-weight: 560; }
.hm-why-card--sun { background: var(--butter); }
.hm-why-card--sky { background: var(--sky); }
.hm-why-card--mint { background: var(--mint); }
.hm-why-num { font-family: var(--font-display); font-size: 72px; line-height: .95; font-weight: 560; letter-spacing: -2.4px; color: var(--ink); font-variation-settings: "SOFT" 100; }
.hm-why-card:nth-child(1) { rotate: -1.2deg; } .hm-why-card:nth-child(3) { rotate: 1.2deg; }
@media (max-width: 820px) { .hm-why-card:nth-child(n) { rotate: 0deg; } .hm-why-num { font-size: 60px; } }

/* ───────── Slogan ───────── */
.hm-slogan .slogan-text { font-weight: 500; line-height: 1.32; }
.hm-slogan .slogan-photo { border: var(--outline); width: 72px; height: 76px; margin: -14px 8px -4px; }
@media (max-width: 640px) { .hm-slogan .slogan-photo { width: 54px; height: 58px; margin: -10px 4px -4px; } }
.hm-slogan .slogan-tag { border: var(--outline); box-shadow: var(--pop-sm); font-weight: 800; }
.hm-slogan .slogan-tag--sky, .hm-slogan .slogan-tag--butter { color: var(--ink); }
.hm-slogan .slogan-tag--cocoa { background: var(--ink); color: var(--white); }
.hm-slogan .slogan-tag--peach { color: var(--white); }

/* ───────── Gallery ───────── */
.hm-gallery .sec-head { align-items: flex-start; }
.hm-gallery .gallery-grid { margin-top: 56px; }
.hm-gallery .gallery-item { border: var(--outline); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hm-gallery .gallery-item:hover { transform: translate(-3px, -3px); box-shadow: var(--pop); }
.hm-gallery .gallery-item .chip { position: absolute; left: 16px; bottom: 16px; height: 36px; font-size: 14px; padding: 0 14px; z-index: 1; }
@media (max-width: 640px) {
  .hm-gallery .gallery-row:last-child .gallery-item:nth-child(2) { order: 0; }
  .hm-gallery .gallery-row:last-child .gallery-item:nth-child(1) { flex-basis: 100%; }
  .hm-gallery .gallery-row:last-child .gallery-item:nth-child(2), .hm-gallery .gallery-row:last-child .gallery-item:nth-child(3) { flex-basis: calc(50% - 6px); }
  .hm-gallery .gallery-item .chip { left: 10px; bottom: 10px; height: 30px; font-size: 13px; padding: 0 10px; }
}

/* ───────── Testimonials: polaroid notes ───────── */
.hm-testi .testi-stage { height: 660px; margin-top: 56px; }
.hm-testi .track { gap: 40px; }
.hm-testi .testi-card { width: 320px; height: auto; padding: 14px 14px 24px; border-radius: 14px; background: var(--white); box-shadow: var(--pop); }
.hm-testi .testi-card:hover { box-shadow: 8px 8px 0 var(--ink); }
.hm-testi .testi-card figure { gap: 16px; }
.hm-note-photo { width: 100%; aspect-ratio: 280 / 220; height: auto; object-fit: cover; border-radius: 8px; border: var(--outline); }
.hm-testi .testi-card blockquote { font-size: 18px; line-height: 1.42; padding-inline: 6px; font-weight: 500; }
.hm-testi .testi-who { display: block; padding-inline: 6px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.hm-testi .testi-who strong { color: var(--peach); font-weight: 800; }
.hm-testi .testi-who span { display: block; color: var(--cocoa); font-size: 14px; font-weight: 500; }
.hm-tape { position: absolute; z-index: 2; top: -15px; left: 50%; width: 104px; height: 30px; translate: -50% 0; rotate: -5deg; background: rgba(255, 201, 51, .88); border-left: 2px dashed rgba(20, 33, 61, .15); border-right: 2px dashed rgba(20, 33, 61, .15); pointer-events: none; }
.hm-tape--sky { background: rgba(124, 200, 255, .88); rotate: 4deg; }
.hm-tape--mint { background: rgba(142, 227, 190, .9); rotate: -3deg; }
.hm-testi .testi-btn { border: var(--outline); box-shadow: var(--pop-sm); }
.hm-testi .testi-btn:hover { background: var(--butter); }
@media (max-width: 1024px) { .hm-testi .testi-stage { height: auto; } .hm-testi .track { padding-top: 64px; gap: 24px; } }
@media (max-width: 640px) { .hm-testi .testi-card { width: min(300px, calc(100vw - 72px)); min-height: 0; } .hm-testi .testi-card blockquote { font-size: 17px; } }

/* ───────── Metrics: navy panel ───────── */
.hm-metrics { background: var(--ink); color: var(--white); border: var(--outline); box-shadow: 8px 8px 0 var(--peach); }
.hm-metrics .h2s { color: var(--white); max-width: 780px; }
.hm-metrics .h2s em { color: var(--butter); }
.hm-metrics .metrics-tags { margin-top: 56px; max-width: 900px; }
.hm-metrics .metrics-tags a { border: 1.5px solid rgba(255, 255, 255, .55); color: var(--white); font-size: 17px; font-weight: 600; padding: 12px 20px; }
.hm-metrics .metrics-tags a:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.hm-metrics .metrics-stats { margin-top: 88px; padding-top: 48px; border-top: 1.5px dashed rgba(255, 255, 255, .3); }
.hm-metrics .metrics-stats > div, .hm-metrics .metrics-stats > div:last-child { width: 220px; }
.hm-metrics .metrics-stats dt { color: var(--butter); font-weight: 560; font-variation-settings: "SOFT" 100; }
.hm-metrics .metrics-stats dd { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.5; }
.hm-metrics .metrics-go img { border-radius: 50%; }
@media (max-width: 1024px) { .hm-metrics .metrics-stats > div, .hm-metrics .metrics-stats > div:last-child { width: auto; } .hm-metrics .metrics-stats { margin-top: 64px; } }
@media (max-width: 640px) { .hm-metrics { box-shadow: 4px 4px 0 var(--peach); margin-right: 4px; } .hm-metrics .metrics-tags a { font-size: 15px; padding: 9px 14px; } .hm-metrics .metrics-stats { margin-top: 40px; padding-top: 32px; } }

/* ───────── Pricing ───────── */
.hm-pricing .sec-head p { max-width: 520px; font-size: 18px; }
.hm-pricing .pricing-grid { margin-top: 64px; align-items: stretch; }
.hm-pricing .pricing-card { position: relative; padding: 44px 40px 40px; min-height: 520px; }
.hm-pricing .pricing-top p { color: var(--cocoa); }
.hm-pricing .pricing-top h3 { font-weight: 600; }
.hm-pricing .pricing-price .amount { font-weight: 560; font-variation-settings: "SOFT" 100; }
.hm-pricing .pricing-price .per { color: var(--cocoa); font-size: 20px; }
.hm-pricing .pricing-feats { gap: 10px; margin-bottom: 36px; }
.hm-pricing .pricing-feats li { font-weight: 500; }
.hm-pricing .pricing-check { width: 20px; height: 20px; }
.hm-pricing .pricing-card .btn { margin-top: auto; align-self: stretch; }
.hm-plan--pop { background: var(--butter); box-shadow: var(--pop); }
.hm-plan--pop .pricing-top p, .hm-plan--pop .pricing-price .per { color: var(--ink); }
.hm-plan--pop .pricing-check { background: var(--ink); }
.hm-plan-sticker {
  position: absolute; top: -20px; right: 24px; rotate: 7deg; padding: 6px 16px; border-radius: var(--r-pill);
  background: var(--peach); color: var(--white); border: var(--outline); box-shadow: var(--pop-sm);
  font-family: var(--font-display); font-style: italic; font-size: 18px; font-weight: 500; white-space: nowrap;
}
@media (max-width: 1024px) { .hm-pricing .pricing-card { min-height: 0; padding: 40px 28px 32px; } .hm-pricing .pricing-grid { gap: 32px 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hm-pricing .pricing-grid { grid-template-columns: minmax(0, 520px); justify-content: center; gap: 40px; } }
@media (max-width: 640px) { .hm-pricing .pricing-card { margin-right: 4px; } }

.hm-nw { white-space: nowrap; }
@media (max-width: 820px) { .hm-slogan .slogan-text { flex: 0 0 100%; max-width: 640px; margin-inline: calc((100% - min(640px, 100%)) / 2); } }
