/* ═══════════════════════════════════════════════════════════════════════
   features.css — /features hub and /features/<slug> pages. 2026-11-15.
   Rides on tokens.css + main.css + guides.css + free-tools.css. Every colour
   is a token, so Sandstone (default) and Obsidian (dark) both work.
   Clickable cards are NOT .dim-card: main.js tilts .dim-card under the
   pointer, and a tilt between mouse-down and mouse-up loses the click.
   ═══════════════════════════════════════════════════════════════════════ */

.fx-page img { max-width: 100%; height: auto; }

/* ── Hero: copy left, screenshot right ── */
.fx-hero { padding-bottom: clamp(28px, 4vw, 56px); }
.fx-hero__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 10px; }
.fx-hero__grid > * { min-width: 0; }
@media (min-width: 960px) { .fx-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.fx-hero__copy { text-align: left; }
.fx-eyebrow { justify-content: flex-start; }
.fx-h1 { font-size: clamp(2rem, 1.25rem + 2.9vw, 3.2rem); margin: 14px 0 16px; overflow-wrap: anywhere; }
.fx-lead { font-size: var(--text-lg); color: var(--ink-body); line-height: 1.65; max-width: 620px; }
.fx-lead p { margin: 0 0 22px; }
.fx-lead strong { color: var(--ink); }
.fx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .fx-hero__cta .dim-btn { width: 100%; } }

.fx-badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px;
  font: 800 var(--text-xs)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
}
.fx-badge--lg { display: flex; width: max-content; max-width: 100%; margin: 14px 0 0; min-height: 30px; font-size: .8rem; }

/* ── Screenshots ── */
.fx-shot { margin: 0; }
.fx-shot a { display: block; border-radius: var(--r-md); }
.fx-shot a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.fx-shot img {
  display: block; width: 100%; height: auto; background: var(--bg-raise);
  border: 1px solid var(--line-hi); border-radius: var(--r-md); box-shadow: var(--shadow-pane);
}
.fx-shot figcaption { margin-top: 10px; font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.55; text-align: center; }
.fx-shot--hero img { max-height: 560px; object-fit: contain; object-position: top center; }
.fx-shots { display: grid; gap: clamp(20px, 3vw, 36px); }
.fx-shots > * { min-width: 0; }
@media (min-width: 900px) { .fx-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.fx-shots--one { max-width: 920px; margin: 0 auto; }
@media (min-width: 900px) { .fx-shots--one { grid-template-columns: minmax(0, 1fr); } }

/* ── Sections ── */
.fx-sec { padding-top: clamp(28px, 4vw, 52px); padding-bottom: clamp(28px, 4vw, 52px); }
.fx-sec .dim-h2 { margin-top: 0; }

.fx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .fx-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fx-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fx-point { padding: 20px 22px; }
.fx-point h3 { font: 700 1.02rem/1.35 var(--font-display); margin: 0 0 6px; letter-spacing: -.01em; }
.fx-point p { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.65; }

.fx-prose h3 { font: 700 1.1rem/1.35 var(--font-display); margin: 1.4em 0 .4em; color: var(--ink); }
.fx-prose h3:first-of-type { margin-top: .4em; }
.fx-cols { columns: 2 220px; column-gap: 32px; }
.fx-cols li { break-inside: avoid; }

.fx-steps { list-style: none; counter-reset: fx; margin: 0; padding: 0; display: grid; gap: 14px; }
.fx-steps li {
  counter-increment: fx; position: relative; padding: 18px 20px 18px 66px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.fx-steps li::before {
  content: counter(fx); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .95rem/1 var(--font-body);
  color: var(--brand-ink); background: var(--brand);
}
.fx-steps h3 { font: 700 1.02rem/1.35 var(--font-display); margin: 4px 0 6px; }
.fx-steps p { margin: 0; color: var(--ink-body); line-height: 1.7; font-size: var(--text-md); }
.fx-steps strong { color: var(--ink); }

.fx-notes {
  padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--teal) 7%, var(--bg-raise)); border: 1px solid color-mix(in srgb, var(--teal) 28%, transparent);
}
.fx-notes__h { font: 700 1.15rem/1.3 var(--font-display); margin: 0 0 8px; color: var(--ink); }
.fx-notes p { margin: 0 0 .8em; color: var(--ink-body); line-height: 1.7; }
.fx-notes p:last-child { margin-bottom: 0; }
.fx-notes strong { color: var(--ink); }

/* ── Check design gallery ── */
.fx-gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: clamp(18px, 2.5vw, 28px); }
.fx-gallery > li { min-width: 0; }
@media (min-width: 760px) { .fx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fx-shot--check img { border-radius: 6px; }

/* ── Feature cards (hub + related) ── */
.fx-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fx-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(60, 40, 20, .06);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease;
}
.fx-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.fx-card:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.fx-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raise); border-bottom: 1px solid var(--line); }
.fx-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fx-card__body { display: grid; gap: 6px; padding: 16px 18px 20px; align-content: start; }
.fx-card__h { font: 700 1.02rem/1.35 var(--font-display); margin: 0; letter-spacing: -.01em; }
.fx-card__h a { color: var(--ink); text-decoration: none; }
.fx-card__h a:focus-visible { outline: none; }
.fx-card__h a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.fx-card:hover .fx-card__h a { color: var(--brand); }
.fx-card__p { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.55; }
.fx-card .fx-badge { justify-self: start; }

/* ── Hub ── */
.fx-hub-hero { padding-bottom: clamp(16px, 3vw, 32px); }
.fx-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.fx-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-hi); background: var(--bg-card); color: var(--ink); text-decoration: none;
  font: 600 var(--text-sm)/1 var(--font-body);
}
.fx-jump a:hover { border-color: var(--brand); color: var(--brand); }
.fx-group { scroll-margin-top: 90px; }
.fx-group__head { display: grid; gap: 4px; margin-bottom: 20px; }
.fx-group__head p { margin: 0; color: var(--ink-muted); }
.fx-also a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.fx-prose a, .fx-lead a, .fx-notes a, .fx-steps a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
