/* Real Redact — landing page styles.
   System fonts only (no Google Fonts / CDN — that would undercut the
   "we don't track you" pitch). Dark, sober, privacy-tool aesthetic
   per docs/PRODUCT.md and issue #28. */

:root {
  --bg: #0d0d10;
  --bg-elev: #16171c;
  --text: #ececec;
  --text-dim: #9a9aa6;
  --accent: #6ea8ff;
  --redact: #000;
  --border: #2a2b33;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2 { font-weight: 700; letter-spacing: -0.01em; }
h2 {
  font-size: 1.3rem;
  margin: 56px 0 12px;
  color: var(--text);
}

p { margin: 0 0 16px; }

em { font-style: italic; color: var(--text); }
strong { font-weight: 600; }

/* ---- Wordmark ---- */

.hero { text-align: left; }

.wordmark {
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1;
  display: inline-block;
}

.word-real {
  color: var(--text);
}

.word-redact {
  position: relative;
  color: var(--text);
  margin-left: 0.2em;
  display: inline-block;
}

/* Black redaction bar drawn through the word "Redact". The bar is the
   marketing tell — it shows what the app does. Covers the full word
   height, not just the x-height, so it reads as a strike-through
   redaction rather than a highlight. */
.bar {
  position: absolute;
  left: -4%;
  right: -4%;
  top: 18%;
  height: 68%;
  background: var(--redact);
  z-index: 1;
  border-radius: 2px;
}
.word-redact { z-index: 0; }
.word-redact::after {
  /* re-render the letters above the bar so the word stays readable */
  content: "Redact";
  position: absolute;
  inset: 0;
  color: var(--text);
  mix-blend-mode: difference;
  z-index: 2;
  pointer-events: none;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin: 0 0 28px;
}

.pitch {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 36px;
}

/* ---- Downloads ---- */

.downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 16px;
  max-width: 380px;
}

.dl {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.dl:hover {
  background: #1d1e25;
  border-color: var(--accent);
}
.dl.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d10;
}
.dl.primary:hover {
  background: #88bbff;
  border-color: #88bbff;
}

.dl-label {
  font-weight: 600;
  font-size: 1.05rem;
}
.dl-arch {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 2px;
}

.dl-hint {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 8px 0 6px;
  max-width: 560px;
}

/* Trust-signal line directly under the download buttons. Lives at the
   conversion moment so a skimmer who clicks Download has seen
   "free / signed / no network / contact" without scrolling. */
.dl-trust {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0 0 6px;
  max-width: 560px;
}
.dl-trust a {
  color: var(--text-dim);
  text-decoration-color: var(--text-dim);
}
.dl-trust a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* "Coming soon" Windows variant. Sits in the .downloads row alongside
   the two Mac buttons so it reads as a real third option, just not
   ready yet. Dashed border tells the user it's not actionable in the
   usual sense; clicking opens a mailto for "notify me." */
.dl.dl-soon {
  position: relative;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-dim);
}
.dl.dl-soon:hover {
  background: var(--bg-elev);
  border-color: var(--accent);
  border-style: dashed;
  color: var(--text);
}
.dl-soon-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.dl.dl-soon:hover .dl-soon-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Sections ---- */

section {
  margin-top: 8px;
}

.how ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.how li {
  margin-bottom: 8px;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer p { margin: 4px 0; }
footer a { color: var(--text-dim); }

/* ---- Accessibility ---- */

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

/* ---- Wider screens ---- */

@media (min-width: 720px) {
  main { padding: 96px 32px 56px; }
  .downloads { flex-direction: row; max-width: none; }
  .dl { flex: 1; }
}
