/* Image-led chapters between the film and signup. */
.hf-hero { position: relative; isolation: isolate; z-index: 45; box-sizing: border-box; min-height: 100svh; padding: 150px clamp(24px,6vw,100px) 112px; display: flex; align-items: center; background: #2A2420; color: #fffaf1; font-family: var(--sw-font-body); }
.hf-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(18,23,20,.83),rgba(18,23,20,.6) 40%,rgba(18,23,20,.08) 85%); }
.hf-hero__copy { max-width: 620px; }
.hf-hero__copy h1, .hf-hero__link { animation: hf-hero-reveal .8s ease-out both; }
.hf-hero__link { animation-delay: .15s; }
@keyframes hf-hero-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hf-hero__copy h1, .hf-hero__link { animation: none; } }
.hf-hero__copy h1 { font-size: clamp(2.6rem,4.5vw,4.8rem); line-height: 1.07; letter-spacing: -.045em; text-wrap: balance; margin: 24px 0; }
.hf-hero__copy > p { font-size: 1.05rem; line-height: 1.85; color: #fffaf1; max-width: 50ch; }
.hf-hero__copy .hf-hero__eyebrow { font-size: .75rem; letter-spacing: .14em; font-weight: 700; }
.hf-hero__copy .hf-hero__note { font-size: .76rem; margin-top: 22px; }
.hf-hero__copy .hf-hero__status { max-width: 54ch; margin: 14px 0 0; color: rgba(255,250,241,.84); font-size: .88rem; line-height: 1.55; }
.hf-hero__link { display: inline-block; background: #FAF7F2; color: #2A2420; padding: 16px 22px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 650; margin-top: 14px; }
.hf-hero__link:focus-visible { outline: 3px solid #8A5A22; outline-offset: 5px; }
.hf-hero__picture { position: absolute; inset: 0; z-index: -2; display: block; }
.hf-hero__picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
#ask.hf-ask { background: linear-gradient(#faf7f2b8,#faf7f2d9),url('media/editorial/newsletter.webp') center/cover; }
#ask .hf-ask__inner { min-width: 0; box-sizing: border-box; width: 100%; padding: clamp(24px,4vw,52px); border-radius: 16px; background: #faf7f2e8; box-shadow: 0 18px 80px #2a24200d; }
#space-story { position: relative; z-index: 45; background: #FAF7F2; color: #2A2420; font-family: var(--sw-font-body); }
.hf-story-section { box-sizing: border-box; padding: 104px max(clamp(24px, 6vw, 100px), calc(12px + env(safe-area-inset-right))) 120px max(clamp(24px, 6vw, 100px), calc(12px + env(safe-area-inset-left))); min-height: 100svh; border-top: 1px solid #ded5c9; }
.hf-story__inner { max-width: 1280px; margin-inline: auto; }
.hf-story__header { margin-bottom: 40px; }
.hf-story__eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; font-size: .8rem; font-weight: 650; letter-spacing: .08em; }
.hf-story__number { flex-shrink: 0; white-space: nowrap; color: #766046; font: 500 .75rem/1.4 ui-monospace, monospace; }
.hf-story__heading-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.hf-story__title { margin: 0; font-size: clamp(2rem, 4.3vw, 4.1rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.hf-story__lead { margin: 0; max-width: 48ch; font-size: 1.08rem; line-height: 1.75; color: #564b42; }
.hf-story__care-list, .hf-tour__cards { list-style: none; margin: 0; padding: 0; }
/* Each natural-flow room has its own row and scroll coordinate. Desktop keeps the two-column pin;
   mobile uses a separately measured photo-and-copy core, with the introduction in normal flow. */
.hf-tour { overflow-anchor: none; }
.hf-tour__pin, .hf-monitoring__pin { scroll-margin-top: calc(96px + env(safe-area-inset-top)); scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom)); }
.hf-tour__cards { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px; }
.hf-tour .hf-tour__card[hidden], .hf-tour__nav[hidden] { display: none; }
.hf-tour__card { min-width: 0; }
.hf-tour__figure { margin: 0 0 18px; overflow: hidden; border-radius: 6px; background: #e7ded2; }
/* Keep both the children and the adult side visible, rather than zooming or cropping their shared sightline. */
.hf-tour__image { display: block; width: 100%; height: auto; object-fit: contain; }
.hf-tour__caption { display: table; max-width: 100%; margin: 8px auto 0; padding: 3px 8px; border-radius: 999px; background: #ece3d6; color: #6b5843; font-size: .66rem; font-weight: 650; line-height: 1.4; text-align: center; }
.hf-tour__button { box-sizing: border-box; display: flex; gap: 18px; width: 100%; margin: 0; padding: 18px 4px 4px; border: 0; border-top: 1px solid #d6cabb; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.hf-tour__button[aria-pressed="true"] { border-top-color: #2A2420; box-shadow: inset 0 1px 0 #2A2420; }
.hf-tour__button:focus-visible { outline: 3px solid #8A5A22; outline-offset: 4px; }
.hf-tour__copy { display: block; min-width: 0; }
.hf-tour__title { display: block; font-size: 1.25rem; font-weight: 650; line-height: 1.35; }
.hf-tour__body { display: block; margin-top: 8px; color: #564b42; font-size: .96rem; line-height: 1.75; }
.hf-story-section.hf-tour--pinned { height: calc(100svh + var(--hf-tour-steps) * 70svh); min-height: 0; padding: 0; }
.hf-tour--pinned .hf-tour__pin { position: sticky; top: 0; box-sizing: border-box; height: 100svh; padding: calc(96px + env(safe-area-inset-top)) max(clamp(24px,6vw,100px), calc(12px + env(safe-area-inset-right))) calc(40px + env(safe-area-inset-bottom)) max(clamp(24px,6vw,100px), calc(12px + env(safe-area-inset-left))); display: flex; flex-direction: column; }
.hf-tour--pinned .hf-tour__pin > .hf-story__inner { box-sizing: border-box; width: 100%; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hf-tour--pinned .hf-story__header { flex: none; margin-bottom: 28px; }
.hf-tour--pinned .hf-story__title { font-size: clamp(1.9rem, 3.2vw, 3.1rem); }
.hf-tour--pinned .hf-tour__layout { --hf-tour-side: clamp(300px, 34%, 420px); position: relative; display: grid; flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0,1fr) var(--hf-tour-side); column-gap: 44px; }
.hf-tour--pinned .hf-tour__cards { grid-column: 2; align-self: start; grid-template-columns: minmax(0,1fr); gap: 0; }
.hf-tour--pinned .hf-tour__figure { position: absolute; inset: 0 calc(var(--hf-tour-side) + 44px) 0 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.hf-tour--pinned .is-active .hf-tour__figure { z-index: 1; opacity: 1; }
.hf-tour--pinned .hf-tour__image { height: calc(100% - 30px); }
.hf-tour--pinned .hf-tour__button { padding: 11px 4px; }
.hf-tour--pinned .hf-tour__title { font-size: 1.05rem; }
.hf-tour--pinned .hf-tour__button[aria-pressed="false"] .hf-tour__title { color: #675c50; }
.hf-tour--pinned .hf-tour__button[aria-pressed="false"] .hf-tour__body { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; }
.hf-tour--pinned .hf-tour__body { transition: opacity .4s ease; }
@media (min-width: 861px) {
  .hf-tour:not(.hf-tour--pinned) .hf-tour__card { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); column-gap: 44px; align-items: center; }
  .hf-tour:not(.hf-tour--pinned) .hf-tour__figure { margin: 0; }
}
.hf-tour--mobile-pinned .hf-tour__track { height: calc(var(--hf-tour-core, 0px) + var(--hf-tour-steps) * 70svh); }
.hf-tour--mobile-pinned .hf-tour__pin { position: sticky; top: var(--hf-tour-top, 96px); display: grid; gap: 12px; }
.hf-tour--mobile-pinned .hf-tour__cards { min-height: var(--hf-tour-card, 0px); gap: 0; }
.hf-tour--mobile-pinned .hf-tour__card { grid-area: 1 / 1; align-self: start; }
.hf-tour--mobile-pinned .hf-tour__figure { height: var(--hf-tour-figure, clamp(168px, 30svh, 280px)); margin: 0; }
.hf-tour--headed .hf-tour__pin > .hf-story__header { margin-bottom: 12px; }
.hf-tour--mobile-pinned .hf-tour__image { height: calc(100% - 30px); }
.hf-tour--mobile-pinned .hf-tour__copy { padding-top: 12px; }
.hf-tour__nav { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.hf-tour__nav .hf-tour__button { justify-content: center; gap: 0; min-height: 44px; padding: 10px 4px; border-top: 0; border-bottom: 1px solid #d6cabb; box-shadow: none; }
.hf-tour__nav .hf-tour__button[aria-pressed="true"] { border-bottom-color: #2A2420; }
.hf-tour__nav .hf-story__number { font-size: .82rem; }
.hf-tour__nav .hf-tour__button[aria-pressed="true"] .hf-story__number { color: #2A2420; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .hf-tour--pinned .hf-tour__figure, .hf-tour--pinned .hf-tour__body { transition: none; }
}
/* Monitoring defaults to readable flow. When the measured core fits, one panel and one card share a
   sticky pin; the track supplies three distinct scroll stops independently of the hidden cards. */
.hf-story__care-layout { --hf-care-stage: clamp(560px, 43vw, 600px); --hf-care-pad: clamp(16px, 2.4vw, 32px); }
.hf-care-panel { box-sizing: border-box; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-width: 0; height: 100%; animation: hf-care-in .35s ease-out; }
.hf-care-panel[hidden], .hf-monitoring__step[hidden], .hf-monitoring__nav[hidden] { display: none; }
/* A measured stage stays the same size while pinned; flow panels can grow for enlarged text. */
.hf-story__care-stage, .hf-monitoring__step > .hf-care-panel { box-sizing: border-box; height: var(--hf-care-stage); padding: var(--hf-care-pad); overflow: hidden; border-radius: 6px; background: #ece6dc; }
.hf-story__care-stage { display: none; }
.hf-monitoring__step + .hf-monitoring__step { margin-top: 48px; }
.hf-monitoring:not(.hf-monitoring--pinned) .hf-monitoring__step > .hf-care-panel { height: auto; min-height: var(--hf-care-stage); overflow: visible; }
.hf-monitoring:not(.hf-monitoring--pinned) .hf-care-band { flex: none; height: 300px; max-width: 360px; }
.hf-monitoring:not(.hf-monitoring--pinned) .hf-phone { height: auto; aspect-ratio: auto; }
.hf-monitoring:not(.hf-monitoring--pinned) .hf-phone__screen { height: auto; overflow: visible; }
.hf-monitoring:not(.hf-monitoring--pinned) .hf-phone__photo { flex: none; height: 160px; }
.hf-monitoring--pinned .hf-monitoring__track { height: calc(var(--hf-care-core, 0px) + 140svh); }
/* The script centres the measured core between TOP_CLEAR and BOTTOM_CLEAR on desktop and hangs it at TOP_CLEAR on mobile. */
.hf-monitoring--pinned .hf-monitoring__pin { position: sticky; top: var(--hf-care-top, 96px); display: grid; gap: 16px; }
.hf-monitoring--pinned .hf-story__care-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.hf-monitoring--pinned .hf-story__care-stage { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.hf-monitoring--pinned .hf-story__care-stage > .hf-care-panel { grid-area: 1 / 1; min-height: 0; }
.hf-monitoring--pinned .hf-story__care-list { display: grid; grid-template-columns: minmax(0,1fr); min-height: var(--hf-care-copy, 0px); }
.hf-monitoring--pinned .hf-monitoring__step { grid-area: 1 / 1; align-self: start; }
.hf-monitoring--pinned .hf-monitoring__step + .hf-monitoring__step { margin-top: 0; }
.hf-monitoring--pinned .hf-story__care-button > .hf-story__number { display: none; }
.hf-monitoring__nav { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.hf-monitoring__choice { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 0; padding: 8px 4px; border: 0; border-bottom: 1px solid #d6cabb; border-radius: 0; background: none; color: #564b42; font: inherit; font-size: .82rem; line-height: 1.3; cursor: pointer; touch-action: manipulation; }
.hf-monitoring__choice[aria-pressed="true"] { border-bottom-color: #2A2420; color: #2A2420; font-weight: 700; }
.hf-monitoring__choice[aria-pressed="true"] .hf-story__number { color: #2A2420; }
.hf-monitoring__choice:focus-visible { outline: 3px solid #8A5A22; outline-offset: 4px; }
@keyframes hf-care-in { from { opacity: 0; } to { opacity: 1; } }
.hf-care-band { display: block; flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; border-radius: 4px; }
.hf-care-chips { display: flex; flex: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hf-care-chip { box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 7px 12px; border: 1px solid #d6cabb; border-radius: 999px; background: #FAF7F2; color: #2A2420; font-size: .8rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.hf-care-chip::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #b9792f; }
/* Phone shell for the sample app screens: dark frame, cream screen, decorative notch and home bar.
   Height fills the stage and width follows it, capped by the stage width so 320px viewports still fit. */
.hf-phone { box-sizing: border-box; height: 100%; max-width: 100%; aspect-ratio: 10 / 18; padding: 7px; border-radius: 34px; background: #2A2420; box-shadow: 0 24px 50px #2a242029, inset 0 0 0 1px #4a3f37; }
.hf-phone__screen { position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 30px 12px 20px; overflow: hidden; overflow-wrap: anywhere; border-radius: 27px; background: #FAF7F2; color: #2A2420; font-size: .75rem; line-height: 1.45; }
.hf-phone__screen > :not(.hf-phone__photo) { flex: none; }
.hf-phone__notch, .hf-phone__screen::after { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; }
.hf-phone__notch { top: 8px; width: 31%; height: 14px; background: #2A2420; }
.hf-phone__screen::after { content: ''; bottom: 7px; width: 34%; height: 4px; background: #2a242033; }
.hf-phone__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.hf-phone__header { min-width: 0; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.hf-phone__example { box-sizing: border-box; flex: none; max-width: 100%; padding: 3px 8px; border-radius: 999px; background: #ece3d6; color: #6b5843; font-size: .66rem; font-weight: 650; }
.hf-phone__photo { position: relative; flex: 1 1 0; min-height: 96px; overflow: hidden; border-radius: 14px; background: #e7ded2; }
.hf-phone__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.hf-phone__live { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: #2a2420d9; color: #fffaf1; font-size: .66rem; font-weight: 700; }
.hf-phone__live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e0563b; }
.hf-phone__zone, .hf-phone__note { margin: 0; }
.hf-phone__caption { display: block; color: #766046; font-size: .66rem; font-weight: 650; letter-spacing: .02em; }
.hf-phone__zone strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.hf-phone__flow { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.hf-phone__flow li { position: relative; padding: 4px 9px; border-radius: 999px; background: #efe7db; font-size: .7rem; font-weight: 650; line-height: 1.3; }
.hf-phone__flow li + li::before { content: '→'; content: '→' / ''; position: absolute; top: 50%; left: -13px; transform: translateY(-50%); color: #8c7660; font-weight: 400; }
.hf-phone__note { color: #564b42; font-size: .72rem; line-height: 1.5; }
.hf-monitoring .hf-phone--report .hf-phone__screen { gap: 6px; }
.hf-phone--report .hf-phone__example { font-size: .72rem; }
.hf-phone__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; }
.hf-phone__stat { min-width: 0; padding: 5px 8px; border-radius: 12px; background: #efe7db; }
.hf-phone__stat dt, .hf-phone__longest dt { color: #6b5843; font-size: .75rem; font-weight: 650; }
.hf-phone__stat dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hf-phone__unit { font-size: .85rem; font-weight: 650; letter-spacing: 0; }
.hf-phone__activity-title { margin: 0 0 6px; color: #6b5843; font-size: .8rem; font-weight: 650; line-height: 1.4; }
.hf-phone__activities { display: grid; gap: 12px; margin: 0; }
.hf-phone__activity-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 8px; align-items: center; padding-bottom: 18px; font-size: .85rem; }
.hf-phone__activity-zone { font-weight: 650; }
.hf-phone__activity-value { min-width: 0; margin: 0; }
.hf-phone__activity-track { position: absolute; inset: auto 0 0; display: block; height: 10px; overflow: hidden; border-radius: 999px; background: #e3d9cc; }
.hf-phone__activity-bar { display: block; height: 100%; border-radius: inherit; background: #b9792f; }
.hf-phone__activity-time { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hf-phone__longest { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 2px; border-block: 1px solid #e3d9cc; }
.hf-phone__longest dd { margin: 0; font-size: .85rem; font-weight: 700; }
.hf-phone__tip { padding: 8px 10px; border-radius: 14px; background: #2A2420; color: #fffaf1; }
.hf-phone__tip .hf-phone__caption { color: #e6c79c; font-size: .75rem; }
.hf-phone__tip p { margin: 4px 0 0; font-size: .85rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .hf-care-panel { animation: none; } }
.hf-story__care-button { box-sizing: border-box; display: flex; gap: 20px; width: 100%; margin: 0; padding: 18px 4px; border: 0; border-top: 1px solid #d6cabb; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.hf-story__care-button[aria-pressed="true"] { border-top-color: #2A2420; }
.hf-story__care-button[aria-pressed="true"] .hf-story__care-title { text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hf-story__care-button:focus-visible { outline: 3px solid #8A5A22; outline-offset: 4px; }
.hf-story__care-copy { display: block; min-width: 0; }
.hf-story__care-label { display: block; color: #766046; font-size: .78rem; line-height: 1.4; }
.hf-story__care-title { display: block; margin: 10px 0; font-size: 1.3rem; font-weight: 650; line-height: 1.35; }
.hf-story__care-body { display: block; color: #564b42; font-size: .96rem; line-height: 1.75; }
.hf-story__privacy { margin: 48px 0 0; padding-top: 22px; border-top: 1px solid #d6cabb; color: #564b42; font-size: .82rem; line-height: 1.7; }
.hf-story__privacy strong { display: block; margin-bottom: 6px; color: #2A2420; font-size: .86rem; }
@media (min-width: 861px) {
  /* An unboxed product-and-copy spread; the script still measures every phase before pinning. */
  .hf-monitoring .hf-monitoring__pin { width: min(100%, 1040px); margin-inline: auto; gap: 20px; }
  .hf-monitoring .hf-story__care-layout { --hf-care-stage: clamp(520px, 38vw, 552px); --hf-care-pad: 0px; }
  .hf-monitoring--pinned .hf-story__care-layout,
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-monitoring__step { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(40px, 5vw, 72px); align-items: center; }
  .hf-monitoring .hf-story__care-stage,
  .hf-monitoring .hf-monitoring__step > .hf-care-panel { border-radius: 0; background: none; }
  .hf-monitoring .hf-care-panel { gap: 20px; }
  .hf-monitoring--pinned .hf-care-band { flex: none; height: clamp(280px, 23vw, 332px); max-width: 360px; }
  .hf-monitoring .hf-care-chips { max-width: 360px; }
  .hf-monitoring .hf-phone { box-shadow: inset 0 0 0 1px #4a3f37; }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-phone { width: min(100%, calc(var(--hf-care-stage) * 5 / 9)); }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-monitoring__step { display: grid; }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-monitoring__step > .hf-care-panel { grid-area: 1 / 1; }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-monitoring__step > .hf-story__care-button { grid-area: 1 / 2; }
  .hf-monitoring .hf-story__care-button { max-width: 25rem; min-height: 44px; gap: 14px; padding: 8px 0; border: 0; }
  .hf-monitoring .hf-story__care-label { color: #536248; font-weight: 650; letter-spacing: .08em; }
  .hf-monitoring .hf-story__care-title { margin: 12px 0; font-size: clamp(1.4rem, 1.8vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; }
  .hf-monitoring .hf-story__care-button[aria-pressed="true"] .hf-story__care-title { text-decoration: none; }
  .hf-monitoring .hf-story__care-body { max-width: 42ch; font-size: 1rem; text-wrap: pretty; }
}
@media (max-width: 860px) {
  .hf-hero { padding: 104px 22px 110px; }
  .hf-hero__picture img { object-position: 43% center; }
  .hf-hero__copy h1 { font-size: clamp(2rem,7vw,3.2rem); margin: 16px 0; }
  .hf-hero__copy > p { font-size: .98rem; }
  /* The top matches the pins' 96px top-bar clearance; a shorter bottom keeps the gap between two
     chapters from filling a phone screen. */
  .hf-story-section { padding: 96px max(22px, calc(12px + env(safe-area-inset-right))) 64px max(22px, calc(12px + env(safe-area-inset-left))); }
  .hf-story__heading-row { grid-template-columns: 1fr; gap: 28px; }
  .hf-story__title { font-size: clamp(2rem,6vw,3rem); }
  .hf-story__lead { font-size: 1rem; }
  .hf-tour__cards { gap: 32px; }
  .hf-story__care-layout { --hf-care-stage: auto; --hf-care-pad: 0px; }
  .hf-monitoring--pinned .hf-monitoring__pin { gap: 6px; }
  .hf-monitoring--pinned .hf-story__care-layout { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .hf-story__care-stage, .hf-monitoring__step > .hf-care-panel { border-radius: 0; background: none; }
  .hf-care-panel { height: auto; gap: 10px; }
  .hf-monitoring .hf-care-band { flex: none; height: clamp(170px, 30svh, 230px); max-width: 100%; }
  /* Pinned, the stage is sized by the tallest phone; the band photo takes that height instead of
     floating in the middle of it. */
  .hf-monitoring--pinned .hf-story__care-stage > .hf-care-panel { height: 100%; }
  .hf-monitoring--pinned .hf-care-band { flex: 1 1 0; height: auto; min-height: 170px; }
  .hf-care-chips { gap: 6px; }
  .hf-care-chip { padding: 4px 8px; line-height: 1.25; }
  /* Upright phones, not compact landscape panels. The screen stays large and text is never scaled.
     If all three panels cannot fit the clear viewport band, flow phones grow with their contents. */
  .hf-monitoring .hf-phone { --hf-phone-height: clamp(350px, 51svh, 430px); flex: none; width: min(100%, 236px, calc(var(--hf-phone-height) * 5 / 9)); height: var(--hf-phone-height); aspect-ratio: auto; padding: 7px; border-radius: 32px; box-shadow: 0 12px 28px #2a24201c, inset 0 0 0 1px #4a3f37; }
  .hf-monitoring .hf-phone--report { --hf-phone-height: clamp(490px, 59svh, 500px); }
  .hf-monitoring .hf-phone__screen { gap: 8px; height: 100%; padding: 28px 12px 18px; overflow: visible; border-radius: 25px; }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-phone { height: auto; min-height: var(--hf-phone-height); }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-phone__screen { height: auto; min-height: calc(var(--hf-phone-height) - 14px); }
  .hf-monitoring .hf-phone__photo { flex: 1 0 128px; height: auto; min-height: 128px; border-radius: 12px; }
  .hf-monitoring:not(.hf-monitoring--pinned) .hf-phone__photo { flex: none; height: 180px; }
  .hf-phone__image { position: absolute; inset: 0; }
  .hf-phone__header { font-size: .98rem; }
  .hf-phone__example { padding: 3px 6px; font-size: .72rem; }
  .hf-phone__caption, .hf-phone__live, .hf-phone__stat dt, .hf-phone__longest dt { font-size: .75rem; }
  .hf-phone__flow li { font-size: .8rem; }
  .hf-phone__note { font-size: .82rem; line-height: 1.45; }
  .hf-phone__tip { margin-top: auto; }
  .hf-story__care-button { gap: 12px; padding: 6px 0; }
  .hf-story__care-title { margin: 5px 0; font-size: 1.08rem; }
  .hf-story__care-body { line-height: 1.5; }
  .hf-monitoring--pinned .hf-story__care-button { gap: 0; padding: 0; }
  .hf-monitoring--pinned .hf-story__care-label { display: none; }
  .hf-monitoring--pinned .hf-story__care-title { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
  .hf-monitoring--pinned .hf-story__care-body { font-size: .9rem; }
}
