/* The Features page (/features/): the Trust guide's layout, in the site's
   own colours, light and dark. Every class starts feat- so none can clash
   with site.css. No script. */
.feat-page {
  --feat-hero: #e9eec7;
  --feat-hero-fg: #1b2440;
  --feat-icon: #24453c;
  padding-top: 24px;
  padding-bottom: 40px;
}
@media (prefers-color-scheme: dark) {
  .feat-page { --feat-hero: #2a3320; --feat-hero-fg: #f4efe6; --feat-icon: #c9e23f; }
}

/* ---------- hero ---------- */
.feat-hero { background: var(--feat-hero); color: var(--feat-hero-fg); border-radius: 22px; padding: clamp(28px, 5vw, 64px); text-align: center; }
.feat-eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.feat-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: 0 0 18px; }
.feat-lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; max-width: 34em; margin: 0 auto 26px; }
.feat-hero .store-note { color: inherit; opacity: .8; }

/* ---------- on this page ---------- */
.feat-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 6px; font-family: var(--serif); font-size: 1.08rem; }
.feat-nav a { text-decoration: none; padding: 10px 0; }
.feat-nav a:hover { text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; }

/* ---------- each part: its title on the left, the cards on the right ---------- */
.feat-row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.feat-nav + .feat-row { border-top: 0; }
.feat-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.feat-side p { margin: 0; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feat-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat-card svg { display: block; width: 28px; height: 28px; margin: 0 0 12px; fill: none; stroke: var(--feat-icon); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.2rem; margin: 0 0 6px; }
.feat-card p { margin: 0; color: var(--muted); }
.feat-planned { border-style: dashed; border-color: #8b93a8; }
/* Which plan a feature comes with: "Free, limited" in green; "Pro" keeps the site's violet .pill. */
.feat-free { background: #e2edcf; color: #2c4a13; }
@media (prefers-color-scheme: dark) { .feat-free { background: #2f3d1f; color: #d9ef9f; } }
.feat-note { margin: 16px 0 0; }

/* ---------- plans ---------- */
.feat-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feat-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat-plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.5rem; margin: 0 0 10px; }
.feat-plan ul { margin: 0 0 10px; }
.feat-plan > :last-child { margin-bottom: 0; }

.feat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 20px; margin: 8px 0 0; }

@media (max-width: 760px) {
  .feat-row { grid-template-columns: 1fr; padding: 32px 0; }
}
