/* Targeted improvements to the published landing page. Shared pages keep styles.css. */
.landing {
  --accent-dark: #b92d49;
}

.landing :is(h1, h2, h3, p, li, a, dt, strong) {
  overflow-wrap: anywhere;
}

.landing :is(a, summary):focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 4px;
}

.landing .skip-link {
  max-width: calc(100% - 24px);
}

.landing .hero {
  padding-top: 72px;
  gap: 48px;
}

.landing h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 5.8vw, 4.8rem);
  line-height: 1.04;
}

.landing h2 {
  max-width: 23ch;
}

.landing .hero-text {
  line-height: 1.65;
}

.landing .hero-photo {
  height: auto;
}

.landing .button {
  padding-block: 14px;
  text-align: center;
}

.landing .button-primary {
  background: #d93653;
}

.landing .button-primary:hover {
  background: var(--accent-dark);
}

.landing .launch-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.landing .hero-points {
  margin-top: 24px;
}

.landing .hero-points li {
  line-height: 1.5;
}

.landing .cost-story-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.94fr) minmax(0, 1fr);
}

.landing .cost-breakdown {
  min-width: 0;
  padding: 24px;
}

.landing .cost-breakdown dl > div {
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 6px;
}

.landing .cost-breakdown dd {
  white-space: nowrap;
}

.landing .cost-breakdown .profit-total {
  margin-top: 4px;
  border-bottom: 0;
  color: var(--text);
}

.landing .profit-total dd {
  color: var(--accent-dark);
}

.landing .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing .feature-card {
  min-width: 0;
  min-height: 0;
  padding: 28px;
}

.landing .app-preview-card {
  grid-template-rows: auto auto 1fr auto;
}

.landing .app-preview {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 18px 0 0;
}

.landing .app-preview img {
  display: block;
  width: 288px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.landing .app-preview figcaption {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
}

.landing .availability-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.landing .availability-card {
  min-width: 0;
}

.landing .availability-card > span:last-child {
  min-width: 0;
}

.landing .store-icon img {
  width: 28px;
  height: 28px;
}

.landing .contact-address {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .landing .site-nav {
    gap: 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 980px) {
  .landing .site-header {
    position: relative;
    top: 0;
  }

  .landing .hero,
  .landing .cost-story-grid,
  .landing .availability-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing .hero {
    padding-top: 56px;
    gap: 36px;
  }

  .landing h1 {
    max-width: 19ch;
  }

  .landing .section {
    scroll-margin-top: 24px;
  }
}

@media (max-width: 680px) {
  .landing .site-nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  }

  .landing .hero {
    padding-top: 42px;
    gap: 30px;
  }

  .landing h1 {
    font-size: clamp(2.65rem, 11.5vw, 4.1rem);
  }

  .landing .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing .feature-card {
    padding: 24px;
  }

  .landing .hero-price-card,
  .landing .story-photo figcaption {
    position: static;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
  }

  .landing .hero-visual::after {
    display: none;
  }

  .landing .hero-photo {
    aspect-ratio: 4 / 3;
    height: auto;
    object-position: 57% center;
  }

  .landing .story-photo {
    aspect-ratio: auto;
  }

  .landing .story-photo img {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .landing .availability-card {
    flex-wrap: wrap;
  }
}
