/* Home page.

   The hero is the working calculator rather than a picture of one. Someone who
   arrives from a search for "heat index" gets an answer in the first screen and
   the product afterwards, which is the right order: the site earns the app, not
   the other way round. */

.home {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The hero.

   This is a promo site for an iPhone app, so the app is the first thing: icon,
   name, what it does, and a way to install it. The calculator that used to be
   here now sits directly underneath as proof the numbers are real. */
.hero-app {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding: clamp(36px, 6vw, 76px) 0 0;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-app {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 34rem;
}

.hero-app h1 {
  font-size: clamp(2.25rem, 1.25rem + 3.6vw, 3.5rem);
  letter-spacing: -0.032em;
  max-width: 18ch;
  text-wrap: balance;
  margin: 0;
}

html[lang="ja"] .hero-app h1 {
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);
  max-width: 17ch;
}

.hero-subtitle {
  font-size: 1.1875rem;
  font-weight: 560;
  color: var(--accent);
  letter-spacing: -0.012em;
  margin-top: -8px;
}

.hero-app .lede {
  margin: 0;
  max-width: 46ch;
}

/* Four claims, each on its own line with a rule above it. Not four cards: they
   are a list of facts, and the page already has one raised surface. */
.hero-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 34rem;
}

.hero-points {
  gap: 9px;
}

.hero-points li {
  padding: 0 0 0 22px;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 26px;
  margin-top: 6px;
}

.app-store-button-large {
  padding: 15px 26px 15px 20px;
}

.app-store-button-large svg {
  width: 28px;
  height: 28px;
}

.app-store-button-large span {
  font-size: 1.1875rem;
}

.app-store-button-large small {
  font-size: 0.75rem;
}

/* The QR is for someone at a desk. On a phone it points at the device already in
   their hand, so it is not shown there. */
.hero-qr {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 900px) {
  .hero-qr {
    display: flex;
  }
}

.hero-qr-code {
  width: 92px;
  height: 92px;
  flex: none;
  /* The quiet zone is part of the symbol, not decoration: without it the code
     scans unreliably. */
  padding: 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: #fff;
  color: #000;
}

.hero-qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-qr p {
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 15ch;
  line-height: 1.4;
  text-wrap: balance;
}

.hero-note,
.hero-meta {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.hero-meta {
  padding-top: 4px;
}

/* The screenshot is the product. Full bleed on the device edge, no perspective
   trickery, no floating glass — the app looks like this. */
.hero-shot {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.hero-shot img {
  width: 100%;
  border-radius: clamp(24px, 4vw, 38px);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 12px rgba(23, 20, 15, 0.08), 0 40px 80px -40px rgba(23, 20, 15, 0.55);
}

.hero-instrument {
  margin-top: clamp(24px, 3vw, 36px);
}

/* The gauge column is as tall as its gauge; stretching it left a long empty
   panel beside a full one. */
.hero-instrument .instrument:has(.gauge) {
  align-items: center;
}

/* A section: heading, optional lede, then whatever the section is. */
.home section {
  padding-top: var(--gap-section);
}

.home section > h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  max-width: 28ch;
}

.home section > p {
  margin-top: 16px;
  color: var(--ink-2);
  max-width: 58ch;
}

html[lang="ja"] .home section > p {
  max-width: 44ch;
}

/* --------------------------------------------------------------- metrics */

/* Four metrics, not four equal cards: the first is the anchor and is allowed to
   be wider on a large screen, which stops this reading as a generic feature
   grid. */
.metric-list {
  list-style: none;
  margin: var(--gap-panel) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .metric-list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* The anchor metric and the closing one take the full width, so the four
     items read as 1 / 2 / 1 rather than leaving a hole in the last row. */
  .metric-list > li:first-child,
  .metric-list > li:last-child {
    grid-column: span 2;
  }
}

.metric-list li {
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: grid;
  gap: 8px;
  align-content: start;
}

.metric-list h3 {
  font-size: 1.0625rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-list p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* A standalone link on its own line, so WCAG 2.5.8's 24px target minimum
   applies — the inline-in-a-sentence exemption does not cover it. */
.metric-list a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ------------------------------------------------------------ screenshots */

/* Real app screenshots at their real aspect ratio. No perspective tricks, no
   floating glass — the app looks like this. */
.screens {
  margin-top: var(--gap-panel);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: start;
}

.screens figure {
  margin: 0;
  display: grid;
  gap: 12px;
}

.screens img {
  width: 100%;
  border-radius: clamp(18px, 3vw, 30px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-raised);
  background: var(--surface);
}

.screens figcaption {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- honesty */

/* The section that says what the product does not do. Bordered, quiet, and
   deliberately not styled like a feature. */
.limits {
  margin-top: var(--gap-section);
  padding-top: 26px;
  border-top: 2px solid var(--ink);
  max-width: 52rem;
}

.limits h3 {
  font-size: 1.125rem;
  letter-spacing: -0.018em;
}

.limits ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.limits li {
  color: var(--ink-2);
  font-size: 0.9375rem;
  padding-left: 20px;
  position: relative;
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1.5px;
  background: var(--ink-3);
}

.limits strong {
  color: var(--ink);
}

/* ------------------------------------------------------------------ close */

.home .product-cta {
  margin-bottom: 0;
}
