@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Institutional Palette */
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-muted: #f1f5f9;
  
  --ink-primary: #090a0c;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;

  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --line-strong: #cbd5e1;

  /* Restrained Institutional Green */
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #f0fdf4;
  --green-border: #bbf7d0;

  /* Red alert */
  --red: #dc2626;
  --red-soft: #fef2f2;

  /* Layout & Geometry */
  --shell: 1240px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Typography */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Subtle institutional elevations */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

/* Base Reset & Accessibility */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  overflow-x: clip;
  background-color: var(--canvas);
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--ink-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Common Layout Shell */
.section-shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

/* Standard Section Rule Divider */
.section-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  white-space: nowrap;
}

.section-rule::before,
.section-rule::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

/* --- Header & Top Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
  position: relative;
  padding-block: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink-primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--green);
  border-radius: 2px;
}

/* Shared Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
}

.button-dark {
  background: var(--ink-primary);
  color: #ffffff;
  border-color: var(--ink-primary);
  box-shadow: var(--shadow-xs);
}

.button-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button-outline {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--line);
}

.button-outline:hover {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.nav-cta {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Hero Section --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--ink-secondary);
  font-weight: 700;
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 520px;
}

.quick-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.email-field {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-field:focus-within {
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(9, 10, 12, 0.06);
}

.email-field svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-muted);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.email-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-primary);
}

.email-field input::placeholder {
  color: var(--ink-faint);
}

.quick-form .button {
  height: 48px;
  padding: 0 18px;
  flex-shrink: 0;
}

.form-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 10px 0 0;
  min-height: 18px;
}

.form-note.error {
  color: var(--red);
}

.form-note.success {
  color: var(--green-dark);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 12px;
}

.meta-line {
  height: 1px;
  width: 24px;
  background: var(--line-strong);
}

/* --- Hero Visual & Dashboard Stage --- */
.hero-visual {
  width: 100%;
  min-width: 0;
  position: relative;
}

.dashboard-stage {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Dashboard Window */
.dashboard-window {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.dashboard-topbar {
  height: 54px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.dash-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.search-pill {
  flex: 1;
  min-width: 0;
  height: 32px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.search-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink-muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.search-pill span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-pill kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink-secondary);
  fill: none;
  stroke-width: 1.8;
}

/* Dashboard Body & Sidebar */
.dashboard-body {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 330px;
}

.dashboard-sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface-subtle);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-link {
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.side-link.active,
.side-link:hover {
  background: #ffffff;
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.side-icon {
  font-size: 13px;
  width: 14px;
  text-align: center;
  color: var(--ink-muted);
}

.side-link.active .side-icon {
  color: var(--green);
}

.sidebar-bottom {
  margin-top: auto;
  padding: 8px 6px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Dashboard Main Content */
.dashboard-main {
  padding: 16px 18px 14px;
  min-width: 0;
  background: #ffffff;
}

.company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.company-exchange {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-chip {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.company-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.company-price strong {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
}

.company-price span {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}

.dash-tabs span {
  padding: 0 2px 8px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  position: relative;
  transition: color 0.15s ease;
}

.dash-tabs span:hover {
  color: var(--ink-primary);
}

.dash-tabs .selected {
  font-weight: 600;
  color: var(--ink-primary);
}

.dash-tabs .selected::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink-primary);
}

/* Dashboard 2x2 Grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 0;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8px;
  color: var(--ink-muted);
  font-style: normal;
}

/* Score Card */
.score-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 6px;
}

.score-row strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.score-row > span {
  font-size: 11px;
  color: var(--ink-muted);
}

.score-row em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: auto;
}

.score-track {
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  margin-top: 6px;
  overflow: hidden;
}

.score-track i {
  height: 100%;
  width: 78%;
  display: block;
  background: var(--green);
  border-radius: 100px;
}

.score-foot {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Takeaways Card */
.takeaway-card ul {
  padding-left: 14px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.takeaway-card li {
  margin-bottom: 3px;
}

/* Financial Snapshot Card */
.mini-bars {
  height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 4px 2px 0;
  border-bottom: 1px solid var(--line);
  margin-top: 6px;
}

.mini-bars i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: #cbd5e1;
  min-width: 4px;
}

.mini-bars i:nth-child(4n) {
  background: var(--green);
}

.bar-labels {
  display: flex;
  justify-content: space-around;
  color: var(--ink-muted);
  font-size: 9px;
  font-family: var(--font-mono);
  margin-top: 3px;
}

/* Forensic Checks Card */
.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-secondary);
  margin-top: 6px;
}

.check-mark {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.check-item b {
  margin-left: auto;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 9px;
}

.dash-disclaimer {
  font-size: 10px;
  color: var(--ink-muted);
  text-align: right;
  margin-top: 8px;
}

/* --- Floating AI Research Copilot --- */
.ai-copilot {
  position: absolute;
  z-index: 10;
  right: -12px;
  bottom: 56px;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  transition: width 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.copilot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copilot-status {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.copilot-brand strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}

.copilot-brand small {
  color: var(--ink-muted);
  font-size: 10px;
}

.copilot-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copilot-badge {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.copilot-toggle {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  padding: 0;
}

.copilot-toggle:hover {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
  color: var(--ink-primary);
}

.copilot-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.maximize-icon {
  display: none;
}

/* Copilot Body */
.copilot-body {
  padding: 10px 12px 12px;
  background: #ffffff;
}

.copilot-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-subtle);
}

.copilot-company span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.copilot-company strong {
  font-size: 11px;
  color: var(--ink-primary);
}

.copilot-company small {
  color: var(--ink-muted);
  font-weight: 400;
}

.copilot-chat {
  max-height: 170px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.chat-turn {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-message {
  align-self: flex-end;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 8px 8px 2px 8px;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-primary);
  max-width: 90%;
}

.chat-response {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 2px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.response-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.response-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.chat-response p {
  margin: 0 0 4px;
}

.chat-response ul {
  padding-left: 14px;
  margin: 0 0 6px;
}

.chat-response li {
  margin-bottom: 2px;
}

.source-tag {
  color: var(--ink-muted);
  font-size: 9px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 4px;
}

.copilot-quick-prompts {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.copilot-quick-prompts::-webkit-scrollbar {
  display: none;
}

.copilot-chip {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.copilot-chip:hover {
  background: #ffffff;
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.chat-input {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.chat-input input {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 11px;
  outline: none;
  background: var(--surface-subtle);
  transition: border-color 0.15s ease;
}

.chat-input input:focus {
  border-color: var(--ink-primary);
  background: #ffffff;
}

.chat-input button {
  width: 32px;
  height: 32px;
  background: var(--ink-primary);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.chat-input button:hover {
  background: #1e293b;
}

/* Minimized Copilot State */
.ai-copilot.is-minimized {
  width: 220px;
  box-shadow: var(--shadow-md);
}

.ai-copilot.is-minimized .copilot-body {
  display: none;
}

.ai-copilot.is-minimized .minimize-icon {
  display: none;
}

.ai-copilot.is-minimized .maximize-icon {
  display: block;
}

/* --- Floating Market Ticker --- */
.market-ticker {
  margin-top: 16px;
  height: 40px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.ticker-live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
  will-change: transform;
}

.market-ticker:hover .ticker-items {
  animation-play-state: paused;
}

.ticker-items span {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ticker-items b {
  font-family: var(--font-mono);
  color: var(--ink-primary);
  font-weight: 600;
  margin-left: 4px;
}

.ticker-items em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--green-dark);
  margin-left: 4px;
}

.ticker-demo {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* --- Features Section: The EQ-T Advantage --- */
.advantage {
  padding-top: 72px;
  padding-bottom: 88px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-number {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

/* --- Research Section: Document & Accounting Intelligence --- */
.research-section {
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.research-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--green-dark);
}

.research-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink-primary);
  margin: 12px 0 16px;
  font-weight: 800;
}

.research-content > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 520px;
}

.research-points {
  border-top: 1px solid var(--line);
}

.research-point-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.point-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  padding-top: 2px;
}

.point-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.point-text p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Forensic Audit Preview Box */
.audit-matrix-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.audit-header h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.audit-header span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.audit-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.audit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-primary);
}

.audit-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-passed {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}

.badge-info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* --- Manifesto Section --- */
.manifesto {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0;
}

.manifesto-mark {
  display: flex;
  align-items: center;
}

.manifesto-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.manifesto-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-primary);
  margin: 0 0 16px;
  font-weight: 800;
}

.manifesto-copy p {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
}

/* --- Waitlist Section --- */
.waitlist-section {
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.waitlist-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.waitlist-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink-primary);
  margin: 0 0 16px;
  font-weight: 800;
}

.waitlist-copy > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 480px;
  margin: 0 0 28px;
}

.waitlist-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Full Form Card */
.full-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.form-heading span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-primary);
}

.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}

.db-badge .db-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
}

.db-badge.connected {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green-dark);
}

.db-badge.connected .db-dot {
  background: var(--green);
}

.full-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-primary);
  margin: 14px 0 6px;
}

.full-form input,
.full-form select {
  height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink-primary);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.full-form input:focus,
.full-form select:focus {
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(9, 10, 12, 0.05);
}

.full-form input::placeholder {
  color: var(--ink-faint);
}

.form-submit {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  font-size: 14px;
}

.privacy-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 12px 0 0;
  text-align: center;
}

.form-feedback {
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  min-height: 18px;
  color: var(--green-dark);
}

.form-feedback.error {
  color: var(--red);
}

/* --- Institutional Footer --- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 280px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 13px;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--green-dark);
}

.footer-parent-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
}

.footer-parent-brand img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-parent-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 260px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-muted);
}
