/* Noise Remover: theme for Oat plus the layout Oat doesn't have. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-latin.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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/geist-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@layer theme {
  :root {
    --background: light-dark(#f8fafb, #0e1418);
    --foreground: light-dark(#121a21, #e9eef1);
    --card: light-dark(#ffffff, #151d23);
    --card-foreground: var(--foreground);
    --primary: light-dark(#121a21, #e9eef1);
    --primary-foreground: light-dark(#ffffff, #121a21);
    --border: light-dark(#e4e9ec, #222c33);
    --ring: light-dark(oklch(0.5 0.12 170), oklch(0.78 0.11 170));
    --muted-foreground: light-dark(#4d5862, #a3aeb6);
    --font-sans: Geist, system-ui, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, monospace;
    --leading-normal: normal;

    --ink-2: light-dark(#3a454e, #c3ccd2);
    --subtle: light-dark(#6a757e, #84909a);
    --faint: light-dark(#9aa5ad, #5d6a74);
    --line-strong: light-dark(#d6dde1, #2e3a42);
    --dash: light-dark(#cfd7dc, #3a4750);
    --track: light-dark(#eef2f4, #222c33);
    --underline: light-dark(#b9c3c9, #4a5761);
    --ink-hover: light-dark(#2a343c, #d6dde1);
    --outline-hover: light-dark(#9aa5ad, #5d6a74);
    --on-ink: light-dark(#ffffff, #121a21);
    --teal: light-dark(oklch(0.62 0.12 170), oklch(0.72 0.12 170));
    --teal-ink: light-dark(oklch(0.48 0.12 170), oklch(0.78 0.11 170));
    --teal-hover: light-dark(oklch(0.5 0.12 170), oklch(0.8 0.11 170));
    --teal-button: light-dark(oklch(0.5 0.12 170), oklch(0.72 0.12 170));
    --teal-wash: light-dark(#f5faf8, #11201c);
    --teal-wash-2: light-dark(#f0f8f5, #132722);
    --logo: light-dark(#065f46, #6ee7b7);
    --wave-noisy: light-dark(#9aa5ad, #6b7781);
    --band: light-dark(#121a21, #080c0f);
    --band-ink: #ffffff;
    --band-text: light-dark(#c3ccd2, #a3aeb6);
    --card-shadow: light-dark(0 1px 2px rgba(18, 26, 33, .04), 0 1px 2px rgba(0, 0, 0, .3)),
      light-dark(0 16px 40px -16px rgba(18, 26, 33, .14), 0 16px 40px -16px rgba(0, 0, 0, .6));
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
}

/* Oat sets these in its components layer, so they must be unlayered to win. Content column 1040px. */
:root { --container-max: 1080px; --container-pad: 20px; }

/* Oat's utilities layer beats its base layer, so .hstack/.vstack would override [hidden]. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
body { min-height: 100vh; display: flex; flex-direction: column; container-type: inline-size; }
main { flex: 1; padding: 0; }
h1, h2, h3 { line-height: normal; margin: 0; }
a { color: var(--foreground); transition: color .18s ease; }
a:hover { color: var(--teal-hover); }
ul, ol { margin: 0; padding: 0; }
li { margin: 0; }
.mono { font-family: var(--font-mono); }

@keyframes nrpulse { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes nrin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nrgrow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@keyframes nrpop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.in { animation: nrin .6s var(--ease) both; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header nav { padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
/* The Noise Remover logo from the old site, as an inline SVG so it takes the theme's color. */
.brand__mark { width: 26px; height: 26px; flex: none; fill: var(--logo); }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.brand, .site-nav a { white-space: nowrap; }
@media (max-width: 359px) {
  .site-header nav { column-gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .site-nav { gap: 10px; font-size: 13px; }
}
/* German compounds can be wider than a phone screen at heading sizes. */
:lang(de) :is(h1, h2) { hyphens: auto; }
.site-nav a, .site-footer a { color: var(--muted-foreground); }
.site-nav a:hover, .site-footer a:hover { color: var(--teal-hover); }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hero h1 { font-size: clamp(34px, 7cqi, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; max-width: 720px; text-wrap: balance; }
.hero__sub { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted-foreground); max-width: 520px; text-wrap: pretty; animation-delay: .08s; }
.pills { list-style: none; margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-family: var(--font-mono); font-size: 13px; color: var(--muted-foreground); animation-delay: .16s; }
.pills li { display: flex; align-items: center; gap: 8px; }
.pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- Tool card ---------- */
.tool { width: 100%; max-width: 680px; margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--card-shadow); text-align: start; overflow: hidden; animation: nrin .7s var(--ease) .24s both; }
.tool.is-sized { transition: height .4s var(--ease); }
/* Contain the drop zone's margin so the measured height (and the card) includes it. */
.tool__inner { display: flow-root; }
.tool__panel { animation: nrin .45s var(--ease) both; }
.tool__title { font-size: 17px; font-weight: 600; }
.tool__hint { font-size: 13px; color: var(--subtle); }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin: 10px; padding: 52px 20px; border: 1.5px dashed var(--dash); border-radius: 12px; cursor: pointer; text-align: center; font-size: 16px; font-weight: 400; transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ease); animation: nrin .4s var(--ease) both; }
.drop:hover { border-color: var(--teal); background: var(--teal-wash); }
.drop.is-drag { border-color: var(--teal); background: var(--teal-wash-2); transform: scale(.985); }
.drop:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.drop__icon { display: flex; align-items: center; gap: 3px; height: 30px; }
.drop__icon span { width: 3px; border-radius: 2px; background: var(--foreground); }
.drop__icon span:nth-child(1) { height: 10px; }
.drop__icon span:nth-child(2) { height: 22px; }
.drop__icon span:nth-child(3) { height: 30px; background: var(--teal); }
.drop__icon span:nth-child(4) { height: 16px; }
.drop__icon span:nth-child(5) { height: 8px; }
.drop__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.drop__or { font-size: 15px; color: var(--muted-foreground); }
.drop__browse { color: var(--teal-ink); font-weight: 500; }
.drop__formats { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); }
.drop__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 20px 16px; font-size: 13px; line-height: 20px; color: var(--subtle); animation: nrin .4s var(--ease) .06s both; }
.drop__error { margin: 0; padding: 0 20px 16px; font-size: 14px; line-height: 20px; color: var(--danger); }
button.link-button { display: block; border: 0; background: none; padding: 0; border-radius: 0; font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); white-space: normal; transition: text-decoration-color .2s ease, color .2s ease; }
button.link-button:hover:not(:disabled) { background: none; color: var(--teal-ink); text-decoration-color: currentColor; }
button.link-button:active:not(:disabled) { transform: none; }

.tool__loading, .tool__processing { padding: 40px 28px; display: flex; flex-direction: column; }
.tool__loading { gap: 22px; }
.tool__processing { gap: 20px; }
.loading__head { display: flex; flex-direction: column; gap: 6px; }
.loading__sub { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-mono); font-size: 13px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--faint); transition: color .3s ease; }
.steps li:is([data-state="done"], [data-state="current"]) { color: var(--foreground); }
.steps__ring { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--dash); display: flex; align-items: center; justify-content: center; color: var(--on-ink); transition: border-color .3s ease, background-color .3s ease; }
.steps__ring svg { width: 8px; height: 8px; opacity: 0; }
.steps li[data-state="current"] .steps__ring { border-color: var(--teal); }
.steps li[data-state="done"] .steps__ring { border-color: var(--foreground); background: var(--foreground); }
.steps li[data-state="done"] .steps__ring svg { opacity: 1; }

progress.bar { display: block; height: 4px; border-radius: 2px; background: var(--track); }
progress.bar::-webkit-progress-bar { background: var(--track); border-radius: 2px; }
progress.bar::-webkit-progress-value { background: var(--foreground); border-radius: 0; transition: width .25s linear; }
progress.bar::-moz-progress-bar { background: var(--foreground); border-radius: 0; }
progress.bar--teal::-webkit-progress-value { background: var(--teal); }
progress.bar--teal::-moz-progress-bar { background: var(--teal); }

.proc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proc__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proc__file { font-family: var(--font-mono); font-size: 12px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proc__pct { font-family: var(--font-mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: end; }
.pulse { display: flex; align-items: center; gap: 3px; height: 48px; }
.pulse span { flex: 1; height: 100%; border-radius: 2px; background: var(--line-strong); transform-origin: center; transition: background-color .3s ease; animation: nrpulse var(--d) ease-in-out var(--dl) infinite; }
.pulse span.is-done { background: var(--teal); }

.tool__result { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.result__head { display: flex; align-items: center; gap: 10px; }
.result__check { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--on-ink); display: flex; align-items: center; justify-content: center; animation: nrpop .5s var(--ease) .1s both; }
.result__check svg { width: 11px; height: 11px; }
.track { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 14px; background: var(--card); animation: nrin .45s var(--ease) .08s both; }
.track--clean { background: var(--teal-wash); animation-delay: .16s; }
button.track__play { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: var(--foreground); color: var(--on-ink); transition: transform .15s ease, filter .2s ease; }
.track--clean button.track__play { background: var(--teal-button); }
button.track__play:hover:not(:disabled) { background: var(--foreground); filter: brightness(1.15); }
.track--clean button.track__play:hover:not(:disabled) { background: var(--teal-button); }
button.track__play:active:not(:disabled) { transform: scale(.92); }
.track__play svg { width: 13px; height: 13px; }
.track__play .icon-pause, .track.is-playing .track__play .icon-play { display: none; }
.track.is-playing .track__play .icon-pause { display: block; }
.track__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.track__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.track__label { font-weight: 500; }
.track__time { font-family: var(--font-mono); color: var(--subtle); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 2px; height: 28px; overflow: hidden; cursor: pointer; }
.wave span { flex: 1; min-width: 1px; border-radius: 1px; background: var(--wave-noisy); transform-origin: center; transition: opacity .15s ease; animation: nrgrow .5s var(--ease) var(--d) both; }
.track--clean .wave span { background: var(--teal); }
.wave span.is-ahead { opacity: .35; }
.result__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; animation: nrin .45s var(--ease) .3s both; }
.result__actions > * { padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: normal; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
a.button.result__download { flex: 1 1 200px; justify-content: center; border: 0; background: var(--primary); color: var(--primary-foreground); }
a.button.result__download:hover { background: var(--ink-hover); color: var(--primary-foreground); }
button.result__again { flex: 0 1 auto; background: var(--card); border: 1px solid var(--line-strong); color: var(--foreground); }
button.result__again:hover:not(:disabled) { background: var(--background); border-color: var(--outline-hover); }
.result__actions > :active:not(:disabled) { transform: scale(.98); }

/* ---------- Content sections ---------- */
.section { border-top: 1px solid var(--border); }
.section__inner { padding-block: 72px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 64px; }
.section h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose p { margin: 0; text-wrap: pretty; }
.stack-36 { display: flex; flex-direction: column; gap: 36px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.cards li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.cards li:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 12px 28px -14px light-dark(rgba(18, 26, 33, .18), rgba(0, 0, 0, .5)); }
.cards__num { font-family: var(--font-mono); font-size: 13px; color: var(--teal-ink); }
.cards h3 { font-size: 18px; font-weight: 600; }
.cards p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }

.band { border-top: 0; background: var(--band); color: light-dark(#e9eef1, #e9eef1); }
.band h2 { color: var(--band-ink); }
.band .prose { color: var(--band-text); }
.band + .section { border-top: 0; }

.faq { --container-max: 800px; }
.faq .section__inner { display: flex; flex-direction: column; gap: 28px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq details { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; overflow: visible; }
.faq details + details { margin-top: 0; }
.faq details[open] summary { border-bottom: 0; }
.faq summary { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 500; transition: color .18s ease; }
.faq summary:hover { background: none; color: var(--teal-hover); }
.faq summary::after { content: none; }
.faq summary span { font-family: var(--font-mono); color: var(--subtle); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details > p { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--muted-foreground); max-width: 640px; }
.faq details[open] > p { animation: none; }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .32s var(--ease), opacity .25s ease, content-visibility .32s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- Article pages (About, Privacy, 404) ---------- */
.article { --container-max: 800px; padding-block: 64px 72px; }
.article h1 { font-size: clamp(32px, 5.5cqi, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; animation: nrin .6s var(--ease) both; }
.article__intro { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted-foreground); }
.article h2 { margin-top: 40px; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.article p, .article ul { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.article ul { padding-inline-start: 22px; list-style: disc; }
.article li + li { margin-top: 6px; }
.article :is(p, li) a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--underline); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); font-size: 14px; color: var(--subtle); }
.footer__row { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.footer__end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; }

/* ---------- Noise types: tiles on wide screens, a divided list on narrow ones ---------- */
.types { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.types a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--foreground); transition: border-color .2s ease, transform .3s var(--ease), box-shadow .3s ease; }
.types a:hover { color: var(--foreground); border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 12px 28px -14px light-dark(rgba(18, 26, 33, .18), rgba(0, 0, 0, .5)); }
.types svg { width: 16px; height: 16px; flex: none; color: var(--subtle); transition: transform .3s var(--ease), color .2s ease; }
.types a:hover svg { color: var(--teal-ink); transform: translateX(3px); }
.types a[aria-current="page"] { background: var(--teal-wash); border-color: light-dark(#cfe7de, #1f3a33); }
.types a[aria-current="page"] svg { color: var(--teal-ink); }
@media (max-width: 719px) {
  .types { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
  .types a { padding: 18px 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .types a:hover { transform: none; box-shadow: none; }
  .types a[aria-current="page"] { background: none; color: var(--teal-ink); }
}
.controls { display: flex; gap: 8px; }
.control { width: 52px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--foreground); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
button.control:hover:not(:disabled), .lang summary.control:hover { background: var(--card); border-color: var(--outline-hover); color: var(--foreground); }
button.control:active:not(:disabled) { transform: none; }
.control svg { width: 16px; height: 16px; flex: none; }
[data-theme="dark"] .icon-moon, :root:not([data-theme="dark"]) .icon-sun { display: none; }
.lang { position: relative; border: 0; border-radius: 0; overflow: visible; }
.lang summary.control { user-select: none; }
.lang summary::after { content: none; }
.lang summary svg { width: 10px; height: 10px; }
.lang[open] summary { border-bottom: 1px solid var(--outline-hover); border-color: var(--outline-hover); }
.lang ul { position: absolute; inset-block-end: calc(100% + 6px); inset-inline-end: 0; z-index: var(--z-dropdown); list-style: none; min-width: 160px; padding: 6px; margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--card-shadow); }
.lang[open] > ul { animation: nrin .2s var(--ease) both; }
.lang li a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--foreground); }
.lang li a:hover { background: var(--teal-wash); color: var(--foreground); }
.lang li a[aria-current="page"] { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .faq details::details-content { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
