/* Home, docs/DESIGN.md Part 7b. Left-aligned and photo-led. Named references per section in index.html:
   Monzo (hero, photo cards), Stripe (statement), Wise (photo with a real detail), Joy (feature list),
   Linear (split rows), Squarespace (dark band). Zonuru black and white. */
.hm-body { background: #fff; color: #1d1d1f; font-family: var(--sans); letter-spacing: -0.015em; }
.hm-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); box-sizing: border-box; }
.hm-body h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.hm-body p { margin: 0; }

/* Bar */
.hm-nav { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; }
.hm-wm { font-weight: 700; font-size: 20px; letter-spacing: -0.035em; color: #1d1d1f; text-decoration: none; }
.hm-navbtn, .hm-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #1d1d1f; color: #fff; font: 500 15px var(--sans); text-decoration: none; letter-spacing: -0.01em; }
.hm-btn { height: 50px; padding: 0 24px; font-size: 17px; }
.hm-btn.light { background: #fff; color: #1d1d1f; }
.hm-btn:hover, .hm-navbtn:hover { opacity: .88; }

/* 1 · Hero (Monzo) */
.hm-hero { position: relative; margin: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); height: min(82vh, 820px); min-height: 520px; border-radius: 28px; overflow: hidden; }
.hm-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hm-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.hm-hero-in { position: absolute; left: clamp(24px, 5vw, 64px); right: 24px; bottom: clamp(28px, 6vw, 64px); z-index: 1; display: grid; justify-items: start; gap: 28px; color: #fff; }
.hm-hero h1 { margin: 0; max-width: 12ch; font-size: clamp(42px, 6vw, 80px); line-height: .98; letter-spacing: -0.05em; font-weight: 700; }

/* 2 · Statement (Stripe) */
.hm-statement { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); }
.hm-statement p { max-width: 980px; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.18; letter-spacing: -0.03em; color: #86868b; font-weight: 500; }
.hm-statement b { color: #1d1d1f; font-weight: 600; }

/* 3 · Photo cards (Monzo) */
.hm-cards-sec { padding-bottom: clamp(72px, 10vw, 128px); display: grid; gap: 28px; }
.hm-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hm-cards a { display: grid; align-content: start; gap: 6px; color: inherit; text-decoration: none; }
.hm-cards img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; margin-bottom: 8px; transition: transform .3s ease; }
.hm-cards a:hover img { transform: scale(1.02); }
.hm-cards b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.hm-cards span { font-size: 14px; line-height: 1.4; color: #6e6e73; }
.hm-cards i { font-style: normal; font-size: 14px; color: #0066cc; margin-top: 2px; }
@media (max-width: 1000px) {
  .hm-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .hm-cards::-webkit-scrollbar { display: none; }
  .hm-cards a { scroll-snap-align: start; }
}

/* 4 · Photo with a real detail (Wise) */
.hm-give { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-bottom: clamp(72px, 10vw, 128px); }
.hm-give-pic { position: relative; }
.hm-give-pic > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; }
.hm-chip { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); white-space: nowrap; font-size: 16px; }
.hm-chip b { font-weight: 600; }
.hm-chip span:last-child { color: #6e6e73; }
.hm-tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: #fff; }
.hm-give-copy { display: grid; gap: 18px; }
.hm-give-copy p { font-size: 19px; line-height: 1.45; color: #424245; }
.hm-give-copy .hm-quiet { color: #1d1d1f; font-weight: 600; }

/* 6 · Feature list (Joy) */
.hm-grey { background: #f5f5f7; }
.hm-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.hm-list-l { display: grid; gap: 32px; align-content: center; }
.hm-list ul { list-style: none; margin: 0; padding: 0; display: grid; }
.hm-list button { width: 100%; padding: 14px 0; border: 0; border-top: 1px solid rgba(0,0,0,.1); background: none; color: #86868b; font: 500 clamp(20px, 2.2vw, 26px) var(--sans); letter-spacing: -0.025em; text-align: left; cursor: pointer; transition: color .2s; }
.hm-list li:last-child button { border-bottom: 1px solid rgba(0,0,0,.1); }
.hm-list button[aria-selected="true"], .hm-list button:hover { color: #1d1d1f; }
.hm-list-r { display: grid; place-items: center; min-height: 560px; border-radius: 24px; background: #e8e8ed; padding: 32px; }
.hm-list-r img { width: min(100%, 380px); border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }

/* 5 · Split rows (Linear) */
.hm-split { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); display: grid; gap: 48px; }
.hm-split-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hm-split-h p { font-size: 19px; line-height: 1.45; color: #6e6e73; padding-top: 6px; }
.hm-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-shots img { width: 100%; border-radius: 20px; background: #f5f5f7; border: 1px solid rgba(0,0,0,.06); }

/* 7 · Dark band (Squarespace) */
.hm-dark { background: #000; color: #f5f5f7; padding: clamp(72px, 10vw, 128px) 0; }
.hm-dark .hm-wrap { display: grid; gap: 48px; }
.hm-dark .hm-split-h p { color: #a1a1a6; }
.hm-tv { width: 100%; border-radius: 16px; border: 1px solid #2c2c2e; }

/* End */
.hm-end { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); display: grid; justify-items: start; gap: 20px; }
.hm-end p { max-width: 40ch; font-size: 19px; line-height: 1.45; color: #6e6e73; }
.hm-end .hm-btn { margin-top: 8px; }
.hm-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid rgba(0,0,0,.08); font-size: 13px; color: #6e6e73; }
.hm-foot span:first-child { color: #1d1d1f; font-weight: 600; }

@media (max-width: 800px) {
  .hm-give, .hm-list, .hm-split-h { grid-template-columns: minmax(0, 1fr); }
  .hm-list-r { min-height: 0; padding: 24px; }
  .hm-shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 260px; overflow-x: auto; scrollbar-width: none; }
  .hm-shots::-webkit-scrollbar { display: none; }
  .hm-chip { font-size: 14px; bottom: 5%; }
  .hm-hero { border-radius: 22px; }
}

/* Hero on computers: the photo still covers the whole panel (owner, 23 October); framed on the faces */
@media (min-width: 900px) { .hm-hero img { object-position: 50% 14%; } }
