/* Molehill website — Ink look (see realstory-client-design). */

:root {
  --bg: #e4e6f7;
  --surface: #f2f3fe;
  --band: #e8eaf9;
  --rule: #d5d7ee;
  --ink: #1f2038;
  --ink-2: #444661;
  --muted: #5f617a;
  --c1: #2c2c5a;
  --c1-on: #f5f6ff;
  --c1-soft: #d3d6f9;
  --c2: #f1e083;
  --c2-on: #2d2600;
  --pos: #0ca30c;
  --neg: #b3261e;
  --shadow: 0 10px 30px rgba(44, 44, 90, 0.08);
  --logo-ring: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c21;
    --surface: #15152d;
    --band: #1e1e39;
    --rule: #282945;
    --ink: #eeeffb;
    --ink-2: #c3c6db;
    --muted: #a2a4bc;
    --c1: #a8ace3;
    --c1-on: #171731;
    --c1-soft: #28294d;
    --c2: #dccc75;
    --c2-on: #251f00;
    --pos: #14ad14;
    --neg: #cf3a33;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --logo-ring: rgba(255, 255, 255, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0c21;
  --surface: #15152d;
  --band: #1e1e39;
  --rule: #282945;
  --ink: #eeeffb;
  --ink-2: #c3c6db;
  --muted: #a2a4bc;
  --c1: #a8ace3;
  --c1-on: #171731;
  --c1-soft: #28294d;
  --c2: #dccc75;
  --c2-on: #251f00;
  --pos: #14ad14;
  --neg: #cf3a33;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --logo-ring: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--c1); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; display: block; border-radius: 8px; box-shadow: 0 0 0 1px var(--logo-ring); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.nav a { color: var(--ink-2); }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--c1); color: var(--c1-on); border: 0; cursor: pointer; line-height: 1.2;
}
.btn:hover, .btn:focus-visible { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--c1); box-shadow: inset 0 0 0 2px var(--c1-soft); }
.btn.quiet { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero { padding-top: 28px; }
}

/* Hero */
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; max-width: 14ch; }
.hero p.lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tagline { margin-top: 28px; font-weight: 800; color: var(--ink-2); font-size: 16px; }
.tagline .mark { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c2); margin-right: 8px; vertical-align: 1px; }

/* Sections */
section { padding: 36px 0; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.015em; }
.sub { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
h3 { font-size: 19px; margin: 0 0 8px; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
  min-width: 0;
}
.card p { margin: 0; color: var(--ink-2); }
.card .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--c1); color: var(--c1-on); font-weight: 800; margin-bottom: 12px;
}
.card .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }

/* Evidence labels demo */
.labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--rule); color: var(--ink-2); background: var(--band);
}
.chip.strong { box-shadow: inset 0 0 0 2px var(--pos); color: var(--pos); background: transparent; }
.chip.some { box-shadow: inset 0 0 0 2px var(--c1); color: var(--c1); background: transparent; }

/* Honesty strip */
.strip { background: var(--band); border-radius: 26px; padding: 22px 26px; display: grid; gap: 10px; }
.strip ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.strip li { margin: 4px 0; }

/* Pilot */
.pilot { background: var(--c1); color: var(--c1-on); border-radius: 26px; padding: 34px; display: grid; gap: 14px; }
.pilot h2 { color: inherit; }
.pilot p { margin: 0; max-width: 62ch; opacity: 0.92; }
.pilot .btn { background: var(--c2); color: var(--c2-on); width: max-content; }

/* Footer */
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.site-footer a { color: var(--ink-2); }
.site-footer .legal { margin-top: 10px; }
.site-footer button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }
.site-footer button.link:hover { text-decoration: underline; }

/* Legal pages */
.doc { background: var(--surface); border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); margin: 12px 0 36px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--ink); font-weight: 800; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; margin: 0 0 10px; }
.doc .note { background: var(--band); border-radius: 14px; padding: 12px 16px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) {
  .doc table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .doc table thead, .doc table tbody { display: table; width: 100%; min-width: 560px; }
}

/* Consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  max-width: 820px; margin: 0 auto;
}
.consent p { margin: 0; font-size: 15px; color: var(--ink-2); flex: 1 1 380px; }
.consent .buttons { display: flex; gap: 8px; }
.consent .btn { padding: 9px 16px; font-size: 14px; }
