/* Pre-app screens — Landing, Login, Persona picker. */

/* Shared root shell */
.lp-root, .lg-root, .pp-root {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  display: flex; flex-direction: column;
  animation: mf-fade-in 280ms ease both;
}

/* ---- Brand token (shared) ---- */
.lp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.14em;
  font-size: 11px; text-transform: uppercase; color: var(--ink);
}
.lp-brand .mark {
  width: 20px; height: 20px; background: var(--ink); position: relative;
}
.lp-brand .mark::before {
  content: ''; position: absolute; inset: 3px; background: var(--accent);
}
.lp-brand .ver {
  font-family: var(--mono); font-size: 9px;
  color: var(--ink-4); letter-spacing: 0.12em; margin-left: 6px;
}

.lp-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  vertical-align: middle; margin-right: 6px;
}
.lp-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(31,107,66,0.15); }

/* ======================================================================
   LANDING
   ====================================================================== */

.lp-root {
  background:
    linear-gradient(rgba(26,26,23,0.025) 1px, transparent 1px) 0 44px / 28px 28px,
    linear-gradient(90deg, rgba(26,26,23,0.025) 1px, transparent 1px) 0 44px / 28px 28px,
    var(--paper);
}

.lp-top {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 36px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: sticky; top: 0; z-index: 5;
}
.lp-nav { display: flex; gap: 22px; margin-left: 30px; }
.lp-nav a {
  font-size: 12px; color: var(--ink-3); cursor: pointer;
  letter-spacing: 0.01em;
}
.lp-nav a:hover { color: var(--ink); }
.lp-top-cta { margin-left: auto; display: flex; gap: 8px; }

.lp-hero {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; padding: 72px 64px 56px;
  max-width: 1360px; margin: 0 auto; width: 100%;
  align-items: start;
}
.lp-hero-copy { }
.lp-h1 {
  font-family: var(--serif); font-size: 58px; line-height: 1.02;
  letter-spacing: -0.02em; margin: 14px 0 22px; font-weight: 400;
  text-wrap: pretty;
}
.lp-lede {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  max-width: 560px; margin: 0 0 28px;
}
.lp-cta-row { display: flex; gap: 10px; margin-bottom: 28px; }
.lp-cta-row .mf-btn { padding: 10px 18px; font-size: 13.5px; }
.lp-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.06em;
}
.lp-meta .sep { color: var(--ink-4); }

.lp-hero-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 36px rgba(26,26,23,0.08);
  position: relative;
}
.lp-card-head, .lp-card-foot {
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: space-between;
}
.lp-card-foot { border-bottom: none; border-top: 1px solid var(--line); }
.lp-pulse {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 0;
  padding: 20px 16px; min-height: 220px;
}
.lp-pulse .col { display: flex; flex-direction: column; gap: 6px; }
.lp-pulse .node {
  padding: 6px 10px; background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  display: flex; justify-content: space-between;
  transition: all 400ms ease;
}
.lp-pulse .node.hot {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-ink);
}
.lp-pulse .wires { position: relative; }

/* Sections */
.lp-section-hd {
  max-width: 720px; margin: 0 auto 40px; text-align: center;
  padding: 0 32px;
}
.lp-h2 {
  font-family: var(--serif); font-size: 38px; line-height: 1.1;
  font-weight: 400; letter-spacing: -0.015em; margin: 8px 0 14px;
}
.lp-sub {
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  margin: 0;
}

.lp-roles {
  padding: 56px 32px 56px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.lp-role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: 1280px; margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.lp-role-card {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.lp-role-card:last-child { border-right: none; }
.lp-role-title {
  font-family: var(--serif); font-size: 26px;
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 6px;
}
.lp-role-card p {
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 14px; flex: 1;
}
.lp-role-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); padding-top: 12px; gap: 10px;
}
.lp-role-stats .mono-val {
  font-size: 13px; font-weight: 500;
}

.lp-pipeline {
  padding: 56px 32px 72px; border-top: 1px solid var(--line);
}
.lp-pipe-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; max-width: 1280px; margin: 0 auto;
  border: 1px solid var(--line); background: var(--paper);
}
.lp-pipe {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  display: flex; gap: 14px; position: relative;
}
.lp-pipe:last-child { border-right: none; }
.lp-pipe-n {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
  font-weight: 600;
}
.lp-pipe-body { flex: 1; }
.lp-pipe-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.lp-pipe-title span:first-child {
  font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em;
}
.lp-pipe-body p {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin: 0;
}

.lp-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 36px;
  background: var(--paper-2);
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.lp-foot-meta {
  display: flex; flex-direction: column; gap: 2px;
  line-height: 1.5;
}
.lp-foot-links {
  margin-left: auto; display: flex; gap: 18px;
}
.lp-foot-links a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase; cursor: pointer;
}
.lp-foot-links a:hover { color: var(--ink); }

/* ======================================================================
   LOGIN
   ====================================================================== */

.lg-root {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.lg-left {
  padding: 22px 56px 22px;
  display: flex; flex-direction: column;
  background: var(--paper);
  background-image:
    linear-gradient(rgba(26,26,23,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,23,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.lg-left-top { display: flex; align-items: center; justify-content: space-between; }

.lg-form-wrap {
  max-width: 440px; width: 100%;
  margin: auto 0; padding: 40px 0;
}
.lg-form { display: flex; flex-direction: column; gap: 14px; }
.lg-field { display: flex; flex-direction: column; gap: 6px; }
.lg-field .mono-lbl {
  display: flex; justify-content: space-between; align-items: baseline;
}
.lg-field .forgot {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.08em; cursor: pointer;
}
.lg-field input {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  padding: 10px 12px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 2px;
  outline: none;
  transition: border-color 120ms;
}
.lg-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lg-row-remember {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0;
}
.lg-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.lg-check input { accent-color: var(--accent); }

.lg-sso { margin-top: 18px; }
.lg-div {
  text-align: center; position: relative;
  margin: 6px 0 14px;
}
.lg-div::before, .lg-div::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 70px);
  height: 1px; background: var(--line);
}
.lg-div::before { left: 0; } .lg-div::after { right: 0; }
.lg-div span {
  font-family: var(--mono); font-size: 10px; color: var(--ink-4);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.lg-sso-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lg-sso-row .mf-btn {
  font-size: 11.5px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sso-mark {
  width: 9px; height: 9px; border-radius: 2px; display: inline-block;
}

.lg-demo {
  margin-top: 28px; padding: 14px;
  background: var(--paper-2); border: 1px dashed var(--line-2);
}
.lg-demo-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.lg-demo-grid { display: flex; flex-direction: column; gap: 6px; }
.lg-demo-acc {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px;
  align-items: center;
  padding: 8px 10px; background: var(--paper);
  border: 1px solid var(--line); cursor: pointer;
  font-family: inherit; text-align: left;
  transition: all 120ms;
}
.lg-demo-acc:hover { border-color: var(--ink-3); }
.lg-demo-acc.on {
  border-color: var(--accent); background: var(--accent-soft);
}
.lg-demo-acc .av {
  width: 26px; height: 26px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.lg-demo-acc.on .av { background: var(--accent); }
.lg-demo-acc .em {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lg-demo-acc .role {
  color: var(--ink-3); font-size: 9.5px;
}

.lg-foot {
  display: flex; justify-content: space-between;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.lg-foot a { color: var(--ink-3); cursor: pointer; }
.lg-foot a:hover { color: var(--ink); }

/* Right panel (dark) */
.lg-right {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lg-right-panel {
  position: relative;
  z-index: 2; max-width: 460px;
  display: flex; flex-direction: column; gap: 28px;
}
.lg-quote {
  font-size: 26px; line-height: 1.35;
  letter-spacing: -0.01em; font-weight: 400;
  color: var(--paper); margin: 0;
}
.lg-attrib {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid rgba(247,245,239,0.14);
}
.lg-attrib .av {
  width: 34px; height: 34px; background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.lg-attrib > div:last-child { font-size: 12.5px; color: var(--paper); }

.lg-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(247,245,239,0.14);
  padding-top: 18px;
}
.lg-stats > div {
  padding-right: 12px;
  border-right: 1px solid rgba(247,245,239,0.08);
}
.lg-stats > div:last-child { border-right: none; }
.lg-grid-dec {
  position: absolute; inset: 0; z-index: 1; opacity: 0.08;
  background-image:
    linear-gradient(var(--paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 70%);
}

/* ======================================================================
   PERSONA PICKER
   ====================================================================== */

.pp-root {
  background:
    linear-gradient(rgba(26,26,23,0.025) 1px, transparent 1px) 0 60px / 28px 28px,
    linear-gradient(90deg, rgba(26,26,23,0.025) 1px, transparent 1px) 0 60px / 28px 28px,
    var(--paper);
}
.pp-top {
  display: flex; align-items: center;
  padding: 14px 36px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.pp-top-meta {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
}

.pp-body { max-width: 1300px; margin: 0 auto; padding: 64px 32px 72px; width: 100%; }
.pp-hd { margin-bottom: 38px; }

.pp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pp-card {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: all 180ms ease;
  position: relative;
}
.pp-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 40px rgba(26,26,23,0.12);
  transform: translateY(-2px);
}
.pp-card:hover .pp-enter-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.pp-card-top { display: flex; gap: 14px; align-items: flex-start; }
.pp-av {
  width: 44px; height: 44px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.pp-card:hover .pp-av { background: var(--accent); }
.pp-name {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em;
  margin-top: 4px;
}
.pp-sub {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}
.pp-enter-arrow {
  font-size: 20px; color: var(--ink-4);
  transition: all 200ms ease;
}
.pp-blurb {
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  margin: 0; flex: 1;
}
.pp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.pp-stats > div { padding: 0 10px; }
.pp-stats > div:first-child { padding-left: 0; }
.pp-stats .mono-val { font-size: 14px; font-weight: 500; }
.pp-stats .mono-lbl { margin-top: 2px; font-size: 9.5px; }
.pp-card-foot {
  display: flex; justify-content: space-between; align-items: center;
}

.pp-hint {
  margin-top: 32px; padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
