/* landing.css — redesigned public landing (#4, RFC 018 positioning).
 *
 * Paper theme. Loads with css/site.css (tokens + chrome) and
 * css/fonts.css. Scoped under body.site like the rest of the
 * redesigned surfaces. Section order: hero → proof → mechanics →
 * wedge → distinction → developer → cta.
 */

body.site .lp-h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.lp-body-text {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 600px;
}

/* ── Hero ───────────────────────────────────────────────────────── */

.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 0.5px solid var(--border);
  min-height: calc(100vh - 56px);
}

.lp-hero-left {
  padding: 5rem 3rem;
  border-right: 0.5px solid var(--border);
}

.lp-hero-left h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 2rem 0 1.5rem;
}

.lp-hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.lp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.lp-hero-proof-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-hero-proof-line::before {
  content: '';
  height: 0.5px;
  width: 32px;
  background: var(--muted-2);
}

.lp-hero-right {
  padding: 3rem;
  background: var(--surface-dark);
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.lp-demo-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: -0.75rem;
}

/* ── Receipt card ───────────────────────────────────────────────── */

.lp-receipt {
  border: 0.5px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--site-radius);
  overflow: hidden;
  background: var(--surface-dark-2);
}

.lp-receipt-head {
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-receipt-title {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lp-verdict {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-verdict-allowed {
  background: rgba(26, 107, 60, 0.3);
  color: #4db87a;
  border: 0.5px solid rgba(77, 184, 122, 0.3);
}

.lp-verdict-blocked {
  background: rgba(139, 26, 26, 0.3);
  color: #e07070;
  border: 0.5px solid rgba(224, 112, 112, 0.3);
}

.lp-receipt-body { padding: 14px 16px; }

.lp-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 12px;
}

.lp-receipt-row:last-child { margin-bottom: 0; }

.lp-receipt-key {
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

.lp-receipt-val {
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-receipt-val-accent { color: #7d93f5; }
.lp-receipt-val-green { color: #4db87a; }
.lp-receipt-val-red { color: #e07070; }

.lp-receipt-sig {
  padding: 10px 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
}

/* ── Proof section ──────────────────────────────────────────────── */

.lp-proof { padding: 6rem 0; }

.lp-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.lp-proof-col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}

.lp-proof-bad { color: var(--red-signal); }
.lp-proof-good { color: var(--green-signal); }

.lp-scenario {
  border: 0.5px solid var(--border);
  border-radius: var(--site-radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.lp-scenario-head {
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 0.5px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-scenario-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 0.5px solid var(--border);
  font-size: 11px;
}

.lp-line-n { color: var(--muted-2); min-width: 12px; text-align: right; }
.lp-line-text { flex: 1; color: var(--muted); }

.lp-line-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.lp-badge-debit { background: var(--red-pale); color: var(--red-signal); border: 0.5px solid color-mix(in oklab, var(--red-signal) 22%, transparent); }
.lp-badge-allow { background: var(--green-pale); color: var(--green-signal); border: 0.5px solid color-mix(in oklab, var(--green-signal) 22%, transparent); }
.lp-badge-block { background: var(--paper-3); color: var(--muted); border: 0.5px solid var(--border); }

.lp-scenario-verdict {
  padding: 12px 14px;
  background: var(--paper-2);
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  font-weight: 500;
}

.lp-verdict-bad { color: var(--red-signal); }
.lp-verdict-good { color: var(--green-signal); }

.lp-proof-statement {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--site-radius);
  background: var(--paper-2);
}

.lp-proof-statement p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.lp-proof-statement strong { color: var(--ink); font-weight: 500; }

/* ── Mechanics ──────────────────────────────────────────────────── */

.lp-mechanics { padding: 6rem 0; }

.lp-mech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border: 0.5px solid var(--border);
  border-radius: var(--site-radius);
  overflow: hidden;
}

.lp-mech-cell {
  padding: 2rem;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.lp-mech-cell:nth-child(3n) { border-right: none; }
.lp-mech-cell:nth-last-child(-n+3) { border-bottom: none; }

.lp-mech-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.lp-mech-title { font-size: 14px; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.lp-mech-body { font-size: 13px; color: var(--muted); line-height: 1.65; font-weight: 300; }

.lp-mech-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
  background: var(--paper-2);
  padding: 3px 8px;
  border-radius: 2px;
  border: 0.5px solid var(--border);
}

/* ── Wedge actions ──────────────────────────────────────────────── */

.lp-wedge { padding: 6rem 0; background: var(--paper-2); }

.lp-wedge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--site-radius);
  overflow: hidden;
}

.lp-wedge-cell {
  background: var(--paper-2);
  padding: 1.75rem;
  transition: background 0.15s;
}

.lp-wedge-cell:hover { background: var(--paper); }

.lp-wedge-icon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lp-wedge-action { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.lp-wedge-desc { font-size: 13px; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ── Distinction (logs vs receipts) ─────────────────────────────── */

.lp-distinction { padding: 6rem 0; }

.lp-dist-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  border: 0.5px solid var(--border);
  border-radius: var(--site-radius);
  overflow: hidden;
}

.lp-dist-col { padding: 2.5rem; }
.lp-dist-logs { border-right: 0.5px solid var(--border); background: var(--paper-2); }

.lp-dist-head {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}

.lp-dist-logs .lp-dist-head { color: var(--muted-2); }
.lp-dist-proof .lp-dist-head { color: var(--accent); }

.lp-dist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

.lp-dist-item::before {
  content: '—';
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
  flex-shrink: 0;
}

.lp-dist-proof .lp-dist-item { color: var(--ink); }
.lp-dist-proof .lp-dist-item::before { content: '✓'; color: var(--accent); }

/* ── Developer (dark band) + gates ──────────────────────────────── */

.lp-dev {
  padding: 6rem 0;
  background: var(--surface-dark);
  color: #e8eaf0;
  border-bottom: 0.5px solid var(--border);
}

.lp-dev .site-section-label { color: rgba(232, 234, 240, 0.4); }
.lp-dev h2 { color: #f4f5f8; }
.lp-dev h2 em { color: var(--accent-light); }
.lp-dev .lp-body-text { color: rgba(232, 234, 240, 0.6); }

.lp-gate-menu {
  margin-top: 3rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.lp-gate {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: padding-left 0.15s;
}

.lp-gate:hover { padding-left: 0.5rem; }
.lp-gate:hover .lp-gate-arrow { color: var(--accent-light); }
.lp-gate:hover .lp-gate-desc { color: var(--paper); }

.lp-gate-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-gate-desc {
  font-size: 13px;
  color: rgba(245, 242, 237, 0.5);
  font-weight: 300;
}

.lp-gate-arrow {
  font-family: var(--mono);
  color: rgba(245, 242, 237, 0.4);
}

/* ── CTA ────────────────────────────────────────────────────────── */

.lp-cta { padding: 7rem 0; text-align: center; }
.lp-cta-h2 { max-width: 680px; margin: 0 auto 1.5rem; }
.lp-cta-body { margin: 0 auto 3rem; }
.lp-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; min-height: auto; }
  .lp-hero-left { padding: 3rem 1.5rem; border-right: none; }
  .lp-hero-right { padding: 2rem 1.5rem; min-height: auto; }
  .lp-proof-grid { grid-template-columns: 1fr; }
  .lp-mech-grid { grid-template-columns: 1fr; }
  .lp-mech-cell { border-right: none; }
  .lp-wedge-grid { grid-template-columns: 1fr 1fr; }
  .lp-dist-split { grid-template-columns: 1fr; }
  .lp-dist-logs { border-right: none; border-bottom: 0.5px solid var(--border); }
  .lp-gate { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .lp-gate-tag { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .lp-wedge-grid { grid-template-columns: 1fr; }
}
