/* Meridian — /product page styles
 * Owns: product page mockup sections (dashboard, checklist, digest email, CTAs)
 * Does NOT own: global layout, nav, capture forms (meridian.css)
 */

/* ── Product-specific font overrides ─── */
body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

em { font-family: 'Instrument Serif', serif; font-style: italic; }

/* ── Sticky CTA bar ──────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--amber);
  color: #0f0f11;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 24px rgba(245,158,11,0.25);
}
.sticky-cta-visible { transform: translateY(0); }
.sticky-cta-btn {
  background: #0f0f11;
  color: var(--amber);
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s;
}
.sticky-cta-btn:hover { background: #1a1a1f; }

/* ── Nav extension for /product ─────── */
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--text) !important; }

/* ── Product hero ────────────────────── */
.prod-hero {
  padding: 88px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 80% 400px at 50% 0%, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.22);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 24px;
}
.prod-hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.prod-hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Section common ──────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ── Dashboard section ───────────────── */
.section-dashboard {
  padding: 88px 0 96px;
}

/* Chrome frame */
.dashboard-chrome {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.chrome-bar {
  background: var(--dark-3);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chrome-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c940; }
.chrome-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  padding: 4px 12px;
  font-family: 'Satoshi', monospace;
}
.chrome-date { font-size: 11px; color: #6b7280; white-space: nowrap; }

/* Dashboard header */
.dash-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.dash-header-left { display: flex; flex-direction: column; gap: 2px; }
.dash-company { font-size: 15px; font-weight: 700; color: var(--text); }
.dash-period { font-size: 12px; color: var(--muted); }
.dash-header-right { display: flex; gap: 8px; }
.dash-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: default;
  white-space: nowrap;
}
.dash-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.dash-btn-primary {
  background: var(--amber);
  color: #0f0f11;
}

/* KPI row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi-card {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
}
.kpi-card:last-child { border-right: none; }
.kpi-highlight { background: rgba(245,158,11,0.04); }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; color: var(--text); margin-bottom: 6px; }
.kpi-delta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.kpi-delta-good  { color: #10b981; }
.kpi-delta-bad   { color: #f87171; }
.kpi-delta-neutral { color: var(--muted); }

/* Runway KPI special */
.kpi-runway { }
.runway-value { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; color: var(--text); margin-bottom: 8px; }
.runway-unit { font-size: 16px; font-weight: 500; color: var(--muted); }
.runway-bar-wrap { display: flex; align-items: center; gap: 8px; }
.runway-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.runway-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 2px;
}
.runway-bar-label { font-size: 11px; color: #6b7280; white-space: nowrap; }

/* Sparkline section */
.sparkline-section {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sparkline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sparkline-title { font-size: 13px; font-weight: 600; color: var(--text); }
.sparkline-legend { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.legend-amber { background: #f59e0b; }
.legend-muted { background: #4b5563; }

.sparkline-chart { display: flex; gap: 10px; }
.chart-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  padding-bottom: 20px;
  text-align: right;
  white-space: nowrap;
}
.chart-area { flex: 1; }
.spark-svg { width: 100%; height: 90px; display: block; }
.chart-x-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  padding-top: 6px;
}

/* Bottom row */
.dash-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) { .dash-bottom-row { grid-template-columns: 1fr; } }
.dash-panel { padding: 22px 22px; }
.dash-panel:first-child { border-right: 1px solid var(--border); }

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-title { font-size: 13px; font-weight: 700; color: var(--text); }
.panel-total { font-size: 11px; color: var(--muted); }

/* AR aging */
.ar-buckets { display: flex; flex-direction: column; gap: 10px; }
.ar-bucket { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 10px; }
.ar-bucket-label { font-size: 11px; color: var(--muted); }
.ar-bucket-bar-wrap { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.ar-bucket-bar { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.ar-ok   { background: #10b981; }
.ar-warn { background: #f59e0b; }
.ar-alert { background: #fb923c; }
.ar-crit  { background: #f87171; }
.ar-bucket-amount { font-size: 12px; font-weight: 600; color: var(--text); text-align: right; }
.ar-amount-warn  { color: #f59e0b; }
.ar-amount-alert { color: #fb923c; }
.ar-amount-crit  { color: #f87171; }

/* Vendor list */
.vendor-list { display: flex; flex-direction: column; gap: 12px; }
.vendor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vendor-info { display: flex; align-items: center; gap: 10px; }
.vendor-rank {
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  width: 18px;
}
.vendor-name { font-size: 13px; font-weight: 600; color: var(--text); }
.vendor-category { font-size: 10px; color: var(--muted); margin-top: 1px; }
.vendor-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 100px; }
.vendor-amount { font-size: 13px; font-weight: 600; color: var(--text); }
.vendor-bar-wrap { width: 100%; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.vendor-bar { height: 100%; background: var(--amber); border-radius: 2px; opacity: 0.6; }

/* ── Close checklist section ─────────── */
.section-close {
  padding: 88px 0 96px;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.close-chrome {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
  max-width: 800px;
  margin: 0 auto;
}
.close-chrome-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close-header-left { }
.close-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.close-meta { font-size: 12px; color: var(--muted); }

/* Progress ring */
.close-progress-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.ring-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
}

/* Checklist items */
.checklist { padding: 8px 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.check-item:last-child { border-bottom: none; }
.check-item:hover { background: rgba(255,255,255,0.02); }
.check-done { opacity: 0.85; }
.check-pending { background: rgba(245,158,11,0.04); }

.check-icon { flex-shrink: 0; margin-top: 2px; }
.check-body { flex: 1; min-width: 0; }
.check-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.check-done .check-name { text-decoration: line-through; color: var(--muted); }
.check-pending .check-name { text-decoration: none; color: var(--text); }
.check-note { font-size: 12px; color: var(--muted); }

.check-assignee {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.check-assignee-auto { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: var(--amber); }
.check-assignee-pending { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: var(--amber); }

/* ── Digest email section ────────────── */
.section-digest {
  padding: 88px 0 96px;
}

.email-chrome {
  background: #1e2028;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
  max-width: 740px;
  margin: 0 auto;
  font-size: 14px;
}
.email-client-bar {
  background: #13151a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.email-client-dots { display: flex; gap: 6px; }
.email-client-label { font-size: 11px; color: #6b7280; margin-left: 8px; }

.email-list-preview {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #181a21;
}
.email-list-item {
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: default;
}
.email-list-active { background: rgba(245,158,11,0.08); border-left: 2px solid var(--amber); }
.email-sender { font-size: 13px; font-weight: 700; color: var(--text); width: 80px; flex-shrink: 0; }
.email-subject-line { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; justify-content: space-between; }
.email-subject { font-size: 13px; font-weight: 600; color: var(--text); }
.email-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Email body */
.email-body { padding: 24px 28px 28px; background: #1e2028; }
.email-header-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.email-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f0f11;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.email-meta { }
.email-from { font-size: 14px; font-weight: 700; color: var(--text); }
.email-from-addr { font-size: 12px; color: var(--muted); font-weight: 400; }
.email-to { font-size: 12px; color: var(--muted); margin-top: 2px; }

.email-content { color: #d1d5db; line-height: 1.65; }
.email-greeting { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.email-para { font-size: 14px; color: #9ca3af; margin-bottom: 20px; }
.email-para strong { color: var(--text); }

/* Digest stats */
.digest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}
@media (max-width: 600px) { .digest-stats { grid-template-columns: repeat(2, 1fr); } }
.digest-stat {
  background: #13151a;
  padding: 14px 14px;
}
.digest-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; margin-bottom: 4px; }
.digest-stat-val { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; margin-bottom: 3px; }
.digest-stat-change { font-size: 11px; font-weight: 500; }
.digest-down  { color: #f87171; }
.digest-up    { color: #f87171; }
.digest-good  { color: #10b981; }

/* Digest items */
.digest-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.digest-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.digest-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.55;
}
.digest-item-alert {
  background: rgba(248,113,113,0.06);
  border-color: rgba(248,113,113,0.15);
}
.digest-item-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }
.digest-item-text strong { color: var(--text); }

/* Scenario box */
.digest-scenario {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.digest-scenario-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.digest-scenario p { font-size: 13px; color: #9ca3af; line-height: 1.55; }
.digest-scenario strong { color: var(--text); }
.digest-link { color: var(--amber); text-decoration: none; }
.digest-link:hover { text-decoration: underline; }

.email-footer-line { font-size: 12px; color: #6b7280; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Bottom CTA ──────────────────────── */
.section-cta {
  padding: 112px 0 96px;
  text-align: center;
  background: radial-gradient(ellipse 60% 300px at 50% 0%, rgba(245,158,11,0.08) 0%, transparent 70%);
}
.cta-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cta-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}
.cta-big-btn {
  display: inline-block;
  background: var(--amber);
  color: #0f0f11;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.3px;
}
.cta-big-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}
.cta-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ── Responsive adjustments ──────────── */
@media (max-width: 640px) {
  .dash-bottom-row { grid-template-columns: 1fr; }
  .dash-panel:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .ar-bucket { grid-template-columns: 70px 1fr 65px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-card { border-bottom: 1px solid var(--border); }
  .sticky-cta-text { display: none; }
  .nav-link { display: none; }
}
