/* /features — the product page. Tokens and components come from /brand; this file only lays the page out. */

.fx-hero { position: relative; padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); padding-bottom: var(--s-7); overflow: hidden; }
.fx-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%); pointer-events: none; z-index: -1; }
.fx-hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1020px) { .fx-hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
.fx-hero-copy { min-width: 0; }
.fx-h1 { margin-top: 14px; font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em; }
.fx-h1 .hl { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.fx-hero .lead { margin: var(--s-5) 0 var(--s-6); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); max-width: 60ch; }
.fx-hero-art { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; background: var(--surface); }
.fx-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.fx-jump a { font: 650 var(--fs-sm)/1 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); background: color-mix(in oklab, var(--surface) 70%, transparent); }
.fx-jump a:hover { color: var(--brand); border-color: var(--brand); }

.fx-head { max-width: 760px; margin-bottom: var(--s-7); }
.fx-head .h1 { margin-top: 8px; }
.fx-head .lead { margin-top: var(--s-4); }

.fx-ico { flex: none; width: 36px; height: 36px; border-radius: var(--r-sm); display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.fx-ico .icon { width: 20px; height: 20px; }
.fx-ico-lg { width: 46px; height: 46px; }
.fx-ico-lg .icon { width: 24px; height: 24px; }
.fx-ico-bad { background: color-mix(in oklab, var(--danger) 14%, transparent); color: var(--danger); }

/* Pains, answered: what it was like → what fpv-race-pits does */
.fx-pains { display: grid; gap: var(--s-3); }
.fx-pain { padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); align-items: center; }
@media (min-width: 860px) { .fx-pain { grid-template-columns: 1fr auto 1fr; gap: var(--s-5); } .fx-pain::after { content: "→"; order: 2; color: var(--brand); font: 800 1.4rem/1 var(--font-display); } .fx-pain-now { order: 3; } }
.fx-pain p { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.fx-pain-was { color: var(--text-3); font-style: italic; }
.fx-pain-now { color: var(--text); font-weight: 600; }
.fx-pain .fx-ico { width: 28px; height: 28px; }
.fx-pain .fx-ico .icon { width: 16px; height: 16px; }
.fx-pain p > span:last-child { padding-top: 3px; min-width: 0; }

/* Showcase rows: copy beside a picture, alternating sides */
.fx-show { display: grid; gap: clamp(var(--s-7), 5vw, var(--s-8)); }
.fx-row { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 900px) {
  .fx-row { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-7); }
  .fx-row:nth-child(even) { grid-template-columns: 1.2fr 0.8fr; }
  .fx-row:nth-child(even) > .fx-row-copy { order: 2; }
}
.fx-row-copy { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.fx-row-copy h3 { font: italic 800 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.05 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; margin: var(--s-2) 0 0; }
.fx-row-copy p { color: var(--text-2); margin: 0; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); max-width: 52ch; }
.fx-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; display: block; }

/* Tiles: smaller features, with a thumbnail when there is one */
.fx-tiles { display: grid; gap: var(--s-4); margin-top: clamp(var(--s-7), 5vw, var(--s-8)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.fx-tiles:not(:has(.has-img)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fx-tile { overflow: hidden; display: grid; align-content: start; }
.fx-tile-img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.fx-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform var(--t-slow, 400ms) ease; }
.fx-tile:hover .fx-tile-img img { transform: scale(1.03); }
.fx-tile-body { padding: var(--s-5); display: grid; gap: var(--s-2); }
.fx-tile-body h3 { font-size: var(--fs-lg); margin: var(--s-2) 0 0; }
.fx-tile-body p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }

/* Before → after */
.fx-compare { display: grid; gap: var(--s-4); align-items: stretch; }
@media (min-width: 900px) { .fx-compare { grid-template-columns: 1fr auto 1fr; } }
.fx-compare .card { padding: var(--s-6); }
.fx-compare h3 { margin: 0 0 var(--s-4); font-size: var(--fs-xl); min-height: 30px; display: flex; align-items: center; }
.fx-compare h3 img { height: 26px; width: auto; }
.fx-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.fx-compare li { display: flex; gap: var(--s-3); align-items: flex-start; }
.fx-compare li .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.fx-before { color: var(--text-3); }
.fx-before li .icon { color: var(--danger); }
.fx-after { border-color: color-mix(in oklab, var(--brand) 55%, var(--line-strong)); background: radial-gradient(500px 220px at 0% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent), var(--surface); }
.fx-after li { color: var(--text); font-weight: 600; }
.fx-after li .icon { color: var(--brand); }
.fx-arrow { display: grid; place-items: center; color: var(--brand); }
.fx-arrow .icon { width: 34px; height: 34px; }
@media (max-width: 899px) { .fx-arrow .icon { transform: rotate(90deg); } }

/* Support */
.fx-support { padding: var(--s-6); display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.fx-support > div { flex: 1 1 260px; min-width: 0; }
.fx-support h2 { margin: 0; }
.fx-support p { margin: var(--s-2) 0 0; }
/* The home page's tighter features section */
.fx-home-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fx-home-tile { padding: var(--s-4) var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start; }
.fx-home-tile h3 { font-size: var(--fs-md, 1rem); margin: 0; }
.fx-home-tile p { color: var(--text-2); margin: 4px 0 0; font-size: var(--fs-sm); }
.fx-home-more { display: flex; justify-content: center; margin-top: var(--s-6); }
.fx-row, .fx-tile, .fx-group, #pain, #compare { scroll-margin-top: 90px; }
@media (min-width: 900px) { .fx-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* /download — one card per OS; the Mac card leads with the Terminal one-liner. Also the Mac strip on / and /features. */
.dl-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.dl-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.dl-card { display: grid; gap: var(--s-3); min-width: 0; }
.dl-card.is-detected { order: -1; border-color: color-mix(in oklab, var(--brand) 55%, transparent); box-shadow: inset 0 2px 0 var(--brand), var(--shadow-2); }
.dl-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; }
.dl-card .badge-brand[data-detected-badge] { display: none; }
.dl-card.is-detected .badge-brand[data-detected-badge] { display: inline-flex; }
.dl-card p { margin: 0; }
.dl-label { font: 700 var(--fs-xs)/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.dl-cmd .input { font-size: var(--fs-sm); }
.dl-card details { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.dl-card summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.dl-card ol { margin: var(--s-3) 0 0; padding-left: 1.3em; display: grid; gap: var(--s-2); color: var(--text-2); }
.dl-card .btn { justify-content: center; }
.dl-sha { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); overflow-wrap: anywhere; word-break: break-all; }
.dl-note { font-size: var(--fs-sm); color: var(--text-2); }
.dl-code { display: block; font-family: var(--font-mono); font-size: var(--fs-sm); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
.dl-others { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.dl-others li { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: baseline; }
.dl-mac-strip { display: grid; gap: var(--s-2); max-width: 640px; margin: var(--s-5) auto 0; text-align: left; }
.dl-mac-strip .small { color: var(--text-2); }
.hero-ctas + .dl-mac-strip, .fx-hero .dl-mac-strip { margin-left: 0; }
