/* TrulyRedacted — design tokens + base components (shared by landing, app and legal pages).
   Page-specific rules live in landing.css / app.css / video.css. Do not add page rules here. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('vendor/fonts/inter-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('vendor/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('vendor/fonts/plus-jakarta-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('vendor/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/jetbrains-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens (light is the default) ---------- */
:root {
  --bg: #f5f6fa; --bg-2: #ffffff; --bg-3: #eceef5; --bg-4: #e1e4ee;
  --surface: #ffffff; --panel: rgba(255, 255, 255, 0.82); --glass: rgba(14, 17, 32, 0.035);
  --line: rgba(14, 17, 32, 0.09); --line-2: rgba(14, 17, 32, 0.16); --line-3: rgba(14, 17, 32, 0.28);
  --ink: #0e1120; --ink-2: #474d66; --ink-3: #868ca3; --ink-inv: #ffffff;
  --accent: #3b5bff; --accent-hover: #2f4be6; --accent-soft: rgba(59, 91, 255, 0.12); --accent-ink: #ffffff;
  --accent-2: #00b894; --accent-2-soft: rgba(0, 184, 148, 0.14);
  --violet: #7c3aed; --violet-soft: rgba(124, 58, 237, 0.12);
  --ok: #16a37a; --ok-soft: rgba(22, 163, 122, 0.14);
  --warn: #e0961b; --warn-soft: rgba(224, 150, 27, 0.16);
  --danger: #e2374f; --danger-soft: rgba(226, 55, 79, 0.12);
  --redact: #0b0d14;                       /* the colour of a redaction bar */
  --grad: linear-gradient(135deg, #3b5bff 0%, #7c3aed 100%);
  --grad-text: linear-gradient(90deg, #3b5bff, #7c3aed 60%, #00b894);
  --radius: 16px; --radius-s: 10px; --radius-xs: 7px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 24px 70px rgba(20, 25, 60, 0.14); --shadow-s: 0 8px 24px rgba(20, 25, 60, 0.10); --shadow-xs: 0 2px 8px rgba(20, 25, 60, 0.08);
  --focus: 0 0 0 3px rgba(59, 91, 255, 0.4);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0d14; --bg-2: #11141d; --bg-3: #171b27; --bg-4: #1f2433;
  --surface: #11141d; --panel: rgba(17, 20, 29, 0.78); --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14); --line-3: rgba(255, 255, 255, 0.26);
  --ink: #eceef6; --ink-2: #a9aec1; --ink-3: #6f7590; --ink-inv: #0e1120;
  --accent: #5b79ff; --accent-hover: #6f89ff; --accent-soft: rgba(91, 121, 255, 0.18);
  --accent-2: #19d3a6; --accent-2-soft: rgba(25, 211, 166, 0.16);
  --violet: #9b6bff; --violet-soft: rgba(155, 107, 255, 0.16);
  --ok: #2bd48f; --ok-soft: rgba(43, 212, 143, 0.16);
  --warn: #ffb020; --warn-soft: rgba(255, 176, 32, 0.16);
  --danger: #ff5c72; --danger-soft: rgba(255, 92, 114, 0.16);
  --redact: #000000;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5); --shadow-s: 0 8px 24px rgba(0, 0, 0, 0.35); --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }
.hidden, [hidden] { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); }
::selection { background: var(--accent-soft); }
.container { width: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; border: 1px solid transparent; transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s; white-space: nowrap; text-decoration: none; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(59, 91, 255, 0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59, 91, 255, 0.38); }
.btn-secondary { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-2); background: var(--glass); }
.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-dark { background: var(--redact); color: #fff; }
.btn-dark:hover { background: #222634; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.big { padding: 14px 28px; font-size: 16.5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; transform: none; box-shadow: none; pointer-events: none; }
.btn-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); transition: 0.15s; padding: 0; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { color: var(--ink); border-color: var(--line-2); }
.btn-icon.on, .btn-icon[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.btn-icon:disabled { opacity: 0.35; cursor: default; }
.btn-icon.small { width: 28px; height: 28px; border-radius: 8px; }
.btn-icon.small svg { width: 15px; height: 15px; }
.btn-link { background: none; border: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.btn-link:hover { color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ico { display: inline-flex; }
.ico-sun { display: none; } [data-theme="dark"] .ico-sun { display: block; } [data-theme="dark"] .ico-moon { display: none; }

/* ---------- chips / badges / tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: 0.15s; }
.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip svg { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.5; }
.badge-id { background: var(--danger-soft); color: var(--danger); }
.badge-finance { background: var(--warn-soft); color: var(--warn); }
.badge-contact { background: var(--accent-soft); color: var(--accent); }
.badge-person { background: var(--violet-soft); color: var(--violet); }
.badge-vision { background: var(--accent-2-soft); color: var(--accent-2); }
.badge-other, .badge-manual { background: var(--bg-3); color: var(--ink-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.conf { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.conf i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; display: inline-block; position: relative; }
.conf i::after { content: ''; position: absolute; inset: 0; width: var(--p, 50%); background: var(--ok); border-radius: 2px; }
.conf.low i::after { background: var(--warn); }
.kbd { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-2); color: var(--ink-2); line-height: 1.5; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ok); }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--ok-soft); } 50% { box-shadow: 0 0 0 6px var(--ok-soft); } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.card-pad { padding: clamp(16px, 2.5vw, 28px); }
.panel { background: var(--panel); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--line); border-radius: var(--radius); }
.divider { height: 1px; background: var(--line); border: 0; margin: 14px 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field-row output { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.45; }
.hint.warn { color: var(--warn); }
.hint.danger { color: var(--danger); }
.hint a { color: var(--accent); }
input[type="text"], input[type="search"], input[type="number"], select, textarea { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-xs); padding: 8px 11px; color: var(--ink); width: 100%; transition: border-color 0.15s; }
input[type="text"]:focus, input[type="search"]:focus, input[type="number"]:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--focus); outline: none; }
select.small, input.small { padding: 6px 8px; font-size: 13px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); margin-top: -6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); cursor: grab; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.switch { -webkit-appearance: none; appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line-3); position: relative; cursor: pointer; transition: 0.2s; margin: 0; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch:checked { background: var(--accent); }
.switch:checked::after { left: 21px; }
.switch:disabled { opacity: 0.45; cursor: default; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.seg { display: inline-flex; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- dropzone / progress / toast / modal ---------- */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px) 24px; text-align: center; background: var(--bg-2); transition: 0.2s; cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.over { transform: scale(1.005); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--grad); border-radius: 3px; transition: width 0.25s var(--ease); }
.progress.indeterminate > i { width: 40%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; width: min(92vw, 460px); }
.toast { pointer-events: auto; background: var(--ink); color: var(--ink-inv); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-s); font-size: 14px; display: flex; gap: 10px; align-items: center; animation: toastin 0.25s var(--ease); }
.toast.ok { border-left: 4px solid var(--ok); } .toast.warn { border-left: 4px solid var(--warn); } .toast.danger { border-left: 4px solid var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 10, 20, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow); padding: 24px; animation: toastin 0.2s var(--ease); }
.modal h3 { margin-bottom: 10px; font-size: 19px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.empty { text-align: center; color: var(--ink-3); padding: 32px 16px; font-size: 14px; }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.5; }
.tooltip { position: relative; }
.tooltip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: var(--ink-inv); padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.tooltip:hover::after, .tooltip:focus-visible::after { opacity: 1; }

/* ---------- header (landing + app share the same bar) ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; }
.brand-sub { color: var(--ink-3); font-weight: 500; margin-left: -4px; font-size: 14px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--glass); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lang { display: inline-flex; gap: 2px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a, .lang button { border: 0; background: transparent; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.lang .on { background: var(--bg-2); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- touch: instant taps (no double-tap-zoom wait on fast repeated taps) and real press feedback ---------- */
button, a, label, select, input, summary, .btn, .chip, [role="button"], [role="tab"], [role="option"] { touch-action: manipulation; }
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .btn-primary:hover, .btn-secondary:hover, .btn:hover { transform: none; }   /* hover "sticks" after a tap on phones */
  .btn:active, .btn-icon:active, .chip:active, .seg button:active, .lang a:active { transform: scale(0.97); filter: brightness(0.96); transition-duration: 0.05s; }
}

/* ---------- phones: no backdrop blur (re-computed on every scroll frame → stutter on mobile GPUs) ---------- */
@media (hover: none), (max-width: 760px) {
  .top, .panel, .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top { background: var(--bg); }
  .panel { background: var(--bg-2); }
  .modal-backdrop { background: rgba(8, 10, 20, 0.62); }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } .reveal { opacity: 1; transform: none; } }
