/* Features walkthrough: a sticky chapter list on the left, one chapter per capability on the right.
   Reuses landing.css tokens; only the layout of this page lives here. */
.fx-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.fx-hero h1 { font-size: clamp(44px, 5.6vw, 76px); max-width: 15em; }
.fx-hero .lede { margin-top: 20px; max-width: 40em; }
.fx-flow { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.fx-flow a { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.fx-flow a:hover { border-color: var(--thread); color: var(--thread); }
.fx-flow .arrow { color: var(--thread); }

.fx { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 120px; }
.fx-toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 13.5px; max-height: calc(100vh - 120px); overflow-y: auto; }
.fx-toc .grp { margin: 18px 0 6px; font: 700 12px/1.2 var(--serif); color: var(--ink); }
.fx-toc .grp:first-child { margin-top: 0; }
.fx-toc a { padding: 5px 10px; border-left: 1.5px solid var(--line); color: var(--ink-2); }
.fx-toc a:hover { color: var(--ink); }
.fx-toc a.on { border-left-color: var(--thread); color: var(--thread); }
@media (max-width: 960px) { .fx { grid-template-columns: 1fr; gap: 32px; } .fx-toc { display: none; } }

.part { padding-top: 8px; }
.part + .part { margin-top: 72px; }
.part-title { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); margin-bottom: 8px; }
.part-title span { font: 500 12px/1 var(--mono); color: var(--thread); }
.part-title h2 { font: 700 28px/1.1 var(--serif); letter-spacing: -.02em; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.feat h3 { font: 700 24px/1.2 var(--serif); letter-spacing: -.02em; }
.feat .what { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.feat ul { margin-top: 16px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.feat li { position: relative; padding-left: 18px; }
.feat li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; border-top: 1.5px dashed var(--thread); }
.feat li b { color: var(--ink); font-weight: 600; }
.feat .api { margin-top: 16px; font: 400 12.5px/1.6 var(--mono); color: var(--ink-3); }
.feat .api b { color: var(--thread); font-weight: 500; }
.feat .api a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 20px; } }

.ex { min-width: 0; display: grid; gap: 10px; align-content: start; }
.ex-label { font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.ex pre { margin: 0; background: #1a1814; color: #ece7dd; border-radius: 12px; padding: 16px 18px; font: 400 12.5px/1.65 var(--mono); overflow-x: auto; }
.ex pre .c { color: #7d766a; } .ex pre .s { color: #e8b48a; } .ex pre .k { color: #f08a72; } .ex pre .n { color: #b7d3a8; }
.ex .sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.ex .sheet .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; }
.ex .sheet .row + .row { border-top: 1px solid var(--line); }
.ex .sheet .row > span:first-child { min-width: 0; color: var(--ink); }
.ex .sheet .mono { font: 400 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.ex .mask { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--ink); color: #fff; font: 500 11px/1.6 var(--mono); }
.ex .hl { background: var(--thread-soft); box-shadow: inset 0 -1.5px 0 var(--thread); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.ex .rtl { direction: rtl; font: 400 16px/1.9 var(--arabic); color: var(--ink); }

.fx-end { margin-top: 72px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.fx-end h2 { font: 700 30px/1.15 var(--serif); letter-spacing: -.02em; }
.fx-end p { margin-top: 6px; color: var(--ink-2); }
.fx-end .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ex .chip { white-space: nowrap; flex-shrink: 0; }
