/* ─────────────────────────────────────────────────────────────────────────────
   /features — ported from the Claude Design template "Clarus Features v1.2".
   Layers on site.css + page.css. Every class is prefixed `f-`.

   ⚠️ THE TEMPLATE IS A TEMPLATE, NOT A PAGE. It arrived as Design Canvas syntax
   (<x-dc>, sc-if, style-hover, style-before) with everything inline, and it drops
   or replaces things the real site owns. What was put back, deliberately:

     nav + footer      lifted VERBATIM from index.html, like every other page
     cursor ambient    .page-ambient + /ambient.js, which the template had no idea about
     fonts             Geist, SELF-HOSTED. The template pulled Inter from
                       fonts.googleapis.com — two external origins on the critical
                       path, which this site deliberately removed. Do not re-add.
     colours           the template hardcoded #0d0b08 / #d7a955 / #f3f0ea etc.
                       Those are now tokens, so this page cannot drift from the
                       rest of the site when a token changes.
     background        NOT set here. The template painted its own body background;
                       site.css owns that, and overriding it is exactly how a page
                       ends up looking like a different site.

   ⚠️ `f-` PREFIXES ARE LOAD-BEARING. compare.css shipped with five plain names
   that already existed in site.css — `.mk` is `display:none` there, which
   silently blanked every tick in the comparison tables. Check any new class with:
   grep -o '\.[a-z][\w-]*' features.css | sort -u
   ───────────────────────────────────────────────────────────────────────────── */

.f-page { max-width: 1240px; width: 100%; margin: 0 auto; padding: 96px 48px 56px; }

.f-eyebrow {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 24px;
}
.f-page h1 {
  margin: 0 0 22px; font-size: clamp(38px, 5.4vw, 58px); line-height: 1.04;
  letter-spacing: -0.022em; color: var(--text); font-weight: 700;
  text-wrap: balance;
}
.f-lede {
  margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text-soft);
  max-width: 56ch; text-wrap: pretty;
}

/* The three counts are REAL and were checked, not estimated — a stat nobody can
   verify is the anti-dud rule pointed at marketing:
     29  feature cells across the seven feature sections
     15  tools named in the editor list, matching the app's 15 rail tools
     10  locale files in src/i18n/locales
   ⚠️ The language picker actually offers ELEVEN (English is the source, plus the
   10 translations), so 10 UNDERSTATES by one. Kept at 10 anyway because the
   homepage says "10 languages" and the homepage is the model that must not be
   edited — and understating is the safe direction. If a cell is added or removed,
   fix the first number here and in tools/build-features.py. */
.f-stats {
  display: flex; align-items: center; gap: 16px; margin-top: 34px;
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px; letter-spacing: 0.16em; font-weight: 500; color: var(--text-mut);
}
.f-stats b { color: var(--gold-bright); font-weight: 600; }
.f-dot { width: 4px; height: 4px; background: var(--gold-soft); transform: rotate(45deg); }

.f-body {
  max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 48px 110px;
  display: flex; gap: 64px; align-items: flex-start;
}

/* ── On this page ─────────────────────────────────────────────────────────── */
.f-index { position: sticky; top: 96px; flex: 0 0 196px; padding-top: 44px; }
.f-index-h {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin: 0 0 16px; padding-left: 16px;
}
/* ⚠️ SAME TRAP AS `section`, ONE ELEMENT OVER. site.css styles a bare `nav` —
   it is how the site HEADER is built — so this sidebar list inherited
   `position: sticky; top: 0; z-index: 100`, the chrome background and a bottom
   border: a stray panel with a rule under it, stickied inside an already-sticky
   aside. Everything the bare rule sets has to be put back. */
.f-index nav {
  display: flex; flex-direction: column;
  position: static; z-index: auto; background: none; border-bottom: 0;
}
.f-index a {
  display: flex; gap: 11px; align-items: baseline; padding: 7px 0 7px 15px;
  border-left: 1px solid var(--line); font-size: 13.5px; color: var(--text-mut);
  transition: color .15s ease, border-color .15s ease;
}
.f-index a:hover { color: var(--text-soft); text-decoration: none; }
.f-index a i {
  font-style: normal;
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px; color: var(--gold-soft); font-weight: 600;
  transition: color .15s ease;
}
/* ⚠️ Driven by a class, not by inline styles written from JS. The template's
   scroll-spy set el.style.borderLeftColor directly, which wins over every rule
   here and makes the state impossible to restyle from CSS. */
.f-index a.f-on { color: var(--text); border-left-color: var(--gold); }
.f-index a.f-on i { color: var(--gold); }
.f-index-foot {
  margin: 18px 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
}

.f-main { flex: 1; min-width: 0; }

/* ── A section ────────────────────────────────────────────────────────────── */
/* ⚠️ THE SHORTHAND IS LOAD-BEARING. site.css styles a BARE `section` at
   `padding: 140px 0`, so declaring only `padding-top` here left 140px of the
   homepage's hero rhythm hanging off the BOTTOM of every section — measured at
   204px between the last card and the next heading where this file says 64.
   A class beats an element at any breakpoint, but only for the properties it
   actually declares. Same trap in the 1000px media query, where site.css drops
   the bare rule to 84px. */
.f-sec { scroll-margin-top: 88px; padding: 64px 0 0; }
.f-sec:first-child { padding-top: 44px; }
.f-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.f-num {
  width: 28px; height: 28px; flex: 0 0 auto; display: flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--gold-soft); border-radius: 8px;
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11px; color: var(--gold); font-weight: 600;
}
.f-sec h2 {
  margin: 0; font-size: 25px; font-weight: 700; color: var(--text);
  letter-spacing: -0.015em;
}
.f-sec-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-mut); }

/* ── The feature grid ─────────────────────────────────────────────────────── */
.f-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: oklch(1 0 0 / 0.012);
}
.f-cell { position: relative; padding: 26px 30px; transition: background .15s ease; }
.f-cell:hover { background: var(--gold-faint); }
/* Interior rules only — the container's own border draws the outside, so every
   cell after the first column/row gets one edge and nothing doubles up. */
.f-cell:not(:nth-child(2n + 1)) { border-left: 1px solid oklch(1 0 0 / 0.06); }
.f-cell:nth-child(n + 3) { border-top: 1px solid oklch(1 0 0 / 0.06); }
.f-cell.wide { grid-column: 1 / -1; }
.f-cell.wide p { max-width: 62ch; }

.f-cell-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
/* ⚠️ `:first-child` IS LOAD-BEARING. This was `.f-cell-h span`, which also caught
   the `.f-arrow` on the two comparison cards — squashing the arrow to a 5px gold
   square, rotating it 45deg and leaving the glyph poking out of it. It read as a
   rendering artifact, not as a CSS bug, which is exactly why it needed looking at
   in pixels rather than in the DOM. Match the bullet, not "a span". */
.f-cell-h > span:first-child {
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
  flex: 0 0 auto;
}
.f-cell h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
.f-cell p {
  margin: 0; font-size: 14px; line-height: 1.68; color: var(--text-soft);
  text-wrap: pretty;
}

/* ⚠️ NO KEY STYLE HERE, ON PURPOSE. The template drew its own key and the port
   copied it — but site.css already has `kbd` plus the `.keys`/`.plus` wrapper the
   homepage uses, so that was a second key component drifting from the first. It
   also inherited the bare `kbd` rule's inset shadow on top of its own 2px bottom
   border, giving a doubled edge. The markup now uses the site's idiom verbatim:
   <span class="keys"><kbd>Win</kbd><span class="plus">+</span>…</span> */

/* ── The two comparison cards ─────────────────────────────────────────────── */
.f-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-card {
  display: block; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 30px; background: oklch(1 0 0 / 0.012);
  transition: border-color .16s ease, box-shadow .16s ease;
}
/* ⚠️ Only the outline reacts. The whole card is one <a>, and `.doc a:hover`
   style underlining propagates to every descendant — the same thing that made
   the comparison cards light up like a wall of links. */
.f-card:hover, .f-card:focus-visible {
  border-color: var(--gold-soft); text-decoration: none;
  box-shadow: 0 0 34px -10px oklch(var(--gold-l) var(--gold-c) var(--gold-h) / 0.34);
}
.f-card h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); }
/* Belt and braces against the bullet rule above ever widening again. */
.f-card .f-arrow {
  margin-left: auto; color: var(--gold); font-size: 15px;
  width: auto; height: auto; background: none; transform: none;
  transition: transform .16s ease;
}
.f-card:hover .f-arrow, .f-card:focus-visible .f-arrow { transform: translateX(3px); }
.f-card p { margin: 0; font-size: 14px; line-height: 1.68; color: var(--text-soft); text-wrap: pretty; }
.f-card .f-go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold); }

@media (max-width: 1000px) {
  /* The index is a convenience, not content — below this the column costs more
     than it gives, and every heading is still reachable by scrolling. */
  .f-index { display: none; }
  .f-body { gap: 0; }
}
@media (max-width: 760px) {
  .f-page { padding: 72px 22px 40px; }
  .f-body { padding: 0 22px 80px; }
  .f-grid, .f-compare { grid-template-columns: 1fr; }
  .f-cell:not(:nth-child(2n + 1)) { border-left: 0; }
  .f-cell:nth-child(n + 2) { border-top: 1px solid oklch(1 0 0 / 0.06); }
  .f-cell { padding: 22px 20px; }
  .f-sec h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-cell, .f-card, .f-index a { transition: none; }
}
