/* The website's pastel fluted-glass textures (functionalps.ch
   public/images/general/textures/tex-*.webp) behind the feature cards and the
   AI coach visual, under a light navy veil (lightened 2026-10-02) like the members card's (Thomas,
   2026-10-02), so the cards' white text keeps its contrast. */

/* the veil, painted over every texture */
.card--tex .card__bg::after,
.card--tex-dark .card__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 27, 50, .4) 0%, rgba(8, 27, 50, .27) 55%, rgba(8, 27, 50, .16) 100%);
}
/* the AI visual's children are absolutely placed above its image, so its
   veil is a filter on the image itself rather than an overlay */
.ai__visual .ai__bg { filter: brightness(.8) saturate(1.05); }

/* headings and text back to white on the veiled textures */
.card--tex .fcard__top h3 { color: #fff; }
.card--tex .fcard__top p,
.fcard--streak.card--tex .fcard__top p { color: rgba(245, 240, 232, .82); }

/* Trends: the chart sits in flow, so it is lifted above the texture */
.fcard--streak .fcard__streak { position: relative; z-index: 1; }

/* Daily check-in: the edge fades were painted in forest green over the rows;
   on the texture they become a transparent mask instead */
.card--tex-dark .remind__overlay { display: none; }
.card--tex-dark .remind__rows {
  -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 50%, #000 35%, transparent 100%);
}
