:root {
  color-scheme: light;
  --bg: #f6fbf4;
  --surface: #ffffff;
  --surface-2: #eef8ef;
  --ink: #101c16;
  --muted: #607167;
  --line: #d9e7dd;
  --green: #0b7f54;
  --green-2: #075e44;
  --whatsapp: #25d366;
  --bubble: #dcf8c6;
  --dark: #10251b;
  --accent: #dff7e8;
  --shadow: 0 24px 70px rgba(16, 37, 27, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 211, 102, 0.16), transparent 28rem),
    linear-gradient(180deg, #fbfff9 0%, var(--bg) 46%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--whatsapp);
  outline-offset: 4px;
  border-radius: 10px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--green-2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }
.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;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px min(32px, 5vw);
  background: rgba(251, 255, 249, 0.9);
  border-bottom: 1px solid rgba(217, 231, 221, 0.88);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-weight: 800;
}
.brand img { height: 34px; width: auto; }
.brand span {
  color: var(--muted);
  font-size: 0.88rem;
  border-left: 1px solid var(--line);
  padding-left: 13px;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: #24352b;
  font-weight: 750;
  font-size: 0.94rem;
  padding: 10px 13px;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-2); color: var(--green-2); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 999px;
}

.hero { padding: 68px 0 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.74fr);
  align-items: center;
  gap: 54px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
}
h3 { margin-bottom: 8px; letter-spacing: -0.02em; }
.hero-lead, .section-lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 730px;
}
.agent-note {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-left: 4px solid var(--whatsapp);
  border-radius: 18px;
  color: #3e5147;
  padding: 16px 18px;
  line-height: 1.58;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-2); color: #fff; box-shadow: 0 14px 30px rgba(7, 94, 68, 0.22); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--green-2); }
.microcopy { color: #526159; line-height: 1.55; max-width: 680px; }

.hero-visual { display: grid; place-items: center; }
.phone-shell {
  position: relative;
  width: min(390px, 100%);
  border-radius: 38px;
  padding: 16px;
  background: linear-gradient(145deg, #173328, #071711);
  box-shadow: var(--shadow);
}
.phone-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 76px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #29473a;
}
.whatsapp-card {
  overflow: hidden;
  border-radius: 28px;
  min-height: 600px;
  background:
    linear-gradient(rgba(236, 247, 239, 0.82), rgba(236, 247, 239, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(37, 211, 102, 0.18), transparent 22rem);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--green-2);
  color: #fff;
}
.chat-header small { display: block; margin-top: 2px; color: rgba(255,255,255,0.76); }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #07351f;
  font-weight: 950;
}
.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.42;
  font-size: 0.94rem;
  box-shadow: 0 8px 18px rgba(15, 30, 22, 0.08);
  animation: messageIn 0.7s ease both;
}
.customer { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.agent { align-self: flex-end; background: var(--bubble); border-top-right-radius: 4px; }
.msg-delay-1 { animation-delay: 0.1s; }
.msg-delay-2 { animation-delay: 0.8s; }
.msg-delay-3 { animation-delay: 1.5s; }
.msg-delay-4 { animation-delay: 2.2s; }
.msg-delay-5 { animation-delay: 3s; }
.typing {
  align-self: flex-end;
  display: inline-flex;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 16px;
  background: var(--bubble);
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74947f;
  animation: typing 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
.handoff {
  align-self: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(7, 94, 68, 0.1);
  color: var(--green-2);
  font-size: 0.82rem;
  font-weight: 850;
  animation: messageIn 0.7s ease both;
}

.section { padding: 76px 0; }
.section-soft { background: rgba(238, 248, 239, 0.74); }
.two-col, .demo-grid, .contact-grid, .control-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}
.cards-grid, .benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.info-card, .benefit-grid article, .mockup-panel, .contact-form, details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(16, 37, 27, 0.06);
}
.info-card p, .benefit-grid p, details p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
}
.feature-row > span { color: var(--green); font-weight: 950; }
.feature-row p { color: var(--muted); line-height: 1.6; margin: 0; }
.text-link { color: var(--green-2); font-weight: 900; border-bottom: 2px solid var(--whatsapp); }
.mockup-panel ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.75; }
.panel-header { display: flex; gap: 7px; margin-bottom: 18px; }
.panel-header span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.panel-header span:first-child { background: #ff7b73; }
.panel-header span:nth-child(2) { background: #ffd166; }
.panel-header span:nth-child(3) { background: var(--whatsapp); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark .eyebrow { color: #8bf0b3; }
.section-dark p { color: rgba(255,255,255,0.78); line-height: 1.7; }
.control-steps { display: grid; gap: 14px; }
.control-steps div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}
.control-steps strong {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #092316;
}
.faq-wrap { max-width: 820px; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 900; }
.contact-form { display: grid; gap: 9px; }
.contact-form label { font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.hp-wrap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 750;
}
.form-status[data-tone="success"] { color: #047857; }
.form-status[data-tone="error"] { color: #b91c1c; }
.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.final-cta { padding: 44px 0 82px; }
.final-card {
  padding: clamp(26px, 5vw, 52px);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--green-2), #123d2b);
  color: #fff;
  box-shadow: var(--shadow);
}
.final-card .eyebrow { color: #a6f4c1; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; background: #fff; color: var(--muted); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-grid a { color: var(--green-2); font-weight: 850; }

@keyframes messageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typing {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 1020px) {
  .hero-grid, .two-col, .demo-grid, .contact-grid, .control-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-copy { max-width: 820px; }
  .phone-shell { width: min(420px, 100%); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; }
  .brand { flex-direction: column; align-items: flex-start; gap: 5px; }
  .brand span { border-left: 0; padding-left: 0; white-space: normal; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(251, 255, 249, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 10px; }
  h1 { font-size: clamp(2.35rem, 15vw, 4.4rem); }
  .cards-grid, .benefit-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .whatsapp-card { min-height: 560px; }
}

@media (max-width: 420px) {
  .hero-actions, .btn { width: 100%; }
  .btn { padding-inline: 14px; }
  .phone-shell { border-radius: 28px; padding: 10px; }
  .whatsapp-card { border-radius: 22px; min-height: 540px; }
  .chat-stream { padding: 14px; }
  .bubble { max-width: 94%; font-size: 0.9rem; }
  .feature-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
