/* River Leads — refinement layer (service-business positioning) */

:root {
  --text-muted: #d8e0ea;
  --text-dim: #a8b4c4;
  --bg-card: rgba(36, 48, 64, 0.72);
  --glass-border: rgba(148, 163, 184, 0.2);
}

body {
  background: linear-gradient(180deg, #0a0e14 0%, #0f1419 30%, #141c26 100%);
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(59, 130, 246, 0.45), 0 0 48px rgba(139, 92, 246, 0.15);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 44rem;
  line-height: 1.75;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.hero-title {
  max-width: 20ch;
}

.hero-sub {
  max-width: 40rem;
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section + .section {
  scroll-margin-top: var(--header-h);
}

/* Offer */
.offer {
  border-block: 1px solid var(--border);
  background: rgba(22, 29, 40, 0.4);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.offer-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.offer-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.offer-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.offer-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue-soft);
}

/* System previews */
.system {
  background: linear-gradient(180deg, rgba(15, 20, 28, 0.5) 0%, transparent 100%);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.preview-label {
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-soft);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 28, 0.6);
}

.preview-ui {
  padding: 1.25rem;
  min-height: 200px;
  font-size: 0.82rem;
}

.preview-pipeline {
  display: flex;
  gap: 0.65rem;
}

.preview-col {
  flex: 1;
  background: rgba(10, 14, 20, 0.5);
  border-radius: 8px;
  padding: 0.65rem;
  border: 1px solid var(--border);
}

.preview-col-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.preview-lead {
  padding: 0.5rem 0.55rem;
  margin-bottom: 0.4rem;
  background: rgba(36, 48, 64, 0.8);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.preview-lead.hot {
  border-left: 3px solid #f59e0b;
}

.preview-lead.booked {
  border-left: 3px solid #4ade80;
}

.preview-sms .sms-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  max-width: 92%;
  line-height: 1.45;
  font-size: 0.8rem;
}

.sms-bubble.out {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--text);
  margin-left: 0;
}

.sms-bubble.in {
  background: rgba(36, 48, 64, 0.9);
  border: 1px solid var(--border);
  margin-left: auto;
  color: var(--text-muted);
}

.sms-bubble.small {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.sms-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.preview-notify .notify-item {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  line-height: 1.4;
}

.notify-item.urgent {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text);
}

.preview-booking {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.booking-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #4ade80;
  margin-bottom: 0.75rem;
}

.booking-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.booking-detail {
  font-size: 0.9rem;
  color: var(--blue-soft);
  margin: 0.25rem 0;
}

.booking-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.preview-missed .missed-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.missed-tag {
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 600;
}

.missed-action {
  font-size: 0.78rem;
  color: var(--blue-soft);
  margin-bottom: 0.75rem;
}

.preview-call .call-duration {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.call-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.call-points li {
  padding-left: 1rem;
  position: relative;
}

.call-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-soft);
}

/* Differentiation */
.differentiate {
  border-block: 1px solid var(--border);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.diff-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.diff-copy p + p {
  margin-top: 1rem;
}

.diff-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.diff-check {
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
}

/* ROI */
.roi {
  background: rgba(22, 29, 40, 0.35);
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.roi-metric {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.roi-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.roi-before,
.roi-after {
  flex: 1;
  text-align: center;
}

.roi-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.roi-before .roi-value {
  color: #f87171;
  font-size: 1.75rem;
  font-weight: 700;
}

.roi-after .roi-value {
  color: #4ade80;
  font-size: 1.75rem;
  font-weight: 700;
}

.roi-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.roi-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
}

.roi-stat-block {
  text-align: center;
}

.roi-big {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.roi-disclaimer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Walkthrough */
.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.timeline-day {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.demo-frame-loom .demo-chrome {
  justify-content: flex-start;
}

.demo-duration {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.loom-thumbnail {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.5;
  pointer-events: none;
}

.loom-sidebar {
  width: 28%;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid var(--border);
}

.loom-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  margin-bottom: 1rem;
}

.loom-lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.2);
  margin-bottom: 0.4rem;
}

.loom-lines span:first-child { width: 80%; }
.loom-lines span:last-child { width: 55%; }

.loom-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loom-stage {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 1rem 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.final-cta-inner h2 {
  max-width: 24ch;
}

/* Mobile sticky CTA hint */
.mobile-cta-bar {
  display: none;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-soft);
  flex-shrink: 0;
}

.section-header p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 40rem;
  margin-inline: auto;
}

.flow.flow-scroll {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.4) transparent;
}

.flow.flow-scroll::-webkit-scrollbar {
  height: 6px;
}

.flow.flow-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.4);
  border-radius: 999px;
}

.flow.flow-scroll .flow-step {
  flex: 0 0 172px;
  max-width: 172px;
}

.flow.flow-scroll .flow-step h3 {
  font-size: 0.9rem;
}

.flow.flow-scroll .flow-step p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* What We Automate */
.automate {
  background: linear-gradient(180deg, transparent 0%, rgba(22, 29, 40, 0.45) 50%, transparent 100%);
}

.automate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.automate-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.automate-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.automate-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-purple));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius-sm);
  color: var(--blue-soft);
}

.automate-icon svg {
  width: 26px;
  height: 26px;
}

.automate-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.automate-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Business outcomes */
.outcomes {
  border-block: 1px solid var(--border);
  background: rgba(22, 29, 40, 0.35);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.outcome-card {
  padding: 1.75rem 1.5rem;
  background: rgba(36, 48, 64, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.outcome-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.outcome-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.outcome-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Demo frame */
.demo-frame {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(20, 28, 38, 0.8);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(96, 165, 250, 0.08);
  backdrop-filter: blur(12px);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 20, 28, 0.9);
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}

.demo-dot:first-child { background: rgba(248, 113, 113, 0.6); }
.demo-dot:nth-child(2) { background: rgba(251, 191, 36, 0.6); }
.demo-dot:nth-child(3) { background: rgba(74, 222, 128, 0.6); }

.demo-chrome-title {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.demo-placeholder {
  border: none;
  border-radius: 0;
  min-height: 320px;
}

.demo-preview-lines {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  opacity: 0.35;
}

.demo-preview-lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.4), transparent);
}

.demo-preview-lines span:nth-child(1) { width: 55%; }
.demo-preview-lines span:nth-child(2) { width: 72%; }
.demo-preview-lines span:nth-child(3) { width: 40%; }

.demo-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.demo-sublabel {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Industries */
.industry-group {
  margin-bottom: 2.5rem;
}

.industry-group:last-child {
  margin-bottom: 0;
}

.industry-group-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-soft);
  margin-bottom: 1.25rem;
}

.industry-pill {
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  color: var(--text-muted);
  background: rgba(36, 48, 64, 0.75);
  border-color: var(--glass-border);
}

.industry-pill-primary {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.12));
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.industry-pill-primary:hover {
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.2);
}

/* Contact form */
.contact-form-wrap {
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 80px rgba(59, 130, 246, 0.06);
}

.form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.form-header h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.form-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.contact-form {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.85rem 1.05rem;
  font-size: 1rem;
  background: rgba(10, 14, 20, 0.75);
  border: 1px solid var(--glass-border);
}

.form-group select {
  width: 100%;
  font-family: var(--font);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #1e2836;
  color: var(--text);
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

.contact-trust {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-sm);
}

.contact-trust p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.benefit-card h3,
.benefit-card p {
  font-size: 1.05rem;
}

.benefit-card p {
  font-size: 1rem;
}

.automate-grid .automate-card:nth-child(1) { transition-delay: 0s; }
.automate-grid .automate-card:nth-child(2) { transition-delay: 0.06s; }
.automate-grid .automate-card:nth-child(3) { transition-delay: 0.12s; }
.automate-grid .automate-card:nth-child(4) { transition-delay: 0.18s; }
.automate-grid .automate-card:nth-child(5) { transition-delay: 0.24s; }
.automate-grid .automate-card:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .flow.flow-scroll {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .flow.flow-scroll .flow-step {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .diff-grid,
  .walkthrough-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .preview-pipeline {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

  .hero-cta,
  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn,
  .final-cta-buttons .btn {
    width: 100%;
  }

  .hero-title {
    max-width: none;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .roi-compare {
    flex-direction: column;
  }

  .roi-arrow {
    transform: rotate(90deg);
  }

  .nav-links .btn-primary {
    position: sticky;
    bottom: 0;
  }
}

/* Section scroll offset */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
