/* Ghosted marketing site (ghostedhub.com) — static mirror of the light
   marketing theme in the main app's src/app/globals.css. Kept in one file
   since this site has no build step; component class names match the app
   1:1 so future page ports can copy markup straight across. */

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f6fa;
  --card: #ffffff;
  --card-border: #e5e7f0;
  --border: #e1e3ec;

  --text-primary: #14151d;
  --text-secondary: #565c6e;
  --text-muted: #8890a3;

  --accent: #4b5efc;
  --accent-muted: #eef0ff;

  --danger: #d9333c;
  --danger-muted: #fceeee;

  --success: #1a9c56;
  --success-muted: #e7f7ee;

  --warning: #b9790f;
  --warning-muted: #fbf1de;

  --info: #0d84c4;
  --info-muted: #e6f5fc;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

html {
  color-scheme: light;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  filter: brightness(1.25);
}

ul {
  list-style: none;
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.home-empty {
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-elevated);
}

.btn-lg {
  padding: var(--space-md) var(--space-xxl);
  font-size: 16px;
}

/* Pills */

.pill {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-success {
  color: var(--success);
  background: var(--success-muted);
}

.pill-warning {
  color: var(--warning);
  background: var(--warning-muted);
}

.pill-danger {
  color: var(--danger);
  background: var(--danger-muted);
}

.pill-neutral {
  color: var(--text-secondary);
  background: var(--border);
}

/* Dashboard-preview bits shared by the mock screenshots below */

.folder-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.folder-tab {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.folder-tab-active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.role-line {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

th:nth-child(1),
td:nth-child(1) {
  width: 38%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 14%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 12%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 18%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 18%;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.stat-tile-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

.attention-card {
  padding: 0;
  overflow: hidden;
}

.attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--card-border);
}

.attention-row:last-child {
  border-bottom: none;
}

.attention-main {
  flex: 1;
  min-width: 0;
}

.attention-company {
  font-weight: 700;
  color: var(--text-primary);
}

.applied-line {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.attention-pills {
  display: grid;
  grid-template-columns: 100px 88px;
  gap: var(--space-xs);
  flex-shrink: 0;
  justify-items: end;
}

.attention-pills .pill {
  text-align: center;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.company-card {
  padding: var(--space-lg);
}

.company-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.company-card-industry {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.company-card-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.company-card-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.company-card-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.company-card-metric-row span:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

.insight-card {
  padding: var(--space-lg);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.insight-tile {
  background: var(--accent-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.insight-tile-value {
  font-size: 24px;
  font-weight: 800;
}

.insight-tile-unit {
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
}

.insight-tile-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: var(--space-xs);
}

.insight-tile-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.insight-tile-sub > * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mock preview shell — re-declares the app's own dark tokens (not the light
   tokens above), so a screenshot-style preview of the real (dark) product
   renders correctly on this light page with zero extra markup. */
.mock-shell {
  --bg: #0b0d12;
  --bg-elevated: #1d222d;
  --card: #1a1e29;
  --card-border: #262b38;
  --border: #2a2f3d;

  --text-primary: #f2f4f8;
  --text-secondary: #9aa3b5;
  --text-muted: #6b7487;

  --accent: #7c9bff;
  --accent-muted: #2c3352;

  --danger: #ff6b6b;
  --danger-muted: #3a2229;

  --success: #4ade80;
  --success-muted: #1e3327;

  --warning: #fbbf24;
  --warning-muted: #3a2f16;

  --info: #38bdf8;
  --info-muted: #123244;

  background: var(--bg);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: var(--space-xl);
  box-shadow: 0 24px 60px -20px rgba(15, 15, 20, 0.45);
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.mock-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mock-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Marketing layout */

.marketing-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 700px) {
  .marketing-container {
    padding: 0 var(--space-lg);
  }
}

.marketing-header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.marketing-header .marketing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: var(--space-md);
}

.marketing-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.marketing-brand:hover {
  filter: none;
}

.marketing-brand-icon {
  width: 26px;
  height: auto;
  flex-shrink: 0;
}

.marketing-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.marketing-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.marketing-nav a:hover {
  color: var(--text-primary);
  filter: none;
}

.marketing-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.marketing-auth {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .marketing-header .marketing-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-nav {
    gap: var(--space-lg);
  }

  .marketing-auth {
    width: 100%;
    justify-content: flex-end;
  }
}

.marketing-main {
  flex: 1;
}

.hero {
  padding: var(--space-xxl) 0;
}

.hero .marketing-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xxl);
  align-items: center;
}

@media (max-width: 960px) {
  .hero .marketing-container {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--space-xl);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.marketing-section {
  padding: var(--space-xxl) 0;
}

.marketing-section-alt {
  background: var(--bg-elevated);
}

.section-header {
  max-width: 640px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.section-eyebrow {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xxl);
  align-items: center;
}

@media (max-width: 960px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

.split-section-reverse .split-copy {
  order: 2;
}

@media (max-width: 960px) {
  .split-section-reverse .split-copy {
    order: 0;
  }
}

.split-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-md);
}

.split-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.split-copy ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.split-copy li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 15px;
}

.split-copy li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.narrative-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.marketing-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xxl) 0 var(--space-xl);
  margin-top: auto;
}

.marketing-footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xxl);
  flex-wrap: wrap;
  margin-bottom: var(--space-xxl);
}

.marketing-footer-brand {
  max-width: 280px;
}

.marketing-footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--space-sm);
}

.marketing-footer-cols {
  display: flex;
  gap: var(--space-xxl);
  flex-wrap: wrap;
}

.marketing-footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.marketing-footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.marketing-footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.marketing-footer-col a:hover {
  color: var(--text-primary);
  filter: none;
}

.marketing-footer-bottom {
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

h1, h2, h3 {
  color: var(--text-primary);
}
