/* LoopGlean marketing site — reuses the product's own design tokens
   (see the CRM repo's DESIGN.md: Vibrant Glass / Executive Gold) so this
   site and the product feel like the same company, not two different
   ones glued together. */

:root {
  --bg-deep: #0b0a16;
  --bg-card: rgba(139, 92, 246, .04);
  --border: rgba(139, 92, 246, .18);
  --border-light: rgba(139, 92, 246, .10);

  --violet: #8b5cf6;
  --violet-deep: #7c3aed;
  --violet-dim: #5b21b6;

  --gold: #e4b028;

  --text: #e2e8f0;
  --text-muted: #94a3b8;

  --glow-sm: 0 4px 18px rgba(124, 58, 237, .45);
  --glow-md: 0 4px 28px rgba(124, 58, 237, .55), 0 0 0 8px rgba(124, 58, 237, .08);

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

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #f0f4f8;
  line-height: 1.15;
  margin: 0;
}

p { line-height: 1.6; color: var(--text-muted); margin: 0; }

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

.accent { color: var(--violet); }

/* -- Layout helpers -- */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* -- Background texture, matches the product's login screen -- */
body {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 58, 237, .14) 0%, transparent 70%),
    var(--bg-deep);
}

/* -- Nav -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 10, 22, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #f1f5f9;
}
.wordmark.small { font-size: 14px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--glow-md); }
.btn-ghost {
  background: rgba(139, 92, 246, .10);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(139, 92, 246, .18); }
.btn-nav {
  padding: 9px 18px;
  font-size: 13px;
}
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* -- Hero -- */
.hero { padding: 120px 24px 100px; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 44px; margin-bottom: 24px; }
.hero .lede {
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
}

/* -- Demo video -- */
.demo { border-top: 1px solid var(--border-light); }
.steps-hint {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 14px;
}
.demo-video-wrap {
  max-width: 860px;
  margin: 48px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--glow-md);
}
.demo-video { display: block; width: 100%; height: auto; background: #000; }

/* -- Product step scroller (horizontal, snap-to-card) -- */
.steps-scroll {
  display: flex;
  gap: 20px;
  margin: 32px auto 0;
  padding: 4px 24px 20px;
  max-width: 1080px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
}
.steps-scroll::-webkit-scrollbar { height: 8px; }
.steps-scroll::-webkit-scrollbar-track { background: transparent; }
.steps-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.step-card {
  flex: 0 0 auto;
  width: min(88vw, 460px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-card img {
  display: block;
  width: 100%;
  /* Fixed height + object-fit: cover, not height: auto -- the four source
     screenshots have different native aspect ratios (a login card vs. a
     wide app panel), so height: auto rendered each card a different height
     and left captions starting at different vertical positions. This forces
     every card's image to occupy the same box regardless of source shape. */
  height: 260px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border-light);
}
.step-card-body {
  padding: 18px 20px 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  background: rgba(139, 92, 246, .12);
  border: 1px solid var(--border);
  color: var(--violet);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
}
.step-card-body p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  margin: 0;
  padding-top: 2px;
}

/* -- Features -- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}
.feature-icon { font-size: 24px; margin-bottom: 14px; }
.feature h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature p { font-size: 14px; }

/* -- How it works -- */
.how { border-top: 1px solid var(--border-light); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.how-step { text-align: center; }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: rgba(139, 92, 246, .12);
  border: 1px solid var(--border);
  color: var(--violet);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin-bottom: 16px;
}
.how-step h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.how-step p { font-size: 14px; }

/* -- Pricing -- */
.pricing-hero { padding-bottom: 60px; }
.pricing { border-top: 1px solid var(--border-light); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--border);
  box-shadow: var(--glow-sm);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}
.price-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.price-value {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  color: #f0f4f8;
  margin-bottom: 4px;
}
.price-period {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}
.price-turns {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 20px;
}
.price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.price-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}
.price-cta { width: 100%; }

/* -- FAQ -- */
.faq { border-top: 1px solid var(--border-light); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.faq-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.faq-item p { font-size: 14px; }

/* -- CTA band -- */
.cta {
  border-top: 1px solid var(--border-light);
  text-align: center;
  padding: 96px 24px;
}
.cta-inner { max-width: 560px; margin: 0 auto; }
.cta h2 { font-size: 30px; margin-bottom: 16px; }
.cta p { margin-bottom: 32px; }

/* -- Footer -- */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { font-size: 13px; color: #475569; }
.brand-footer { opacity: .85; }
.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.footer-links a { color: #64748b; }
.footer-links a:hover { color: var(--text-muted); }

/* -- Legal pages (Terms / Privacy) -- */
.legal-hero { padding: 72px 24px 0; }
.legal-hero .hero-inner { max-width: 720px; }
.legal-hero h1 { font-size: 34px; margin-bottom: 12px; }
.legal-updated {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}
.legal-notice {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: rgba(228, 176, 40, .08);
  border: 1px solid rgba(228, 176, 40, .25);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text);
}
.legal-notice strong { color: var(--gold); }
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal-body h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-body p, .legal-body li { font-size: 15px; margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 12px; }
.legal-body a { color: var(--violet); text-decoration: underline; }
.legal-body .placeholder {
  color: var(--gold);
  background: rgba(228, 176, 40, .12);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.legal-toc {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.legal-toc p { font-size: 13px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.legal-toc ol { columns: 2; column-gap: 24px; padding-left: 18px; margin: 0; }
.legal-toc li { font-size: 13px; margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: var(--text-muted); }
.legal-toc a:hover { color: var(--text); }

/* -- Responsive -- */
@media (max-width: 860px) {
  .feature-grid, .how-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .legal-toc ol { columns: 1; }
}
