/* Redaktr marketing site — brand: graphite ink, redaction bar, green "cleared". */

:root {
  color-scheme: light;
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --ink: #1c2024;
  --ink-soft: #3a4047;
  --muted: #6b7177;
  --line: #e4e1d8;
  --line-strong: #d4d0c5;
  --graphite: #20242b;
  --graphite-2: #14171c;
  --bar: #0a0a0b;
  --green: #1f9d57;
  --green-soft: #e4f4ea;
  --amber: #9a6a1c;
  --amber-soft: #f6ecd6;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --shadow: 0 30px 80px rgba(20, 23, 28, 0.16);
  --shadow-sm: 0 1px 2px rgba(20, 23, 28, 0.05), 0 8px 24px rgba(20, 23, 28, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }

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

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 16px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #2c333b; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover { background: var(--surface); border-color: var(--muted); }
.button-small { padding: 9px 16px; font-size: 14.5px; background: var(--ink); color: #fff; }
.button-small:hover { background: #2c333b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15.5px; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.license-link { font-size: 14.5px; font-weight: 650; color: var(--ink-soft); white-space: nowrap; }
.license-link:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.section { padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 56px); }
.section > * { max-width: var(--container); margin-inline: auto; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head h2, .section h2 { font-size: clamp(28px, 4vw, 42px); }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--muted); }
.fine { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 56px) clamp(36px, 4vw, 56px); }
.hero-inner {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof-row { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 22px; padding: 0; margin: 28px 0 0; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.proof-row li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-shot { min-width: 0; }
.hero-demo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* ---------- Personas ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.persona h3 { font-size: 20px; }
.persona .fear { margin: 12px 0 14px; font-style: italic; color: var(--ink); font-size: 16px; padding-left: 14px; border-left: 3px solid var(--bar); }
.persona p:last-child { color: var(--muted); font-size: 15.5px; }
.persona code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.86em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--graphite); color: #fff; font-weight: 700; margin-bottom: 16px; position: relative; }
.step-no::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 4px; background: var(--green); border-radius: 2px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- Card grid (detection) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 18px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.card code { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.85em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

/* ---------- Modes ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); min-height: 168px; }
.mode h3 { font-size: 16.5px; }
.mode p { margin-top: 9px; color: var(--muted); font-size: 14px; }

/* ---------- Privacy ---------- */
.privacy { background: var(--graphite); color: #e9ebee; }
.privacy-inner { max-width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.privacy .eyebrow { color: #6fe0a0; }
.privacy h2 { color: #fff; }
.privacy .section-lede { color: #b7bcc2; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: #d6d9dd; font-size: 16px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Pricing ---------- */
.pricing-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: clamp(32px, 4vw, 52px); box-shadow: var(--shadow);
}
.pricing-card h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 6px; }
.pricing-copy p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.pricing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pricing-actions .button { width: 100%; }
.micro { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 28px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.contact .section-head { margin: 0; max-width: 690px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 36px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); background: var(--bg-alt);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; font-size: 14.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.copyright { flex-basis: 100%; font-size: 13.5px; color: var(--muted); }

/* ---------- Internal pages ---------- */
.page-main { background: var(--bg); }
.page-hero {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 56px) clamp(36px, 5vw, 62px);
}
.page-hero-inner { max-width: 860px; margin-inline: auto; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -0.035em; }
.page-hero .lede { max-width: 720px; margin-top: 18px; color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 20px); }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download-facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 740px;
}
.download-facts li {
  position: relative;
  padding: 12px 14px 12px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.download-facts li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.page-section { padding: clamp(42px, 6vw, 74px) clamp(20px, 5vw, 56px); }
.page-section > * { max-width: var(--container); margin-inline: auto; }
.page-section h2 { font-size: clamp(26px, 3.4vw, 38px); }
.page-section h3 { font-size: 19px; }
.page-copy {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 17px;
}
.page-copy p + p { margin-top: 16px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-card p { margin-top: 9px; color: var(--muted); font-size: 15px; }
.spec-list, .plain-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.spec-list li, .plain-list li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.spec-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.spec-list span { display: block; margin-top: 3px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.callout {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 22px 24px;
  background: var(--graphite);
  color: #e9ebee;
  border-radius: var(--radius);
}
.callout h2, .callout h3 { color: #fff; }
.callout p { margin-top: 10px; color: #cfd3d8; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.compare-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--bg-alt); }
.compare-table tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .persona-grid, .steps, .privacy-inner, .pricing-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .license-link { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; padding: 12px 14px; }
  .brand { font-size: 18px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .button-small { padding: 9px 12px; font-size: 13.5px; }
  .card-grid, .mode-grid, .info-grid, .download-facts { grid-template-columns: 1fr; }
  .pricing-actions { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
