/* Redactil: a minimal, monochrome design. System fonts, one accent, hairline borders. */

:root {
  --bg: #fff;
  --ink: #0a0a0b;
  --muted: #5f636b;
  --faint: #8b8f97;
  --line: #e8e9ec;
  --surface: #f6f7f8;
  --accent: #2d4ef5;
  --accent-soft: #dfe5ff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(10, 10, 11, 0.04), 0 32px 64px -32px rgba(10, 10, 11, 0.22);
}

/* Base */

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

svg { flex: none; }


.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.rule { border-top: 1px solid var(--line); }

/* Type */

.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); }

h1 {
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 600;
  text-wrap: balance;
}

h3 { font-weight: 600; letter-spacing: -0.015em; }

.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2b2d31; }
.btn--outline { border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--inverse { height: 52px; padding: 0 28px; margin-top: 12px; background: #fff; color: var(--ink); }
.btn--inverse:hover { background: #e8e9ec; }
.btn--inverse:focus-visible { outline-color: #fff; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, 100% - 48px);
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand img { display: block; }

.nav-links { display: flex; gap: 4px 28px; font-size: 14px; }
.nav-links a { padding: 10px 0; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

/* Hero */

.hero { padding-top: clamp(64px, 10vw, 128px); padding-bottom: clamp(64px, 9vw, 112px); }

.hero__copy { max-width: 880px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__copy .lead { max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero product mock: a simplified version of the redaction editor */

.app {
  margin-top: clamp(48px, 7vw, 88px);
  container-type: inline-size;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
}

.app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.app__tabs { display: flex; gap: 4px; min-width: 0; }
.app__tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.app__tab--active { background: var(--surface); color: var(--ink); }
.app__file { color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }

.app__side { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.app__search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); }
.app__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.app__filter { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.app__filter--on { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.app__lines { display: flex; flex-direction: column; gap: 2px; }
.app__lines li { position: relative; padding: 6px 8px 6px 42px; border-radius: 8px; }
.app__lines .app__line--now { background: var(--surface); }
.app__ts { position: absolute; left: 8px; color: var(--faint); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.app__who { font-weight: 600; }
.app__who--b { color: var(--accent); }
.app__redacted { display: inline-block; height: 12px; background: var(--ink); border-radius: 2px; vertical-align: -1px; }
.app__redacted--name { width: 64px; }
.app__redacted--phone { width: 78px; }

.app__main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.app__seg, .app__layers { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); font-weight: 500; }
.app__seg span, .app__layers span { padding: 3px 12px; border-radius: 999px; color: var(--muted); }
.app__seg .app__seg-on { background: var(--ink); color: #fff; }
.app__layers span { color: var(--ink); }

.app__video { position: relative; aspect-ratio: 1098 / 590; border-radius: 10px; overflow: hidden; background: var(--surface); }
.app__video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app__caption { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 4px 10px; border-radius: 6px; background: rgba(10, 10, 11, 0.78); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__caption b { font-weight: 600; opacity: 0.7; margin-right: 4px; }

.app__player { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }
.app__buttons { display: flex; gap: 12px; color: var(--ink); }
.app__time { color: var(--muted); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.app__time b { color: var(--ink); font-weight: 500; }

.app__timeline { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--muted); }
.app__track { position: relative; height: 10px; border-radius: 3px; background: var(--surface); }
.app__mark { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--accent-soft); }
.app__mark--v1 { left: 4%; width: 18%; }
.app__mark--v2 { left: 30%; width: 26%; }
.app__mark--v3 { left: 70%; width: 12%; }
.app__mark--a1 { left: 15%; width: 2.5%; background: var(--ink); }
.app__mark--a2 { left: 18.5%; width: 2.5%; background: var(--ink); }
.app__mark--a3 { left: 61%; width: 3%; background: var(--ink); }
/* Each track draws its half of the playhead; the halves meet across the row gap */
.app__playhead { position: absolute; top: -4px; bottom: -4px; left: 21.5%; width: 2px; background: var(--accent); }

/* Narrow: drop the file name and put the video above the transcript */
@container (max-width: 600px) {
  .app__file { display: none; }
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__main { order: -1; }
  .app__side { border-right: 0; border-top: 1px solid var(--line); }
  .app__search, .app__filters { display: none; }
}
@container (max-width: 400px) {
  .app__tab svg { display: none; }
}

/* Two-column sections (why, faq) */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(48px, 8vw, 112px); }
.split__head { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.section-pad { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }

/* Why */

.why__body { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 40px; }
.why__punch { font-size: 21px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }

/* How it works */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step__number { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 16px; }

/* What we redact */

.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.kind { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.kind__head { display: flex; align-items: center; gap: 12px; }
.kind__head svg { color: var(--ink); }
.kind h3 { font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 16px; border-radius: 999px; background: var(--surface); font-size: 15px; }

.note { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-radius: 16px; background: var(--surface); }
.note svg { margin-top: 3px; color: var(--ink); }
.note p { color: var(--muted); }
.note strong { color: var(--ink); font-weight: 600; }

/* Human review: the heading block is .section-head, the panel is the mock below */

/* Review panel mock: redaction style and per-person decisions */

.decide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
}

.decide__style { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.decide__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.decide__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }

.decide__toggle { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 13px; }
.decide__toggle span { padding: 5px 14px; border-radius: 999px; color: var(--muted); }
.decide__toggle .decide__on { background: var(--ink); color: #fff; }
.decide__toggle .decide__on--keep { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 10, 11, 0.16); }

.decide__list { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.decide__tabs { display: flex; gap: 6px; }
.decide__tab { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 500; }
.decide__tab--on { background: var(--surface); border-color: var(--surface); color: var(--ink); }

.decide__item { display: flex; align-items: center; gap: 14px; }
.decide__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.decide__who b { font-weight: 600; }
.decide__who span { color: var(--muted); font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Thumbnail: an abstract figure, never a real face */
.decide__thumb { position: relative; flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #e4e6ea; }
.decide__thumb::before, .decide__thumb::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: #9298a2; }
.decide__thumb::before { top: 9px; width: 16px; height: 16px; border-radius: 50%; }
.decide__thumb::after { top: 28px; width: 32px; height: 28px; border-radius: 14px 14px 0 0; }
.decide__thumb--b { background: #ececef; }
.decide__thumb--b::after { background: #6b717b; }
.decide__thumb--c { background: #dde2f5; }
.decide__thumb--c::after { background: var(--accent); }

/* FAQ */

.faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.faq__list { min-width: 0; display: flex; flex-direction: column; }
.faq__item { padding: 28px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq__item:first-child { padding-top: 0; border-top: 0; }
.faq__item dt { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.faq__item dd { color: var(--muted); }
.faq__item dd a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* Contact */

.contact { padding-bottom: clamp(72px, 10vw, 120px); }
.contact__panel {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(56px, 9vw, 104px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.contact__panel h2 { color: #fff; max-width: 15em; font-size: clamp(32px, 5.6vw, 56px); line-height: 1.05; letter-spacing: -0.038em; }
.contact__panel p { font-size: 19px; color: rgba(255, 255, 255, 0.68); max-width: 560px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; }
.site-footer a { color: var(--muted); padding: 10px 0; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }

/* 404 */

.not-found {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Small screens */

@media (max-width: 980px) {
  .nav-links { display: none; }
}

@media (max-width: 760px) {
  .split, .faq { grid-template-columns: minmax(0, 1fr); }
  .why__body { padding-top: 0; }
  .decide { grid-template-columns: minmax(0, 1fr); }
  .decide__style, .decide__list { padding: 20px; }
  .decide__style { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a { transition: none; }
}
