/* ========================================
   site.agent — Lime Spark theme
   Palette: bg #FAFAF8 · fg #111110 · accent #65A30D · muted #71717A
   Fonts: Sora (heading) + Manrope (body)
   ======================================== */

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

:root {
  --bg: #FAFAF8;
  --fg: #111110;
  --accent: #65A30D;
  --accent-hover: #559209;
  --muted: #71717A;
  --surface: #F0F0EC;
  --border: #E4E4DF;
  --pop: #ECFCCB;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --container: 1100px;
  --section-y: 96px;
  --gap: 20px;
}

html { scroll-behavior: smooth }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  color: var(--fg);
}
.logo span { color: var(--accent) }

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
nav a:hover { color: var(--fg) }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background .2s, transform .15s, border-color .2s, color .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pop);
  color: #3F6212;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-tag span { font-size: 16px }

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), #A3E635);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Chat mockup */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
}
.chat-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-agent {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.typing {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  padding: 12px 16px;
}
.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .4;
  animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) { animation-delay: .2s }
.typing span:nth-child(3) { animation-delay: .4s }

@keyframes blink {
  0%, 80%, 100% { opacity: .4 }
  40% { opacity: 1 }
}

/* ── SECTIONS (shared) ── */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-y) 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section .subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 44px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 14px 14px 0 0;
  opacity: .6;
}
.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
  opacity: .35;
  margin-bottom: 8px;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(101,163,13,.1);
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pop);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.price-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  position: relative;
}
.price-card.featured::before {
  content: '🔥 Хіт';
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-card .price {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  margin: 10px 0 4px;
}
.price-card .price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.price-card .desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  margin-bottom: 20px;
}
.price-card li {
  font-size: 13px;
  padding: 5px 0;
  color: var(--fg);
  position: relative;
  padding-left: 18px;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.price-card .btn {
  width: 100%;
  text-align: center;
  font-size: 13px;
}

/* ── USE CASES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.case-card .tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.case-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.case-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── CTA SECTION ── */
.cta-wrap {
  padding: 0 24px;
}
.cta-section {
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #fff;
}
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  max-width: 460px;
  margin: 0 auto 28px;
}
.btn-cta {
  display: inline-block;
  font-family: var(--font-body);
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-cta:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

/* ── FAQ ── */
.faq-list {
  max-width: 660px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CONTACT ── */
.contact-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.contact-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ── FOOTER ── */
footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: var(--section-y);
}
footer p {
  font-size: 13px;
  color: var(--muted);
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
footer nav a:hover { color: var(--fg) }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header nav { display: none }
  .mobile-menu { display: flex }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
  }
  .hero-text h1 { font-size: 34px }
  .hero-visual { display: none }

  .steps,
  .features-grid,
  .pricing-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 20px;
  }
  .section h2 { font-size: 30px }

  .cta-section { padding: 48px 20px }
  .cta-section h2 { font-size: 30px }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}