/* Feature detail pages (features/<slug>/). Sections: hero · module nav · what it does · how it works · at a glance · related · CTA. */
.fp-wrap { max-width: 1232px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .fp-wrap { padding: 0 32px; } }
@media (min-width: 1200px) { .fp-wrap { max-width: 1296px; padding: 0 48px; } }

.fp-media { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--ph-light); }

/* ---------- Hero ---------- */
.fp-hero { background: var(--ink); color: #fff; padding: 20px 0 48px; }
.fp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 20px; color: #a9aeb3; }
.fp-crumbs li + li::before { content: "/"; margin-right: 6px; color: #6b7176; }
.fp-crumbs a { color: #d4d7da; }
.fp-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.fp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 32px; }
.fp-title { margin-top: 12px; font-weight: 500; font-size: 40px; line-height: 48px; letter-spacing: var(--ls-display); }
.fp-lead { margin-top: 12px; max-width: 34em; font-size: 17px; line-height: 24px; color: #c3c7cb; }
.fp-hero .cta { margin-top: 28px; flex-wrap: wrap; }
.fp-hero .cta .btn { min-width: 160px; }
.fp-hero .fp-media { background: #2a3036; border: 1px solid #343a40; }
.fp-media--img { overflow: hidden; }
.fp-media--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .fp-hero { padding: 24px 0 72px; }
  .fp-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 40px; }
  .fp-title { font-size: 48px; line-height: 56px; }
  .fp-lead { font-size: 20px; line-height: 28px; letter-spacing: var(--ls-display-light); }
}
@media (min-width: 1200px) { .fp-title { font-size: 56px; line-height: 60px; } }

/* ---------- Module nav ---------- */
.fp-modules { position: sticky; top: var(--hdr-h); z-index: 400; background: var(--bg); border-bottom: 1px solid var(--line); }
.fp-modules ul { display: flex; gap: 4px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.fp-modules ul::-webkit-scrollbar { display: none; }
.fp-modules a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px;
  white-space: nowrap; font-weight: 500; font-size: 14px; color: var(--fg-2);
  transition: background-color .2s, color .2s;
}
.fp-modules a:hover { background: var(--surface); color: var(--fg); }
.fp-modules a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.fp-sec { padding: 56px 0; }
.fp-sec--alt { background: var(--surface); }
.fp-head { max-width: 720px; }
.fp-h2 { font-weight: 500; font-size: 32px; line-height: 40px; letter-spacing: var(--ls-display); }
.fp-intro { margin-top: 12px; font-size: 17px; line-height: 24px; color: var(--fg-3); }
@media (min-width: 1200px) {
  .fp-sec { padding: 80px 0; }
  .fp-h2 { font-size: 40px; line-height: 48px; }
  .fp-intro { font-size: 20px; line-height: 28px; letter-spacing: var(--ls-display-light); }
}

/* What it does */
.fp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.fp-card { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.fp-num { display: block; font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .08em; color: var(--fg-3); }
.fp-card h3 { margin-top: 16px; font-weight: 600; font-size: 20px; line-height: 26px; }
.fp-card p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--fg-3); }
@media (min-width: 900px) {
  .fp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .fp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* How it works */
.fp-rows { display: flex; flex-direction: column; gap: 48px; margin-top: 32px; }
.fp-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.fp-row h3 { font-weight: 500; font-size: 26px; line-height: 32px; letter-spacing: var(--ls-display); }
.fp-row p { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--fg-3); }
@media (min-width: 900px) {
  .fp-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .fp-row--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .fp-row--rev .fp-media { order: 2; }
}

/* At a glance */
.fp-specs { margin: 32px 0 0; border-top: 1px solid var(--line); }
.fp-specs div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fp-specs dt { font-weight: 500; font-size: 15px; line-height: 22px; color: var(--fg-2); }
.fp-specs dd { margin: 0; font-size: 16px; line-height: 24px; color: var(--fg); }
@media (min-width: 600px) { .fp-specs div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; } }

/* Works together with */
.fp-related { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.fp-rel {
  display: flex; flex-direction: column; padding: 24px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.fp-rel:hover { border-color: var(--input-line); box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.fp-rel-label { font-weight: 500; font-size: 13px; line-height: 16px; color: var(--fg-3); }
.fp-rel-title { margin-top: 8px; font-weight: 600; font-size: 20px; line-height: 26px; color: var(--fg); }
.fp-rel-desc { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--fg-3); }
.fp-rel-more { margin-top: 16px; font-weight: 500; color: var(--link); }
.fp-rel:hover .fp-rel-more { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 900px) { .fp-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- Closing CTA ---------- */
.fp-cta { background: var(--ink); color: #fff; padding: 56px 0; }
.fp-cta-inner { display: flex; flex-direction: column; gap: 24px; }
.fp-cta h2 { font-weight: 500; font-size: 32px; line-height: 40px; letter-spacing: var(--ls-display); }
.fp-cta p { margin-top: 8px; font-size: 17px; line-height: 24px; color: #c3c7cb; }
.fp-cta .cta { flex-wrap: wrap; }
.fp-cta .cta .btn { min-width: 160px; }
@media (min-width: 900px) { .fp-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
