/* JARVIS premium landing — Stripe / Linear / Notion aesthetic */

:root {
  --bg: #050505;
  --surface: #0c0c0e;
  --surface-elev: #111113;
  --border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --text-muted: #71717a;
  --text-dim: #a1a1aa;
  --accent: #3b82f6;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.premium-landing {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* ── Hero ── */
.premium-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(59, 130, 246, 0.08), transparent 55%),
    var(--bg);
}

/* ── Surfaces ── */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── Nav ── */
.nav-blur {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Buttons ── */
.btn-primary-premium {
  background: #fafafa;
  color: #09090b;
  font-weight: 500;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary-premium:hover {
  background: #e4e4e7;
}

/* ── Trust ── */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 2rem;
}

.trust-logo {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #52525b;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.trust-pill svg {
  color: #52525b;
}

/* ── Features ── */
.feature-card {
  padding: 0;
}

.feature-line-icon {
  color: #a1a1aa;
  stroke-width: 1.5;
}

/* ── Reveal ── */
.reveal-premium {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-premium.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Dashboard mock (hero) ── */
.dashboard-mock {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.dashboard-mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elev);
}

.dashboard-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27272a;
}

.dashboard-mock__title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-mock__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}

.dashboard-mock__sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-mock__nav-item {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.dashboard-mock__nav-item--active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.dashboard-mock__main {
  padding: 20px 24px;
}

.dashboard-mock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-mock__tasks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-mock__tasks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}

.dashboard-mock__check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #3f3f46;
  flex-shrink: 0;
}

.dashboard-mock__check--done {
  background: rgba(255, 255, 255, 0.08);
  border-color: #52525b;
}

.dashboard-mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.dashboard-mock__bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px 3px 0 0;
  min-height: 8px;
}

/* ── Live dashboard ── */
.dashboard-live__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.dashboard-live__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-live__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-live__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52525b;
}

.dashboard-live__status-dot--live {
  background: #22c55e;
}

.dashboard-live__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 400px;
}

@media (max-width: 768px) {
  .dashboard-mock__body {
    grid-template-columns: 1fr;
  }

  .dashboard-mock__sidebar {
    display: none;
  }

  .dashboard-live__grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-live__panel {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.dashboard-live__chat {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.dashboard-live__label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.dashboard-live__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-live__metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

.dashboard-live__metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-live__activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-live__chat-log {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  min-height: 200px;
}

.dashboard-live__chat-form {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.dashboard-live__chat-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.dashboard-live__chat-form input:focus {
  border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-live__chat-form input::placeholder {
  color: #52525b;
}

.demo-chat-line {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.demo-chat-line .demo-role {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.demo-chat-line--user .demo-role { color: #52525b; }
.demo-chat-line--bot .demo-role { color: var(--text-dim); }

.demo-chat-line p {
  margin: 0;
  color: var(--text-dim);
}

.demo-chat-line--user p { color: var(--text-muted); }

.typing-cursor::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--text-muted);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ── Comparison table ── */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-th--jarvis {
  color: var(--text-dim);
}

.comparison-th--feature {
  width: 34%;
}

.comparison-feature {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.comparison-cell {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child .comparison-feature,
.comparison-table tbody tr:last-child .comparison-cell {
  border-bottom: none;
}

.comparison-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  vertical-align: middle;
  color: var(--text-dim);
}

.comparison-label {
  font-size: 0.8125rem;
}

.comparison-mark--yes { color: #a1a1aa; }
.comparison-mark--partial { color: #52525b; }
.comparison-mark--no { color: #3f3f46; }

/* ── Pricing (Stripe Payment Links) ── */
.pricing-card-premium {
  padding: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card-premium--featured {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), var(--surface));
}

.pricing-card-premium__tier {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.pricing-card-premium__price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

.pricing-card-premium__price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card-premium__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 0.5rem;
}

.pricing-card-premium__features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pricing-card-premium__features li {
  position: relative;
  padding: 0.15rem 0 0.15rem 0.85rem;
}

.pricing-card-premium__features li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.pricing-card-premium--free {
  border-color: rgba(45, 255, 166, 0.22);
  background: linear-gradient(180deg, rgba(45, 255, 166, 0.04), var(--surface));
}

.pricing-card-premium__cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.pricing-card-premium__cta--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.pricing-card-premium__cta--ghost:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
