/* Homepage composition. Theme and reusable components are shared. */
#products .metadata--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#products .card-grid--two > #csa .card__body > .csa-product-links,
#products .card-grid--two > #vision-selfcheck .card__body > .selfcheck-sites__label {
  margin-top: auto;
}

@media (max-width: 32rem) {
  #products .metadata--columns {
    grid-template-columns: 1fr;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--space-7);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, calc(75vw - var(--gutter))) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: var(--leading-section);
  letter-spacing: var(--tracking-body);
}

html:lang(en) .hero__closing .title-reveal-segment--base {
  margin-inline-end: 0.25em;
}

@media (min-width: 50rem) and (max-width: 100rem) {
  html:lang(en) .hero__closing .title-reveal-segment--accent {
    display: block;
    width: fit-content;
  }
}

.hero__closing .title-reveal-segment {
  white-space: nowrap;
}

.hero__closing {
  display: inline;
}

html:lang(ja) .hero__closing {
  white-space: nowrap;
}

.hero h1 .accent {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.hero__lede {
  max-width: 65ch;
  margin-top: var(--space-3);
  color: var(--color-muted);
  text-wrap: pretty;
}

html:lang(ja) .hero__lede {
  max-width: 32em;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: rgb(255 255 255 / 45%);
}

.hero__proof {
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.hero__proof-heading {
  margin-bottom: var(--space-2);
}

.hero__proof-heading h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: var(--leading-title);
}

.hero__stats > div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-width: 0;
  padding: clamp(0.5rem, 2vw, 1.25rem);
}

.hero__stats > div + div {
  border-left: 1px solid var(--color-line);
}

.hero__stats dt {
  color: var(--color-muted);
  font-size: 0.6875rem;
}

.hero__stats .hero__stat-number {
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--text-stat-light);
  line-height: 1;
  font-weight: var(--weight-light);
}

.hero__stat-count {
  display: inline-block;
  min-width: 3.15ch;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero__stats .hero__stat-number small {
  margin-left: 0.2rem;
  color: var(--color-accent-text);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
}

.hero__stats .hero__stat-note {
  display: block;
  max-width: 40ch;
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.hero__visual {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 55vw;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 100%),
    linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(236 244 252 / 85%), rgb(236 244 252 / 52%) 30%, rgb(236 244 252 / 10%) 72%, transparent);
  content: "";
  pointer-events: none;
}

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 52%;
}

.hero__rays {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero .intro-background__rays {
  opacity: 0.55;
}

.hero__proof,
.hero .news-highlight {
  position: relative;
  z-index: 2;
}

.hero__below {
  background: var(--background-section-white);
}

.news-highlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-line);
}

.news-highlight > h2 {
  color: var(--color-accent-text);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.news-highlight__items {
  min-width: 0;
  align-self: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-small);
}

.news-highlight__items > li {
  min-width: 0;
}

.news-highlight__items > li + li {
  border-top: 1px solid var(--color-line);
}

.news-highlight__items a {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  min-width: 0;
  align-items: start;
  gap: var(--space-1);
  padding-block: var(--space-1);
  font-size: var(--text-small);
}

.news-highlight__date {
  white-space: nowrap;
}

.news-highlight__date { color: var(--color-muted); font-family: var(--font-display); font-size: var(--text-label); }
.news-highlight__title { min-width: 0; overflow-wrap: anywhere; }

.news-highlight time {
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: var(--text-label);
}

.news-highlight .text-link {
  align-self: center;
  flex-shrink: 0;
  font-size: var(--text-small);
}

.home-news-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-3);
}

.home-news-spinner {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: home-news-spin 0.8s linear infinite;
}

@keyframes home-news-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-news-spinner { animation: none; }
}

@media (max-width: 63.999rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: start;
  }

  .hero__copy {
    max-width: 44rem;
  }

  .hero__visual {
    top: 0;
    bottom: 0;
    width: 78vw;
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 100%),
      linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
    mask-composite: intersect;
  }

  .hero__photo {
    object-position: 67% 58%;
  }

  .hero__visual::after {
    background: linear-gradient(to right, rgb(236 244 252 / 98%), rgb(236 244 252 / 80%) 32%, rgb(236 244 252 / 28%) 74%, transparent);
  }

}

@media (min-width: 48rem) and (max-width: 63.999rem) {
  .hero__copy {
    max-width: 54%;
  }
}

@media (max-width: 47.999rem) {
  .hero__visual {
    width: 100%;
    mask-image: linear-gradient(to right, transparent 4%, #000 50%, #000 100%),
      linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  }

  .hero__photo {
    object-position: 70% 64%;
  }

  .hero__visual::after {
    background: linear-gradient(to right, rgb(236 244 252 / 99%), rgb(236 244 252 / 88%) 48%, rgb(236 244 252 / 36%) 78%, rgb(236 244 252 / 8%));
  }
}

@media (min-width: 58.01rem) and (max-width: 64rem) {
  .hero {
    padding-top: var(--space-5);
  }

  .hero h1 {
    font-size: clamp(2rem, 3.9vw, 2.5rem);
  }
}

@media (max-width: 48rem) {
  .hero {
    padding-top: var(--space-5);
  }

  .hero__stats {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
  }

  .hero__stats > div {
    grid-template-rows: auto auto auto;
  }

  .hero__stats > div + div {
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .hero__stats > div {
    padding: var(--space-1);
  }

  .hero__stats .hero__stat-number {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero__stats .hero__stat-number small {
    font-size: 0.75rem;
  }

  .hero__stats .hero__stat-note {
    max-width: none;
  }

  .news-highlight {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-2);
  }

  .news-highlight__items {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .news-highlight__items a {
    grid-template-columns: 5.25rem minmax(0, 1fr) auto;
  }

  .news-highlight__items .news-new-badge {
    font-size: .625rem;
  }

  .news-highlight .text-link {
    justify-self: end;
  }
}

@media (max-width: 22rem) {
  .hero__closing .title-reveal-segment {
    white-space: normal;
  }
}

/* Homepage-specific compositions use shared cards and controls. */
#about .card__number {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

#appstore .platform {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy graphic" "features graphic";
  align-items: center;
  gap: var(--space-5);
}

#appstore .platform__copy { grid-area: copy; }
#appstore .mmpf-graphic { grid-area: graphic; width: min(100%, 35rem); max-width: none; margin: 0 auto; }
#appstore .platform__features { grid-area: features; display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
#appstore .platform__features li { display: flex; align-items: center; gap: .75rem; color: var(--color-ink); font-size: var(--text-detail); line-height: 1.5; }
#appstore .platform__feature-icon { display: grid; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; place-items: center; border-radius: 50%; background: var(--color-tint); color: var(--color-accent-text); font-size: .875rem; font-weight: var(--weight-bold); }

#appstore .platform__actions { margin-top: var(--space-4); }
#appstore .platform__actions .actions { align-items: stretch; justify-content: center; margin-top: 0; }
#appstore .platform__actions .actions > .button { flex: 0 1 21rem; width: min(100%, 21rem); min-height: 4rem; }
#appstore .platform__actions .button--outline .button__arrow { border-color: var(--color-line); }
#appstore .platform__actions .section-explore { margin-top: var(--space-3); }

@media (max-width: 56rem) {
  #appstore .platform {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "graphic" "features";
    gap: var(--space-4);
  }
  #appstore .mmpf-graphic { width: 100%; }
}

@media (max-width: 48rem) {
  #appstore .platform__actions .actions { align-items: center; flex-direction: column; }
  #appstore .platform__actions .actions > .button { flex: 0 1 auto; width: min(100%, 24rem); }

  html:lang(ja) .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.75rem);
  }

  html:has(.section-nav--no-breadcrumbs) {
    --section-nav-height: 3.5rem;
  }
}
.measurement-example {
  position: relative;
  width: min(12rem, 100%);
  margin-inline: auto;
}

.card__figure .measurement-example img {
  display: block;
  width: 100%;
  height: auto;
}

.measurement-example__prompt {
  position: absolute;
  top: 49.5%;
  left: 7%;
  width: 86%;
  transform: translateY(-50%);
  color: #4d4d4d;
  font-family: var(--font-body);
  font-size: .55rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
