/* Lumea website: home page only (the app cards, introduction, promises). */

/* ---------- How it works: link to the app's full steps ---------- */

.how-more {
  max-width: none;
  margin: 2.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.how-more a::after {
  content: " →";
}

/* ---------- Introduction ---------- */

/* The introduction below the divider: centered, like an exhibition's
   opening wall text. */
.intro .section-head {
  max-width: 44rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.intro .section-head p {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  text-wrap: pretty;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-soft);
}

/* ---------- Home: one showcase per app (a phone in front of its own backdrop) ---------- */

/* One card per app. With one app it's centered; more apps sit side by side. */
.showcases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 2.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding-top: clamp(1rem, 3vw, 2rem);
}

/* Each app is a bordered card: picture, name, line and App Store button. */
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.75rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--wall-lit), var(--wall) 70%);
  text-align: center;
  transition: border-color 200ms ease;
}

.app-card:has(a:hover) {
  border-color: rgba(201, 169, 106, 0.45);
}

.showcase-image {
  display: block;
  align-self: stretch;
  text-decoration: none;
  color: inherit;
}

.app-card:has(a:hover) .phone,
.app-card:has(a:focus-visible) .phone {
  transform: translateX(-50%) translateY(-6px);
}

/* App icon beside the app's name. */
.showcase-name {
  margin-top: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.showcase-title {
  margin: 0;
  text-align: left;
  font-size: clamp(1.55rem, 6.4vw, 2.75rem);
  line-height: 1.1;
}

.showcase-sub {
  margin: 0.6rem auto 0;
  color: var(--text-muted);
}

.store {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

/* Placeholder until the app is live. Replace with Apple's official
   "Download on the App Store" badge (developer.apple.com/app-store/marketing/guidelines). */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 10rem;
  height: 3.25rem;
  padding: 0 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}

.store-badge small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.store-badge strong {
  font-weight: 600;
  font-size: 1.05rem;
}

.store-badge[aria-disabled="true"] {
  border-style: dashed;
}

.showcase-name:hover .showcase-title,
.showcase-name:focus-visible .showcase-title {
  color: var(--accent);
}

.showcase-title {
  transition: color 200ms ease;
}

/* ---------- Promises layout ---------- */

/* Home promises: three across from tablets up, one column on phones,
   never two plus one. */
.promises:not(.feature-cards) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 47.99rem) {
  .promises:not(.feature-cards) {
    grid-template-columns: minmax(0, 1fr);
  }
}
