/* ============================================================
   MoonAI — sections.css
   Per-section styles: hero, stats, solution, ifyou, consequences,
   showcase, calculator, three-steps, step-list, compare, dialog,
   automate, impl-timeline, integrations, faq, final CTA
   ============================================================ */

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding-top: 64px; padding-bottom: 80px; background: var(--bg); }
.hero-inner { text-align: center; max-width: 1000px; margin: 0 auto; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #6E56F8 0%, #4F46E5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2);
  margin: 0 auto 32px; max-width: 720px;
}
.hero-cta {
  display: inline-flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center;
}

/* Hero media canvas */
.hero-media { margin: 64px auto 0; max-width: 1140px; position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 40px -40px -40px;
  background:
    radial-gradient(60% 50% at 30% 50%, rgba(199,242,132,.5), transparent 70%),
    radial-gradient(60% 50% at 80% 30%, rgba(110,86,248,.32), transparent 70%);
  z-index: 0; filter: blur(40px);
}
.hero-canvas {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #0F0A2E 0%, #1A1240 100%);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: 0 40px 80px rgba(15,10,46,.25), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
}
.hero-canvas::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(110,86,248,.4), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(199,242,132,.18), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: stretch;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone chat card (hero) */
.phone {
  background: #fff; border-radius: 28px; padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.phone-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid #F1F1ED;
}
.phone-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8B7CFB, #4F46E5);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  position: relative;
}
.phone-av::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 2px #fff;
}
.phone-head h4 { margin: 0; font-size: 15px; }
.phone-head p { margin: 0; font-size: 12px; color: var(--muted); }
.channel-pill {
  margin-left: auto;
  background: var(--bg-mint); color: #04673A;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.channel-pill .ms { font-size: 13px; }

/* Chat stream + messages */
.chat-stream {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 360px; padding: 4px 2px 8px;
}
.msg {
  max-width: 80%; padding: 10px 14px; border-radius: 18px;
  font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(6px);
  animation: pop .35s ease forwards;
}
.msg.user { background: #F1F2EE; color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.ai   { background: linear-gradient(135deg, #6E56F8 0%, #4F46E5 100%); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 12px 14px; background: #F1F2EE; border-radius: 18px;
  align-self: flex-start;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9aa3b8; opacity: .7;
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes pop  { to { opacity: 1; transform: translateY(0); } }

/* Dashboard mockup */
.dash { background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.dash-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dash-head .dots { display: flex; gap: 6px; }
.dash-head .dots i { width: 10px; height: 10px; border-radius: 50%; }
.dash-head .dots i:nth-child(1){ background:#FF5F57;}
.dash-head .dots i:nth-child(2){ background:#FEBC2E;}
.dash-head .dots i:nth-child(3){ background:#28C840;}
.dash-title { font-size: 13px; font-weight: 700; color: var(--ink); margin-left: 8px; }
.dash-pills { margin-left: auto; display: flex; gap: 6px; }
.dash-pills span {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); color: var(--ink-3); font-weight: 600;
}
.dash-pills span.live {
  background: #DCFCE7; color: #047857; border-color: #BBF7D0;
  display: inline-flex; align-items: center; gap: 5px;
}
.dash-pills span.live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10B981; animation: blink 1.6s infinite;
}

.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.dash-list { background: #FAFAF7; border-radius: 16px; padding: 6px; }
.dash-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; align-items: center; }
.dash-item + .dash-item { border-top: 1px solid #F1F1ED; }
.dash-item.active { background: var(--bg-lilac); }
.dash-item .av { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px; background: linear-gradient(135deg, #6E56F8, #38BDF8); }
.dash-item .av.b { background: linear-gradient(135deg, #F472B6, #FCD34D); }
.dash-item .av.c { background: linear-gradient(135deg, #34D399, #38BDF8); }
.dash-item .av.d { background: linear-gradient(135deg, #FCD34D, #F472B6); }
.dash-item b { font-size: 13px; font-weight: 700; color: var(--ink); display: block; line-height: 1.2; }
.dash-item small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.dash-item small .ms { font-size: 12px; }
.dash-item .right { margin-left: auto; text-align: right; }
.dash-item .right small { color: var(--ink-3); }
.dash-item .status {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  font-weight: 700; display: inline-block;
}
.status.qual { background: #DCFCE7; color: #047857; }
.status.new  { background: var(--bg-lilac); color: #4F46E5; }
.status.work { background: #FFE4D7; color: #B54708; }

.dash-side { display: flex; flex-direction: column; gap: 10px; }
.kpi { background: #FAFAF7; border-radius: 16px; padding: 14px; }
.kpi small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kpi b { display: block; font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 11px; color: #047857; font-weight: 700; }
.kpi.alt { background: linear-gradient(135deg, #6E56F8 0%, #4F46E5 100%); color: #fff; }
.kpi.alt small { color: rgba(255,255,255,.7); }
.kpi.alt b { color: #fff; }
.kpi.alt .delta { color: var(--accent); }

/* ============================================================
   STATS BAR (3 big numbers)
   ============================================================ */
.stats { background: var(--bg); padding-top: 0; padding-bottom: 100px; }
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-paper);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stats-row .cell { padding: 36px 32px; text-align: left; border-right: 1px solid var(--border); }
.stats-row .cell:last-child { border-right: 0; }
.stats-row .num {
  font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -0.035em;
  line-height: 1;
  background: linear-gradient(135deg, #6E56F8 0%, #4F46E5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-row .lbl { color: var(--ink-2); font-size: 15px; margin-top: 8px; line-height: 1.4; max-width: 260px; }
@media (max-width: 800px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-row .cell { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats-row .cell:last-child { border-bottom: 0; }
}

/* ============================================================
   4. SOLUTION — feature-cards
   ============================================================ */
.solution { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg-paper); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .2s ease;
  min-height: 460px;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card .preview {
  background: var(--bg-mint); border-radius: var(--radius); padding: 24px;
  flex: 1; display: grid; place-items: center; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.feature-card:nth-child(2) .preview { background: var(--bg-peach); }
.feature-card:nth-child(3) .preview { background: var(--bg-lilac); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 16px; color: var(--ink-3); flex: 0 0 auto; }
.feature-card .btn-link { margin-top: 18px; padding: 0; align-self: flex-start; }

/* Preview mockups (inside feature cards) */
.pv-chat {
  width: 100%; max-width: 280px; background: #fff;
  border-radius: 18px; padding: 12px;
  box-shadow: 0 12px 28px rgba(15,10,46,.10);
}
.pv-chat .row { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed #F1F1ED; }
.pv-chat .row .dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #6E56F8, #4F46E5); }
.pv-chat .row b { font-size: 12px; }
.pv-chat .row small { font-size: 10px; color: var(--muted); display: block; }
.pv-msg { padding: 8px 10px; border-radius: 12px; font-size: 12px; margin-bottom: 4px; max-width: 80%; }
.pv-msg.in  { background: #F1F2EE; }
.pv-msg.out { background: linear-gradient(135deg,#6E56F8,#4F46E5); color: #fff; margin-left: auto; }

.pv-flow { width: 100%; max-width: 320px; display: grid; gap: 8px; }
.pv-flow .node {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(15,10,46,.06);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.pv-flow .node .ic {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-peach); color: #B54708;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.pv-flow .node:nth-child(2) .ic { background: #FFD66B40; color: #B54708; }
.pv-flow .node:nth-child(3) .ic { background: var(--bg-lilac); color: #4F46E5; }
.pv-flow .arrow { width: 2px; height: 14px; background: #E8C4A0; margin-left: 15px; }

.pv-pipeline {
  width: 100%; max-width: 320px; background: #fff;
  border-radius: 18px; padding: 14px;
  box-shadow: 0 12px 28px rgba(15,10,46,.10);
  display: grid; gap: 8px;
}
.pv-pipeline .head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; border-bottom: 1px solid #F1F1ED; }
.pv-pipeline .item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.pv-pipeline .item .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#A78BFA,#4F46E5); }
.pv-pipeline .item .av.b { background: linear-gradient(135deg,#F472B6,#FCD34D); }
.pv-pipeline .item .av.c { background: linear-gradient(135deg,#34D399,#38BDF8); }
.pv-pipeline .item b { color: var(--ink); }
.pv-pipeline .item .pct { margin-left: auto; font-weight: 700; color: var(--primary-2); }

/* ============================================================
   IFYOU blocks (problem + audience + control)
   ============================================================ */
.ifyou { background: var(--bg-paper); }
.ifyou-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-bottom: 110px;
}
.ifyou-block:last-child { margin-bottom: 0; }
.ifyou-block.reverse { direction: rtl; }
.ifyou-block.reverse > * { direction: ltr; }
@media (max-width: 980px) {
  .ifyou-block { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .ifyou-block.reverse { direction: ltr; }
}

.ifyou-text h2 { margin-bottom: 18px; }
.ifyou-text h2 .dots { color: var(--ink-3); }
.ifyou-text p { font-size: 18px; color: var(--ink-2); margin-bottom: 24px; max-width: 540px; }
.ifyou-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 20px; }
@media (max-width: 540px) { .ifyou-features { grid-template-columns: 1fr; } }
.ifyou-features .feat { display: flex; gap: 12px; align-items: flex-start; }
.ifyou-features .feat .ms {
  width: 36px; height: 36px; flex: 0 0 36px;
  background: var(--bg-lilac); color: var(--primary-2);
  border-radius: 10px; display: grid; place-items: center; font-size: 20px;
}
.ifyou-features .feat:nth-child(2) .ms { background: var(--bg-mint); color: #047857; }
.ifyou-features .feat:nth-child(3) .ms { background: var(--bg-peach); color: #B54708; }
.ifyou-features .feat:nth-child(4) .ms { background: var(--bg-sky); color: #0369A1; }
.ifyou-features .feat b { font-size: 15px; font-weight: 700; color: var(--ink); display: block; }
.ifyou-features .feat span.desc { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; display: block; line-height: 1.45; }

.ifyou-art {
  background: var(--bg-mint); border-radius: var(--radius-lg);
  padding: 36px; aspect-ratio: 1.05/1;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.ifyou-block:nth-child(2) .ifyou-art { background: var(--bg-peach); }
.ifyou-block:nth-child(3) .ifyou-art { background: var(--bg-lilac); }

/* Art mockups */
.art-mock {
  background: #fff; border-radius: 18px; padding: 18px;
  width: 100%; max-width: 360px;
  box-shadow: 0 24px 40px rgba(15,10,46,.10);
}
.art-mock .head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed #F1F1ED; }
.art-mock .head .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#6E56F8,#4F46E5); }
.art-mock .head b { font-size: 13px; }
.art-mock .head small { font-size: 11px; color: var(--muted); display: block; }
.art-line { background: #F1F2EE; height: 8px; border-radius: 4px; margin-bottom: 6px; }
.art-line.long  { width: 80%; }
.art-line.short { width: 50%; }
.art-line.lilac { background: var(--bg-lilac); }
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.art-tags span {
  font-size: 10px; padding: 4px 8px; border-radius: 999px;
  font-weight: 700; background: var(--bg); color: var(--ink-3);
}
.art-tags span.q { background: #DCFCE7; color: #047857; }

.art-control {
  background: #fff; border-radius: 18px; padding: 18px;
  width: 100%; max-width: 320px;
  box-shadow: 0 24px 40px rgba(15,10,46,.10);
}
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--ink);
}
.toggle-row + .toggle-row { border-top: 1px solid #F1F1ED; }
.switch {
  width: 36px; height: 20px; background: var(--accent);
  border-radius: 999px; position: relative;
}
.switch::after {
  content: ""; position: absolute; right: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.switch.off { background: #E4E4DF; }
.switch.off::after { left: 2px; right: auto; }

.art-niches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 380px; }
.art-niches .n {
  background: #fff; border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(15,10,46,.06);
  font-size: 12.5px; font-weight: 600;
}
.art-niches .n .ms { font-size: 18px; color: var(--primary-2); }
.art-niches .n:nth-child(2) .ms { color: #047857; }
.art-niches .n:nth-child(3) .ms { color: #B54708; }
.art-niches .n:nth-child(4) .ms { color: #0369A1; }
.art-niches .n:nth-child(5) .ms { color: #BE185D; }
.art-niches .n:nth-child(6) .ms { color: #5B21B6; }

/* ============================================================
   3. CONSEQUENCES — bento showcase
   ============================================================ */
.consequences { background: var(--bg); }
.conseq-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 16px; }
@media (max-width: 1000px) { .conseq-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 640px)  { .conseq-grid { grid-template-columns: 1fr 1fr; } }
.conseq-card {
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.conseq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.conseq-card .ms { font-size: 32px; }
.conseq-card h3 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.conseq-card p { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.conseq-card.a { grid-column: span 2; background: var(--bg-peach); }
.conseq-card.b { grid-column: span 2; background: var(--bg-lilac); }
.conseq-card.c { grid-column: span 2; background: var(--bg-mint); }
.conseq-card.d { grid-column: span 3; background: var(--bg-sky); }
.conseq-card.e { grid-column: span 3; background: var(--bg-cream); }
.conseq-card.a .ms { color: #B54708; }
.conseq-card.b .ms { color: #5B21B6; }
.conseq-card.c .ms { color: #047857; }
.conseq-card.d .ms { color: #0369A1; }
.conseq-card.e .ms { color: #B45309; }
@media (max-width: 1000px) {
  .conseq-card.a, .conseq-card.b, .conseq-card.c { grid-column: span 1; }
  .conseq-card.d, .conseq-card.e { grid-column: span 3; }
}
@media (max-width: 640px) {
  .conseq-card.a, .conseq-card.b, .conseq-card.c,
  .conseq-card.d, .conseq-card.e { grid-column: span 1; }
}

/* ============================================================
   SHOWCASE METRICS
   ============================================================ */
.showcase { background: var(--bg); padding-top: 0; padding-bottom: 100px; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .showcase-grid { grid-template-columns: 1fr; } }
.showcase-card {
  background: var(--bg-paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; aspect-ratio: 1.05/1;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s ease, box-shadow .2s ease;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.showcase-card .num {
  font-size: clamp(40px, 4.5vw, 56px); font-weight: 900;
  letter-spacing: -0.035em; color: var(--ink); line-height: 1;
}
.showcase-card .lbl { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; max-width: 220px; }
.showcase-card .brand {
  font-size: 12px; color: var(--muted); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.showcase-card .brand .ms { font-size: 16px; color: var(--primary-2); }
.showcase-card.alt   { background: var(--bg-mint);  border-color: transparent; }
.showcase-card.alt-2 { background: var(--bg-peach); border-color: transparent; }
.showcase-card.alt-3 { background: var(--bg-lilac); border-color: transparent; }

/* ============================================================
   10. CALCULATOR — dark guarantee block
   ============================================================ */
.calc-section { background: var(--bg); }
.calc-card {
  background: linear-gradient(135deg, #0F0A2E 0%, #1A1240 60%, #2D1F75 100%);
  color: #fff; border-radius: var(--radius-xl); padding: 64px;
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .calc-card { padding: 36px 28px; } }
.calc-card::before, .calc-card::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(40px); pointer-events: none;
}
.calc-card::before {
  width: 500px; height: 500px; right: -150px; top: -150px;
  background: radial-gradient(circle, rgba(110,86,248,.5), transparent 70%);
}
.calc-card::after {
  width: 400px; height: 400px; left: -100px; bottom: -150px;
  background: radial-gradient(circle, rgba(199,242,132,.25), transparent 70%);
}
.calc-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card h2 { color: #fff; margin-bottom: 14px; }
.calc-card .lead { color: rgba(255,255,255,.78); margin-bottom: 28px; }
.calc-result-big {
  font-size: clamp(48px, 7vw, 88px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, #C7F284 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.calc-detail { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 22px; }
.calc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.calc-stats .stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 14px;
}
.calc-stats .stat small {
  font-size: 10px; color: rgba(255,255,255,.55);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.calc-stats .stat b { display: block; font-size: 16px; font-weight: 800; margin-top: 4px; }
.calc-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px;
}
.calc-form h3 { color: #fff; font-size: 20px; margin-bottom: 22px; }
.calc-note { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 14px; }

/* ============================================================
   THREE-STEPS (5. how works) + STEP-LIST (5b. 7 шагов)
   ============================================================ */
.three-steps { background: var(--bg); }
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .ts-grid { grid-template-columns: 1fr; } }
.ts-card {
  background: var(--bg-paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
  min-height: 460px;
}
.ts-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ts-card .preview {
  background: var(--bg-lilac); border-radius: var(--radius);
  padding: 22px; flex: 1;
  display: grid; place-items: center;
  margin-bottom: 22px; position: relative; overflow: hidden;
}
.ts-card:nth-child(2) .preview { background: var(--bg-mint); }
.ts-card:nth-child(3) .preview { background: var(--bg-peach); }
.ts-card h3 { margin-bottom: 8px; }
.ts-card h3 .step { color: var(--primary-2); font-weight: 700; }
.ts-card p { font-size: 15px; color: var(--ink-3); }
.ts-card .btn-link { margin-top: 16px; padding: 0; align-self: flex-start; }

.mini-flow {
  background: #fff; border-radius: 16px; padding: 14px;
  max-width: 280px; width: 100%;
  box-shadow: 0 12px 28px rgba(15,10,46,.08);
}
.mini-flow .head {
  font-size: 11px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.mini-flow .step-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.mini-flow .step-row + .step-row { border-top: 1px solid #F1F1ED; }
.mini-flow .step-row .ic {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg,#6E56F8,#4F46E5);
  font-weight: 800; font-size: 11px;
}
.mini-flow .step-row .check { margin-left: auto; color: #047857; }

/* Step list (7 шагов) */
.step-list-section { padding-top: 70px; }
.step-list { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 1200px) { .step-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .step-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .step-list { grid-template-columns: 1fr; } }
.step-list .si {
  padding: 22px; background: var(--bg-paper);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.step-list .si .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-lilac); color: var(--primary-2);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step-list .si h4 { font-size: 15px; margin-bottom: 6px; }
.step-list .si p { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ============================================================
   IMPLEMENTATION TIMELINE (12. внедрение)
   ============================================================ */
.impl-timeline { background: var(--bg-paper); }
.timeline { position: relative; padding: 0; max-width: 920px; margin: 0 auto; display: grid; gap: 16px; }
.tl-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: center;
  background: var(--bg); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .2s ease;
}
.tl-item:hover { transform: translateX(4px); box-shadow: var(--shadow-card); }
.tl-num {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, #6E56F8 0%, #4F46E5 100%); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 32px; letter-spacing: -0.02em;
}
.tl-item:nth-child(2) .tl-num { background: linear-gradient(135deg, #38BDF8 0%, #4F46E5 100%); }
.tl-item:nth-child(3) .tl-num { background: linear-gradient(135deg, #F472B6 0%, #6E56F8 100%); }
.tl-item:nth-child(4) .tl-num { background: linear-gradient(135deg, #FCD34D 0%, #F472B6 100%); }
.tl-item:nth-child(5) .tl-num { background: linear-gradient(135deg, #34D399 0%, #38BDF8 100%); }
.tl-content h3 { font-size: 21px; margin-bottom: 4px; }
.tl-content p  { font-size: 15px; color: var(--ink-3); }
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 1fr; gap: 12px; }
  .tl-num { width: 60px; height: 60px; font-size: 24px; }
}

/* ============================================================
   AUTOMATE (7. что автоматизировать)
   ============================================================ */
.automate { background: var(--bg); }
.auto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .auto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .auto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .auto-grid { grid-template-columns: 1fr; } }
.auto-card {
  background: var(--bg-paper); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.auto-card:hover { transform: translateY(-3px); border-color: #C7BEFA; }
.auto-card .ms {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--bg-lilac); color: var(--primary-2);
}
.auto-card:nth-child(4n+1) .ms { background: var(--bg-mint);  color: #047857; }
.auto-card:nth-child(4n+2) .ms { background: var(--bg-peach); color: #B54708; }
.auto-card:nth-child(4n+3) .ms { background: var(--bg-sky);   color: #0369A1; }
.auto-card:nth-child(4n+4) .ms { background: var(--bg-cream); color: #B45309; }
.auto-card b { font-size: 15px; font-weight: 700; color: var(--ink); }
.auto-card span.d { font-size: 13px; color: var(--ink-3); margin-top: -4px; }

/* ============================================================
   COMPARE TABLE (8. сравнение)
   ============================================================ */
.compare { background: var(--bg-paper); }
.compare-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 22px 28px; text-align: left; vertical-align: top;
  font-size: 15.5px; border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table th {
  background: var(--bg-paper); font-weight: 700; color: var(--ink);
  font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em;
}
.compare-table th .badge {
  display: inline-block; background: var(--dark); color: var(--accent);
  padding: 4px 10px; border-radius: 8px; font-size: 12px; margin-left: 8px;
}
.compare-table th.moon { color: var(--ink); }
.compare-table td.moon {
  background: rgba(199,242,132,.22); color: var(--ink);
  font-weight: 600; position: relative;
}
.compare-table td.moon::before {
  content: "✓"; display: inline-block; margin-right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  font-weight: 800; font-size: 12px; line-height: 20px; text-align: center;
}
.compare-table td.bot { color: var(--ink-3); }
.compare-table td.bot::before {
  content: "✕"; display: inline-block; margin-right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #FEE4E2; color: #B42318;
  font-weight: 800; font-size: 11px; line-height: 20px; text-align: center;
}

/* ============================================================
   DIALOG demo (9. пример)
   ============================================================ */
.dialog { background: var(--bg); }
.dialog-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .dialog-grid { grid-template-columns: 1fr; } }
.dialog-card {
  background: var(--bg-paper); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid #F1F1ED;
}
.dialog-head .left { display: flex; align-items: center; gap: 12px; }
.restart {
  background: var(--bg); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.restart:hover { background: #F0F1EC; }
.restart .ms { font-size: 16px; }
#liveChat { min-height: 480px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }

.dialog-side .feat { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; }
.dialog-side .feat + .feat { border-top: 1px solid var(--border); }
.dialog-side .feat .ms {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px;
  display: grid; place-items: center;
  background: var(--bg-lilac); color: var(--primary-2); font-size: 22px;
}
.dialog-side .feat:nth-child(2) .ms { background: var(--bg-mint);  color: #047857; }
.dialog-side .feat:nth-child(3) .ms { background: var(--bg-peach); color: #B54708; }
.dialog-side .feat:nth-child(4) .ms { background: var(--bg-sky);   color: #0369A1; }
.dialog-side .feat h4 { margin-bottom: 4px; }
.dialog-side .feat p  { font-size: 14.5px; color: var(--ink-3); }

/* ============================================================
   INTEGRATIONS — circles (11)
   ============================================================ */
.integrations { background: var(--bg); }
.int-grid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 20px;
  justify-items: center; align-items: center; margin-top: 36px;
}
@media (max-width: 900px) { .int-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .int-grid { grid-template-columns: repeat(3, 1fr); } }
.int-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--bg-paper); border: 1px solid var(--border);
  display: grid; place-items: center; position: relative;
  transition: transform .15s ease, box-shadow .2s ease;
  color: #fff; font-weight: 800; font-size: 13px;
}
.int-circle:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.int-circle.wa   { background: linear-gradient(135deg, #25D366, #128C7E); border-color: transparent; }
.int-circle.ig   { background: linear-gradient(135deg, #FCAF45, #E1306C, #833AB4); border-color: transparent; }
.int-circle.tg   { background: linear-gradient(135deg, #38BDF8, #229ED9); border-color: transparent; }
.int-circle.web  { background: linear-gradient(135deg, #6E56F8, #4F46E5); border-color: transparent; }
.int-circle.form { background: linear-gradient(135deg, #F472B6, #BE185D); border-color: transparent; }
.int-circle.crm  { background: linear-gradient(135deg, #FCD34D, #B45309); border-color: transparent; }
.int-circle.ads  { background: linear-gradient(135deg, #34D399, #047857); border-color: transparent; }
.int-circle.kb   { background: linear-gradient(135deg, #A78BFA, #5B21B6); border-color: transparent; }
.int-circle.team { background: linear-gradient(135deg, #38BDF8, #0369A1); border-color: transparent; }
.int-circle .ms { font-size: 32px; color: #fff; }
.int-circle .label {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.int-footer {
  text-align: center; margin-top: 80px;
  color: var(--ink-3); font-size: 16px; font-weight: 600;
}
.int-footer b { color: var(--ink); }

/* ============================================================
   FAQ (14)
   ============================================================ */
.faq { background: var(--bg-paper); }
.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq-item.open { border-color: #C7BEFA; box-shadow: var(--shadow-card); background: var(--bg-paper); }
.faq-q {
  width: 100%; padding: 22px 26px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.faq-q .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-paper); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .25s ease, background .2s ease;
  border: 1px solid var(--border);
}
.faq-q .ic .ms { font-size: 20px; }
.faq-item.open .faq-q .ic {
  transform: rotate(45deg); background: var(--dark);
  color: var(--accent); border-color: transparent;
}
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; color: var(--ink-2); }
.faq-a > div { padding: 0 26px 22px; font-size: 16px; line-height: 1.55; max-width: 760px; }

/* ============================================================
   FINAL CTA (15)
   ============================================================ */
.final { background: var(--bg); padding-bottom: 80px; }
.final-card {
  background: linear-gradient(135deg, #0F0A2E 0%, #1A1240 60%, #2D1F75 100%);
  color: #fff; border-radius: var(--radius-xl);
  padding: 96px 64px; text-align: center;
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .final-card { padding: 64px 28px; } }
.final-card::before, .final-card::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(40px); pointer-events: none;
}
.final-card::before {
  width: 600px; height: 600px; right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(110,86,248,.4), transparent 70%);
}
.final-card::after {
  width: 500px; height: 500px; left: -180px; bottom: -260px;
  background: radial-gradient(circle, rgba(199,242,132,.18), transparent 70%);
}
.final-card > * { position: relative; z-index: 1; }
.final-card h2 { color: #fff; max-width: 880px; margin: 0 auto 18px; }
.final-card h2 em { font-style: normal; color: var(--accent); }
.final-card .lead { color: rgba(255,255,255,.78); max-width: 720px; margin: 0 auto 32px; }
.final-card .cta-row {
  display: inline-flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: center;
}
.final-card .hero-microcopy {
  color: rgba(255,255,255,.6); margin-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: center;
}

/* ============================================================
   SUB-PAGE styles (demo, faq, thanks)
   ============================================================ */
.subpage-hero {
  background: var(--bg); padding: 100px 0 60px;
}
.subpage-hero .container { max-width: 880px; text-align: center; }
.subpage-hero h1 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 18px; }
.subpage-hero .lead { margin: 0 auto; }
.breadcrumb {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--ink-3); margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .ms { font-size: 14px; }

.lead-form-section { background: var(--bg-paper); padding-bottom: 100px; }
.lead-form {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) { .lead-form { padding: 28px; } }
.lead-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .lead-form .field-row { grid-template-columns: 1fr; } }
.lead-form .submit { margin-top: 8px; width: 100%; }
.lead-form .privacy {
  font-size: 12.5px; color: var(--ink-3); margin-top: 14px; text-align: center;
}

.thanks-card {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-paper); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 56px 40px;
  text-align: center; box-shadow: var(--shadow-card);
}
.thanks-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--bg-mint); color: #047857;
  display: grid; place-items: center; margin: 0 auto 24px;
}
.thanks-icon .ms { font-size: 52px; }
.thanks-card h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.thanks-card p { margin-bottom: 28px; }
.thanks-actions { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.faq-page-list { max-width: 880px; margin: 0 auto; }
.faq-page-section { background: var(--bg); padding-top: 40px; }
