/* /app/ — the page that sends a visitor to the apps (inc/app.php).
   Tokens only: this page follows the colour scheme like every other. */

.mdwa-app { max-width: 62rem; margin: 0 auto; }

.mdwa-app-open {
  padding: 8px 0 30px; border-bottom: 1px solid var(--mdwa-sage-line); margin-bottom: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 34px; align-items: center;
}
.mdwa-app-kicker {
  margin: 0 0 12px; font-size: var(--mdwa-size-13); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mdwa-teal);
}
.mdwa-app-open h1 { margin: 0 0 14px; font-size: var(--mdwa-size-44); line-height: 1.08; color: var(--mdwa-deep-water); }
.mdwa-app-lede { margin: 0 0 22px; max-width: 44rem; color: var(--mdwa-ink-2); font-size: var(--mdwa-size-20); line-height: 1.55; }
.mdwa-app-note { margin: 14px 0 0; color: var(--mdwa-ink-3); font-size: var(--mdwa-size-15); }

/* Three plain benefits, above the buttons. */
.mdwa-app-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.mdwa-app-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--mdwa-ink); font-size: var(--mdwa-size-17); }
.mdwa-app-points svg { flex: none; color: var(--mdwa-teal); margin-top: 2px; }

/* The phones ------------------------------------------------------------- */
.mdwa-shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; }
/* A soft wash so the phones sit on something, in whatever scheme is on. */
.mdwa-shots::before {
  content: ""; position: absolute; inset: -6% -4% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mdwa-teal) 16%, transparent), transparent 72%);
  z-index: 0;
}
.mdwa-shot { position: relative; z-index: 1; }
.mdwa-shot { margin: 0; flex: 0 1 34%; text-align: center; }
.mdwa-shot-phone {
  display: block; border-radius: 26px; overflow: hidden; background: var(--mdwa-deep-water);
  border: 5px solid var(--mdwa-deep-water); box-shadow: 0 18px 40px -18px rgba(9, 32, 45, .55);
}
.mdwa-shot img { display: block; width: 100%; height: auto; }
.mdwa-shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The middle phone leads; the outer two sit back and a little lower. */
.mdwa-shot--alerts { z-index: 2; flex-basis: 38%; transform: translateY(-10px); }
.mdwa-shot--today { margin-left: -6%; transform: translateY(14px) scale(.94); }
.mdwa-shot--reports { margin-right: -6%; order: -1; transform: translateY(14px) scale(.94); }
.mdwa-shot--today .mdwa-shot-phone, .mdwa-shot--reports .mdwa-shot-phone { opacity: .96; }
.mdwa-app-intro { margin: 0 0 30px; color: var(--mdwa-ink-2); max-width: 44rem; }

/* Store buttons ---------------------------------------------------------- */
.mdwa-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.mdwa-store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 11px 20px 11px 16px; border-radius: var(--mdwa-radius-button);
  background: var(--mdwa-deep-water); color: var(--mdwa-plate);
  border: 1px solid var(--mdwa-deep-water);
}
.mdwa-store:hover { background: var(--mdwa-teal); border-color: var(--mdwa-teal); }
.mdwa-store:focus-visible { outline: 3px solid var(--mdwa-teal); outline-offset: 3px; }
.mdwa-store-glyph { display: inline-flex; color: currentColor; }
.mdwa-store-text { display: flex; flex-direction: column; line-height: 1.15; }
.mdwa-store-text small { font-size: var(--mdwa-size-13); opacity: .82; }
.mdwa-store-text strong { font-size: var(--mdwa-size-17); font-weight: 700; }
.mdwa-stores--big .mdwa-store { padding: 14px 26px 14px 20px; }
.mdwa-stores--big .mdwa-store-text strong { font-size: var(--mdwa-size-20); }

/* What it does ----------------------------------------------------------- */
.mdwa-features { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mdwa-feature {
  display: flex; gap: 14px; background: var(--mdwa-plate); border-radius: var(--mdwa-radius-panel);
  padding: 18px 20px 20px;
}
.mdwa-feature-glyph { flex: none; color: var(--mdwa-teal); }
.mdwa-feature h3 { margin: 0 0 6px; font-size: var(--mdwa-size-20); color: var(--mdwa-deep-water); }
.mdwa-feature p { margin: 0; color: var(--mdwa-ink-2); font-size: var(--mdwa-size-15); line-height: 1.5; }

/* The two closing notes -------------------------------------------------- */
.mdwa-app-free, .mdwa-app-else { background: var(--mdwa-sage); border-radius: var(--mdwa-radius-panel); padding: 20px 22px; margin-bottom: 14px; }
.mdwa-app-free h2, .mdwa-app-else h2 { margin: 0 0 8px; font-size: var(--mdwa-size-20); color: var(--mdwa-deep-water); }
.mdwa-app-free p, .mdwa-app-else p { margin: 0; color: var(--mdwa-ink-2); max-width: 46rem; line-height: 1.55; }
.mdwa-app-else a { color: var(--mdwa-teal); font-weight: 600; }

@media (max-width: 980px) {
  .mdwa-app-open { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .mdwa-shots { order: -1; }
}

@media (max-width: 760px) {
  .mdwa-features { grid-template-columns: minmax(0, 1fr); }
  .mdwa-shot--today, .mdwa-shot--reports { transform: translateY(10px) scale(.92); }
  .mdwa-app-open h1 { font-size: var(--mdwa-size-32); }
  .mdwa-store { flex: 1 1 100%; justify-content: center; }
}

/* The foot of the homepage: keep the forecast by email, or by app ---------- */
.mdwa-keep { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.mdwa-keep .mdwa-email { height: 100%; }
@media (max-width: 900px) { .mdwa-keep { grid-template-columns: minmax(0, 1fr); } }

/* The homepage card (inc/app.php → mdwa_fg_app_card) ---------------------- */
.mdwa-appcard { background: var(--mdwa-plate); border-radius: var(--mdwa-radius-panel); padding: 24px; }
.mdwa-appcard h2 { margin: 0 0 6px; font-size: var(--mdwa-size-24); font-weight: 600; color: var(--mdwa-deep-water); }
.mdwa-appcard p { margin: 0 0 16px; color: var(--mdwa-ink-2); max-width: 40rem; }
.mdwa-appcard-more { margin: 14px 0 0 !important; }
.mdwa-appcard-more a { color: var(--mdwa-teal); font-weight: 600; }
