/* Revantiq public site. System fonts only: no third-party requests. */
:root {
  --ink: #14202e;          /* deep slate navy (same as the app) */
  --ink-2: #0d1b2a;
  --text: #1f2a37;
  --muted: #5b6574;        /* 5.9:1 on white */
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;      /* app background */
  --accent: #e2531b;       /* app accent: decorative use */
  --accent-strong: #b8410f;/* text/buttons on white: 5.6:1; white on it: 5.6:1 */
  --ok: #1a7f4b;
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.draft-banner { background: #fff4d6; color: #5a4300; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid #f0dc9c; }
mark.pending { background: #fff4d6; color: #5a4300; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; position: relative; padding-right: 14px; }
.wordmark::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; margin-top: -2px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); }
.wordmark.small { font-size: 18px; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--accent-strong); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; font-size: 16px; border: 1px solid transparent; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #9b360c; color: #fff; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--accent-strong); margin: 0 0 14px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 18px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 14px; margin-top: 14px; }

/* Product mock (synthetic data only) */
.mock { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -30px rgba(20,32,46,.35); overflow: hidden; }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-top strong { color: var(--ink); }
.mock-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.mock-stats div { padding: 12px 18px; border-right: 1px solid var(--line); }
.mock-stats div:last-child { border-right: 0; }
.mock-stats b { display: block; font-size: 22px; color: var(--ink); }
.mock-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mock-list { list-style: none; margin: 0; padding: 6px 0; }
.mock-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; }
.mock-list li + li { border-top: 1px solid var(--line); }
.mock-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink); }
.mock-ico svg { width: 18px; height: 18px; }
.mock-list .who { font-weight: 650; color: var(--ink); font-size: 15px; }
.mock-list .why { font-size: 13.5px; color: var(--muted); }
.mock-act { font-size: 13px; font-weight: 650; color: var(--accent-strong); border: 1px solid #f1c9b6; background: #fff7f3; border-radius: 8px; padding: 5px 10px; white-space: nowrap; }
.mock-foot { font-size: 12px; color: var(--muted); padding: 10px 18px; background: var(--bg-soft); border-top: 1px solid var(--line); }

/* Sections */
section { padding: 80px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.split .problem-list { grid-template-columns: 1fr; }
.problem-list li { padding-left: 28px; position: relative; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--accent); }
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent-strong); text-transform: uppercase; }
.step h3 { font-size: 22px; margin: 6px 0 8px; }
.channel .status { display: inline-block; font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 3px 10px; margin-top: 12px; }
.status.live { color: var(--ok); background: #e9f6ef; }
.status.dev { color: #6b4e00; background: #fff4d6; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; font-size: 19px; color: var(--ink); margin: 0; }
.cta-band { background: var(--ink-2); color: #dfe6ee; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); }
.cta-band p { margin: 0; color: #b9c4d0; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #ffe9df; color: var(--ink); }
.cta-band a:not(.btn) { color: #fff; }

/* Legal / document pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; font-size: 15px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
table.simple th, table.simple td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
table.simple th { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 8px 0 0; font-size: 14px; max-width: 30em; }
.site-footer nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { color: var(--accent-strong); }
.legal-line { font-size: 13px; margin-top: 24px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header nav ul { gap: 14px; }
  .site-header nav li:not(:last-child) { display: none; }
  .grid-3, .grid-4, .problem-list { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .cta-band { padding: 32px 24px; }
  .mock-stats b { font-size: 18px; }
  .mock-list li { grid-template-columns: 30px 1fr; }
  .mock-act { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
