/* FiveMLab: one stylesheet for the site and the hub. */
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --bg-2: #0f1116;
  --surface: #14161c;
  --surface-2: #1a1d25;
  --surface-3: #21252f;
  --line: #262a35;
  --line-2: #323745;
  --text: #eceef3;
  --text-2: #b6bbc8;
  --muted: #858b9b;
  --o1: #fca32e;
  --o2: #fc7201;
  --o3: #e65201;
  --ok: #4ade80;
  --bad: #ff6b6b;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-sm: 10px;
  --topbar: 64px;
  --side: 248px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--o1); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg { width: 30px; height: 30px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--o2); color: #111; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ── buttons, pills, chips ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.92rem; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn .ic { width: 16px; height: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 1rem; }
.btn-primary { background: linear-gradient(180deg, var(--o1), var(--o2)); color: #1a0d00; box-shadow: 0 6px 24px -8px rgba(252, 114, 1, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(252, 114, 1, 0.75); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

.pill { display: inline-flex; align-items: center; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.pill-free { background: rgba(74, 222, 128, 0.12); color: var(--ok); }
.pill-soon { background: var(--surface-3); color: var(--muted); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { font-family: var(--mono); font-size: 0.72rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: calc(var(--topbar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 20px 0;
  display: flex; align-items: center; gap: 28px;
  background: rgba(11, 12, 16, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 29px; width: auto; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 0.92rem; }
.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a[aria-current] { color: var(--text); background: var(--surface-2); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }
.api-status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted); }
.api-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.api-status.is-up i { background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }
.api-status.is-down i { background: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15); }

/* ── hub shell ── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.sidebar {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar));
  border-right: 1px solid var(--line); background: var(--bg-2);
}
.side-scroll { height: 100%; overflow-y: auto; padding: 18px 12px 28px; }
.side-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 6px; }
.side-title:first-child { margin-top: 0; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 0.9rem; }
.side-link .ic { color: var(--accent, var(--muted)); }
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent, var(--o2)); }
.side-link.is-soon { opacity: 0.6; }
.side-link em { margin-left: auto; font-style: normal; font-size: 0.66rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px; }
.scrim { display: none; }
.hub-main { padding: 28px clamp(16px, 3vw, 40px) 64px; max-width: 1240px; width: 100%; }

.page-head { margin-bottom: 22px; }
.page-head p { color: var(--text-2); max-width: 680px; }
.crumbs { font-size: 0.82rem; color: var(--muted) !important; margin-bottom: 8px; }
.crumbs a:hover { color: var(--text); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.02rem; }
.panel > p { color: var(--text-2); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.panel-head a:hover { color: var(--text); }
.panel-head a .ic { width: 14px; height: 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.hub-grid .panel { margin: 0; }
.hub-grid + .panel { margin-top: 18px; }
.notice { display: flex; gap: 12px; align-items: center; }
.notice p { margin: 0; }
.notice .ic { color: var(--o1); }

/* ── dropzone and jobs ── */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 190px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: radial-gradient(ellipse at top, rgba(252, 114, 1, 0.06), transparent 70%); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone-lg { min-height: 230px; }
.dropzone .ic-lg { color: var(--accent, var(--o2)); margin-bottom: 6px; }
.dropzone strong { font-size: 1.02rem; }
.dropzone span { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent, var(--o2)); background: radial-gradient(ellipse at top, rgba(252, 114, 1, 0.12), transparent 70%); }

.job { margin-top: 18px; display: grid; gap: 16px; }
.job .job > div:not([class]), .job .job > div:not([class]) > div:not([class]) { display: grid; gap: 16px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-row .kind { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; color: #111; background: var(--accent, var(--o1)); border-radius: 6px; padding: 2px 7px; }
.file-row .fname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-row .fsize { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.file-row .grow { flex: 1; }
.file-row .btn { height: 32px; padding: 0 12px; font-size: 0.82rem; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--o1), var(--o2)); transition: width 0.2s; }
.progress.is-busy span { width: 35%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.status { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.9rem; }
.status.is-error { color: var(--bad); }
.status.is-ok { color: var(--ok); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line-2); border-top-color: var(--o1); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-size: 0.8rem; font-weight: 700; color: var(--text-2); }
.field small { color: var(--muted); font-size: 0.78rem; }
.field input, .field select {
  height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2);
}
.field input:focus, .field select:focus { border-color: var(--o2); outline: none; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 0.85rem; color: var(--text-2); }
.seg button.is-on { background: var(--surface-3); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.result { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); padding: 16px; display: grid; gap: 14px; }
.result h3 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.78rem; }
.stat.is-good b { color: var(--ok); }
.stat.is-bad b { color: var(--bad); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); text-align: right; }
.table-scroll { max-height: 420px; overflow: auto; }
pre.json { margin: 0; max-height: 420px; overflow: auto; padding: 14px; font: 0.8rem/1.5 var(--mono); color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
details summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 0.88rem; }
details[open] summary { margin-bottom: 10px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tex { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; min-width: 0; }
.tex:hover { border-color: var(--line-2); }
.tex .thumb { aspect-ratio: 1; width: 100%; overflow: hidden; background: repeating-conic-gradient(#1b1e26 0 25%, #14161c 0 50%) 0 0 / 16px 16px; }
.tex img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; color: var(--muted); font-size: 0.7rem; }
.tex span { display: block; font-size: 0.75rem; padding: 6px 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.tex span:last-child { padding-bottom: 8px; }

.viewer { width: 100%; aspect-ratio: 16 / 10; background: radial-gradient(ellipse at center, #1f2230, #0c0d12); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; }

.streams { display: grid; gap: 8px; }
.stream { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stream audio { width: 100%; height: 34px; grid-column: 1 / -1; }

.dialog { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 6, 9, 0.8); padding: 24px; }
.dialog-box { max-width: min(92vw, 1000px); max-height: 88vh; display: grid; gap: 10px; }
.dialog-box img { max-height: 78vh; margin: auto; border-radius: 8px; background: repeating-conic-gradient(#1b1e26 0 25%, #14161c 0 50%) 0 0 / 16px 16px; }
.dialog-box .actions { justify-content: space-between; }

/* file list */
.files { display: grid; gap: 8px; }
.files .file-row { flex-wrap: wrap; }
.file-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.file-tools a { font-size: 0.78rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 8px; }
.file-tools a:hover { color: var(--text); border-color: var(--muted); }
.router-result { margin-top: 16px; }
.mini-tools { display: grid; gap: 6px; }
.mini-tool { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.mini-tool:hover { background: var(--surface-2); }
.mini-tool b { display: block; font-size: 0.92rem; }
.mini-tool small { color: var(--muted); }

/* ── tool cards ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.page-home .tool-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-bottom: 24px; }
.tool-card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s, background 0.15s; overflow: hidden;
}
.tool-card::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); opacity: 0; transition: opacity 0.15s; }
.tool-card:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.tool-card:hover::after { opacity: 1; }
.tool-card.is-soon { opacity: 0.7; }
.tool-body strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.tool-body span { color: var(--text-2); font-size: 0.9rem; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tool-ic {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.tool-ic .ic { width: 20px; height: 20px; }
.tool-ic-lg { width: 56px; height: 56px; border-radius: 15px; }
.tool-ic-lg .ic { width: 28px; height: 28px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.filter { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--text-2); }
.filter:hover { color: var(--text); }
.filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.search input { border: 0; background: none; outline: none; width: 180px; color: var(--text); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* tool page */
.tool-head { margin-bottom: 22px; }
.tool-title { display: flex; align-items: center; gap: 16px; }
.tool-title h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-title p { margin: 0; color: var(--text-2); font-size: 1.02rem; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.tool-side .panel h2 { margin-bottom: 8px; }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--text-2); font-size: 0.9rem; }
.steps-list li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--text); font-weight: 800; font-size: 0.75rem; }
.soon-panel { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 4px; }
.soon-panel .ic-lg { color: var(--muted); margin-bottom: 8px; }
.soon-panel p { max-width: 460px; }

/* ── marketing pages ── */
.layout-site main { padding: 0 20px; }
.section { max-width: 1180px; margin: 0 auto; padding: 56px 0; }
.section.narrow { max-width: 820px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--text-2); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--o1); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.kicker .ic { width: 15px; height: 15px; }

.hero { max-width: 1180px; margin: 0 auto; padding: 64px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, var(--o1), var(--o2) 55%, var(--o3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.88rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 15px; height: 15px; color: var(--ok); }

.hero-visual { position: relative; padding: 28px 0; }
.hero-visual::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(ellipse, rgba(252, 114, 1, 0.22), transparent 65%); filter: blur(30px); z-index: -1; }
.console { background: #0e1015; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.console-bar span { margin-left: 10px; color: var(--muted); font: 0.76rem var(--mono); }
.console-body { padding: 16px; display: grid; gap: 12px; }
.job-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.job-file .kind { font: 600 0.7rem var(--mono); background: var(--o1); color: #1a0d00; border-radius: 5px; padding: 1px 6px; }
.job-file .fname { font-weight: 700; font-size: 0.9rem; }
.job-file .size { margin-left: auto; font: 0.82rem var(--mono); color: var(--text-2); }
.job-file.done { border-color: rgba(74, 222, 128, 0.35); }
.job-file .after { color: var(--ok); }
.saved { font: 700 0.75rem var(--mono); color: var(--ok); background: rgba(74, 222, 128, 0.12); padding: 1px 6px; border-radius: 5px; }
.job-rows { display: grid; gap: 4px; }
.job-row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto 18px auto; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-2); padding: 3px 4px; }
.job-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row .arrow { color: var(--muted); font-weight: 400; text-align: center; }
.job-row .ok { color: var(--o1); }
.job-progress { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.job-progress span { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--o1), var(--o2)); animation: fill 2.6s ease-out both; }
@keyframes fill { from { width: 0; } }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8); font-size: 0.85rem; }
.float-card b { display: block; }
.float-card small { color: var(--muted); }
.fc-1 { right: -14px; top: -6px; }
.fc-2 { left: -22px; bottom: -34px; }

.steps-3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-3 li { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps-3 .ic { width: 24px; height: 24px; color: var(--o1); margin-bottom: 14px; }
.steps-3 p { color: var(--text-2); margin: 0; }
.step-n { position: absolute; right: 18px; top: 16px; font: 700 0.8rem var(--mono); color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
.feature p { color: var(--text-2); margin: 0; }
.feature-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(252, 114, 1, 0.12); color: var(--o1); margin-bottom: 14px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: 20px; background: radial-gradient(ellipse at 0% 0%, rgba(252, 163, 46, 0.18), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(230, 82, 1, 0.2), transparent 50%), var(--surface); border: 1px solid var(--line-2); }
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: var(--text-2); margin: 0; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.price-card { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.price-card.is-main { border-color: rgba(252, 114, 1, 0.5); box-shadow: 0 0 0 1px rgba(252, 114, 1, 0.25), 0 20px 60px -30px rgba(252, 114, 1, 0.5); }
.price-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.price-card li { display: flex; gap: 8px; align-items: center; }
.price-card li .ic { color: var(--ok); width: 16px; height: 16px; }

.prose h1 { margin-bottom: 0.4em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose h3 a { color: var(--o1); }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--o1); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose .table-wrap { margin: 1em 0; }
.not-found h1 { font-size: 2.6rem; }
.not-found .btn { margin: 4px; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 20px calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 25px; width: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer-cols a { display: block; color: var(--text-2); font-size: 0.9rem; margin-bottom: 6px; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { max-width: 1180px; margin: 28px auto 0; color: var(--muted); font-size: 0.78rem; }

/* ── responsive ── */
@media (max-width: 1080px) {
  .tool-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { max-width: 560px; }
}
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); font-size: 0.9rem; }
.toast.is-bad { border-color: rgba(255, 107, 107, 0.5); color: #ffd0d0; }

@media (max-width: 900px) {
  .layout-hub .menu-btn { display: inline-grid; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: var(--topbar); width: min(82vw, 300px); transform: translateX(-100%); transition: transform 0.2s; }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: var(--topbar) 0 0; z-index: 35; background: rgba(0, 0, 0, 0.55); }
  .steps-3, .split { grid-template-columns: 1fr; }
  .fc-1 { right: 0; }
  .fc-2 { left: 0; }
}
@media (max-width: 680px) {
  .topbar { gap: 12px; padding-inline: 16px; }
  .topnav { display: none; }
  .layout-site .menu-btn { display: inline-grid; }
  .layout-site.nav-open .topnav { display: flex; flex-direction: column; position: fixed; z-index: 40; top: var(--topbar); left: 0; right: 0; padding: 12px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .layout-site.nav-open .topnav a { padding: 10px 12px; }
  .api-status span { display: none; }
  .layout-site main { padding: 0 16px; }
  .hub-main { padding-inline: 16px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .cta-band { padding: 24px; }
  .job-row { grid-template-columns: minmax(0, 1fr) auto; }
  .job-row .mono:nth-of-type(2), .job-row .arrow { display: none; }
  .float-card { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
