/* Homepage application presentation. Phone interiors belong to the app builds;
   every rule here is scoped to these two sections. */
.ha {
  --ha-ink: #171719;
  --ha-muted: #666;
  --ha-line: #babcbf;
  --ha-field: var(--plate, #e4e5e6);
  --ha-accent: var(--silver-field, #d8dadc);
  --ha-accent-ink: var(--ha-ink);
  position: relative;
  isolation: isolate;
  margin-top: 48px;
  border-radius: 20px 20px 0 0;
  background: var(--ha-field);
  color: var(--ha-ink);
  scroll-margin-top: var(--clear, 72px);
}
.ha *, .ha *::before, .ha *::after { box-sizing: border-box; }
.ha [hidden] { display: none !important; }
.ha button, .ha summary, .ha a { -webkit-tap-highlight-color: transparent; }
.ha button, .ha summary { font-family: "Inter", sans-serif; }
.ha button:focus-visible, .ha summary:focus-visible, .ha a:focus-visible {
  outline: 2px solid var(--ha-accent-ink);
  outline-offset: 4px;
}
.ha-intro {
  --ha-hero-width: 300px;
  --ha-hero-height: calc(var(--ha-hero-width) * 876 / 417);
  position: relative;
  padding: 56px 48px 24px;
}
.ha-heading {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 460px;
}
.ha-eyebrow {
  margin: 0;
  font: 400 13px/19px "Inter", sans-serif;
  color: var(--ha-muted);
}
.ha-title {
  max-width: none;
  margin: 0;
  font: 700 clamp(44px, 3.8vw, 64px)/.98 "Inter", sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.ha-lead {
  max-width: 34ch;
  margin: 22px 0 0;
  font: 400 18px/26px "Inter", sans-serif;
  color: var(--ha-muted);
  text-wrap: pretty;
}
.ha-heading .ha-lead { max-width: 24ch; text-wrap: balance; }
.ha-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ha-hero-width) minmax(0, 1fr);
  grid-template-rows: var(--ha-hero-height) auto;
  column-gap: clamp(40px, 4vw, 96px);
  align-items: start;
  padding-top: 72px;
}
.ha-benefits {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.ha-benefit {
  position: relative;
  width: 100%;
  max-width: 270px;
}
.ha-benefit::after {
  content: none;
  position: absolute;
  top: 38px;
  left: calc(100% + 18px);
  width: clamp(24px, 3.2vw, 62px);
  height: 1px;
  background: var(--ha-line);
  pointer-events: none;
}
.ha-benefit--three::after { right: calc(100% + 18px); left: auto; }
.ha-benefit-number {
  display: block;
  margin: 0 0 20px;
  font: 400 13px/18px "Inter", sans-serif;
  color: var(--ha-muted);
  font-variant-numeric: tabular-nums;
}
.ha-benefit-title {
  max-width: 22ch;
  margin: 0;
  font: 600 21px/24px "Inter", sans-serif;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ha-benefit-copy {
  max-width: 24ch;
  margin: 10px 0 0;
  font: 400 16px/23px "Inter", sans-serif;
  color: var(--ha-muted);
  text-wrap: balance;
}
.ha-device-card { min-width: 0; margin: 0; }
.ha-device-card--hero { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; width: var(--ha-hero-width); }
.ha-phone-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 417 / 876;
  margin-inline: auto;
}
.ha-phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 417px;
  height: 876px;
  padding: 12px;
  border-radius: 62px;
  background: #0b0b0c;
  box-shadow: 0 0 0 2px #29292c, 0 0 0 3px #67676b, 0 0 0 5px #29292c,
    0 30px 48px -20px rgb(23 23 25 / 28%);
  transform: scale(var(--ha-scale, .72));
  transform-origin: top left;
}
.ha-screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50px;
  background: #fff;
  clip-path: inset(0 round 50px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.ha-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 6px 28px 0 40px;
  color: #171719;
  background: #fff;
  font: 600 17px/1 -apple-system, "SF Pro Text", system-ui, sans-serif;
  pointer-events: none;
}
.ha[data-selection="health"] .ha-status { background: transparent; }
/* My Health owns the full display and safe areas, including the status region. */
.ha[data-selection="health"] .ha-frame { top: 0; height: 852px; background: #f5f5f2; filter: opacity(1); }
.ha[data-selection="health"] .ha-screen { background: #f5f5f2; }
.ha[data-selection="health"] .ha-screen[data-status-light] .ha-status { color: #fff; }
.ha[data-selection="health"] .ha-screen[data-status-light] .ha-homebar { background: #fff; }
.ha[data-selection="state"] .ha-status { background: #f3f4f6; }
.ha-status svg { display: block; width: 62px; height: 14px; }
.ha-island {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 34px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}
.ha-frame {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 0;
  display: block;
  width: 393px;
  height: 798px;
  border: 0;
  background: #fff;
}
.ha-frame:focus-visible { outline: 3px solid var(--ha-accent-ink); outline-offset: -3px; }
.ha-homebar {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: #171719;
  transform: translateX(-50%);
  pointer-events: none;
}
.ha-loading {
  position: absolute;
  z-index: 4;
  inset: 54px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 48px 32px;
  background: #f7f7f7;
  color: var(--ha-muted);
  text-align: center;
  font: 400 18px/26px "Inter", sans-serif;
}
.ha-retry {
  position: absolute;
  z-index: 5;
  top: 60%;
  left: 50%;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ha-ink);
  color: #fff;
  font: 500 16px/24px "Inter", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}
.ha-caption { margin: 28px 0 0; }
.ha-caption-title {
  max-width: 25ch;
  margin: 0;
  font: 600 19px/23px "Inter", sans-serif;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ha-caption-copy {
  max-width: 20ch;
  min-height: 46px;
  margin: 8px 0 0;
  font: 400 15px/23px "Inter", sans-serif;
  color: var(--ha-muted);
  text-wrap: balance;
}
.ha-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.ha-reset, .ha-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ha-ink);
  font: 500 14px/20px "Inter", sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ha-line);
  cursor: pointer;
}
.ha-reset:hover, .ha-open:hover { text-decoration-color: currentColor; }
.ha-reset { color: var(--ha-muted); }
.ha-device-card--hero .ha-caption { margin-top: 21px; text-align: center; }
.ha-device-card--hero .ha-caption-title { max-width: none; font-size: 15px; line-height: 21px; }
.ha-device-card--hero .ha-caption-copy { display: none; }
.ha-device-card--hero .ha-actions { justify-content: center; gap: 24px; margin-top: 2px; }
.ha-switcher {
  --ha-muted: #555359;
  --ha-accent-ink: #584461;
  position: sticky;
  z-index: 30;
  top: calc(var(--hdr-h, 80px) + 12px);
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 12px auto 0;
}
.ha-switcher-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px;
  border: 1px solid #d0ccd3;
  border-radius: 999px;
  background: #eae8ed;
}
.ha-switcher-label { font: 400 13px/20px "Inter", sans-serif; color: var(--ha-muted); white-space: nowrap; }
.ha-choices { display: flex; align-items: center; gap: 8px; }
.ha-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ha-ink);
  font: 500 14px/20px "Inter", sans-serif;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.ha-choice:hover { background: #dedbe2; }
.ha-choice[aria-pressed="true"], .ha-bank-trigger[data-active] { background: var(--ha-ink); color: #fff; }
.ha-bank { position: relative; }
.ha-bank-trigger { display: flex; width: 200px; padding: 0; gap: 0; }
.ha-bank-open, .ha-bank-toggle {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ha-bank-open { flex: 1 1 auto; min-width: 0; justify-content: flex-start; padding: 0 0 0 18px; border-radius: 999px 0 0 999px; white-space: nowrap; }
.ha-bank-toggle { position: relative; flex: 0 0 56px; width: 56px; margin: 0; padding: 0; border-radius: 999px; }
.ha-bank-toggle::before { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; background: transparent; }
.ha-bank-trigger:not([data-active]):hover, .ha-bank-open:hover { background: transparent; }
.ha-bank-toggle:hover::before, .ha-bank-toggle:focus-visible::before { background: rgb(23 23 25 / 10%); }
.ha-bank-trigger[data-active] .ha-bank-toggle:hover::before,
.ha-bank-trigger[data-active] .ha-bank-toggle:focus-visible::before { background: rgb(255 255 255 / 18%); }
.ha .ha-bank-toggle:focus-visible { outline: none; }
.ha-bank-toggle:focus-visible::before { outline: 2px solid var(--ha-accent-ink); outline-offset: -2px; }
.ha-bank-trigger[data-active] .ha-bank-toggle:focus-visible::before { outline-color: #fff; }
.ha-bank-chevron { position: absolute; top: 50%; left: 50%; display: block; width: 16px; height: 16px; transform: translate(-50%, -50%); }
.ha-bank-toggle[aria-expanded="true"] .ha-bank-chevron { transform: translate(-50%, -50%) rotate(180deg); }
.ha-bank-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 14px);
  left: -8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid #c7c2cb;
  border-radius: 16px;
  background: #fff;
}
.ha-bank-menu .ha-choice { justify-content: flex-start; border-radius: 10px; }
.ha-coming { flex-direction: column; align-items: flex-start; gap: 0; cursor: default; color: #77727b; }
.ha-coming span { font-size: 10px; line-height: 14px; font-weight: 400; }
.ha-coming:hover { background: transparent; }
.ha-scenarios { padding: 88px 48px 36px; }
.ha-demo-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: end;
  gap: 20px 48px;
}
.ha-demo-head .ha-eyebrow { grid-column: 1 / -1; }
.ha-demo-title {
  max-width: 19ch;
  margin: 0;
  font: 700 clamp(36px, 3.15vw, 54px)/1.02 "Inter", sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.ha-demo-head .ha-lead { max-width: 32ch; margin: 0; justify-self: end; }
.ha-scenario-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); margin-top: 56px; }
.ha-scenario:nth-child(even) { padding-top: 76px; }
.ha-note { margin: 54px 0 0; font: 400 13px/21px "Inter", sans-serif; color: var(--ha-muted); }
.ha-note > span { margin-inline: 10px; color: #a49da9; }
.ha-note a { color: var(--ha-ink); text-underline-offset: 4px; text-decoration-color: #a6a1aa; }
.ha-toast { position: fixed; z-index: 60; bottom: 96px; left: 50%; width: max-content; max-width: calc(100vw - 48px); margin: 0; padding: 14px 20px; border-radius: 12px; background: #171719; color: #fff; font: 400 14px/21px "Inter", sans-serif; text-align: center; transform: translateX(-50%); }
.ha noscript .ha-note { padding: 0 48px 36px; }

/* One continuous white presentation, ending with the existing service offer.
   The canonical card stays available to the separate service catalogues. */
#services .ha + .home-directions { margin-top: 0; }
.ha + .home-directions > #digital-products {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 56px 48px 64px;
  border: 0;
  border-top: 1px solid #babcbf;
  border-radius: 0 0 20px 20px;
  background: var(--plate, #e4e5e6);
  color: #171719;
}
.ha + .home-directions > #digital-products .sps-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px 72px;
  width: 100%;
  min-height: 0;
  padding: 0;
}
.ha + .home-directions > #digital-products .sps-head { grid-column: 1; grid-row: 1 / span 2; padding: 0; }
.ha + .home-directions > #digital-products .sps-title {
  max-width: 23ch;
  margin: 0;
  font: 500 clamp(32px, 3.15vw, 52px)/1.1 "Inter", sans-serif;
  letter-spacing: -.03em;
  text-wrap: balance;
  color: #171719;
}
.ha + .home-directions > #digital-products .sps-eyebrow,
.ha + .home-directions > #digital-products .sps-visual { display: none; }
.ha + .home-directions > #digital-products .sps-lead {
  display: block;
  max-width: 40ch;
  margin: 20px 0 0;
  color: #555359;
  font: 400 18px/26px "Inter", sans-serif;
  text-wrap: balance;
}
.ha + .home-directions > #digital-products .sps-info { grid-column: 2; grid-row: 1; padding: 0; }
.ha + .home-directions > #digital-products .sps-tags { gap: 8px; margin: 0; }
.ha + .home-directions > #digital-products .svc-chip {
  display: inline-flex;
  background: transparent;
}
.ha + .home-directions > #digital-products .sps-buy {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.ha + .home-directions > #digital-products .sps-buy-item { flex: 0 1 auto; width: auto; margin: 0; }
/* CTA order is shared with the neighbouring direction cards. The canonical
   .lab-btn still owns height, labels, hover, keyboard and reduced-motion. */
#services .ha + .home-directions > .sps-card .sps-buy > .sps-buy-item:first-child > .lab-btn {
  --btn-bg: #171719;
  --btn-ink: #f7f7f7;
  --btn-fill: #e8e6eb;
  --btn-fill-ink: #171719;
  --btn-focus: #171719;
}
#services .ha + .home-directions > .sps-card .sps-buy > .sps-buy-item:nth-child(n + 2) > .lab-btn {
  --btn-bg: var(--ww, #f7f7f7);
  --btn-ring: inset 0 0 0 1px #171719;
  --btn-ink: #171719;
  --btn-fill: #171719;
  --btn-fill-ink: #f7f7f7;
  --btn-focus: #171719;
}
/* Photo service cards: actions belong to the left reading column and the
   image fills the full card height. 716.8px is 1.4 × the former 512px card. */
@media (min-width: 1025px) {
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) {
    min-height: 716.8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "copy media";
  }
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) > .sps-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 0;
  }
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) :is(.sps-head, .sps-info) {
    grid-area: auto;
    padding: 0;
  }
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) .sps-buy {
    grid-area: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--direction-button-gap, 4px);
    width: auto;
    margin: auto -28px 0;
    padding: 36px 0 0;
  }
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) .sps-buy-item {
    min-width: 0;
    width: 100%;
  }
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) > .sps-visual {
    grid-area: media;
    align-self: stretch;
    min-height: 0;
    aspect-ratio: auto;
    order: 0;
  }
}
@media (min-width: 1440px) and (orientation: landscape) {
  #services .ha + .home-directions > :is(#local-brands, #high-end, #dealer) {
    /* Preserve the existing wide-screen height scale, enlarged by 40%. */
    min-height: calc((max(12.98vw + 555.8px, (62.95vw - 37.5px) / 1.7725) + 8px) * 1.4);
  }
}

@media (min-width: 1800px) {
  .ha + .home-directions > #digital-products { padding-inline: 72px; }
}
/* Tablet and phone: the card keeps the same 4px rim as its neighbours. Only
   the reading column has larger insets; the action row reaches the rim. */
@media (max-width: 1439.98px) {
  .ha + .home-directions > #digital-products {
    --ha-offer-copy-x: 32px;
    --ha-offer-copy-top: 44px;
    padding: 4px;
  }
  .ha + .home-directions > #digital-products .sps-copy {
    gap: 28px 40px;
    padding: var(--ha-offer-copy-top) var(--ha-offer-copy-x) 0;
  }
  .ha + .home-directions > #digital-products .sps-head { grid-row: 1; }
  .ha + .home-directions > #digital-products .sps-buy {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    align-self: stretch;
    gap: var(--direction-button-gap, 4px);
    width: auto;
    margin: 8px calc(-1 * var(--ha-offer-copy-x)) 0;
    padding: 0;
  }
  .ha + .home-directions > #digital-products .sps-buy-item { min-width: 0; width: 100%; }
  .ha + .home-directions > #digital-products .sps-buy .lab-btn { width: 100%; }
}
@media (max-width: 899.98px) {
  .ha + .home-directions > #digital-products { --ha-offer-copy-x: 24px; --ha-offer-copy-top: 36px; }
  .ha + .home-directions > #digital-products .sps-copy { display: flex; flex-direction: column; gap: 28px; }
  .ha + .home-directions > #digital-products .sps-title { max-width: 23ch; font-size: 36px; }
}
@media (max-width: 719.98px) {
  .ha + .home-directions > #digital-products .sps-buy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599.98px) {
  .ha + .home-directions > #digital-products { --ha-offer-copy-x: 16px; --ha-offer-copy-top: 30px; border-radius: 0 0 16px 16px; }
  .ha + .home-directions > #digital-products .sps-title { font-size: 32px; }
}
@media (max-width: 359.98px) {
  .ha + .home-directions > #digital-products { --ha-offer-copy-x: 12px; }
}

@media (min-width: 1800px) {
  .ha-intro { --ha-hero-width: 384px; max-width: 1680px; margin-inline: auto; padding: 88px 72px 64px; }
  .ha-composition { column-gap: 96px; padding-top: 133px; }
  .ha-benefit { max-width: 300px; }
  .ha-benefit-title { font-size: 24px; line-height: 27px; }
  .ha-benefit-copy { font-size: 18px; line-height: 26px; }
  .ha-scenarios { max-width: 2024px; margin-inline: auto; padding-inline: 72px; }
  .ha-scenario-grid { max-width: 1880px; gap: 100.8px; margin-inline: auto; }
  .ha-caption-title { font-size: 22px; line-height: 26px; }
  .ha-caption-copy { font-size: 17px; line-height: 25px; }
  .ha-reset, .ha-open { font-size: 14px; line-height: 20px; }
}
@media (max-width: 1399.98px) {
  .ha-intro { --ha-hero-width: 270px; padding: 44px 36px 24px; }
  .ha-composition { padding-top: 60px; }
  .ha-title { font-size: 48px; }
  .ha-heading .ha-lead { font-size: 17px; line-height: 25px; }
  .ha-benefit-title { font-size: 19px; line-height: 25px; }
  .ha-benefit-copy { font-size: 15px; line-height: 22px; }
  .ha-scenarios { padding-inline: 36px; }
}
@media (max-width: 1199.98px) {
  .ha-title { font-size: 42px; }
  .ha-heading .ha-lead { font-size: 16px; line-height: 24px; }
  .ha-benefit-title { font-size: 18px; line-height: 24px; }
  .ha-benefit-copy { font-size: 15px; line-height: 22px; }
  .ha-scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; max-width: 800px; margin-inline: auto; }
  .ha-scenario:nth-child(even) { padding-top: 76px; }
  .ha-caption-title { font-size: 21px; line-height: 27px; }
  .ha-caption-copy { font-size: 16px; line-height: 24px; }
  .ha-reset, .ha-open { font-size: 14px; line-height: 20px; }
  .ha-switcher-label { display: none; }
  .ha-switcher-inner { gap: 16px; padding-left: 8px; }
}
@media (max-width: 1099.98px) {
  .ha { margin-top: 32px; }
  .ha-intro { padding: 36px 28px 24px; }
  .ha-heading { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 18px 28px; width: auto; max-width: none; }
  .ha-title { margin: 0; font-size: 44px; }
  .ha-heading .ha-lead { margin: 0; }
  .ha-composition { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto var(--ha-hero-height) auto; gap: 32px 28px; padding-top: 32px; }
  .ha-device-card--hero { grid-column: 2; grid-row: 2 / span 2; max-width: 100%; }
  .ha-benefits { grid-column: 1; grid-row: 2; }
  .ha-benefit { max-width: 27ch; }
  .ha-benefit::after { left: calc(100% + 10px); right: auto; width: 24px; }
  .ha-scenarios { padding: 64px 28px 32px; }
  .ha-demo-head { gap: 18px 28px; grid-template-columns: 1.1fr 1fr; }
  .ha-demo-title { font-size: 36px; }
  .ha-demo-head .ha-lead { font-size: 16px; line-height: 24px; }
  .ha-scenario-grid { gap: 40px 32px; }
}
@media (max-width: 699.98px) and (min-width: 600px) {
  .ha-intro { --ha-hero-width: 240px; padding-inline: 24px; }
  .ha-title { font-size: 38px; }
  .ha-heading { gap: 18px 22px; }
  .ha-composition { gap: 24px 22px; }
  .ha-benefit::after { display: none; }
  .ha-benefit-number { margin-bottom: 7px; }
  .ha-benefit-title { font-size: 17px; line-height: 23px; }
  .ha-benefit-copy { font-size: 14px; line-height: 21px; }
  .ha-switcher-inner { padding-right: 8px; }
  .ha-demo-head { grid-template-columns: 1fr; }
  .ha-demo-head .ha-lead { justify-self: start; max-width: 38ch; }
  .ha-scenarios { padding-inline: 24px; }
  .ha-scenario-grid { gap: 36px 24px; }
  .ha-caption-title { font-size: 18px; line-height: 24px; }
  .ha-caption-copy { font-size: 15px; line-height: 22px; }
  .ha-actions { align-items: flex-start; flex-direction: column; gap: 0; margin-top: 10px; }
  .ha-device-card--hero .ha-actions { flex-direction: row; }
  .ha-reset, .ha-open { padding-block: 8px; }
}
@media (max-width: 599.98px) {
  .ha { margin-top: 24px; border-radius: 16px 16px 0 0; }
  .ha-intro { padding: 30px 20px 22px; }
  .ha-heading { display: block; align-self: stretch; }
  .ha-eyebrow { font-size: 12px; line-height: 18px; }
  .ha-title { margin: 0; font-size: 40px; line-height: 1.07; max-width: 13ch; }
  .ha-heading .ha-lead { margin-top: 20px; font-size: 17px; line-height: 25px; }
  .ha-composition { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 18px; }
  .ha-device-card--hero { width: 100%; max-width: 393px; margin: 30px auto 0; }
  .ha-benefits { display: block; height: auto; }
  .ha-phone-wrap { aspect-ratio: 393 / 798; }
  .ha-phone { position: absolute; width: 100%; height: 100%; padding: 0; border-radius: 12px; background: transparent; box-shadow: none; transform: none; }
  .ha-screen { width: 100%; height: 100%; border-radius: 12px; clip-path: inset(0 round 12px); }
  .ha-status, .ha-island, .ha-homebar { display: none; }
  .ha-frame { top: 0; width: 100%; height: 100%; }
  .ha-loading { inset: 0; padding: 32px 24px; font-size: 16px; line-height: 24px; }
  .ha-device-card--hero .ha-caption { margin-top: 14px; }
  .ha-device-card--hero .ha-actions { flex-direction: row; gap: 24px; }
  .ha-benefit { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; width: 100%; max-width: none; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--ha-line); }
  .ha-benefit::after { display: none; }
  .ha-benefit-number { grid-column: 1; grid-row: 1 / span 2; margin: 3px 0 0; }
  .ha-benefit-title { grid-column: 2; max-width: 26ch; font-size: 19px; line-height: 25px; }
  .ha-benefit-copy { grid-column: 2; font-size: 16px; line-height: 24px; }
  .ha-switcher { top: calc(var(--hdr-h, 68px) + 8px); max-width: calc(100% - 24px); width: max-content; margin-top: 10px; }
  .ha-switcher-inner { gap: 0; padding: 6px; border-radius: 28px; }
  .ha-choices { gap: 6px; }
  .ha-choice { min-height: 48px; padding: 9px 13px; gap: 6px; font-size: 12px; line-height: 18px; }
  .ha-bank-trigger { width: 154px; padding: 0; gap: 0; }
  .ha-bank-open, .ha-bank-toggle { min-height: 48px; }
  .ha-bank-open { padding-left: 12px; }
  .ha-bank-toggle { flex-basis: 48px; width: 48px; margin: 0; padding: 0; }
  .ha-bank-toggle::before { width: 40px; height: 40px; }
  .ha-coming { gap: 0; }
  .ha-coming span { font-size: 9px; line-height: 12px; }
  .ha-bank-menu { top: calc(100% + 12px); left: -4px; min-width: 210px; }
  .ha-bank-menu .ha-choice { min-height: 46px; padding-inline: 14px; font-size: 14px; }
  .ha-scenarios { padding: 52px 20px 26px; }
  .ha-demo-head { display: block; }
  .ha-demo-title { max-width: 19ch; margin-top: 18px; font-size: 33px; line-height: 1.1; }
  .ha-demo-head .ha-lead { max-width: 32ch; margin-top: 20px; font-size: 17px; line-height: 25px; }
  .ha-scenario-grid { display: flex; gap: 20px; max-width: none; margin: 34px -20px 0; padding: 0 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: thin; scrollbar-color: var(--ha-line) transparent; }
  .ha-scenario { flex: 0 0 min(82vw, 340px); min-width: 0; scroll-snap-align: start; }
  .ha-scenario:nth-child(even) { padding-top: 0; }
  .ha-caption { margin-top: 20px; }
  .ha-caption-title { font-size: 20px; line-height: 26px; max-width: 24ch; }
  .ha-caption-copy { min-height: 48px; font-size: 16px; line-height: 24px; }
  .ha-actions { align-items: center; flex-direction: row; margin-top: 12px; }
  .ha-reset, .ha-open { font-size: 13px; line-height: 19px; }
  .ha-note { max-width: 34ch; margin-top: 30px; font-size: 12px; line-height: 20px; }
  .ha-note > span { margin-inline: 6px; }
  .ha-toast { max-width: calc(100vw - 32px); width: calc(100vw - 32px); bottom: 88px; }
  .ha noscript .ha-note { padding: 0 20px 26px; }
}
@media (max-width: 359.98px) {
  .ha-intro, .ha-scenarios { padding-inline: 16px; }
  .ha-title { font-size: 36px; }
  .ha-choice { padding-inline: 8px; }
  .ha-bank-trigger { width: 132px; padding: 0; gap: 0; }
  .ha-bank-open { padding-left: 8px; }
  .ha-switcher { max-width: calc(100% - 16px); }
  .ha-scenario-grid { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .ha-scenario { flex-basis: 85vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-choice { transition-duration: 1ms; }
  .ha-scenario-grid { scroll-behavior: auto; scroll-snap-type: none; }
}
@media (forced-colors: active) {
  .ha-phone, .ha-screen, .ha-switcher-inner, .ha-bank-menu { outline: 1px solid CanvasText; }
  .ha-choice[aria-pressed="true"], .ha-bank-trigger[data-active] { outline: 2px solid Highlight; }
  .ha-benefit::after { background: CanvasText; }
}
