/* Mushroom marketing components: the section and card vocabulary shared by index.html
   and features.html. Page-only CSS (hero, chat mock, skins strip, pay cards, margin pets)
   stays in the page that uses it.

   Needs tokens.css loaded first. Never hardcode a hex value here.
   Mirror note: the same component language exists in ds/src/styles.css for
   claude.ai/design. Change one, port to the other. See .design-sync/NOTES.md. */

/* ---- generic section ---- */
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.band { background: var(--bg2); border-block: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--red); margin: 0 0 .8rem;
}
.eyebrow::before { content: "+"; font-size: 1.15em; font-weight: 700; line-height: 1; opacity: .85; }
.lede { color: var(--ink2); max-width: 40rem; margin: .9rem 0 0; font-size: 1.05rem; }

/* Wide container for the marketing pages. legal.css ships a narrower .wrap for the
   text-heavy legal pages, so features.html opts in with class="wrap wrap--wide". */
.wrap--wide { width: min(100% - 2.5rem, 62rem); }

/* ---- reminder cards ---- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); grid-auto-rows: 1fr; margin-top: 2.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--red) 22%, var(--line)); }
.card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink2); font-size: .95rem; }
.ico {
  font-size: 1.5rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; margin-bottom: 1rem;
  background: var(--tint); border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--red) 12%, var(--line));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--spot) 25%, transparent);
}

/* ---- nudge strip: the five wellness reminders, no boxes, sized to their own text ---- */
/* five is prime, so auto-fit orphans the last one at any column count but 5. Pin it instead. */
.nudges {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 1.2rem; margin-top: 2.5rem; text-align: center;
}
.nudges .nudge:last-child { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  .nudges { grid-template-columns: repeat(5, 1fr); }
  .nudges .nudge:last-child { grid-column: auto; }
}
.nudge .ico { margin: 0 auto .7rem; }
.nudge h3 { font-size: 1rem; margin-bottom: .3rem; }
.nudge p { margin: 0; color: var(--ink2); font-size: .88rem; }

/* ---- bento: a few features get a wide tile, the rest a compact row ---- */
/* min() clamps the track floor to the container, or 24rem overflows a 375px viewport */
.grid--bento { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }
.card--hero { padding: 1.8rem; position: relative; overflow: hidden; }
.card--hero .ico { width: 3.4rem; height: 3.4rem; font-size: 1.8rem; }
.card--hero h3 { font-size: 1.35rem; }
.card--hero p { font-size: 1rem; }
/* ponytail: emoji watermark instead of a screenshot, there are no app screenshots in assets/ */
.card--hero::after {
  content: attr(data-glyph); position: absolute; right: -.5rem; bottom: -1.4rem;
  font-size: 7rem; line-height: 1; opacity: .07; pointer-events: none;
}

.grid--compact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 1.8rem; margin-top: 1.4rem;
}
.compact {
  display: grid; grid-template-columns: 1.5rem 1fr; gap: .1rem .7rem;
  padding: .8rem 0; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.compact .g { grid-row: span 2; font-size: 1.15rem; line-height: 1.3; }
.compact h3 { font-size: .97rem; margin: 0; }
.compact p { margin: 0; color: var(--ink2); font-size: .88rem; }

/* ---- scroll reveal. Only hides once JS arms it, so no-JS shows everything. ---- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise, .rise { opacity: 1; transform: none; }
  .shroom { background-position: 0 0; }
}
