/* Marketing site — separate from dashboard style.css */

.site-body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.05rem;
}

.site-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover { background: #f1f5f9; color: #0f172a; }
.site-nav a.active { color: #0f172a; font-weight: 600; }

.site-nav-cta {
  background: #0f172a !important;
  color: #fff !important;
  margin-left: 4px;
}

.site-nav-cta:hover { background: #1e293b !important; }

.site-nav-toggle {
  display: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }
  .site-nav.open { display: flex; }
  .site-header-inner { position: relative; flex-wrap: wrap; }
}

.site-main { min-height: 60vh; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 24px 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(34, 197, 94, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(59, 130, 246, 0.12), transparent),
    linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: #f8fafc;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 16px;
}

.hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: #4ade80;
}

.hero-lead {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin: 0 0 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.hero-stats li {
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

.hero-stats span {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4); }

.btn-secondary {
  background: #0f172a;
  color: #fff;
}

.btn-secondary:hover { background: #1e293b; }

.btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.prose .btn-ghost {
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Sections */
.section {
  padding: 64px 24px;
}

.section-alt {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-inner.narrow { max-width: 720px; }

.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto 32px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.75rem; margin-bottom: 12px; }

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

.check-list-neg li::before { content: "×"; color: #dc2626; }

.flow-card {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 28px;
}

.flow-card h3 { margin: 0 0 16px; color: #fff; }

.flow-steps {
  margin: 0;
  padding-left: 1.2rem;
}

.flow-steps li { margin-bottom: 10px; }

.cta-band {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 48px 32px;
}

.cta-band h2 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 8px;
}

.cta-band p { color: #64748b; margin: 0 0 24px; }

/* Inner pages */
.page-hero {
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.page-hero-warn {
  background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 100%);
}

.page-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.25rem;
  margin: 0 0 12px;
}

.page-lead {
  font-size: 1.125rem;
  color: #475569;
  margin: 0;
  line-height: 1.65;
}

.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose p, .prose li { color: #334155; }

.prose code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.callout {
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.callout-warn {
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 16px 0;
}

.data-table th,
.data-table td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  font-weight: 600;
}

.code-block, .arch-diagram {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.signal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
}

.signal-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.signal-card p { margin: 0 0 12px; color: #64748b; font-size: 0.95rem; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.pipeline-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

.pipeline-step span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.pipeline-step p { margin: 4px 0 0; font-size: 0.9rem; color: #64748b; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 24px 24px;
  margin-top: 48px;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 640px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}

.site-footer strong { color: #f8fafc; display: block; margin-bottom: 8px; }

.site-footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 6px;
}

.site-footer a:hover { color: #fff; }

.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.site-footer-copy {
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

.muted { color: #64748b; }
.small { font-size: 0.85rem; }

/* SaaS auth, pricing, account */
.site-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.site-hero.narrow,
.site-hero .auth-form,
.site-hero .pricing-grid {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.site-hero.narrow { max-width: 440px; }

.site-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 12px;
  color: #0f172a;
}

.site-hero .lead {
  color: #64748b;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.site-hero .pricing-grid {
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.site-hero .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.site-hero .card.featured {
  border-color: #22c55e;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}

.site-hero .card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.site-hero .card .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #0f172a;
}

.site-hero .card ul {
  margin: 0 0 20px;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.95rem;
}

.site-hero .card .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.auth-form input:focus {
  outline: 2px solid #22c55e;
  outline-offset: 0;
  border-color: #22c55e;
}

.auth-form .btn-primary {
  margin-top: 8px;
  cursor: pointer;
  border: none;
}

.flash-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.flash {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.flash-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.flash-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.account-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.account-card code {
  word-break: break-all;
  font-size: 0.85rem;
}

.pricing-muted-btn {
  display: inline-block;
  text-align: center;
  cursor: default;
  opacity: 0.85;
}

.pricing-badge-active {
  color: #166534;
  font-weight: 600;
  margin: 0 0 12px;
}

.pricing-checkout-msg {
  margin-top: 10px;
  min-height: 1.2em;
}

.pricing-checkout-msg.pricing-error {
  color: #b91c1c;
}

.pricing-footnote {
  text-align: center;
  margin-top: 32px;
}

.coupon-box {
  max-width: 520px;
  margin: 40px auto 0;
  padding: 24px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center;
}

.coupon-box h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.coupon-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.coupon-form input {
  flex: 1 1 160px;
  max-width: 220px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  text-transform: uppercase;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #64748b;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p,
.faq-item ol,
.faq-item ul {
  margin: 0 0 16px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item ol,
.faq-item ul {
  padding-left: 1.25rem;
}

.site-nav-auth {
  font-size: 0.85rem !important;
}
