/* =========================================================
   features.css — /features hub and /features/<slug> pages.
   Loaded after landing.css and for/for.css; only adds what
   those two lack. Tokens come from landing.css (:root).
   ========================================================= */

/* ── Breadcrumb ─────────────────────────────────────────── */
.ft-crumb {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); margin-bottom: 22px;
}
.ft-crumb a { color: var(--text-2); text-decoration: none; }
.ft-crumb a:hover { color: var(--text); }
.ft-crumb span[aria-current] { color: var(--indigo-2); }

/* ── Media block under the hero ─────────────────────────── */
.ft-media-section { padding-top: 0; }
.ft-media { max-width: 860px; margin: 0 auto; }
.ft-illo-auto { height: auto; padding: 18px 20px 20px; }
.ft-media-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.ft-media-foot {
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2);
}

/* video clip (AI video backgrounds) */
.ft-clip {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: #0b0d14;
}
.ft-clip-vid { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-clip-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.75));
  color: #fff; font-size: 14px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.ft-clip-pill {
  position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 999px;
  background: rgba(10,10,20,0.7); border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-mono); font-size: 10px; color: var(--indigo-2); letter-spacing: 0.05em;
}

/* three stills (AI cover images) */
.ft-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ft-stills figure { margin: 0; }
.ft-stills img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.ft-stills figcaption {
  margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-align: center;
}
@media (max-width: 680px) { .ft-stills { grid-template-columns: 1fr; } }

/* fake player screen (karaoke, visualizer) */
.ft-screen {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.ft-screen-art {
  position: absolute; inset: 0;
  background: url("/home-img/scene-c.jpg") center / cover no-repeat, #122931;
  opacity: 0.85;
}
.ft-screen-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
}
.ft-kara {
  position: absolute; left: 6%; right: 6%; bottom: 20%; text-align: center;
  font-size: clamp(22px, 4.2vw, 40px); font-weight: 700; color: #fff;
  letter-spacing: -0.01em; text-shadow: 0 2px 8px rgba(0,0,0,0.8); line-height: 1.2;
}
.ft-kara .done { color: var(--indigo-2); }
.ft-kara .now  { color: var(--indigo-2); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ft-kara-styles {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap;
}
.ft-kara-styles span {
  padding: 4px 9px; border-radius: 999px; background: rgba(10,10,20,0.7);
  border: 1px solid rgba(255,255,255,0.15); font-family: var(--font-mono);
  font-size: 10px; color: var(--text-2); letter-spacing: 0.04em;
}
.ft-kara-styles span.on { color: var(--indigo-2); border-color: rgba(99,102,241,0.6); }

/* visualizer bars — decorative, static */
.ft-viz {
  position: absolute; left: 10%; right: 10%; bottom: 34%; height: 26%;
  display: flex; align-items: flex-end; gap: 4px;
}
.ft-viz i {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--indigo-2), rgba(99,102,241,0.35));
  opacity: 0.9;
}
@media (prefers-reduced-motion: no-preference) {
  .ft-viz i { animation: ft-viz-bob 1.6s ease-in-out infinite alternate; }
  .ft-viz i:nth-child(odd) { animation-duration: 1.9s; }
  .ft-viz i:nth-child(3n) { animation-duration: 1.3s; }
}
@keyframes ft-viz-bob { to { height: calc(var(--h) * 0.55); } }

/* caption rows with SET (auto captions) */
.ft-rows { display: flex; flex-direction: column; gap: 6px; }
.ft-row {
  display: grid; grid-template-columns: auto auto auto auto 1fr; align-items: center;
  gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  font-size: 13px;
}
.ft-row.is-on { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.08); }
.ft-tc { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-2); }
.ft-set {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border-strong); color: var(--text-2); background: rgba(255,255,255,0.04);
}
.ft-txt { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .ft-row { grid-template-columns: auto auto 1fr; }
  .ft-row .ft-tc:nth-child(3), .ft-row .ft-set:nth-child(4) { display: none; }
}

/* import tabs + url (song link import) */
.ft-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-tabs span {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.ft-tabs span.on { color: var(--text); border-color: rgba(99,102,241,0.6); background: var(--indigo-soft); }
.ft-url {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: #04040a; border: 1px solid var(--border);
}
.ft-url span { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-url b { font-size: 12px; font-weight: 600; color: #fff; background: var(--indigo); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }

/* translate rows */
.ft-trans { display: flex; flex-direction: column; gap: 6px; }
.ft-trans > div {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  font-size: 13px;
}
.ft-lang {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 999px;
  color: var(--indigo-2); background: var(--indigo-soft); border: 1px solid rgba(99,102,241,0.3);
}
@media (max-width: 560px) { .ft-trans > div { grid-template-columns: 1fr auto; } .ft-trans .ft-tc { display: none; } }

/* subtitle formats */
.ft-formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ft-formats > div {
  padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.ft-formats b { font-family: var(--font-mono); font-size: 13px; color: var(--indigo-2); }
.ft-formats span { font-size: 12px; color: var(--text-2); }
@media (max-width: 560px) { .ft-formats { grid-template-columns: 1fr; } }

/* export queue */
.ft-queue { display: flex; flex-direction: column; gap: 6px; }
.ft-queue > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--border);
  font-size: 13px;
}
.ft-q-name { color: var(--text); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-q-state { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.ft-q-state.ok { color: var(--green); }
.ft-q-state.run { color: var(--indigo-2); }

/* ── Related features ───────────────────────────────────── */
.ft-related-section { padding-top: 0; }
.ft-related {
  list-style: none; margin: 0 auto; padding: 0; max-width: 860px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.ft-related li {
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px;
}
.ft-related li a { color: var(--text); font-weight: 600; text-decoration: none; font-size: 15px; letter-spacing: -0.01em; }
.ft-related li a:hover { color: var(--indigo-2); }
.ft-related li span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 760px) { .ft-related { grid-template-columns: 1fr; } }

/* ── Hub: groups and cards ──────────────────────────────── */
.ft-group { padding-top: 0; }
.ft-group-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.ft-group-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.ft-group-head p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.ft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr; } }
.ft-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 28px;
  border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ft-card:hover {
  border-color: rgba(99,102,241,0.5); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.ft-card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); margin: 0; }
.ft-card p { font-size: 0.95rem; color: var(--text-2); margin: 0; line-height: 1.6; }
.ft-more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--indigo-2); }

/* ── Hub: use-case chips ────────────────────────────────── */
.ft-uses-section { padding-top: 0; }
.ft-uses { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.ft-uses a {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); text-decoration: none;
}
.ft-uses a:hover { border-color: rgba(99,102,241,0.5); color: var(--indigo-2); }
