/* /features: every livelinks feature in one list. Uses the tokens in site.css. Square edges, hairlines, no pills. */

/* ---------- hero and the section index ---------- */
.fx-hero { padding: 72px 0 56px; }
.fx-eyebrow { font-size: 14px; font-weight: 700; color: var(--coral); }
.fx-hero h1 { margin-top: 12px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.fx-lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.fx-index { margin-top: 48px; }
.fx-index ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.fx-index li { border-bottom: 1px solid var(--line); }
.fx-index a { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: none; transition: color .15s; }
.fx-index a span { flex: none; width: 20px; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.fx-index a:hover { color: var(--coral); }

/* ---------- Pro and coming soon markers ---------- */
.fx-pro { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.fx-pro img { width: 15px; height: 15px; }
.fx-lead .fx-pro { font-size: 19px; gap: 6px; margin-left: 4px; vertical-align: -3px; } .fx-lead .fx-pro img { width: 20px; height: 20px; }
.fx-soon { font-size: 13px; font-weight: 500; color: var(--faint); white-space: nowrap; }

/* ---------- the sticky bar: search and a section picker ---------- */
.fx-bar { position: sticky; top: 84px; z-index: 15; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: top .32s cubic-bezier(.2, .8, .2, 1); }
.fx-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; background: var(--bg); }
body.nav-away .fx-bar { top: 0; }
.fx-bar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.fx-search { position: relative; flex: 1; min-width: 0; max-width: 460px; display: flex; align-items: center; height: 40px; padding: 0 12px 0 38px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-2); cursor: text; }
.fx-search:focus-within { border-color: #5a5a5a; }
.fx-search svg { position: absolute; left: 12px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.fx-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.fx-search input::placeholder { color: var(--faint); }
.fx-search input::-webkit-search-cancel-button { filter: invert(.7); }
.fx-found { flex: none; margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.fx-found:empty { display: none; }
.fx-pick { position: relative; margin-left: auto; flex: 0 1 260px; min-width: 0; }
.fx-pick select { width: 100%; height: 40px; padding: 0 34px 0 12px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.fx-pick select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fx-pick svg { position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* ---------- sections: the title on the left, the list on the right ---------- */
.fx-sec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px 56px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.fx-body > .fx-sec:first-child { border-top: 0; }
.fx-sec[hidden] { display: none; }
.fx-sec-head { align-self: start; position: sticky; top: 172px; }
.fx-num { display: block; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.fx-sec-head h2 { margin-top: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.fx-sec-head p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
body.fx-searching .fx-sec { padding: 36px 0; }

/* rows: a name, the Pro mark, one plain line; two columns where there's room */
.fx-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.fx-rows[hidden], .fx-row[hidden], .fx-plats[hidden], .fx-plat[hidden] { display: none; }
.fx-row { padding: 15px 0 16px; border-top: 1px solid var(--line); min-width: 0; }
.fx-row-t { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-row b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.fx-row p { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }

/* platforms: one table of logos and names */
.fx-plats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fx-plat { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.fx-plat span { min-width: 0; overflow-wrap: anywhere; }
.fx-logo { width: 20px; height: 20px; flex: none; object-fit: contain; }
.fx-logo.mono { display: inline-block; background: var(--text); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ---------- the comparison table ---------- */

/* ---------- no matches ---------- */
.fx-empty { padding: 72px 0 24px; font-size: 17px; color: var(--muted); text-align: center; }
.fx-empty[hidden] { display: none; }
.fx-empty button { padding: 0; border: 0; background: none; color: var(--coral); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the call to action at the end ---------- */
.fx-final { padding: 72px 0 96px; border-top: 1px solid var(--line); }
.fx-final-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.fx-final h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.fx-final p { margin-top: 10px; max-width: 46ch; color: var(--muted); font-size: 17px; }
.fx-final .btn { flex: none; height: 52px; padding: 0 28px; border-radius: 4px; font-size: 16px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) {
  .fx-sec { grid-template-columns: 220px minmax(0, 1fr); gap: 24px 40px; }
  .fx-plats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .fx-bar { top: 80px; }
  .fx-index ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-sec { grid-template-columns: minmax(0, 1fr); padding: 48px 0; scroll-margin-top: 96px; }
  .fx-sec-head { position: static; }
  .fx-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .fx-hero { padding: 48px 0 40px; }
  .fx-lead, .fx-lead .fx-pro { font-size: 17px; }
  .fx-index { margin-top: 36px; }
  .fx-index ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .fx-index a { padding: 12px 0; font-size: 14.5px; gap: 8px; }
  .fx-index a span { width: 18px; }
  .fx-bar-in { height: 56px; gap: 8px; }
  .fx-search { max-width: none; }
  .fx-pick { flex: 0 0 44%; }
  .fx-plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-plat { padding: 10px; gap: 8px; font-size: 14px; }
  .fx-final { padding: 56px 0 72px; }
  .fx-final-in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .fx-final .btn { width: 100%; }
  /* the table becomes one block per feature */
}
@media (max-width: 480px) {
  .fx-bar { top: 76px; }
}
@media (prefers-reduced-motion: reduce) { .fx-bar { transition: none; } }

/* ---------- static: nothing sticks or moves as you scroll ---------- */
.fx-bar { position: static; transition: none; }
body.nav-away .fx-bar { top: auto; }
.fx-sec-head { position: static; }
.fx-sec { scroll-margin-top: 24px; }
html { scroll-behavior: auto; }

/* ---------- the section picker: the site's own dropdown, not the device's ---------- */
.fx-pick { position: relative; margin-left: auto; flex: 0 1 260px; min-width: 0; }
.fx-pick-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.fx-pick-btn:hover { border-color: #4a4a4a; }
.fx-pick-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fx-pick-btn svg { position: static; width: 12px; height: 12px; margin: 0; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-pick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.fx-pick-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: max(100%, 240px); max-height: min(420px, 70vh); overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 16px 40px rgb(0 0 0 / .5); }
.fx-pick-list a { display: block; padding: 9px 10px; border-radius: 2px; color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.fx-pick-list a:hover, .fx-pick-list a:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
