/* ------------------------------------------------------------------ */
/* Desktop Agent marketing page (templates/desktop_agent.html)          */
/* App-window mockups are modeled on the real Agent UI; sample data.    */
/* ------------------------------------------------------------------ */

.mono { font-family: var(--lp-mono, "JetBrains Mono", ui-monospace, monospace); }

/* ===== Hero ===== */
/* .hero-section brings the landing dark theme; drop its legacy aurora */
body.lp-redesign .da-hero::before,
body.lp-redesign .da-hero::after,
body.lp-redesign .da-hero .container::after { display: none !important; }

body.lp-redesign .da-hero {
  position: relative;
  padding: 140px 0 90px;
  background:
    radial-gradient(ellipse 55% 55% at 75% 45%, rgba(54, 147, 255, 0.09), transparent 70%),
    linear-gradient(180deg, #0a0f1c 0%, #0b1220 100%);
  overflow: hidden;
}

.da-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.da-title {
  margin: 0 0 1.25rem;
  color: var(--text-high);
  font-family: var(--lp-serif, "Instrument Serif", Georgia, serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.da-lead { color: var(--text-med); font-size: 1.08rem; line-height: 1.65; max-width: 34rem; }
.da-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.da-note { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

/* ===== Sections ===== */
.da-section { position: relative; padding: 88px 0; background: #0b1220; }
.da-section--alt { background: linear-gradient(180deg, #0b1220 0%, #0c1527 100%); }

.da-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: center;
}

.da-pair--reversed .da-pair-copy { order: 2; }
.da-pair--reversed .da-window { order: 1; }

/* ===== App window mockup ===== */
.da-window {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #1a2334;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(54, 147, 255, 0.08);
  overflow: hidden;
  font-family: var(--lp-sans, "Inter", system-ui, sans-serif);
}

.da-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #151d2c;
}

.da-dots { display: inline-flex; gap: 6px; }
.da-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.da-app { color: var(--text-high); font-weight: 600; font-size: 0.85rem; }

.da-health {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lp-up, #22c55e);
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.da-health.is-warn { color: #fb923c; }

.da-bell { margin-left: auto; position: relative; color: var(--text-med); }
.da-bell em {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: 0.6rem;
  line-height: 15px;
  text-align: center;
}

.da-body { padding: 1rem; }

.da-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.da-dot--ok { background: var(--lp-up, #22c55e); }
.da-dot--warn { background: #fb923c; }

.da-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.da-tabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  color: var(--text-med);
  font-size: 0.74rem;
}

.da-tabs span.is-active { background: #3b82f6; color: #fff; }
.da-summary { margin: 0 0 0.75rem; color: var(--text-dim); font-size: 0.74rem; text-align: center; }

.da-terminals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

.da-term {
  padding: 0.7rem 0.75rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--lp-up, #22c55e);
  border-radius: 8px;
  background: #202b3f;
  font-size: 0.7rem;
}

.da-term--paused { border-left-color: #fb923c; }
.da-term-head { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-bottom: 0.45rem; }
.da-term-head > span { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-high); font-weight: 600; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-term dl { margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.da-term dl div { display: flex; justify-content: space-between; gap: 0.4rem; }
.da-term dt { color: var(--text-dim); font-weight: 400; }
.da-term dd { margin: 0; color: var(--text-med); text-align: right; }
.da-term-foot { display: flex; justify-content: space-between; margin-top: 0.45rem; padding-top: 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.da-term-foot span { color: var(--text-dim); }
.da-term-foot b { color: var(--text-high); font-weight: 500; }

.da-badge {
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--text-med);
  font-style: normal;
  font-size: 0.62rem;
  font-family: var(--lp-mono, ui-monospace, monospace);
}

.da-badge--mt5 { border-color: rgba(59, 130, 246, 0.55); color: #93c5fd; }

.da-pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.62rem; }
.da-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.da-pill--ok { border: 1px solid rgba(34, 197, 94, 0.45); color: #4ade80; }
.da-pill--warn { border: 1px solid rgba(251, 146, 60, 0.5); color: #fdba74; }

/* New account detected */
.da-detect {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(251, 146, 60, 0.45);
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.06);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.da-detect-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
}

.da-detect-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.da-detect-text strong { color: var(--text-high); font-size: 0.88rem; }
.da-detect-text span { color: var(--text-dim); font-size: 0.75rem; }

.da-detect-btn {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.da-detect-btn.is-pressed { transform: scale(0.94); filter: brightness(0.9); }

.da-detect-added {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.07);
  color: var(--text-med);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.da-detect-added i { color: var(--lp-up, #22c55e); }
.da-detect-added strong { color: var(--text-high); }
.da-detect-added.is-in { opacity: 1; transform: none; }

/* Health issue + Auto-Heal */
.da-issue {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(251, 146, 60, 0.55);
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.05);
  font-size: 0.8rem;
  transition: opacity 0.35s ease;
}

.da-issue-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.da-issue-head > span { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-high); font-weight: 600; }
.da-issue p { margin: 0 0 0.5rem; color: var(--text-med); }
.da-issue ol { margin: 0 0 0.75rem; padding-left: 1.1rem; color: var(--text-med); }
.da-issue ol b { color: var(--text-high); font-weight: 600; }
.da-issue-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.da-btn {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--text-med);
  font-size: 0.74rem;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.da-btn--heal { border-color: transparent; background: #22c55e; color: #fff; }
.da-btn--heal.is-pressed { transform: scale(0.94); filter: brightness(0.9); }

.da-healed {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.07);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.da-healed i { color: var(--lp-up, #22c55e); font-size: 1.1rem; }
.da-healed strong { display: block; color: var(--text-high); font-size: 0.85rem; }
.da-healed span { color: var(--text-dim); font-size: 0.75rem; }
.da-healed.is-in { opacity: 1; transform: none; }
.da-issue.is-resolved { opacity: 0.45; }

/* Accounts table */
.da-table-head { display: flex; flex-direction: column; margin-bottom: 0.6rem; }
.da-table-head strong { color: var(--text-high); font-size: 0.88rem; }
.da-table-head span { color: var(--text-dim); font-size: 0.72rem; }
.da-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.da-table th { padding: 0.45rem 0.4rem; color: var(--text-dim); font-weight: 500; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; background: #202b3f; }
.da-table td { padding: 0.55rem 0.4rem; border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-med); vertical-align: middle; }
.da-table td b { display: block; color: var(--text-high); font-weight: 600; }
.da-table td span.mono { color: var(--text-dim); font-size: 0.66rem; }
.da-live, .da-state { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.da-live { color: #4ade80; }
.da-state--ok { color: #4ade80; }
.da-state--warn { color: #fb923c; }

/* How it works */
.da-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.da-step { padding: 1.5rem; border: 1px solid var(--surface-border); border-radius: 14px; background: var(--surface-1); }

.da-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-indigo, #3736af), var(--brand-blue, #3693ff));
  color: #fff;
  font-weight: 700;
}

.da-step h3 { color: var(--text-high); font-size: 1.1rem; font-weight: 600; margin: 0 0 0.4rem; }
.da-step p { color: var(--text-med); font-size: 0.93rem; margin: 0; }

/* Security */
.da-sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.da-sec-item { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; border: 1px solid var(--surface-border); border-radius: 14px; background: var(--surface-1); }
.da-sec-item i { color: var(--brand-blue); font-size: 1.3rem; }
.da-sec-item strong { color: var(--text-high); font-size: 0.98rem; }
.da-sec-item span { color: var(--text-med); font-size: 0.88rem; }

/* FAQ */
.da-faq { max-width: 760px; margin: 0 auto; }
.da-faq details { border-bottom: 1px solid var(--surface-border); padding: 1rem 0.25rem; }
.da-faq summary { color: var(--text-high); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.da-faq summary::-webkit-details-marker { display: none; }
.da-faq summary::after { content: "+"; color: var(--brand-blue); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.da-faq details[open] summary::after { content: "\2212"; }
.da-faq details p { margin: 0.6rem 0 0; color: var(--text-med); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  body.lp-redesign .da-hero { padding: 120px 0 64px; }
  .da-hero-grid, .da-pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .da-pair--reversed .da-pair-copy { order: 1; }
  .da-pair--reversed .da-window { order: 2; }
  .da-steps { grid-template-columns: 1fr; }
  .da-sec-grid { grid-template-columns: repeat(2, 1fr); }
  .da-section { padding: 64px 0; }
}

@media (max-width: 575.98px) {
  .da-terminals { grid-template-columns: 1fr; }
  .da-terminals .da-term:nth-child(n+2) { display: none; }
  .da-sec-grid { grid-template-columns: 1fr; }
  .da-tabs span i { display: none; }
  .da-detect { flex-wrap: wrap; }
  .da-detect-text { flex: 1 1 calc(100% - 50px); }
  .da-detect-btn { flex: 1 1 100%; text-align: center; }
  .da-table th:nth-child(3), .da-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .da-detect, .da-detect-added, .da-issue, .da-healed, .da-health { transition: none; }
}
