/* Video Editor Suite website: one stylesheet for every page. System fonts only (fast, private). */
:root {
  --bg: #0e0f12;
  --bg-2: #14161a;
  --surface: #1a1c21;
  --surface-2: #22252b;
  --border: #2b2e35;
  --text: #ecedf1;
  --text-dim: #a7abb5;
  --text-faint: #7d818b;
  --accent: #3d7bff;
  --accent-2: #7b5cff;
  --accent-hover: #5a8eff;
  --ok: #3ccf8e;
  --radius: 14px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--text-dim); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px rgba(61, 123, 255, 0.28); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), #8f74ff); }
.nav .btn-primary { color: #fff; padding: 8px 16px; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }

/* hero */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(61, 123, 255, 0.22), transparent 70%) 30% 40% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(123, 92, 255, 0.18), transparent 70%) 72% 30% / 55% 65% no-repeat;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 13.5px; background: rgba(255, 255, 255, 0.03); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin: 22px auto 18px; max-width: 900px; font-weight: 800; }
.grad { background: linear-gradient(120deg, #8db4ff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--text-dim); max-width: 700px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 14px; }
.fineprint { color: var(--text-faint); font-size: 14px; }
.fineprint span + span::before { content: "·"; margin: 0 10px; color: var(--border); }

.shot { margin: 52px auto 0; max-width: 1100px; border-radius: 16px; padding: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.shot img { border-radius: 10px; width: 100%; }

/* sections */
section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(61, 123, 255, 0.22), rgba(123, 92, 255, 0.22)); color: #b9ccff; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; font-weight: 700; background: var(--accent); color: #fff; }
.step p { color: var(--text-dim); margin: 0; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split p:not(:where(.ad-slot *)) { color: var(--text-dim); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checks li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); font-size: 15px; }
.panel .row:last-child { border-bottom: 0; }
.panel .row b { color: var(--text); font-weight: 600; text-align: right; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-faint); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-dim); margin: 0 0 18px; }

.final { text-align: center; padding: 96px 0; }
.final .lead { margin-bottom: 30px; }

/* content pages (help, legal) */
.page-hero { padding: 64px 0 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 0 0 12px; text-align: left; max-width: none; }
.page-hero p { color: var(--text-dim); font-size: 18px; margin: 0; max-width: 760px; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; }
.toc p:not(:where(.ad-slot *)) { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; margin: 0 0 10px; }
.toc a:not(:where(.ad-slot *)) { display: block; color: var(--text-dim); padding: 6px 10px; border-radius: 8px; }
.toc a:not(:where(.ad-slot *)):hover { background: var(--surface); color: var(--text); text-decoration: none; }
.prose { max-width: 760px; min-width: 0; }
.prose h2:not(:where(.ad-slot *)) { font-size: 26px; margin: 48px 0 12px; scroll-margin-top: 84px; }
.prose h2:not(:where(.ad-slot *)):first-child { margin-top: 0; }
.prose h3:not(:where(.ad-slot *)) { font-size: 18px; margin: 28px 0 8px; }
.prose p:not(:where(.ad-slot *)), .prose li:not(:where(.ad-slot *)) { color: #cfd2d9; }
.prose ul:not(:where(.ad-slot *)), .prose ol:not(:where(.ad-slot *)) { padding-left: 22px; }
.prose li:not(:where(.ad-slot *)) { margin: 6px 0; }
.prose strong:not(:where(.ad-slot *)) { color: var(--text); }
.prose .note { background: rgba(61, 123, 255, 0.10); border: 1px solid rgba(61, 123, 255, 0.35); border-radius: 12px; padding: 14px 18px; color: #d6e2ff; margin: 18px 0; }
.prose .meta { color: var(--text-faint); font-size: 14px; }
kbd { font: 13px var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--text); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-dim); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; }
td:first-child { white-space: nowrap; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 28px; }
.contact-grid .card h3 { margin-bottom: 6px; }
.contact-grid .card p { margin-bottom: 14px; }

/* footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 0 48px; color: var(--text-faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.site-footer a { color: var(--text-dim); }

/* home page effect tool (docs\14 §3) */
.fxtool { position: relative; padding: 28px 0 44px; }
.fxtool::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(1100px 420px at 15% -10%, rgba(61, 123, 255, 0.16), transparent 60%), radial-gradient(900px 400px at 95% -5%, rgba(123, 92, 255, 0.14), transparent 60%); }
.fxtool .wrap { position: relative; }
.fxtool h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 6px; }
.fxtool .lead { margin: 0; max-width: 760px; }
.fxtool .fineprint { margin: 18px 0 0; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 20px; margin-top: 18px; align-items: start; }
.fx-stage-col { min-width: 0; }
.fx-stage { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.fx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.fx-stage.fx-dropping { outline: 2px dashed var(--accent); outline-offset: -8px; }
.fx-tag { position: absolute; left: 12px; top: 12px; background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; pointer-events: none; }
.fx-tag:empty { display: none; }
.fx-reading { position: absolute; left: 12px; bottom: 12px; max-width: 70%; background: rgba(10, 11, 14, 0.78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 5px 11px; font-size: 13px; color: var(--text); pointer-events: none; }
.fx-play { position: absolute; right: 12px; bottom: 12px; background: rgba(10, 11, 14, 0.72); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fx-fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--text-dim); background: var(--bg-2); }
.fx-hitrow { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fx-hitrow canvas { flex: 1; min-width: 0; height: 38px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; display: block; }
.fx-hitrow span { font-size: 12.5px; color: var(--text-dim); width: 210px; line-height: 1.3; }
.fx-sources { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fx-src { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 13.5px; }
.fx-src img { width: 56px; height: 32px; object-fit: cover; border-radius: 6px; }
.fx-src[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fx-src-drop { border-style: dashed; color: var(--text-dim); padding: 4px 14px; min-height: 42px; }
.fx-src-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* the panel stays in view: its settings scroll inside it, the actions are always at the bottom */
.fx-panel { position: sticky; top: 80px; max-height: calc(100vh - 96px); background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.fx-view { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.fx-view[hidden] { display: none; }
.fx-head { display: flex; align-items: flex-start; gap: 10px; }
.fx-head-text { flex: 1; min-width: 0; }
.fx-head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.fx-head h2, .fx-tool-head h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.fx-desc { margin: -4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); }
.fx-desc:empty { display: none; }
.fx-group { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.fx-label { font-weight: 700; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.fx-foot { flex: none; border-top: 1px solid var(--border); padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.fx-make { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }
.fx-make > span { margin-right: 2px; }
.fx-make-btn { font: inherit; font-size: 12.5px; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.fx-make-btn:hover, .fx-make-btn[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.fx-tool { display: flex; flex-direction: column; gap: 12px; }
.fx-tool[hidden] { display: none; }
.fx-tool-head { display: flex; align-items: center; gap: 10px; }
.fx-tool-head h2 { margin: 0; font-size: 19px; }

/* the effect browser under the stage: a family filter and a compact grid that scrolls in its own box */
.fx-browser { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px 14px; }
.fx-browser[hidden] { display: none; }
.fx-browser-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fx-browser-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.fx-browser-head h2 span { color: var(--text-faint); font-weight: 500; font-size: 13px; margin-left: 4px; }
.fx-families { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-families button { font: inherit; font-size: 12.5px; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.fx-families button[aria-pressed="true"] { color: var(--text); background: var(--surface-2); border-color: var(--accent); }
.fx-families button small { color: var(--text-faint); margin-left: 4px; font-size: 11px; }
.fx-step { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.fx-step i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; color: var(--text); }
.fx-aside { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-faint); font-size: 12.5px; }
.fx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 262px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.fx-card { display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 5px; cursor: pointer; color: var(--text); text-align: left; font: inherit; }
.fx-card[hidden] { display: none; }
.fx-card canvas { width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; display: block; background: #000; }
.fx-card span { font-size: 12.5px; font-weight: 650; padding: 2px 3px 2px; line-height: 1.25; }
.fx-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(61, 123, 255, 0.16); border-color: var(--accent); color: var(--text); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { background: var(--bg-2); color: var(--text-dim); border: 0; border-right: 1px solid var(--border); padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.fx-ctls { display: flex; flex-direction: column; gap: 10px; }
.fx-ctl { display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.fx-ctl-wide { grid-template-columns: 112px minmax(0, 1fr); }
.fx-ctl-text textarea { width: 100%; min-height: 3.2em; resize: vertical; font: inherit; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text); }
.fx-ctl label, .fx-ctl > span { color: var(--text-dim); }
.fx-ctl output { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }
.fx-ctl input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0; }
.fx-music { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fx-file { position: relative; overflow: hidden; }
.fx-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-songname { font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.fx-songname:empty { display: none; }
.fx-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-actions .btn { flex: 1; }
.fx-lyric-text { width: 100%; min-height: 7em; resize: vertical; font: inherit; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text); }
.fx-lines { max-height: 180px; overflow: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.fx-lines label { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; color: var(--text-dim); }
.fx-lines input { width: 64px; font: inherit; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); }
.fx-lines .now { color: var(--text); font-weight: 600; }
.fx-tap { width: 100%; padding: 14px; font-size: 15px; }
.fx-plan { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.fx-plan > span { flex: 1 1 0; min-width: 0; font-size: 10.5px; line-height: 26px; padding: 0 4px; color: #0e0f12; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-right: 1px solid rgba(0, 0, 0, 0.35); }
.fx-plan > span:last-child { border-right: 0; }
/* (anything the tool hides stays hidden, whatever its own display) */
.fx-grid [hidden] { display: none !important; }
.fx-plan .lv-calm { background: #7fb3ff; } .fx-plan .lv-build { background: #b59cff; } .fx-plan .lv-peak { background: #ff9f6b; }
.fx-plan .lv-title { background: #e8e8ee; }
.fx-tool input[type="text"] { flex: 1 1 160px; min-width: 0; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text); }
.fx-export { display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.fx-export-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.fx-export-buttons { justify-content: flex-end; }
.fx-export-note, .fx-export-status { margin: 0; font-size: 13px; color: var(--text-faint); }
.fx-export-status:empty { display: none; }
.fx-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fx-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s; }
.fx-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #20232b; border: 1px solid #3a3f4a; color: var(--text); padding: 11px 16px; border-radius: 12px; max-width: min(560px, calc(100% - 32px)); font-size: 14px; z-index: 80; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.editor-intro .shot { margin: 0; }
.crumbs { margin: 0 0 8px; font-size: 14px; color: var(--text-faint); }
.crumbs a { color: var(--text-dim); }
.howto { margin: 0; padding-left: 22px; color: var(--text-dim); display: grid; gap: 10px; font-size: 16px; }
/* (rows are spaced by the cards' own margin, not a row gap, so an empty ad row in the list adds nothing) */
.more-fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 12px; margin-bottom: -12px; }
.more-fx > .more-card, .more-fx > .more-soon { margin-bottom: 12px; }
.more-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.more-card:hover { text-decoration: none; border-color: var(--accent); }
.more-card span { color: var(--text-dim); font-size: 14px; }
.more-soon { color: var(--text-dim); margin: 0; }

/* ad places (assets/Ads_terra.js): an empty place has no height and no margin, so a blocked or missing ad leaves no
   gap; a drawn ad gets room to breathe and never makes the page scroll sideways; an empty box an ad leaves behind is
   folded away (.ad-off) */
.ad-slot { margin: 0; max-width: 100%; width: 100%; overflow: hidden; }
.ad-slot.ad-off { height: 0; }
.ad-slot.ad-on { margin: 28px 0; }
.ad-band .ad-slot.ad-on { margin: 34px 0; }
.fx-stage-col .ad-slot.ad-on { margin: 16px 0 0; }
.toc .ad-slot.ad-on { margin: 22px 0 0; }
.prose .ad-slot.ad-on { margin: 36px 0; }
/* in the More effects list: a whole row of its own */
.more-fx .ad-slot { grid-column: 1 / -1; }
.more-fx .ad-slot.ad-on { margin: 14px 0 26px; }
.ad-grid { display: flex; flex-wrap: wrap; column-gap: 18px; justify-content: center; }
.ad-grid .ad-slot { flex: 0 0 100%; min-width: 0; }
.ad-grid .ad-slot.ad-on { flex: 1 1 340px; margin: 0 0 18px; }
.ad-grid:has(.ad-on) { margin-bottom: 40px; }
/* a side column with an ad stays in view only while it fits the window (Ads_terra.js sets .ad-tall) */
.toc.ad-tall, .side-ads.ad-tall { position: static; }
/* the support page: the content, and a side column that stays in view */
.doc-side { grid-template-columns: minmax(0, 1fr) 300px; }
.doc-main { min-width: 0; }
.side-ads { position: sticky; top: 88px; align-self: start; min-width: 0; }
.side-ads .ad-slot.ad-on { margin: 0 0 22px; }
/* no ad drawn in the side column: the content takes the whole width (no empty column) */
.doc-side:not(:has(.ad-on)) { display: block; }

/* small screens */
@media (max-width: 980px) {
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
  .fx-panel { position: static; max-height: none; }
  .fx-cards { max-height: 300px; }
  .grid, .steps, .contact-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc p:not(:where(.ad-slot *)) { width: 100%; }
  .doc-side { gap: 0; }
  .side-ads { position: static; }
  .side-ads .ad-slot.ad-on { margin: 28px 0 0; }
}
@media (max-width: 680px) {
  /* the tool on a phone: single rows that scroll sideways instead of tall stacks */
  .fx-sources, .fx-families { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .fx-sources > *, .fx-families > * { flex: none; }
  .fx-hitrow { flex-wrap: wrap; gap: 6px; }
  .fx-hitrow span { width: 100%; }
  .fx-tag { font-size: 11.5px; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fx-ctl { grid-template-columns: 96px minmax(0, 1fr) 48px; }
  .fx-ctl-wide { grid-template-columns: 96px minmax(0, 1fr); }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .site-footer nav { margin-left: 0; }
  td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
