/* Dedicated feature pages (features/*.html). Requires base.css and landing.css. */

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 1.25rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Feature hero: text left, product view right ---------- */
.fhero { padding: 2.5rem 0 5rem; background: radial-gradient(55% 60% at 8% 30%, var(--brand-soft), transparent 70%), radial-gradient(45% 50% at 95% 10%, var(--glow), transparent 70%), var(--page); }
.fhero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; margin-top: 2rem; }
.fhero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 1.1rem; }
.fhero__lead { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin-bottom: 2rem; }
.fhero .actions { justify-content: flex-start; }
.fhero__roles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.75rem; }
.fhero__roles span { font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--body); }

/* Product view drawn in HTML (replace with real screenshots later) */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(17,24,39,.25); overflow: hidden; font-size: .85rem; }
.window__bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: var(--brand-dark); color: #fff; font-weight: 600; font-size: .8rem; }
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.window__bar i:last-of-type { margin-right: .4rem; }
.window__body { padding: 1.1rem 1.2rem 1.3rem; }
.window__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.window__head b { font-size: 1rem; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.kv div { border: 1px solid var(--line); border-radius: var(--radius-md); padding: .5rem .65rem; }
.kv small { display: block; color: var(--muted); font-size: .72rem; }
.kv b { font-size: .86rem; font-weight: 600; }
.lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.lines th { text-align: left; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .45rem .5rem; background: var(--gray-bg); border-bottom: 1px solid var(--line); }
.lines td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td small { display: block; color: var(--muted); font-size: .72rem; }
.lines .num { text-align: right; white-space: nowrap; }
.lines tfoot td { font-weight: 600; border-bottom: 0; }
.capbox { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .8rem .9rem; border-radius: var(--radius-md); background: var(--gray-bg); border: 1px solid var(--line); }
.capbox .bar { grid-column: 1 / -1; margin: .25rem 0 0; }
.capbox small { color: var(--muted); }
.window__actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.window__actions span { padding: .4rem .8rem; border-radius: var(--radius); font-weight: 500; font-size: .8rem; border: 1.5px solid var(--line-2); color: var(--brand); }
.window__actions span:last-child { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
.window__actions { flex-wrap: wrap; }
.window__actions span.is-ok { background: var(--success); border-color: var(--success); color: #fff; }
html[data-theme="dark"] .window__actions span.is-ok { color: #0D0F1A; }
.window__actions span.is-danger { background: var(--surface); border-color: var(--red); color: var(--red); }
.note { display: grid; gap: .15rem; padding: .7rem .9rem; border-left: 3px solid var(--brand); border-radius: var(--radius-md); background: var(--gray-bg); }
.note small { color: var(--muted); font-size: .72rem; }

/* ---------- Highlights ---------- */
.fhl .tile h3 { margin: 0; }

/* ---------- Detail rows (alternating) ---------- */
.frows { display: grid; gap: 5rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.frow--flip > :first-child { order: 2; }
.frow h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.frow p { color: var(--muted); font-size: 1.05rem; }
.frow .checks { margin-top: 1.25rem; }
.status-steps { list-style: none; margin: 0 0 .25rem; padding: 0; display: grid; gap: .1rem; }
.status-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: .6rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); }
.status-steps li:first-child { border-top: 0; }
.status-steps .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; }
.status-steps .done .dot { background: var(--brand); border-color: var(--brand); }
.status-steps .now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.status-steps .now { font-weight: 600; }
.status-steps small { color: var(--muted); font-size: .76rem; }

/* ---------- Related features ---------- */
.related .tile { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.related .tile:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.related .tile .btn-text { margin-top: auto; padding-top: .4rem; }

@media (max-width: 900px) {
  .fhero { padding-bottom: 3.75rem; }
  .fhero__grid, .frow { grid-template-columns: 1fr; gap: 2.25rem; }
  .frow--flip > :first-child { order: 0; }
  .frows { gap: 3.5rem; }
}
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr 1fr; }
  .window__body { padding: .9rem; }
  .lines thead th:nth-child(2), .lines tbody td:nth-child(2) { display: none; } /* footer row keeps its total */
}
