/* ============================================================
   lisa — document pages (Impressum / Datenschutz)
   echoes the modal aesthetic: emerald hairline, JetBrains Mono
   labels, Inter body, slate ink on near-black
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #0a1020;
  color: #cbd5e1;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #34d399; color: #04130c; }

a {
  color: #cbd5e1;
  text-decoration: none;
  border-bottom: 1px solid #1e293b;
  transition: color .15s, border-color .15s;
}
a:hover { color: #34d399; border-color: #34d399; }

/* very faint grain to match landing */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== top header =========================================== */
.doc-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #131c33;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  border: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.doc-brand:hover { color: inherit; }
.doc-brand .brand-badge {
  width: 24px; height: 24px;
  background: #0b1220;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: -0.02em;
}
.doc-brand .brand-name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 17px;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}
.doc-brand .brand-dot {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 9999px;
}
.doc-brand .brand-tail {
  color: #64748b;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  border: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.back-link .arr { transition: transform .15s; }
.back-link:hover { color: #34d399; }
.back-link:hover .arr { transform: translateX(-2px); }

/* ===== document body ======================================== */
.doc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 32px) 80px;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: #34d399;
  display: inline-block;
}

.doc h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #f1f5f9;
  margin: 0 0 14px;
  text-wrap: balance;
}

.stand {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #64748b;
  margin: 0 0 48px;
  letter-spacing: 0.02em;
}

/* ===== blocks =============================================== */
.block {
  padding: 28px 0;
  border-top: 1px solid #131c33;
}
.block:last-of-type { padding-bottom: 8px; }

.block h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #f1f5f9;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.block h2 .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
  width: 28px;
}

.block p {
  margin: 0 0 12px;
  color: #94a3b8;
  text-wrap: pretty;
}
.block p:last-child { margin-bottom: 0; }

.block .note {
  font-size: 12.5px;
  color: #64748b;
  font-style: italic;
  padding: 8px 12px;
  border-left: 1px solid #334155;
  background: rgba(15, 23, 42, 0.4);
  margin-top: 12px;
}

/* sub headings inside a block */
.block h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 22px 0 10px;
}

.block ul {
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
  color: #94a3b8;
}
.block ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.block ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 8px; height: 1px;
  background: #475569;
}

/* address block */
.address {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
  padding: 14px 16px;
  background: #0b1220;
  border: 1px solid #1e293b;
}

/* key / value list */
.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 24px;
  margin: 0;
}
.kv dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.kv dd {
  margin: 0;
  color: #e2e8f0;
}
@media (max-width: 540px) {
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .kv dd { margin-bottom: 10px; }
}

/* placeholder marker — user replaces these locally */
.ph {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92em;
  color: #64748b;
  background: rgba(52, 211, 153, 0.06);
  border: 1px dashed #334155;
  padding: 1px 8px;
  letter-spacing: 0.01em;
  display: inline-block;
  line-height: 1.5;
}
.address .ph {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1em;
  color: #475569;
}

.closing {
  margin-top: 56px;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #475569;
  letter-spacing: 0.04em;
}

/* ===== footer =============================================== */
.doc-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid #131c33;
  padding: 22px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 0.02em;
}
.doc-footer .row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.doc-footer .sep { color: #1e293b; }
.doc-footer a { color: #64748b; border-color: transparent; }
.doc-footer a:hover { color: #34d399; }
.doc-footer .pulse-dot {
  width: 6px; height: 6px;
  background: #10b981;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  animation: doc-pulse 2.4s ease-out infinite;
}

@keyframes doc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 600px) {
  .doc-footer { flex-direction: column; align-items: flex-start; }
}
