/* ═════════════════════════════════════════════════════════════════
   /features/ and the feature pages under it. The hub shows every feature
   in the homepage's six chapters; a feature page reuses the same cards.
   Tokens, eyebrow, headings and the chapter bar come from home-v2-story.css
   (loaded with homeV2Story). This file adds the heroes and the feature cards;
   each card shows its feature before → after and lets the visitor try it.
   Without JS every demo shows its final state.
   ═════════════════════════════════════════════════════════════════ */

.fh { --st: 255,69,59; }
/* demos switch panes with the hidden attribute; a class that sets display must not win over it */
.fh [hidden] { display: none !important; }
.fh-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ─── hero ─── */
.fh-hero { padding-top: clamp(7rem, 14vh, 8.5rem); padding-bottom: 0; }
.fh-hero h1 { font: 600 clamp(2.4rem, 5vw, 4.2rem)/1 var(--font-heading); letter-spacing: -0.035em; color: var(--mw-ink); text-wrap: balance; }
.fh-sub { margin-top: 1.4rem; max-width: 38rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: #cfcfcf; }
.fh-what { margin-top: 1.2rem; max-width: 46rem; color: #c9c9c9; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; }
.fh-byline { margin-top: clamp(4rem, 8vh, 6rem); padding-bottom: 2rem; font: 500 0.85rem/1.4 var(--font-heading); color: var(--mw-dim); }
.fh-byline a { color: var(--mw-mid); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
.fh-byline a:hover { color: var(--mw-ink); }


/* what the labels on the cards mean */
.fh-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.6rem 0 0; padding: 0; color: var(--mw-mid); font-size: 0.88rem; }
.fh-legend li { display: flex; align-items: center; gap: 0.6rem; }

/* ─── chapter ─── */
.fh-ch { padding-top: clamp(4rem, 10vh, 7rem); scroll-margin-top: 90px; }
.fh-hero + .fh-ch { padding-top: clamp(2.2rem, 5vh, 3.2rem); }
.fh-ch__head { max-width: 46rem; }
/* one heading per category: its name, clearly below the page's H1 */
.fh-cat { display: flex; align-items: center; gap: 14px; margin: 0; font: 600 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--font-heading); letter-spacing: -0.02em; color: var(--mw-ink); }
.fh-cat i { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; background: rgb(var(--st)); box-shadow: 0 0 12px rgba(var(--st),0.9), 0 0 28px rgba(var(--st),0.45); }
.fh-cat__sub { margin: 0.45rem 0 0 25px; color: var(--mw-mid); font-size: 1.05rem; line-height: 1.5; }
/* the chapter in one paragraph, under its cards: what an AI answer can quote */
.fh-ch__more { margin: 2rem 0 0; max-width: 60rem; color: var(--mw-mid); font-size: 0.98rem; line-height: 1.75; text-wrap: pretty; }
.fh-ch__more a { color: var(--mw-ink); text-decoration: none; border-bottom: 1px solid rgba(var(--st),0.5); }

/* ─── cards ─── */
.fh-grid { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fh-card {
  position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--mw-line); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.fh-card:hover, .fh-card:focus-within { border-color: rgba(var(--st),0.42); box-shadow: 0 0 0 1px rgba(var(--st),0.12), 0 18px 60px rgba(var(--st),0.08); }
.fh-demo {
  position: relative; min-height: 212px; padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  border-bottom: 1px solid var(--mw-line); font-size: 0.92rem;
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--st),0.09), rgba(0,0,0,0) 62%), #0b0b0b;
}
.fh-ex { position: absolute; right: 12px; top: 10px; font: 500 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.32); }
.fh-body { position: relative; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fh-body h3 { margin: 2px 0 0; font: 500 1.12rem/1.3 var(--font-heading); letter-spacing: -0.01em; color: var(--mw-ink); }
.fh-body h3 a { color: inherit; text-decoration: none; }
.fh-body h3 a::after { content: ' →'; color: rgba(var(--st),0.9); transition: margin-left 0.3s; }
.fh-body h3 a:hover::after { margin-left: 4px; }
.fh-body h3 a::before { content: ''; position: absolute; inset: 0; }   /* the text half of the card is the link; the demo stays interactive */
.fh-body p { margin: 0; color: var(--mw-mid); font-size: 0.95rem; line-height: 1.55; }

.fh-gate { align-self: flex-start; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 0.66rem/1 var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; }
.fh-gate--free { color: rgb(52,199,89); background: rgba(52,199,89,0.1); }
.fh-gate--ai { color: rgb(90,200,250); background: rgba(90,200,250,0.1); }
.fh-gate--pro { color: rgb(245,197,66); background: rgba(245,197,66,0.1); }

/* ─── demo parts ─── */
.fh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fh-k { font: 600 0.62rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.fh-field {
  position: relative; min-height: 2.9em; padding: 0.7em 0.85em; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
  background: #121212; color: #ececec; line-height: 1.45; font-size: 0.95rem;
}
.fh-field--mono { font-family: var(--mono); font-size: 0.85rem; color: #bdbdbd; }
.fh-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: rgb(var(--st)); }
.fh-js .fh-caret { animation: fh-blink 1s steps(2, jump-none) infinite; }
@keyframes fh-blink { 50% { opacity: 0; } }
.fh-win { border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; background: #121212; }
.fh-win__bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); font: 500 0.72rem/1 var(--font-heading); color: rgba(255,255,255,0.5); }
.fh-win__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.fh-win__bar em { font-style: normal; margin-left: 6px; }
.fh-win .fh-field { border: 0; border-radius: 0; background: transparent; }

.fh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); color: #ededed; font: 600 0.8rem/1 var(--font-heading);
  transition: background 0.2s, border-color 0.2s, transform 0.12s;
}
.fh-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.26); }
.fh-btn:active, .fh-btn.is-down { transform: translateY(1px) scale(0.98); }
.fh-btn:focus-visible, .fh-chip:focus-visible, .fh-switch:focus-visible, .fh-input:focus-visible { outline: 2px solid rgb(var(--st)); outline-offset: 2px; }
.fh-key { min-width: 64px; height: 44px; padding: 0 12px; border-radius: 11px; flex-direction: column; gap: 3px; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.08); }
.fh-key b { font-size: 1.05rem; line-height: 1; }
.fh-key small { font: 500 0.55rem/1 var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.fh-key.is-on { border-color: rgba(var(--st),0.7); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.45), 0 0 18px rgba(var(--st),0.35); }

.fh-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.5); font: 600 0.62rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.fh-pill i { width: 7px; height: 7px; border-radius: 50%; background: rgb(52,199,89); box-shadow: 0 0 8px rgba(52,199,89,0.8); }
.fh-pill[data-state="rec"] i { background: rgb(255,69,59); box-shadow: 0 0 10px rgba(255,69,59,0.9); }
.fh-pill[data-state="busy"] i { background: rgb(90,200,250); box-shadow: 0 0 10px rgba(90,200,250,0.9); }
.fh-js .fh-pill[data-state="rec"] i { animation: fh-pulse 0.8s ease-in-out infinite alternate; }
@keyframes fh-pulse { to { opacity: 0.35; } }

.fh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-chip {
  min-height: 30px; padding: 0 11px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,0.14);
  background: transparent; color: rgba(255,255,255,0.72); font: 500 0.8rem/1 var(--font-heading); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fh-chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.fh-chip[aria-pressed="true"] { color: #0b0b0b; background: rgb(var(--st)); border-color: rgb(var(--st)); }

.fh-switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(52,199,89,0.9); transition: background 0.25s; flex-shrink: 0; }
.fh-switch::after { content: ''; position: absolute; top: 3px; left: 21px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.25s; }
.fh-switch[aria-checked="false"] { background: rgba(255,255,255,0.18); }
.fh-switch[aria-checked="false"]::after { left: 3px; }

.fh-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.fh-seg button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer; background: transparent; color: rgba(255,255,255,0.65); font: 600 0.76rem/1 var(--font-heading); }
.fh-seg button[aria-pressed="true"] { background: rgba(255,255,255,0.14); color: #fff; }

.fh-input { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: #121212; color: #f2f2f2; font: 500 1rem/1 var(--mono); }
.fh-input::placeholder { color: rgba(255,255,255,0.35); }

.fh-strike { color: rgb(255,69,59); text-decoration: line-through; text-decoration-thickness: 2px; }
.fh-bad { text-decoration: underline wavy rgba(255,69,59,0.9); text-underline-offset: 3px; }
.fh-good { color: rgb(52,199,89); }
.fh-sel { background: rgba(90,200,250,0.3); border-radius: 3px; }
.fh-note { font: 500 0.78rem/1.35 var(--font-heading); color: rgba(255,255,255,0.55); min-height: 1.05rem; }
.fh-note b { color: rgb(var(--st)); font-weight: 600; }
.fh-hold { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.fh-hold i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: rgb(90,200,250); }
.fh-big { font: 600 2.4rem/1 var(--font-heading); letter-spacing: -0.03em; color: rgb(var(--st)); text-shadow: 0 0 22px rgba(var(--st),0.4); }

/* four-card chapters sit two by two */
.fh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* meetings */
.fh-people { display: flex; gap: 6px; flex-wrap: wrap; }
.fh-people span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font: 500 0.8rem/1 var(--font-heading); color: #e6e6e6; }
.fh-event { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border-left: 3px solid rgb(var(--st)); background: rgba(255,255,255,0.04); }
.fh-event b { font: 600 0.9rem/1.2 var(--font-heading); color: #f2f2f2; }
.fh-event span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.fh-clock { font: 600 1.5rem/1 var(--mono); color: #f2f2f2; letter-spacing: -0.02em; }
.fh-lines { display: flex; flex-direction: column; gap: 7px; }
.fh-lines p { margin: 0; display: grid; grid-template-columns: 5.4rem 1fr; gap: 10px; color: #e4e4e4; font-size: 0.88rem; line-height: 1.4; }
.fh-lines b { font: 600 0.62rem/1.9 var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.fh-lines b.fh-good { color: rgb(52,199,89); }
.fh-lines b.fh-blue { color: rgb(90,200,250); }
.fh-hint { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--st),0.4); background: rgba(var(--st),0.08); color: #efefef; font-size: 0.88rem; line-height: 1.45; }
.fh-hint span { display: block; margin-bottom: 4px; font: 600 0.6rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--st)); }

/* screen */
.fh-rules { display: flex; flex-direction: column; gap: 8px; }
.fh-rules > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); font: 500 0.88rem/1 var(--font-heading); color: #e8e8e8; }
.fh-lock { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); border-radius: 999px; padding: 6px 10px; font: 600 0.62rem/1 var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.fh-lock::before { content: '🔒 '; }
.fh-lock.is-shake { animation: fh-shake 0.4s; }
@keyframes fh-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.fh-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: #dcdcdc; }
.fh-results li { padding: 7px 10px; border-radius: 9px; background: rgba(255,255,255,0.04); }
.fh-results b { margin-right: 6px; font: 600 0.72rem/1 var(--mono); color: rgb(var(--st)); }
.fh-results .fh-empty { background: none; color: rgba(255,255,255,0.45); }

/* remembers */
.fh-result { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(var(--st),0.35); font-size: 0.88rem; color: #e6e6e6; line-height: 1.45; }
.fh-result b { display: block; font: 600 0.9rem/1.3 var(--font-heading); color: #f4f4f4; }
.fh-undo { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); font: 600 0.62rem/1.3 var(--font-heading); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.fh-mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fh-mem li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(var(--st),0.07); border: 1px solid rgba(var(--st),0.25); font-size: 0.86rem; color: #e8e8e8; transition: opacity 0.3s, transform 0.3s; }
.fh-mem b { color: rgb(var(--st)); font-weight: 600; margin-right: 6px; }
.fh-mem button { border: 0; background: transparent; color: rgba(255,255,255,0.55); font-size: 1.05rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fh-mem button:hover, .fh-mem button:focus-visible { color: #fff; background: rgba(255,255,255,0.1); outline: none; }
.fh-say { margin: 0; font-size: 0.98rem; line-height: 1.5; color: #f0f0f0; }
.fh-say .is-on { color: rgb(var(--st)); }
.fh-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.fh-bars b { width: 3px; height: 100%; border-radius: 2px; background: rgb(var(--st)); transform: scaleY(0.25); }
.fh-js .fh-bars.is-on b { animation: fh-eq 0.6s ease-in-out infinite alternate; }
.fh-bars b:nth-child(2) { animation-delay: 0.1s !important; } .fh-bars b:nth-child(3) { animation-delay: 0.25s !important; }
.fh-bars b:nth-child(4) { animation-delay: 0.05s !important; } .fh-bars b:nth-child(5) { animation-delay: 0.3s !important; } .fh-bars b:nth-child(6) { animation-delay: 0.15s !important; }
@keyframes fh-eq { to { transform: scaleY(1); } }

/* tasks */
.fh-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fh-col { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); min-height: 64px; }
.fh-taskrow { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #ececec; }
.fh-taskrow i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(var(--st),0.8); flex-shrink: 0; }

/* automation */
.fh-path { margin: 0; font: 500 0.78rem/1.4 var(--mono); color: rgba(255,255,255,0.6); }
.fh-path b { color: #f2f2f2; font-weight: 600; }

/* questions */
.fh-faq { padding-top: clamp(4rem, 10vh, 7rem); }
.fh-faq__list { margin-top: 1.6rem; max-width: 52rem; border-top: 1px solid var(--mw-line); }
.fh-faq__item { border-bottom: 1px solid var(--mw-line); }
.fh-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 500 1.05rem/1.35 var(--font-heading); color: var(--mw-ink); }
.fh-faq__item summary::-webkit-details-marker { display: none; }
.fh-faq__item summary::after { content: '+'; font: 400 1.4rem/1 var(--font-heading); color: var(--mw-mid); transition: transform 0.25s; }
.fh-faq__item[open] summary::after { transform: rotate(45deg); }
.fh-faq__item summary:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 4px; border-radius: 4px; }
.fh-faq__item p { margin: 0 0 1.2rem; max-width: 46rem; color: var(--mw-mid); line-height: 1.7; }

/* the last ask */
.fh-cta { margin-top: clamp(4rem, 9vh, 6rem); padding: clamp(2.2rem, 5vw, 3.5rem); border-radius: 26px; border: 1px solid rgba(52,199,89,0.3); background: radial-gradient(90% 120% at 50% 100%, rgba(52,199,89,0.12), rgba(0,0,0,0) 70%), #0c0c0c; text-align: center; }
.fh-cta h2 { margin: 0; font: 600 clamp(1.8rem, 3vw, 2.5rem)/1.1 var(--font-heading); letter-spacing: -0.02em; color: var(--mw-ink); }
.fh-cta p { margin: 0.7rem 0 1.6rem; color: var(--mw-mid); }

/* ═════════════════════════════════════════════════════════════════
   One feature's page (/features/<name>/): the same cards, plus a hero
   with a live example, numbered steps, a spec table and a voice route.
   ═════════════════════════════════════════════════════════════════ */
.fh-crumbs { margin: 0 0 1.1rem; font: 500 0.85rem/1.3 var(--font-heading); color: var(--mw-dim); }
.fh-crumbs a { color: var(--mw-mid); text-decoration: none; }
.fh-crumbs a:hover { color: var(--mw-ink); }
.fh-crumbs span { margin: 0 0.45rem; }
.fh-hero--split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.fh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1.8rem; }
.fh-link { color: var(--mw-ink); text-decoration: none; font: 600 0.95rem/1 var(--font-heading); padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,0.25); }
.fh-link:hover { border-color: rgb(var(--st)); }
.fh-facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; max-width: 40rem; }
.fh-facts li { padding: 0.7rem 0.85rem; border-radius: 14px; border: 1px solid var(--mw-line); background: rgba(255,255,255,0.02); }
.fh-facts b { display: block; font: 600 1rem/1.25 var(--font-heading); color: var(--mw-ink); }
.fh-facts span { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--mw-dim); }

/* steps: an ordered list of cards, each with its number */
.fh-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(var(--st),0.6); color: rgb(var(--st)); font: 600 0.8rem/1 var(--font-heading); }
.fh-win--dmg .fh-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fh-win--dmg b { font: 600 0.9rem/1.2 var(--font-heading); color: #f2f2f2; }

/* model downloads: a bar per model; without JS both are full */
.fh-dl { display: flex; flex-direction: column; gap: 6px; }
.fh-dl__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 500 0.84rem/1.25 var(--font-heading); color: #e8e8e8; }
.fh-dl__top small { flex-shrink: 0; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.fh-dl__bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.fh-dl__bar i { display: block; height: 100%; transform-origin: 0 50%; background: rgb(52,199,89); }

/* what runs on the Mac */
.fh-spec { width: 100%; max-width: 62rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); border-collapse: collapse; }
.fh-spec th, .fh-spec td { text-align: left; vertical-align: top; padding: 0.95rem 1.2rem 0.95rem 0; border-bottom: 1px solid var(--mw-line); }
.fh-spec tr:first-child th, .fh-spec tr:first-child td { border-top: 1px solid var(--mw-line); }
.fh-spec th { width: 12.5rem; font: 600 0.92rem/1.5 var(--font-heading); color: var(--mw-ink); }
.fh-spec td { color: var(--mw-mid); font-size: 0.98rem; line-height: 1.6; }
.fh-spec a, .fh-ways a, .fh-lead a { color: var(--mw-ink); text-decoration: none; border-bottom: 1px solid rgba(var(--st),0.5); }
.fh-spec code, .fh-cmd { font: 500 0.82rem/1.5 var(--mono); color: #d8d8d8; overflow-wrap: anywhere; }

/* where the voice goes: one route per setup */
.fh-card--wide .fh-demo { min-height: 190px; flex: 1; border-bottom: 0; }
.fh-card--wide [data-pane] { display: flex; flex-direction: column; gap: 12px; }
.fh-route { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fh-route span { padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: #121212; font: 500 0.86rem/1.2 var(--font-heading); color: #ececec; }
.fh-route .is-mac { border-color: rgba(52,199,89,0.55); color: rgb(52,199,89); }
.fh-route .is-cloud { border-color: rgba(90,200,250,0.55); color: rgb(90,200,250); }
.fh-route em { font-style: normal; color: rgba(255,255,255,0.38); }
.fh-lead { margin: 0; color: var(--mw-mid); font-size: 1rem; line-height: 1.7; }
.fh-lead + .fh-lead { margin-top: 1rem; }

/* the hero film: the feature on a Mac, rendered with HyperFrames (motion/feature-films).
   On a phone the frame turns square and shows the film's centre, where its essentials sit. */
.fh-hero--film { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.fh-hero--film h1 { font-size: clamp(2.3rem, 4.1vw, 3.5rem); line-height: 1.03; }
.fh-hero--film .fh-facts { max-width: none; }
.fh-film { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; isolation: isolate; background: #0b0b0c;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.45), 0 0 90px rgba(var(--st),0.12); }
.fh-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fh-film .sc__pause { top: auto; bottom: 12px; right: 12px; }
.fh-film:hover .sc__pause { opacity: 1; }
@media (hover: none) { .fh-film .sc__pause { opacity: 0.85; } }

/* a reference table: every gesture, or two tools side by side */
.fh-table { width: 100%; max-width: 64rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); border-collapse: collapse; font-size: 0.98rem; }
.fh-table th, .fh-table td { text-align: left; vertical-align: top; padding: 0.9rem 1.1rem 0.9rem 0; border-bottom: 1px solid var(--mw-line); }
.fh-table thead th { font: 600 0.72rem/1.3 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mw-dim); }
.fh-table tbody th { font: 600 0.95rem/1.45 var(--font-heading); color: var(--mw-ink); white-space: nowrap; }
.fh-table td { color: var(--mw-mid); line-height: 1.6; }
.fh-table td b { color: var(--mw-ink); font-weight: 500; }
.fh-table .fh-gate { margin-top: 2px; }

/* a list of languages as tiles: code over name */
.fh-langs, .fh-tiles { list-style: none; margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; max-width: 64rem; }
.fh-langs li, .fh-tiles li { padding: 0.85rem 0.9rem; border-radius: 14px; border: 1px solid var(--mw-line); background: rgba(255,255,255,0.02); color: var(--mw-mid); font-size: 0.92rem; }
.fh-langs b, .fh-tiles b { display: block; margin-bottom: 4px; font: 600 1.15rem/1 var(--font-heading); color: var(--mw-ink); letter-spacing: 0.02em; }
.fh-langs .is-fun { border-color: rgba(var(--st),0.4); }
.fh-langs .is-fun b { color: rgb(var(--st)); }
@media (max-width: 760px) { .fh-langs, .fh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* tiles that say more: a word over a short line */
.fh-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fh-tiles b { font-size: 1rem; letter-spacing: 0; }
.fh-tiles .is-opt { border-style: dashed; }
@media (max-width: 760px) { .fh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a chat bubble pair and an action card, for the MetaChat demo */
.fh-bub { max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; }
.fh-bub--me { align-self: flex-end; background: rgba(var(--st),0.16); border: 1px solid rgba(var(--st),0.35); color: #f1f1f1; }
.fh-bub--ai { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #e6e6e6; }
.fh-act { align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(var(--st),0.4); background: rgba(var(--st),0.06); }
.fh-act__k { font: 600 0.62rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--st)); }
.fh-act__t { margin: 0; color: #f4f4f4; font-size: 0.95rem; }
.fh-act .fh-btn--go { background: rgb(var(--st)); border-color: rgb(var(--st)); color: #06121a; }
[data-pane].fh-stack { display: flex; flex-direction: column; gap: 8px; }

/* points beside a demo: a bold lead, then the detail */
.fh-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.fh-points li { padding-left: 1.1rem; position: relative; color: var(--mw-mid); line-height: 1.65; }
.fh-points li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--st)); box-shadow: 0 0 8px rgba(var(--st),0.7); }
.fh-points b { color: var(--mw-ink); font-weight: 500; }

/* the full language list: one readable paragraph in columns */
.fh-alllangs { margin: clamp(1.4rem, 3vw, 2rem) 0 0; max-width: 64rem; columns: 3 16rem; column-gap: 2.4rem; color: var(--mw-mid); font-size: 0.98rem; line-height: 1.85; }
.fh-alllangs b { color: rgb(var(--st)); font-weight: 600; }

/* recording overlay styles, drawn small: a screen top edge with its notch */
.fh-screen { position: relative; height: 118px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #151517, #0e0e10); border: 1px solid rgba(255,255,255,0.1); }
.fh-screen__notch { position: absolute; top: 0; left: 50%; width: 92px; height: 22px; margin-left: -46px; border-radius: 0 0 12px 12px; background: #000; }
.fh-ov { position: absolute; }
.fh-ov--capsule { top: 34px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.14); font: 600 0.6rem/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: #eee; }
.fh-ov--capsule i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255,69,59); box-shadow: 0 0 8px rgba(255,69,59,0.9); }
.fh-ov--aura { top: -10px; left: 50%; width: 150px; height: 46px; margin-left: -75px; border-radius: 0 0 40px 40px; background: radial-gradient(60% 90% at 50% 20%, rgba(255,69,59,0.75), rgba(255,69,59,0) 70%); }
.fh-ov--island { top: 0; left: 50%; width: 200px; height: 30px; margin-left: -100px; border-radius: 0 0 16px 16px; background: #000; box-shadow: 0 0 0 1px rgba(255,69,59,0.5); display: flex; align-items: center; justify-content: center; gap: 3px; }
.fh-ov--island b { width: 3px; height: 12px; border-radius: 2px; background: rgb(255,69,59); }
.fh-ov--island b:nth-child(2), .fh-ov--island b:nth-child(4) { height: 7px; }
.fh-ov--edge { top: 0; left: 0; right: 0; height: 6px; background: rgb(255,69,59); box-shadow: 0 0 22px 6px rgba(255,69,59,0.55); }

/* other ways to run the same model: text cards, several links each */
.fh-ways .fh-body { padding-top: 22px; }
.fh-ways .fh-body h3 { font-size: 1.15rem; }
.fh-cmd { display: block; padding: 8px 10px; border-radius: 10px; background: #121212; border: 1px solid rgba(255,255,255,0.08); }

/* ─── narrow screens ─── */
@media (max-width: 1000px) { .fh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fh-hero--split, .fh-hero--film { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .fh-film { aspect-ratio: 1 / 1; }
  .fh-table tbody th { white-space: normal; }
  .fh-table th, .fh-table td { padding-right: 0.7rem; font-size: 0.92rem; }
}
@media (max-width: 760px) { .fh-grid--2, .fh-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .fh-grid { grid-template-columns: 1fr; }
  .fh-hero { padding-top: 6.5rem; }
  .fh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-spec th, .fh-spec td { display: block; width: auto; padding: 0.15rem 0; border: 0; }
  .fh-spec tr { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--mw-line); }
  .fh-spec tr:first-child { border-top: 1px solid var(--mw-line); }
  .fh-spec tr:first-child th, .fh-spec tr:first-child td { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fh-js .fh-caret, .fh-js .fh-pill[data-state="rec"] i, .fh-js .fh-bars.is-on b, .fh-lock.is-shake { animation: none; }
  .fh-card, .fh-btn, .fh-chip, .fh-switch, .fh-switch::after { transition: none; }
}
