/* NYPTID Meridian homepage only. Tokens, chrome and shared components are in
   site.css, which loads first. */

/* ---------- hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim); letter-spacing: 0.02em;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
}
.kicker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 8.2vw, 104px);
  font-weight: 650; line-height: 0.98; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #c9d2df);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 26px; max-width: 620px; }

/* ---------- demo ---------- */
.demo-wrap { max-width: calc(var(--maxw) + 80px); margin: 30px auto 0; padding: 0 24px; }
.demo-caption {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--dim); margin-bottom: 12px; padding: 0 4px;
}
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px;
  background: var(--steel); vertical-align: 1px;
}
.demo-replay {
  background: none; border: 1px solid var(--line-2); color: var(--dim);
  font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.demo-replay:hover { color: var(--text); }
.demo-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 16px; }

.demo {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #0a0d12;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217, 183, 126, 0.06),
    0 40px 120px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -40px rgba(217, 183, 126, 0.25);
  font-size: 12px;
  line-height: 1.45;
  height: 620px;
  display: flex; flex-direction: column;
}
.d-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; padding: 0 12px;
  background: #0d1117; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 11.5px;
}
.d-win i { font-style: normal; margin-left: 16px; color: var(--faint); }
.d-body { flex: 1; display: grid; grid-template-columns: 208px 1fr 268px; min-height: 0; }

.pip { display: inline-block; width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: #3a4150; }
.pip.working { background: var(--green); }
.pip.working.live, .d-card .pip.working, .d-sess .pip.working { animation: pulse 1.2s ease-in-out infinite; }
.pip.needs { background: var(--amber); animation: pulse 1.4s ease-in-out infinite; }
.pip.done { background: var(--steel); }

/* rail */
.d-rail {
  display: flex; flex-direction: column; min-height: 0;
  padding: 10px 8px; gap: 2px;
  background: #0c1016; border-right: 1px solid var(--line);
}
.d-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 10px; }
.d-brand span { display: flex; flex-direction: column; font-weight: 650; font-size: 13px; line-height: 1.05; }
.d-brand small { font-size: 7.5px; letter-spacing: 0.22em; color: var(--faint); font-weight: 500; }
.d-new {
  height: 28px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; font-size: 12px;
  background: linear-gradient(180deg, #e5c792, #c9a468); color: #1a1409; margin: 0 2px 8px; cursor: default;
}
.d-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 6px 8px; color: var(--dim); font-size: 11.5px; }
.d-nav span { padding: 3px 0; }
.d-label { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 6px 6px 4px; }
.d-group { margin-bottom: 4px; }
.d-group-head {
  display: flex; align-items: center; gap: 5px; padding: 4px 6px;
  font-weight: 600; font-size: 11.5px;
}
.d-group-head .caret { color: var(--faint); font-size: 8px; width: 9px; }
.d-group-head em { margin-left: auto; color: var(--faint); font-style: normal; font-weight: 500; font-size: 10.5px; }
.d-badge {
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  font-size: 9.5px; line-height: 15px; text-align: center; font-weight: 700;
}
.d-badge.working { background: rgba(95, 211, 162, 0.16); color: var(--green); }
.d-badge.needs { background: var(--amber); color: #1a1409; }
.d-badge[hidden] { display: none; }
.d-sess {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 18px;
  border-radius: 7px; cursor: pointer;
}
.d-sess:hover { background: rgba(255, 255, 255, 0.05); }
.d-sess.active { background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(217, 183, 126, 0.25); }
.d-sess span { display: flex; flex-direction: column; min-width: 0; font-size: 11.5px; font-weight: 550; }
.d-sess small { color: var(--faint); font-weight: 400; font-size: 10px; }
.d-account {
  margin-top: auto; display: grid; grid-template-columns: 16px 1fr; column-gap: 8px;
  align-items: center; padding: 8px 6px 2px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 550;
}
.d-account small { grid-column: 2; color: var(--faint); font-weight: 400; font-size: 10px; }

/* main */
.d-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.d-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 34px; padding: 0 10px; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 11px; background: #0c1016;
}
.d-toolbar > span:first-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.d-toolbar b { color: var(--text); font-weight: 600; margin-right: 4px; }
.needs-text { color: var(--amber); }
.d-tool-right { display: flex; align-items: center; gap: 8px; }
.d-agents-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px;
  border: 1px solid rgba(217, 183, 126, 0.35); background: var(--gold-soft); color: var(--text);
}
.d-agents-btn b {
  margin: 0; min-width: 15px; height: 15px; border-radius: 8px; background: var(--amber);
  color: #1a1409; font-size: 9.5px; line-height: 15px; text-align: center;
}
.d-agents-btn b[hidden] { display: none; }
.d-panes { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.d-panes i { font-style: normal; width: 22px; text-align: center; padding: 2px 0; color: var(--faint); }
.d-panes i.on { background: var(--gold-soft); color: var(--gold); }

.d-panes-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); min-height: 0; }
.d-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #090c11; }
.d-pane.focused { box-shadow: inset 0 2px 0 var(--gold); }
.d-pane-bar {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px;
  border-bottom: 1px solid var(--line); background: #0d1117; white-space: nowrap;
}
.d-pane-bar b { font-weight: 600; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.d-pane-model { color: var(--faint); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.d-pane-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-family: var(--mono); color: var(--green); }
.d-pane-status.needs { color: var(--amber); }
.d-pane-status.done { color: var(--steel); }
.d-seg { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.d-seg i { font-style: normal; font-size: 10px; padding: 1px 7px; color: var(--faint); }
.d-seg i.on { background: var(--gold-soft); color: var(--gold); }

.d-log {
  flex: 1; min-height: 0; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
  scrollbar-width: thin; scrollbar-color: #232a36 transparent;
}
.d-log > * { animation: rise 0.28s ease both; flex-shrink: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.d-user {
  align-self: flex-end; max-width: 88%;
  padding: 8px 11px; border-radius: 11px 11px 3px 11px;
  background: linear-gradient(180deg, #2a2418, #211c13); border: 1px solid rgba(217, 183, 126, 0.25);
  color: #f3e7cf; font-size: 11.5px;
}
.d-tool {
  font-family: var(--mono); font-size: 10.8px; color: var(--dim);
  display: flex; gap: 7px; align-items: baseline;
}
.d-tool .t-name { color: var(--steel); }
.d-tool .t-ok { color: var(--green); }
.d-tool .t-spin { color: var(--amber); }
.d-diff {
  font-family: var(--mono); font-size: 10.5px; border-radius: 7px; overflow: hidden;
  border: 1px solid var(--line); background: #0b0f15;
}
.d-diff div { padding: 1px 9px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.d-diff .rm { background: rgba(236, 138, 138, 0.1); color: #f0b4b4; }
.d-diff .add { background: rgba(95, 211, 162, 0.1); color: #a8ecc9; }
.d-diff .hd { color: var(--faint); background: #0e131a; }
.d-say { color: var(--text); font-size: 11.8px; }
.d-shot {
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 78%;
  background: #f4f1ea;
}
.d-shot .bar { height: 12px; background: #e3ded3; }
.d-shot .body { padding: 8px 8px 10px; color: #222; font-size: 9.5px; font-family: var(--sans); line-height: 2; }
.d-shot .body b { display: block; font-size: 11px; margin-bottom: 4px; }
.d-shot .body span { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #1f8f5f; color: #fff; font-weight: 600; }
.d-run {
  border-radius: 9px; padding: 9px 11px;
  border: 1px solid rgba(232, 192, 122, 0.45); background: rgba(232, 192, 122, 0.07);
}
.d-run.done { border-color: rgba(95, 211, 162, 0.45); background: rgba(95, 211, 162, 0.07); }
.d-run-head { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.d-run-head em { font-style: normal; font-size: 9px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.d-run-head b { font-weight: 650; }
.d-run-head span { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.d-run p { color: var(--dim); font-size: 11px; margin-top: 4px; }
.d-run-actions { display: flex; gap: 6px; margin-top: 8px; }
.d-run-actions button {
  font: inherit; font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
}
.d-run-actions .verify { background: var(--gold); color: #1a1409; border-color: var(--gold); }
.d-run-actions .verify:hover { background: var(--gold-2); }
.d-typing::after { content: "▍"; color: var(--gold); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.d-composer {
  display: flex; align-items: center; gap: 6px; margin: 8px; padding: 7px 8px 7px 11px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #0d1117;
  color: var(--faint); font-size: 11px; white-space: nowrap; overflow: hidden;
}
.d-composer span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.d-composer em { font-style: normal; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--dim); font-size: 10px; }
.d-composer b { background: var(--gold); color: #1a1409; border-radius: 7px; padding: 3px 10px; font-size: 10.5px; }

/* dashboard */
.d-fleet { display: flex; flex-direction: column; min-height: 0; background: #0c1016; border-left: 1px solid var(--line); }
.d-fleet-head { display: flex; align-items: baseline; gap: 9px; padding: 14px 14px 10px; }
.d-fleet-head > b { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.d-fleet-head > span { display: flex; flex-direction: column; font-weight: 600; font-size: 12.5px; line-height: 1.2; }
.d-fleet-head small { color: var(--dim); font-weight: 400; font-size: 10.5px; }
.d-fleet-bar { display: flex; height: 4px; margin: 0 14px 10px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.07); }
.d-fleet-bar i { height: 100%; transition: width 0.45s ease; }
.d-fleet-bar .needs { background: var(--amber); }
.d-fleet-bar .working { background: var(--green); }
.d-fleet-bar .done { background: var(--steel); }
.d-pills { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 10px 12px; border-bottom: 1px solid var(--line); }
.d-pills button {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 11px;
  border: 1px solid var(--line); background: transparent; color: var(--dim);
  font: inherit; font-size: 10.5px; cursor: pointer;
}
.d-pills button b { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.d-pills button:hover { color: var(--text); }
.d-pills button.on { color: var(--text); border-color: rgba(217, 183, 126, 0.4); background: var(--gold-soft); }
.d-cards { flex: 1; min-height: 0; overflow-y: auto; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.d-card {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 9px; border-radius: 9px; border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.d-card:hover { background: rgba(255, 255, 255, 0.06); }
.d-card.active { border-color: rgba(217, 183, 126, 0.35); background: var(--gold-soft); }
.d-card.needs { border-color: rgba(232, 192, 122, 0.3); }
.d-card .main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.d-card .main b { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-card .main small { color: var(--faint); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-chip { flex: 0 0 auto; font-size: 9.8px; padding: 2px 7px; border-radius: 9px; color: var(--faint); background: rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-chip.working { color: var(--green); background: rgba(95, 211, 162, 0.12); }
.d-chip.needs { color: var(--amber); background: rgba(232, 192, 122, 0.13); }
.d-chip.done { color: #a9c1d4; background: rgba(127, 163, 191, 0.14); }
.d-empty { color: var(--faint); text-align: center; padding: 16px; font-size: 11px; }

/* ---------- models marquee ---------- */
.models { max-width: var(--maxw); margin: 90px auto 0; padding: 0 24px; text-align: center; }
.models-head { color: var(--dim); font-size: 15px; }
.marquee {
  margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 600; color: #cfd6e2; letter-spacing: -0.01em; white-space: nowrap; opacity: 0.8; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.section.proof { padding-top: 70px; }
.proof-stat { padding: 24px 4px; border-top: 1px solid var(--line-2); }
.proof-stat b { display: block; font-size: 46px; font-weight: 650; letter-spacing: -0.04em; color: var(--gold-2); }
.proof-stat span { display: block; margin-top: 6px; color: var(--dim); font-size: 14.5px; max-width: 300px; }

/* ---------- echo ---------- */
.echo-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.echo-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--dim); font-size: 17px; }
.echo-copy ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; color: var(--text); font-size: 15px; }
.echo-copy li::before { content: "—"; color: var(--gold); margin-right: 10px; }
.echo-visual {
  position: relative; height: 340px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 42%, rgba(217, 183, 126, 0.14), transparent 60%), var(--ink-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; overflow: hidden;
}
.orb { position: relative; width: 120px; height: 120px; }
.orb i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(217, 183, 126, 0.55);
  animation: ripple 3.2s ease-out infinite;
}
.orb i:nth-child(2) { animation-delay: 1.05s; }
.orb i:nth-child(3) { animation-delay: 2.1s; }
.orb::after {
  content: ""; position: absolute; inset: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbe3b6, #c99d58 70%);
  box-shadow: 0 0 40px rgba(217, 183, 126, 0.55);
}
@keyframes ripple { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.echo-line { display: flex; align-items: center; gap: 10px; padding: 0 24px; max-width: 100%; }
.echo-line em { color: var(--text); font-size: 14px; }
.listening {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11px; color: var(--gold); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(217, 183, 126, 0.35);
}
.listening i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.1s ease-in-out infinite; }

/* homepage plan cards are compact: blurb and a link, no feature list */
.pricing-teaser .plans article > p { min-height: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .d-body { grid-template-columns: 190px 1fr; }
  .d-fleet { display: none; }
}
@media (max-width: 900px) {
  .proof, .echo-band { grid-template-columns: 1fr; }
  .demo { height: 540px; }
  .d-body { grid-template-columns: 1fr; }
  .d-rail { display: none; }
  .d-panes-grid { grid-template-columns: 1fr; }
  .d-pane[data-pane="b"] { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .d-toolbar > span:first-child { font-size: 10px; }
  .d-panes { display: none; }
}
