/* pricing.css — LayerOS public pricing page styles */

/* ─── CSS VARIABLES (shared with app — also defined here for standalone use) ─── */
:root {
  --bg: #0B0B08;
  --bg-2: #121210;
  --bg-3: #1C1C18;
  --bg-4: #252520;
  --fg: #EDE8DF;
  --fg-muted: #7A7770;
  --fg-dim: #4A4844;
  --accent: #D4520A;
  --accent-light: #F05E1A;
  --accent-dim: rgba(212,82,10,0.12);
  --border: rgba(237,232,223,0.07);
  --border-bright: rgba(237,232,223,0.14);
  --mono: 'DM Mono', 'Courier New', monospace;
  --display: 'Syne', sans-serif;
  --body: 'Space Grotesk', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11,11,8,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-links a {
  font-size: 0.82rem;
  color: var(--fg-muted);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 0.78rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent) !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* ─── HERO: TWO-COLUMN LAYOUT ─── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 90vh;
  padding: 7rem 3rem 4rem;
  gap: 4rem;
  overflow: hidden;
}
.hero-left { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(212,82,10,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
  color: var(--fg);
}
.hero-headline em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--fg); }

.trust-strip {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.trust-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.trust-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.trust-logo {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-dim);
  letter-spacing: -0.02em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}

/* ─── HERO RIGHT: RFI DASHBOARD PREVIEW ─── */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}
.dashboard-preview {
  width: 100%;
  max-width: 560px;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(212,82,10,0.08),
    0 32px 80px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.4);
}
.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; }
.preview-dots span:nth-child(1) { background: #FF5F57; }
.preview-dots span:nth-child(2) { background: #FFBD2E; }
.preview-dots span:nth-child(3) { background: #28CA41; }
.preview-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.preview-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #28CA41;
}
.preview-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28CA41;
}
.preview-body { padding: 1.5rem; }
.preview-rfi-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.preview-rfi-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 0.35rem;
}
.preview-rfi-subject {
  font-family: var(--display);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.preview-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  border: 1px solid;
}
.badge-critical {
  background: rgba(220,38,38,0.12);
  color: #EF4444;
  border-color: rgba(220,38,38,0.25);
}
.routing-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.routing-chain { display: flex; flex-direction: column; gap: 0; }
.routing-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
.routing-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  width: 1px;
  height: calc(100% - 1rem);
  background: linear-gradient(to bottom, rgba(212,82,10,0.4), transparent);
}
.step-connector {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.step-ai { background: var(--accent); color: #fff; }
.step-person {
  background: var(--bg-4);
  border: 1px solid var(--border-bright);
  color: var(--fg-muted);
}
.step-person svg { width: 14px; height: 14px; }
.step-content { flex: 1; padding-top: 0.2rem; padding-bottom: 1.5rem; }
.step-action {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.15rem;
}
.step-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--fg-dim); }

/* ─── STATS ROW ─── */
.stats-row {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2.5rem 3rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── PRICING SECTION ─── */
.pricing-section {
  position: relative; z-index: 1;
  padding: 5rem 3rem 0;
}
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 80px; height: 1px;
  background: var(--border-bright);
}
.pricing-section h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.pricing-section h2 em { font-style: normal; color: var(--accent); }
.pricing-section > p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 48ch;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* ─── TOGGLE ─── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.toggle-label {
  font-size: 0.875rem;
  color: var(--fg-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.toggle-label.active { color: var(--fg); }
.toggle {
  width: 44px; height: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.toggle.on { background: var(--accent); border-color: var(--accent); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.2s ease;
}
.toggle.on::after { transform: translateX(20px); }
.save-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(212,82,10,0.25);
  border-radius: 100px;
}

/* ─── TIERS ─── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 6rem;
}
.tier {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.2s;
}
.tier:hover { background: var(--bg-2); }
.tier-pro {
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.tier-popular-tag {
  position: absolute; top: -1px; left: -1px; right: -1px;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.tier-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
  margin-top: 0.75rem;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}
.tier-price .dollar {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--fg-dim);
  line-height: 1;
  font-weight: 600;
}
.tier-price .amount {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.tier-price .period {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
}
.tier-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  line-height: 1.55;
}
.tier-cta {
  display: block;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-bright);
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-bottom: 2rem;
  color: var(--fg-muted);
}
.tier-cta:hover { background: var(--bg-3); border-color: rgba(237,232,223,0.25); color: var(--fg); }
.tier-cta.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.tier-cta.primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.tier-cta.enterprise { border-color: var(--accent); color: var(--accent); }
.tier-cta.enterprise:hover { background: var(--accent-dim); }
.tier-features {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  flex: 1;
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: var(--fg-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(237,232,223,0.04);
}
.tier-features li svg { flex-shrink: 0; margin-top: 0.1rem; color: var(--accent); }
.tier-features li.excluded { color: var(--fg-dim); }
.tier-features li.excluded svg { color: var(--fg-dim); }

/* ─── FEATURE COMPARISON TABLE ─── */
.comparison-section {
  position: relative; z-index: 1;
  padding: 0 3rem 6rem;
}
.comparison-section h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
  text-align: center;
}
.comparison-section h2 em { font-style: normal; color: var(--accent); }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}
.comparison-table thead th {
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.comparison-table thead th:not(:first-child) { text-align: center; }
.comparison-table thead th.pro-col { background: rgba(212,82,10,0.06); color: var(--accent); }
.comparison-table tbody tr:nth-child(odd) { background: var(--bg); }
.comparison-table tbody tr:nth-child(even) { background: var(--bg-2); }
.comparison-table tbody td {
  padding: 0.95rem 1.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  border-bottom: 1px solid rgba(237,232,223,0.04);
}
.comparison-table tbody td:not(:first-child) { text-align: center; }
.comparison-table tbody td.feature-name { color: var(--fg); font-weight: 500; font-family: var(--body); }
.comparison-table tbody td.pro-cell { background: rgba(212,82,10,0.04); }
.check { color: var(--accent); font-size: 1rem; }
.cross { color: var(--fg-dim); font-family: var(--mono); font-size: 0.8rem; }
.comparison-footnote {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  padding: 1.5rem 0;
  letter-spacing: 0.03em;
}

/* ─── FAQ ─── */
.faq-section {
  position: relative; z-index: 1;
  padding: 0 3rem 6rem;
  max-width: 760px;
  margin: 0 auto;
}
.faq-section h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  text-align: center;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 1.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--fg);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-a {
  display: none;
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.75;
  padding-bottom: 1.4rem;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ─── FOOTER CTA ─── */
.footer-cta {
  position: relative; z-index: 1;
  padding: 7rem 3rem;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-cta h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.footer-cta h2 em { font-style: normal; color: var(--accent); }
.footer-cta p { font-size: 1rem; color: var(--fg-muted); margin-bottom: 2.5rem; }
.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--accent-light); }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-family: var(--mono);
}
.footer-logo { font-family: var(--display); font-size: 0.875rem; font-weight: 700; letter-spacing: -0.03em; }
footer .footer-logo span { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    min-height: auto; gap: 2.5rem;
  }
  .hero-right { justify-content: center; }
  .dashboard-preview { max-width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 1.5rem; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .tiers { grid-template-columns: 1fr; margin-bottom: 4rem; }
  .tier-pro { border-left: 2px solid var(--accent); border-right: none; }
  .comparison-section, .pricing-section { padding: 0 1.5rem 4rem; }
  .faq-section { padding: 0 1.5rem 4rem; }
  .footer-cta { padding: 4rem 1.5rem; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}