/* ============================================================
   ZT Brand — Public Pages (landing + login)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:       #F4F3EF;
  --surface:  #FFFFFF;
  --border:   #E8E6E0;
  --text:     #1F1D1A;
  --body:     #3A3833;
  --sub:      #6B6862;
  --dim:      #9A968E;
  --faint:    #B0ABA1;
  --accent:   #4F8EF7;
  --accent2:  #2F6FE0;
  --warm:     #A98D63;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
@keyframes diskturn {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  50%       { transform: rotate(1.5deg) scale(1.015); }
}
@keyframes swayslow {
  0%, 100% { transform: rotate(-10deg); }
  50%       { transform: rotate(10deg); }
}

/* ── Frame ──────────────────────────────────────────────────── */
.lp-frame {
  max-width: 1120px;
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(20,18,15,.06);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.lp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.zt-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-dim { color: var(--sub); }

.lp-topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--sub);
}

.lp-pulse-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lp-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: glow 3.5s ease-in-out infinite;
  flex-shrink: 0;
}

.lp-signin {
  font-weight: 600;
  color: var(--text);
}
.lp-signin:hover { color: var(--accent); }

/* ── Inner container ────────────────────────────────────────── */
.lp-inner {
  max-width: 100%;
  padding: 0 64px;
}
.lp-narrow { max-width: 640px; padding: 0 64px; }

/* ── Section base ───────────────────────────────────────────── */
.lp-section {
  padding: 84px 0;
}
.lp-section-white {
  background: var(--surface);
}
.lp-section-border {
  border-top: 1px solid var(--border);
}

/* ── Shared typography ──────────────────────────────────────── */
.lp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.lp-h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.2;
}
.lp-h2-sub {
  margin: 0 0 40px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sub);
}

/* ── Hero ───────────────────────────────────────────────────── */
.lp-hero {
  display: flex;
  align-items: stretch;
  min-height: 540px;
  border-top: 1px solid var(--border);
}

.lp-hero-copy {
  flex: 1.1;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-hero-eyebrow {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 28px;
}

.lp-h1 {
  margin: 0 0 26px;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.022em;
}

.lp-hero-lead {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--body);
  letter-spacing: -.012em;
}

.lp-hero-sub {
  margin: 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sub);
}

.lp-hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg);
}

.lp-disk {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 26px 64px rgba(31,29,26,.17);
  animation: diskturn 13s ease-in-out infinite;
  transform-origin: 50% 50%;
  object-fit: cover;
}

/* ── Manifesto ──────────────────────────────────────────────── */
.lp-manifesto-lead {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.5;
  color: var(--body);
  font-weight: 500;
  letter-spacing: -.016em;
}

.lp-manifesto-body {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--sub);
}
.lp-manifesto-body:last-child { margin-bottom: 0; }

/* ── In Practice ────────────────────────────────────────────── */
.lp-practice-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 28px;
}

.lp-message-card {
  flex: 1;
  min-width: 340px;
  max-width: 520px;
  background: #F8F7F3;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.lp-message-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  border-bottom: 1px solid #ECEAE4;
}

.lp-agent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #EAF1FE;
  color: var(--accent2);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.lp-message-meta { flex: 1; }
.lp-message-name { font-weight: 600; font-size: 14px; }
.lp-message-role { font-size: 12px; color: var(--dim); }
.lp-message-time { font-size: 12px; color: var(--dim); }

.lp-message-body {
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.lp-message-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
}

.lp-action-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent2);
  background: #EAF1FE;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
}

.lp-action-secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  background: #EFEDE7;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
}

.lp-log-col {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  padding-top: 4px;
}

.lp-log-label {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 6px;
}

.lp-log-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  font-size: 13px;
  color: var(--sub);
  border-bottom: 1px solid #ECEAE4;
}

.lp-log-t    { width: 40px; flex-shrink: 0; color: var(--dim); font-variant-numeric: tabular-nums; }
.lp-log-who  { width: 48px; flex-shrink: 0; font-weight: 600; color: var(--body); }
.lp-log-msg  { flex: 1; }

.lp-log-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--faint);
  font-style: italic;
}

/* ── Agents ─────────────────────────────────────────────────── */
.lp-agents { display: flex; flex-direction: column; margin-top: 8px; }

.lp-agent-row {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid #E5E2DB;
  align-items: flex-start;
}
.lp-agent-row-last { border-bottom: 1px solid #E5E2DB; }

.lp-agent-photo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #E2DFD8;
  background: var(--bg);
}
.lp-agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.55) contrast(1.04) brightness(1.02);
}

.lp-agent-name-col {
  width: 160px;
  flex-shrink: 0;
  padding-top: 4px;
}
.lp-agent-name { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.lp-agent-role { font-size: 13px; color: var(--accent2); font-weight: 500; margin-top: 3px; }

.lp-agent-desc { flex: 1; padding-top: 4px; }
.lp-agent-desc p { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: var(--body); }
.lp-agent-aside { color: var(--dim) !important; font-size: 14px !important; font-style: italic; }

/* ── Capabilities grid ──────────────────────────────────────── */
.lp-caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.lp-cap-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.lp-cap-title {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}
.lp-cap-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
}

/* ── Loop ───────────────────────────────────────────────────── */
.lp-loop {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 36px;
}

.lp-loop-node {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}

.lp-loop-node-accent {
  border-color: #C9D8F5;
  background: #F7FAFF;
}

.lp-loop-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.lp-loop-title-accent { color: var(--accent2); }

.lp-loop-body {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
}

.lp-loop-arrow {
  display: flex;
  align-items: center;
  color: #C0BCB3;
  font-size: 22px;
}

/* ── Stack ──────────────────────────────────────────────────── */
.lp-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}

.lp-stack-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warm);
  border-radius: 12px;
  padding: 20px 24px;
}

.lp-stack-label { width: 180px; flex-shrink: 0; }
.lp-stack-name  { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.lp-stack-note  { font-size: 13px; color: var(--dim); line-height: 1.5; margin-top: 4px; }

.lp-stack-tools {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.lp-tool {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  background: var(--bg);
  border: 1px solid #E5E2DB;
  padding: 7px 13px;
  border-radius: 8px;
}

.lp-honest-note {
  margin-top: 40px;
  border-left: 2px solid #D8C7A6;
  padding: 8px 0 8px 20px;
}
.lp-honest-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 8px;
}
.lp-honest-note p {
  margin: 0;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sub);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.lp-cta {
  padding: 80px 0;
  background: #1F1D1A;
  color: #F4F3EF;
}

.lp-label-dark {
  color: #8A867D;
}

.lp-cta-h {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.018em;
  max-width: 560px;
  line-height: 1.2;
  color: #F4F3EF;
}

.lp-cta-body {
  margin: 0 0 30px;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: #C7C3BA;
}

.lp-cta-actions {
  display: flex;
  gap: 12px;
}

.lp-cta-primary {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 13px 24px;
  border-radius: 10px;
  transition: opacity .15s ease;
}
.lp-cta-primary:hover { opacity: .88; color: #fff; }

.lp-cta-secondary {
  font-size: 14px;
  font-weight: 600;
  color: #E5E2DB;
  border: 1px solid #46433D;
  padding: 13px 24px;
  border-radius: 10px;
  transition: border-color .15s ease;
}
.lp-cta-secondary:hover { border-color: #6B6762; color: #E5E2DB; }

/* ── Footer ─────────────────────────────────────────────────── */
.lp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 64px;
  background: #16140F;
  color: #8A867D;
  font-size: 13px;
}

.lp-star {
  animation: swayslow 11s ease-in-out infinite;
  transform-origin: 50% 100%;
  display: inline-block;
}

/* ── Login page overrides ───────────────────────────────────── */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 340px;
  text-align: center;
}

.login-card .sub {
  color: var(--dim);
  font-size: 14px;
  margin: 10px 0 28px;
}

.login-card input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #F4F3EF;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.login-card input:focus { border-color: var(--accent); }
.login-card input::placeholder { color: var(--dim); }

.login-card button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -.01em;
  transition: opacity .15s ease;
}
.login-card button:hover { opacity: .88; }

.login-card .err {
  color: #C93838;
  font-size: 13px;
  margin: 12px 0 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-topbar     { padding: 16px 24px; }
  .lp-inner      { padding: 0 24px; }
  .lp-narrow     { padding: 0 24px; }
  .lp-footer     { padding: 22px 24px; }
  .lp-hero       { flex-direction: column; min-height: auto; }
  .lp-hero-copy  { padding: 48px 24px 32px; }
  .lp-hero-image { padding: 24px 24px 48px; }
  .lp-h1         { font-size: 34px; }
  .lp-manifesto-lead { font-size: 20px; }
  .lp-caps-grid  { grid-template-columns: 1fr; }
  .lp-loop       { flex-direction: column; }
  .lp-loop-arrow { transform: rotate(90deg); align-self: center; }
  .lp-agent-row  { flex-wrap: wrap; }
  .lp-agent-name-col { width: auto; }
  .lp-stack-row  { flex-direction: column; gap: 12px; }
  .lp-stack-label { width: auto; }
  .lp-practice-grid { flex-direction: column; }
  .lp-message-card { max-width: 100%; }
  .lp-log-col    { max-width: 100%; }
  .lp-section    { padding: 56px 0; }
}
