/* marvinpda.com — design tokens lifted from the live essentialai.uk / cogent.tools / all2wiki.com
   surface on 2026-08-09 (computed styles, not eyeballed):
     ground        rgb(10,12,15)     #0a0c0f
     panel         rgb(15,19,24)     #0f1318      raised rgb(18,22,28) #12161c
     hairline      rgba(255,255,255,.08)  (.12 on hover, .16 on emphasis)
     heading       #f4f7fa  Space Grotesk 700, letter-spacing -0.02em
     body          #aeb7c2  Hanken Grotesk
     accent        rgb(201,162,255)  #c9a2ff   — italic emphasis word in headlines
     accent-ink    rgb(8,18,12)      (text ON the lavender button)
     mono          JetBrains Mono
     radius        9px buttons · 12–16px cards · 22px pills                            */

:root {
  --ground: #0a0c0f;
  --ground-deep: #08090c;
  --panel: #0f1318;
  --panel-raised: #12161c;
  --panel-hi: #1c2129;
  --line: rgba(255, 255, 255, 0.08);
  --line-mid: rgba(255, 255, 255, 0.12);
  --line-hi: rgba(255, 255, 255, 0.16);
  --ink: #f4f7fa;
  --ink-soft: #e6eaf0;
  --body: #aeb7c2;
  --muted: #9aa5b1;
  --faint: #69737f;
  --accent: #c9a2ff;
  --accent-dim: rgba(201, 162, 255, 0.12);
  --accent-ink: #08120c;
  --good: #7cf5b0;
  --warn: #ffb86b;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

em { color: var(--accent); font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- eyebrow: the small uppercase mono label above every section ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  letter-spacing: 0.06em; font-size: 14px; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px rgba(201, 162, 255, 0.7);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
/* `.nav-links a` (0,1,1) outranks `.btn` (0,1,0), so without this the nav CTA renders muted-on-
   lavender — near-unreadable. Restate it at matching specificity rather than reaching for
   !important. */
.nav-links a.btn { color: var(--accent-ink); }
.nav-links a.btn:hover { color: var(--accent-ink); }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  border-radius: 9px; padding: 9px 18px; font-size: 14.5px; font-weight: 600;
  font-family: var(--sans); border: 0; cursor: pointer; transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 10px; }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line-hi);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); filter: none; }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto -10%; height: 620px;
  background: radial-gradient(ellipse at 30% 30%, rgba(201, 162, 255, 0.13), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  position: relative;
}
.hero h1 { font-size: clamp(38px, 4.8vw, 56px); max-width: 15ch; }
.hero .lede {
  margin: 26px 0 0; max-width: 54ch; font-size: 18px; color: var(--body);
}

/* ---- hero visual: a memory record, because auditable memory IS the pitch ---- */
.memcard {
  background: var(--panel); border: 1px solid var(--line-mid);
  border-radius: 16px; padding: 22px; font-size: 14px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.memcard .mc-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px;
}
.memcard .mc-head .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
}
.memcard .fact {
  color: var(--ink); font-size: 16px; line-height: 1.5; margin: 0 0 16px;
}
.memcard .meta { display: grid; gap: 10px; }
.memcard .row {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  border-top: 1px solid var(--line); padding-top: 10px;
}
.memcard .row b { color: var(--ink-soft); font-weight: 500; text-align: right; }
.memcard .row b.acc { color: var(--accent); }
.memcard .row b.good { color: var(--good); }
.memcard .mc-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.memcard .chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  border: 1px solid var(--line-hi); border-radius: 22px; padding: 4px 11px;
  color: var(--muted);
}
.memcard .chip.acc { color: var(--accent); border-color: rgba(201, 162, 255, 0.4); }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  margin-top: 30px; letter-spacing: 0.02em;
}

/* ---- stat strip ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 34px 0; margin-top: 64px;
}
.stat b {
  display: block; font-family: var(--display); font-size: 34px;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1;
}
.stat b.acc { color: var(--accent); }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--faint); }

/* ---- sections ---- */
section { padding: 84px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { margin: 16px 0 0; font-size: 17px; }

/* ---- cards ---- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
}
.card:hover { border-color: var(--line-mid); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border-radius: 22px;
  padding: 4px 11px; display: inline-block; margin-bottom: 14px;
}

/* ---- comparison table ---- */
.tablewrap {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); overflow-x: auto;
}
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td {
  text-align: left; padding: 15px 20px; font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  background: var(--ground-deep); position: sticky; top: 0;
}
thead th.us { color: var(--accent); }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--ink-soft); font-weight: 500; width: 34%; }
td.us { background: rgba(201, 162, 255, 0.05); color: var(--ink-soft); }
.yes { color: var(--good); font-weight: 600; }
.no  { color: var(--faint); }
.part { color: var(--warn); }
.tnote {
  font-size: 13px; color: var(--faint); margin-top: 18px; line-height: 1.7;
}
.tnote a { color: var(--muted); text-decoration: underline; }

/* ---- steps ---- */
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .n {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.13em; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---- signup ---- */
.signup {
  background: var(--panel-raised); border: 1px solid var(--line-mid);
  border-radius: 18px; padding: 40px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px;
}
.field input {
  width: 100%; background: var(--ground); color: var(--ink);
  border: 1px solid var(--line-hi); border-radius: 9px;
  padding: 12px 14px; font-size: 15px; font-family: var(--sans);
}
.field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 255, 0.14);
}
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 7px; }
.sub-preview { font-family: var(--mono); color: var(--accent); }
.formnote { font-size: 13px; color: var(--faint); margin: 18px 0 0; }
.msg { border-radius: 9px; padding: 13px 16px; font-size: 14.5px; margin-bottom: 20px; }
.msg.ok { background: rgba(124, 245, 176, 0.12); color: var(--good);
  border: 1px solid rgba(124, 245, 176, 0.3); }
.msg.err { background: rgba(255, 184, 107, 0.12); color: var(--warn);
  border: 1px solid rgba(255, 184, 107, 0.4); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line); background: var(--ground-deep);
  padding: 54px 0 40px; margin-top: 40px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h4 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid li a { color: var(--muted); font-size: 14px; }
.foot-grid li a:hover { color: var(--ink); }
.foot-about { font-size: 14px; color: var(--faint); max-width: 34ch; margin: 14px 0 0; }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px;
  font-size: 13px; color: var(--faint);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}

/* ---- legal pages ---- */
.legal { max-width: 780px; padding-top: 56px; }
.legal h1 { font-size: 40px; margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 26px 0 10px; color: var(--ink-soft); }
.legal p, .legal li { font-size: 15.5px; color: var(--body); }
.legal ul { padding-left: 20px; }
.legal .updated {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  letter-spacing: 0.04em; margin-bottom: 34px;
}
.legal .callout {
  background: var(--panel); border: 1px solid var(--line-mid);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 20px 24px; margin: 28px 0;
}
.legal .callout h3 { margin-top: 0; }

/* ---- admin ---- */
/* The desk carries 7 columns including two action forms; at the marketing page's 1120px it clipped
   the Erase button off the right edge. The admin gets its own wider measure. */
.admin { padding-top: 44px; max-width: 1560px; }
.admin table { min-width: 1400px; }
.admin td:last-child, .admin th:last-child { width: 1%; white-space: nowrap; }
.admin td { font-size: 13.5px; vertical-align: middle; }
.admin input[type=text], .admin input[type=password] {
  background: var(--ground); color: var(--ink); border: 1px solid var(--line-hi);
  border-radius: 7px; padding: 7px 10px; font-family: var(--mono);
  font-size: 12.5px; width: 145px;
}
.admin .btn { padding: 7px 14px; font-size: 13px; }
.pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 22px;
  border: 1px solid var(--line-hi); color: var(--muted); white-space: nowrap;
}
.pill.pending { color: var(--warn); border-color: rgba(255, 184, 107, 0.4); }
.pill.approved { color: var(--accent); border-color: rgba(201, 162, 255, 0.4); }
.pill.live { color: var(--good); border-color: rgba(124, 245, 176, 0.4); }
.pill.rejected { color: var(--faint); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .g3, .g2, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .nav-links a:not(.btn) { display: none; }
  .signup { padding: 26px; }
}
