/* The feature pages (shopping list, chores, meal planner, family calendar):
   the opening sits beside a phone like the landing page, and the rest reads
   like an article. Loaded after article.css, whose tokens it uses. */

/* The landing page's phone shadow, which article.css has no token for. */
:root { --shadow: 0 14px 40px rgba(31, 43, 30, 0.14); }
@media (prefers-color-scheme: dark) { :root { --shadow: 0 14px 40px rgba(0, 0, 0, 0.5); } }

.fhero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center; padding-block: 3rem 1rem;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem;
}
.fhero .lead { max-width: 34rem; }
.fhero .note { font-size: 0.92rem; color: var(--muted); margin: 0.4rem 0 0; }

.phone {
  margin: 0; justify-self: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 30px; padding: 10px; width: min(300px, 100%); box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 21px; }

/* The other features, at the foot of each page */
.article .more {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem; list-style: none; padding: 0; margin: 1rem 0 0;
}
.article .more li { margin: 0; }
.more a {
  display: block; height: 100%; padding: 1rem 1.2rem; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--muted); font-size: 0.95rem; line-height: 1.5;
}
.more a:hover { border-color: var(--green); }
.more b {
  display: block; margin-bottom: 0.2rem; font-family: Fredoka, sans-serif;
  font-weight: 500; font-size: 1.15rem; color: var(--green-deep);
}

@media (max-width: 820px) {
  .fhero { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 2rem 0; }
  .phone { width: min(280px, 100%); }
}
/* Side by side the badges need 315px at article.css's size, more than a phone
   leaves; below 420px they shrink by an eighth, as on the invite page. */
@media (max-width: 420px) {
  .badge img { height: 56px; }
  .badge .apple { height: 37.6px; margin: 9.2px; }
  .get { padding: 1.5rem 1rem; }
}
