@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:200 800;font-display:swap;src:url('/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:200 800;font-display:swap;src:url('/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* convertmp4mp3.com
   Tokens first (light, then dark), then base, layout, components. */

:root {
  --bg: #f2f3ee;
  --surface: #ffffff;
  --surface-2: #e6e8e1;
  --text: #0f1210;
  --text-2: #3d443e;
  --muted: #565d57;
  --line: #d5d8ce;
  --line-2: #9aa197;
  --line-strong: #0f1210;
  --accent: #c8f53c;
  --on-accent: #0f1210;
  --band-bg: #0f1210;
  --band-text: #f2f3ee;
  --band-muted: #a9b0a8;
  --band-line: #333a34;
  --shadow: #0f1210;
  --danger: #b3261e;
  --wave-off: #9aa197;
  --overlay: rgba(15, 18, 16, 0.55);

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1264px;
  --gutter: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1210;
    --surface: #181c19;
    --surface-2: #252b26;
    --text: #f2f3ee;
    --text-2: #cfd4cc;
    --muted: #a9b0a8;
    --line: #2f3630;
    --line-2: #5a625b;
    --line-strong: #f2f3ee;
    --band-bg: #181c19;
    --band-text: #f2f3ee;
    --band-muted: #a9b0a8;
    --band-line: #2f3630;
    --shadow: #c8f53c;
    --danger: #ffb4ab;
    --wave-off: #5a625b;
    --overlay: rgba(0, 0, 0, 0.65);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0f1210;
  --surface: #181c19;
  --surface-2: #252b26;
  --text: #f2f3ee;
  --text-2: #cfd4cc;
  --muted: #a9b0a8;
  --line: #2f3630;
  --line-2: #5a625b;
  --line-strong: #f2f3ee;
  --band-bg: #181c19;
  --band-text: #f2f3ee;
  --band-muted: #a9b0a8;
  --band-line: #2f3630;
  --shadow: #c8f53c;
  --danger: #ffb4ab;
  --wave-off: #5a625b;
  --overlay: rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the sticky header */
  scroll-padding-bottom: 120px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--font-mono); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 { font-size: 1.19rem; font-weight: 700; line-height: 1.25; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.prose p + p { margin-top: 0.9em; }
.prose { color: var(--text-2); max-width: 68ch; }
.prose strong { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: #0f1210; font-weight: 700; }
.btn--lg { min-height: 56px; padding: 0 28px; border-radius: 14px; font-size: 1.12rem; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.94rem; }
.btn--ghost { border-color: var(--line-2); }
.btn--on-band { background: transparent; color: var(--band-text); border-color: var(--band-text); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.icon-btn {
  flex: none; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn--round { border-radius: 50%; width: 48px; height: 48px; background: var(--text); color: var(--bg); }
.icon-btn--round:hover { background: var(--text-2); }

.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  border: 0; background: none; color: var(--text); font-weight: 500; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 35;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; padding-block: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.logo__mark {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: #0f1210;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.logo__mark i { display: block; width: 4px; border-radius: 2px; background: var(--accent); }
.logo__mark i:nth-child(1) { height: 10px; }
.logo__mark i:nth-child(2) { height: 20px; }
.logo__mark i:nth-child(3) { height: 14px; }
:root[data-theme='dark'] .logo__mark { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .logo__mark { background: var(--surface-2); } }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.logo__text span { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0 26px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.97rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav a:hover { text-decoration: underline; }
.nav a[aria-current='page'] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }

.site-header__tools { display: flex; align-items: center; gap: 8px; }

.theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: block; }
}

.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 0.94rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary .chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); box-shadow: 4px 4px 0 var(--shadow);
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 12px; border-radius: 9px; text-decoration: none; font-weight: 500;
}
.lang__menu a:hover { background: var(--surface-2); }
.lang__menu a[aria-current='true'] { font-weight: 700; }
.flag { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-2); }
.lang__item { display: inline-flex; align-items: center; gap: 10px; }
.site-footer a .flag { margin-right: 10px; box-shadow: 0 0 0 1px var(--band-line); }
.lang__short { display: none; font-family: var(--font-mono); font-size: 0.85rem; }
.lang__menu small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.lang__menu--wide { columns: 2; column-gap: 4px; width: min(404px, calc(100vw - 32px)); }
.lang__menu--wide a { line-height: 1.25; }
.lang__menu--wide li { break-inside: avoid; }
.lang__menu--wide small { display: none; }

/* Scripts the brand fonts do not cover use the fonts of the device. The tight
   tracking and leading above are tuned for Latin letters, so they are relaxed. */
html:lang(ja) {
  --font-display: 'Bricolage Grotesque', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', 'Noto Sans CJK JP', Meiryo, system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Noto Sans JP', 'Noto Sans CJK JP', Meiryo, system-ui, sans-serif;
  line-break: strict;
}
html:lang(hi) {
  --font-display: 'Bricolage Grotesque', 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Noto Sans Devanagari', 'Nirmala UI', 'Kohinoor Devanagari', system-ui, sans-serif;
}
:lang(ja), :lang(hi) { letter-spacing: 0 !important; }
html:lang(ja) :is(h1, h2, h3, .dropzone__title, .work__title, .kpi__value, .editor__title) { line-height: 1.3; word-break: auto-phrase; }
html:lang(ja) .h1 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.9rem); }
html:lang(hi) :is(h1, h2, h3, .dropzone__title, .work__title, .kpi__value, .editor__title) { line-height: 1.4; }

/* ---------- language suggestion ---------- */

.suggest { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.suggest__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; padding-block: 4px; }
.suggest a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ---------- hero + drop card ---------- */

.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 44px 64px;
  padding-block: 64px 56px;
}
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__card { flex: 1 1 440px; min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
}
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--line-strong); }

.h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance;
}
.h1 span { display: inline; }

.ticks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden;
}
.ticks li { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
.ticks li + li { border-left: 1px solid var(--line); }
.ticks__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210;
}
.ticks__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticks__text b { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.ticks__text span { font-size: 0.88rem; line-height: 1.35; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 24px; padding: 12px; box-shadow: 6px 6px 0 var(--shadow);
}
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 28px 24px; border: 1.5px dashed var(--line-2); border-radius: 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dropzone.is-over { background: var(--surface-2); border-color: var(--line-strong); border-style: solid; }
.dropzone__title { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; line-height: 1.15; letter-spacing: -0.015em; }
.dropzone__hint { color: var(--muted); font-size: 1rem; }
.dropzone__formats { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }

.strip { width: 100%; display: flex; align-items: center; gap: 14px; height: 88px; color: var(--text); }
.strip__frames { flex: 0 0 32%; display: flex; gap: 4px; height: 60px; }
.strip__frames i {
  flex: 1; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface-2);
}
.strip__bars { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; height: 88px; }
.strip__bars i { flex: 1; border-radius: 2px; background: var(--text); height: calc(var(--h) * 1%); }
.strip > svg { flex: none; }
.strip--reverse { flex-direction: row-reverse; }
.strip--reverse > svg { transform: none; }

.card__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding: 16px 12px 4px;
}
.card__label { font-size: 0.94rem; font-weight: 600; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pill { position: relative; display: inline-flex; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500; white-space: nowrap;
}
.pill input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 3px; }
.pill input:disabled + span { opacity: 0.5; }

.toggle { position: relative; display: inline-flex; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.toggle span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 0.94rem; font-weight: 600;
}
.toggle input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.toggle input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 3px; }

.meter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  margin-top: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--band-bg); color: var(--band-text);
  font-family: var(--font-mono); font-size: 0.8rem;
}
:root[data-theme='dark'] .meter { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .meter { background: var(--surface-2); } }
.meter span { display: inline-flex; align-items: center; gap: 10px; }
.meter .dot { width: 8px; height: 8px; border: 0; }
.meter b { font-weight: 500; }

/* ---------- workspace (after files are added) ---------- */

.work { padding-block: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
.work__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.work__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.work__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.work__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 24px; align-items: start; }

.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  font-size: 0.97rem;
}
.notice--error { border-color: var(--danger); }
.notice__bar { flex: 1 1 160px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.notice__bar i { display: block; height: 100%; width: 0; background: var(--text); border-radius: 999px; transition: width 0.2s linear; }

.queue { display: flex; flex-direction: column; gap: 12px; }
.qi {
  display: flex; flex-direction: column; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.qi.is-selected { border: 1.5px solid var(--line-strong); box-shadow: 4px 4px 0 var(--shadow); padding: 13.5px; }
.qi__top { display: flex; align-items: center; gap: 4px; }
.qi__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; text-align: left; min-height: 44px;
}
.qi__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.qi__text { flex: 1; min-width: 0; }
.qi__name { display: block; font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qi__meta { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 0.8rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.chip--done { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip--error { border-color: var(--danger); color: var(--danger); }
.chip--pct { border: 0; padding-inline: 4px; font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500; color: var(--text); }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--text); transition: width 0.25s linear; }
.bar.is-indeterminate i { width: 35%; animation: slide 1.1s ease-in-out infinite alternate; }
@keyframes slide { from { transform: translateX(-20%); } to { transform: translateX(210%); } }
.qi__note { font-size: 0.88rem; color: var(--muted); }
.qi__note--error { color: var(--danger); }
.qi__row { display: flex; flex-wrap: wrap; gap: 8px; }
.qi__row .btn { flex: 1 1 auto; }
.qi__edit { display: none; }

.queue__more {
  display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px;
  border: 1.5px dashed var(--line-2); border-radius: 16px; background: none;
  color: var(--muted); font-size: 0.94rem; text-align: center; width: 100%;
}
.queue__more:hover { border-color: var(--line-strong); color: var(--text); }

.editor {
  display: flex; flex-direction: column; gap: 20px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
}
.editor[aria-disabled='true'] .editor__body { opacity: 0.55; pointer-events: none; }
.editor__body { display: flex; flex-direction: column; gap: 20px; }
.editor__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.editor__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor__sub { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.editor__close { display: none; }
.editor__empty { color: var(--muted); }

.trim { position: relative; height: 128px; border-radius: 12px; background: var(--bg); overflow: hidden; touch-action: pan-y; }
.trim canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* while the waveform is being drawn: the placeholder breathes and a bar fills */
.trim.is-loading canvas { animation: breathe 1.1s ease-in-out infinite alternate; }
.trim__bar { position: absolute; left: 0; bottom: 0; z-index: 1; height: 5px; width: 0; background: var(--text); border-radius: 0 3px 3px 0; transition: width 0.25s linear; pointer-events: none; }
@keyframes breathe { from { opacity: 0.45; } to { opacity: 1; } }
.spinner { display: block; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trim input[type='range'] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
  background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.trim input[type='range']::-webkit-slider-runnable-track { height: 100%; background: none; }
.trim input[type='range']::-moz-range-track { height: 100%; background: none; }
.trim input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: ew-resize;
  width: 28px; height: 128px; border: 0; border-radius: 0;
  background: linear-gradient(to right, transparent 11px, var(--text) 11px, var(--text) 17px, transparent 17px);
}
.trim input[type='range']::-moz-range-thumb {
  pointer-events: auto; cursor: ew-resize;
  width: 28px; height: 128px; border: 0; border-radius: 0;
  background: linear-gradient(to right, transparent 11px, var(--text) 11px, var(--text) 17px, transparent 17px);
}
.trim input[type='range']:focus-visible { outline: none; }
.trim input[type='range']:focus-visible::-webkit-slider-thumb { background: linear-gradient(to right, transparent 8px, var(--text) 8px, var(--text) 20px, transparent 20px); }
.trim input[type='range']:focus-visible::-moz-range-thumb { background: linear-gradient(to right, transparent 8px, var(--text) 8px, var(--text) 20px, transparent 20px); }
.ruler { display: flex; justify-content: space-between; margin-top: 8px; padding-inline: 14px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.trim-note { margin-top: 8px; font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }

.fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; min-width: 0; }
.field input[type='text'], .field select {
  height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 1rem; font-weight: 400; width: 100%;
}
.field--time input[type='text'] { width: 108px; font-family: var(--font-mono); border-color: var(--line-strong); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.field input[aria-invalid='true'] { border-color: var(--danger); }

.namebox {
  display: flex; align-items: center; height: 48px; padding-right: 14px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface);
}
.namebox:focus-within { outline: 3px solid var(--text); outline-offset: 2px; }
.field .namebox input[type='text'] { flex: 1; min-width: 0; height: 100%; border: 0; background: none; border-radius: 12px; }
.field .namebox input[type='text']:focus-visible { outline: none; }
.namebox__ext { flex: none; font-family: var(--font-mono); font-size: 0.94rem; font-weight: 500; color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.editor__cols { display: flex; flex-wrap: wrap; gap: 24px 28px; }
.editor__col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.editor__col--wide { flex: 1 1 320px; }
.est { font-size: 0.94rem; color: var(--text-2); }
.est b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.tags { display: flex; gap: 16px; }
.tags__fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cover {
  flex: none; position: relative; width: 104px; height: 104px; align-self: flex-end;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--bg);
  color: var(--text-2); font-size: 0.8rem; font-weight: 600; text-align: center; padding: 6px;
  background-size: cover; background-position: center; overflow: hidden;
}
.cover.has-image { border-style: solid; border-color: var(--line-strong); color: transparent; }
.cover.has-image svg { display: none; }
.cover--wide { width: 100%; height: 148px; align-self: stretch; background-size: contain; background-repeat: no-repeat; }

.actionbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 16px 20px; border-radius: 16px; background: var(--band-bg); color: var(--band-text);
  position: sticky; bottom: 12px; z-index: 5;
}
:root[data-theme='dark'] .actionbar { border: 1px solid var(--band-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .actionbar { border: 1px solid var(--band-line); } }
.actionbar__meter { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.8rem; }
.actionbar__meter .dot { width: 8px; height: 8px; border: 0; }
.actionbar__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.actionbar .btn--primary { border-color: var(--accent); }

/* ---------- ad slots ---------- */

.ad { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 8px 40px; }
.ad__label { font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad__slot { display: block; width: 100%; max-width: 728px; height: 90px; }
.ad__slot--box { width: 300px; max-width: 100%; height: 250px; }
@media (max-width: 760px) { .ad__slot--banner, .ad__slot.is-preview:not(.ad__slot--box) { max-width: 320px; height: 100px; } }
.ad__slot.is-preview {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-2); border-radius: 6px; background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.ad--side { flex: 0 0 300px; padding: 0; }

/* ---------- content sections ---------- */

.section { padding-block: 72px; }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.steps { display: flex; flex-wrap: wrap; gap: 20px; counter-reset: step; }
.step {
  flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
}
.step__n {
  align-self: flex-start; padding: 4px 10px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.step p { color: var(--text-2); font-size: 1rem; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.split__main { flex: 999 1 560px; min-width: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 32px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 4px;
  background: var(--text); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature p { color: var(--text-2); font-size: 1rem; }

.cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.cols__side { flex: 1 1 280px; min-width: 0; }
.cols__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.table { min-width: 520px; font-size: 0.97rem; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table td.num, .table th.num { font-family: var(--font-mono); font-size: 0.9rem; white-space: nowrap; }

/* ---------- "why in the browser": lanes, headline numbers, comparison ---------- */

.lanes { display: flex; flex-direction: column; gap: 14px; }
.lane { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.lane--us { border: 1.5px solid var(--line-strong); box-shadow: 5px 5px 0 var(--shadow); }
.lane__name {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.lane--us .lane__name { color: var(--text); }
.lane__name .logo__mark { width: 24px; height: 24px; border-radius: 7px; gap: 2px; }
.lane__name .logo__mark i { width: 3px; }
.lane__name .logo__mark i:nth-child(1) { height: 7px; }
.lane__name .logo__mark i:nth-child(2) { height: 13px; }
.lane__name .logo__mark i:nth-child(3) { height: 9px; }
.lane__path { display: flex; align-items: center; gap: 12px; }
.lane__note { display: none; }
.node { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.97rem; line-height: 1.2; }
.node__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text);
}
.node--remote .node__icon { background: none; border: 1.5px dashed var(--line-2); color: var(--muted); }
.node--remote .node__label { color: var(--text-2); }
.node--us .node__icon { background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210; }
.hop { flex: 1; min-width: 56px; display: flex; flex-direction: column; gap: 6px; }
.hop__label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); text-align: center; line-height: 1.3; }
.hop__line { position: relative; height: 2px; background: var(--line-2); border-radius: 2px; margin-right: 6px; }
.hop__line::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 9px; height: 9px;
  border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2);
  transform: translateY(-50%) rotate(45deg);
}
.lane__here, .lane__stays {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; font-size: 0.94rem; font-weight: 600;
}
.lane__here { background: var(--text); color: var(--bg); }
.lane__stays { margin-left: auto; border: 1.5px solid var(--line-2); color: var(--text); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.kpi--accent { background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 0.55rem + 1.55vw, 2.2rem); line-height: 1.05; letter-spacing: -0.02em; }
.kpi__label { font-size: 0.94rem; color: var(--text-2); }
.kpi--accent .kpi__label { color: #2a3010; }

.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; font-size: 0.97rem; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { padding-block: 14px; border-bottom: 0; vertical-align: bottom; }
.cmp__head { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.cmp thead .cmp__them { color: var(--muted); }
.cmp tbody th { font-weight: 700; }
.cmp tbody th, .cmp tbody td { height: 64px; }
.cmp__cell { display: flex; align-items: center; gap: 12px; }
.cmp tbody th .cmp__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  flex: none; border-radius: 10px; background: var(--surface-2); color: var(--text);
}
.cmp td.cmp__them { color: var(--muted); }
.mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.mark--them { border: 1.5px solid var(--line-2); color: var(--muted); }
.mark--us { background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210; }
/* our column reads as one raised card */
.cmp .cmp__us {
  background: var(--surface);
  border-left: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong);
  font-weight: 600; color: var(--text);
}
.cmp thead .cmp__us { background: var(--accent); color: var(--on-accent); border-top: 1.5px solid var(--line-strong); border-radius: 16px 16px 0 0; border-color: #0f1210; }
.cmp thead .cmp__us .logo__mark { width: 24px; height: 24px; border-radius: 7px; gap: 2px; background: #0f1210; }
.cmp thead .cmp__us .logo__mark i { width: 3px; }
.cmp thead .cmp__us .logo__mark i:nth-child(1) { height: 7px; }
.cmp thead .cmp__us .logo__mark i:nth-child(2) { height: 13px; }
.cmp thead .cmp__us .logo__mark i:nth-child(3) { height: 9px; }
.cmp tbody tr:last-child .cmp__us { border-bottom: 1.5px solid var(--line-strong); border-radius: 0 0 16px 16px; }

.devices { display: flex; flex-wrap: wrap; gap: 20px; }
.device { flex: 1 1 300px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.device p { color: var(--text-2); font-size: 0.97rem; }
.device__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.device__icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); border: 1.5px solid #0f1210;
  display: inline-flex; align-items: center; justify-content: center;
}

.band { background: var(--band-bg); color: var(--band-text); }
:root[data-theme='dark'] .band { border-block: 1px solid var(--band-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .band { border-block: 1px solid var(--band-line); } }
.band .lead { color: var(--band-muted); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tool-link {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; min-height: 132px;
  border: 1px solid var(--line-2); border-radius: 16px; text-decoration: none; color: var(--band-text);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.band .tool-link { border-color: #5a625b; }
.tool-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-link__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.tool-link p { color: var(--band-muted); font-size: 0.94rem; }
.tool-link[aria-current='page'] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tool-link[aria-current='page'] p { color: #2a3010; }
.formats { margin-top: 28px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--band-muted); line-height: 1.9; }
.formats b { color: var(--band-text); font-weight: 500; }

.faq { display: flex; flex-direction: column; }
.faq__item { padding-block: 24px; border-bottom: 1px solid var(--line); }
.faq__item:first-child { padding-top: 0; }
.faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__item h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.faq__item p { color: var(--text-2); }

.rights {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  color: var(--text-2); font-size: 0.97rem;
}
.rights svg { flex: none; color: var(--text); margin-top: 2px; }
.rights strong { color: var(--text); }

.crumbs { padding-top: 20px; font-size: 0.88rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--text-2); }

/* ---------- legal / simple pages ---------- */

.doc { padding-block: 56px 80px; max-width: 820px; }
.doc h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 12px; }
.doc__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 40px 0 12px; }
.doc h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p, .doc ul + p { margin-top: 0.9em; }
.doc ul { list-style: disc; padding-left: 1.3em; margin-top: 0.6em; display: flex; flex-direction: column; gap: 0.4em; }
.doc .table-scroll { margin-top: 16px; }
.doc a { font-weight: 600; color: var(--text); }
.doc code { font-family: var(--font-mono); font-size: 0.9em; }

.notfound { padding-block: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- footer ---------- */

.site-footer { background: var(--band-bg); color: var(--band-text); margin-top: auto; }
:root[data-theme='dark'] .site-footer { border-top: 1px solid var(--band-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .site-footer { border-top: 1px solid var(--band-line); } }
.site-footer__in { padding-block: 56px 20px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.site-footer__col { flex: 1 1 200px; min-width: 0; }
.site-footer__col--brand { flex: 2 1 280px; }
/* With many languages the list takes two columns. It keeps its own width
   instead of stretching, so it sits beside the other columns on a laptop
   and stays compact when it drops to a row of its own. */
.site-footer__cols:has(.site-footer__col--wide) { gap: 32px 40px; }
.site-footer__cols:has(.site-footer__col--wide) .site-footer__col { flex: 1 1 160px; }
.site-footer__cols:has(.site-footer__col--wide) .site-footer__col:nth-child(3) { flex: 1.3 1 215px; }
.site-footer__cols:has(.site-footer__col--wide) .site-footer__col--brand { flex: 1 1 220px; }
.site-footer__cols:has(.site-footer__col--wide) .site-footer__col--wide { flex: 0 1 380px; }
.site-footer__col--wide ul { columns: 2; column-gap: 24px; }
.site-footer__col--wide li { break-inside: avoid; }
.site-footer__col--brand p { color: var(--band-muted); font-size: 0.94rem; max-width: 40ch; margin-top: 12px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 4px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a[aria-current] { font-weight: 700; text-decoration: underline; }
.site-footer .logo__text span { color: var(--band-muted); }
.site-footer .logo__mark { background: #252b26; }
.site-footer__base {
  margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--band-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px;
  font-size: 0.9rem; color: var(--band-muted);
}
.site-footer__base span { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- cookie notice ---------- */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 55;
  max-width: 720px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 16px 20px; border: 1.5px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); box-shadow: 5px 5px 0 var(--shadow); font-size: 0.94rem;
}
.consent p { flex: 1 1 300px; color: var(--text-2); }
.consent a { color: var(--text); font-weight: 600; }
.consent__btns { display: flex; gap: 10px; }

/* ---------- overlays ---------- */

.drag {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  padding: 24px; background: var(--overlay);
}
.drag.is-on { display: flex; }
.drag__box {
  padding: 40px 48px; border: 3px dashed var(--accent); border-radius: 28px;
  background: #0f1210; color: #f2f3ee;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); text-align: center;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px);
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 0.94rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.backdrop { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  /* The header stays on screen with one row. The converter links sit in a
     strip right below it and step aside once the page is scrolled (app.js
     adds .is-scrolled), so the sticky bar never takes two rows on a phone. */
  .site-header { margin-bottom: 49px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: 1px; height: 48px;
    padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transition: opacity 0.15s ease, visibility 0s linear 0s;
  }
  .nav::-webkit-scrollbar { display: none; }
  .site-header.is-scrolled .nav { opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
}

@media (max-width: 900px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
  .qi__edit { display: inline-flex; }
  .editor {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88dvh; overflow-y: auto;
    border-radius: 20px 20px 0 0; border-bottom: 0; padding: 20px;
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
    overscroll-behavior: contain;
  }
  .editor.is-open { transform: none; visibility: visible; transition: transform 0.22s ease; }
  .editor__close { display: inline-flex; }
  .backdrop.is-on { display: block; position: fixed; inset: 0; z-index: 40; background: var(--overlay); border: 0; }
  .actionbar { bottom: 8px; }
  .ad--side { flex-basis: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .lane { padding: 16px; }
  .lane__path { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hop { flex: none; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 14px; min-height: 36px; padding-left: 23px; }
  .hop__label { text-align: left; }
  .hop__line { width: 2px; height: 30px; margin: 0 0 6px; }
  .hop__line::after { right: auto; left: 50%; top: auto; bottom: -6px; transform: translateX(-50%) rotate(135deg); }
  .lane__stays { margin-left: 0; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpi { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 16px; }
  .cmp-wrap { overflow: visible; padding: 0; }
  .cmp { min-width: 0; display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tbody { display: flex; flex-direction: column; gap: 12px; }
  .cmp tbody tr { display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
  .cmp tbody th, .cmp tbody td { display: block; height: auto; padding: 12px 14px; border: 0; }
  .cmp tbody th { border-bottom: 1px solid var(--line); }
  .cmp tbody td { font-size: 0.94rem; }
  .cmp tbody td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
  .cmp .cmp__us, .cmp tbody tr:last-child .cmp__us { border: 0; border-radius: 0; background: var(--accent); color: var(--on-accent); }
  .cmp tbody .cmp__us::before { color: #2a3010; }
  .cmp tbody .cmp__us .mark--us { background: #0f1210; color: var(--accent); }
  body { font-size: 16px; }
  .hero { padding-block: 28px 40px; gap: 20px; flex-direction: column; align-items: stretch; }
  .hero__copy { display: contents; }
  .hero__copy .eyebrow { order: 1; }
  .hero__copy .h1 { order: 2; font-size: 2.3rem; }
  .hero__card { order: 3; flex: none; margin-block: 4px 8px; }
  .hero__copy .lead { order: 4; }
  .hero__copy .ticks { order: 5; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .ticks li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .ticks li + li { border-left: 0; border-top: 1px solid var(--line); }
  .site-header__in { gap: 4px 12px; }
  .logo { gap: 10px; }
  .logo__mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo__text { font-size: 1.12rem; }
  .section { padding-block: 52px; }
  .card { border-radius: 20px; padding: 10px; box-shadow: 5px 5px 0 var(--shadow); }
  .dropzone { padding: 22px 16px; }
  .dropzone__title { font-size: 1.5rem; }
  .strip { height: 64px; gap: 10px; }
  .strip__frames { height: 44px; }
  .strip__bars { height: 64px; }
  .strip__bars i:nth-child(n + 23) { display: none; }
  .card__row { flex-direction: column; align-items: stretch; padding-inline: 6px; }
  .card__row .pills { flex-wrap: nowrap; }
  .card__row .pill { flex: 1; }
  .card__row .pill span { width: 100%; padding-inline: 6px; }
  .btn--lg { width: 100%; }
  .logo__text span { display: none; }
  .lang summary .lang__name { display: none; }
  .lang summary .lang__short { display: inline; }
  .lang summary { padding-inline: 12px; }
  /* the menu hangs from the header, so it fits whatever side the button is on */
  .lang { position: static; }
  .site-header__in { position: relative; }
  .lang__menu { left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); width: auto; }
  .actionbar { padding: 12px; }
  .meter { flex-wrap: nowrap; padding: 12px; font-size: 0.72rem; }
  .meter span { min-width: 0; }
  .meter b { white-space: nowrap; }
  .actionbar__btns { width: 100%; }
  .actionbar__btns .btn { flex: 1 1 auto; }
  .tags { flex-direction: column; }
  .cover { align-self: flex-start; }
  .cover--wide { align-self: stretch; }
  .field--time input[type='text'] { width: 96px; }
  .site-footer__in { padding-top: 40px; }
  .rights { flex-direction: column; }
}

@media (max-width: 400px) {
  .logo__text { font-size: 1.02rem; }
  .site-header__tools { gap: 4px; }
  .lang summary { gap: 6px; padding-inline: 10px; }
  .lang summary .flag + .lang__name + .lang__short { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .ad, .tool, .band { display: none; }
}
