:root {
  --green-600: #25D366;
  --green-700: #1da851;
  --green-500: #34e076;
  --green-100: #e8faf0;
  --green-50: #f0fdf4;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--slate-900);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section { padding: 4rem 0; }

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  color: var(--slate-900);
}

.section-subtitle {
  color: var(--slate-500);
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--green-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.logo-text { font-size: 1.05rem; }

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.55rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-700);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--slate-700);
  transition: transform 0.2s ease;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

body.nav-open .nav-menu { display: flex; }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a { color: var(--slate-500); transition: color 0.15s; }
.nav-links a:hover { color: var(--slate-900); }
.nav-links a.active,
.nav-links a[aria-current="page"] { color: var(--green-600); }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-cta { width: 100%; text-align: center; }

/* ─── Buttons ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button svg { width: 18px; height: 18px; flex-shrink: 0; }

.button-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}
.button-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.button-secondary {
  background: var(--surface);
  color: var(--slate-700);
  border-color: var(--border);
}
.button-secondary:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

.button-tertiary {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--border);
}

.button-ghost {
  background: transparent;
  color: var(--green-600);
  font-weight: 600;
  padding: 0.5rem 0;
  border: none;
}
.button-ghost:hover { color: var(--green-700); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(180deg, var(--green-50) 0%, var(--surface) 100%);
  padding: 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.headline-highlight {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 500px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ─── WhatsApp Chat Mockup ─── */
.hero-preview {
  display: flex;
  justify-content: center;
}

.chat-mockup {
  width: 100%;
  max-width: 360px;
  background: #0b141a;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chat-mockup-header {
  background: #1f2c34;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.chat-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.chat-name {
  color: #e9edef;
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-status {
  color: #8696a0;
  font-size: 0.75rem;
}

.chat-messages {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 280px;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-bubble {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  max-width: 85%;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chat-bubble.agent {
  background: #005c4b;
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.chat-bubble.user {
  background: #1f2c34;
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-bubble .chat-time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(233, 237, 239, 0.5);
  margin-top: 0.2rem;
}

.chat-pdf-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  margin-top: 0.35rem;
}

.chat-pdf-icon {
  width: 28px;
  height: 28px;
  background: #dc3545;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-pdf-name {
  font-size: 0.75rem;
  color: #e9edef;
  font-weight: 500;
}

.chat-pdf-size {
  font-size: 0.65rem;
  color: #8696a0;
}

/* ─── Benefit panel (light green) ─── */
.benefit-panel {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--green-50);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.benefit-item {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.benefit-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
}

.benefit-heading {
  margin: 0.3rem 0 0.15rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--slate-900);
}

.benefit-copy {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9rem;
}

/* ─── Social proof bar ─── */
.social-proof {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--slate-500);
  font-weight: 500;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-icon {
  width: 20px;
  height: 20px;
  color: var(--green-600);
  flex-shrink: 0;
}

/* ─── Cards ─── */
.card-grid { display: grid; gap: 1.25rem; }

.card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--slate-300);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--green-600);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--slate-500);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.step-number {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-600);
}

/* ─── Tags ─── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--slate-500);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.15s;
}

.tag:hover {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-50);
}

/* ─── Stats row ─── */
.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ─── FAQ ─── */
.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: var(--green-600); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--slate-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--slate-400);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "-";
  color: var(--green-600);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--slate-500);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── CTA section ─── */
.cta {
  background: linear-gradient(135deg, var(--green-50), #ecfdf5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 211, 102, 0.15);
  padding: 3rem 2rem;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* ─── Pricing ─── */
.pricing-grid { display: grid; gap: 1.25rem; }

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border: 2px solid var(--green-600);
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.12);
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  width: fit-content;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
}

.list-check {
  display: grid;
  gap: 0.55rem;
  color: var(--slate-600);
  font-size: 0.9rem;
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.5;
}

.list-check li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-100);
  position: absolute;
  left: 0;
  top: 3px;
}

.list-check li::after {
  content: "";
  width: 6px;
  height: 9px;
  border: 2px solid var(--green-600);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  position: absolute;
  left: 5px;
  top: 5px;
}

/* ─── Contact ─── */
.contact-grid { display: grid; gap: 1.25rem; }

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.contact-form { display: grid; gap: 0.85rem; }

input, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

textarea { min-height: 130px; resize: vertical; }

/* ─── Feature comparison ─── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  background: var(--surface);
}

.compare-table tbody td { color: var(--slate-700); }

.compare-table .check {
  color: var(--green-600);
  font-weight: 700;
}

.compare-table .dash { color: var(--slate-300); }

/* ─── Footer ─── */
footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--slate-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--slate-500);
}

.footer-links a:hover { color: var(--green-600); }

/* ─── Utilities ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-green { color: var(--green-600); }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (min-width: 640px) {
  .button-group { flex-direction: row; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: transparent;
    padding: 0;
    border: none;
  }

  .nav-links { flex-direction: row; gap: 1.5rem; }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-cta { width: auto; }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-grid {
    grid-template-columns: auto 1fr;
    justify-content: space-between;
  }

  .footer-links { justify-self: end; }
}

@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ─── Scrollbar (subtle) ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }
