:root {
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-teal: #075e54;
  --wa-bg: #ece5dd;
  --wa-bubble-out: #d9fdd3;
  --wa-bubble-in: #ffffff;
  --text: #111b21;
  --text-muted: #667781;
  --surface: #ffffff;
  --border: rgba(17, 27, 33, 0.08);
  --shadow: 0 24px 60px rgba(7, 94, 84, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faf8 0%, #eef6f1 100%);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.topbar-link {
  color: var(--wa-teal);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  color: var(--wa-teal);
  font-size: 0.875rem;
  font-weight: 600;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subhead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
}

.benefits {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.benefits li {
  position: relative;
  padding-left: 28px;
  color: #253239;
}

.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.16);
}

.cta-button,
.submit-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--wa-green-dark), var(--wa-green));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
}

.phone {
  width: 100%;
  background: var(--wa-bg);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--wa-teal);
  color: #fff;
}

.phone-header .phone-logo {
  width: 72px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.phone-header strong {
  display: block;
  font-size: 0.95rem;
}

.phone-header span {
  font-size: 0.78rem;
  opacity: 0.82;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.chat {
  padding: 20px 16px 12px;
  display: grid;
  gap: 10px;
  min-height: 360px;
  background:
    linear-gradient(rgba(236, 229, 221, 0.92), rgba(236, 229, 221, 0.92)),
    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='%23d1c7bc' fill-opacity='0.22'%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-bubbles {
  display: grid;
  gap: 10px;
  transition: opacity 0.35s ease;
}

.chat-bubbles.is-fading {
  opacity: 0;
}

.chat-rtl .bubble.inbound {
  justify-self: end;
  border-top-left-radius: 12px;
  border-top-right-radius: 4px;
}

.chat-rtl .bubble.outbound {
  justify-self: start;
  border-top-right-radius: 12px;
  border-top-left-radius: 4px;
}

.chat-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chat-lang-pill {
  appearance: none;
  border: 1px solid rgba(7, 94, 84, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--wa-teal);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chat-lang-pill:hover {
  border-color: rgba(37, 211, 102, 0.45);
}

.chat-lang-pill.is-active {
  background: linear-gradient(135deg, var(--wa-green-dark), var(--wa-green));
  border-color: transparent;
  color: #fff;
}

.chat-lang-pill:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 2px;
}

.bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.bubble.inbound {
  justify-self: start;
  background: var(--wa-bubble-in);
  border-top-left-radius: 4px;
}

.bubble.outbound {
  justify-self: end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 4px;
}

.bubble.highlight {
  font-weight: 600;
}

.phone-input {
  padding: 14px 16px 18px;
  background: #f0f2f5;
}

.phone-input span {
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  color: #8696a0;
  font-size: 0.9rem;
}

.signup-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.signup-copy {
  display: flex;
  flex-direction: column;
}

.signup-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.signup-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.signup-copy-note {
  margin-top: auto;
  padding-top: 24px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  align-self: flex-start;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-form label {
  display: grid;
  gap: 8px;
}

.signup-form span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #253239;
}

.signup-form input,
.signup-form select {
  width: 100%;
  border: 1px solid #d8dee3;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: #fbfcfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: rgba(37, 211, 102, 0.8);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.14);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-message {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.92rem;
}

.form-message.success {
  color: var(--wa-green-dark);
}

.form-message.error {
  color: #b42318;
}

.footer {
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--wa-teal);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a[aria-current='page'] {
  color: var(--text-muted);
  text-decoration: none;
  pointer-events: none;
}

.faq-page {
  max-width: 760px;
  margin: 0 auto 64px;
}

.faq-intro {
  margin-bottom: 32px;
}

.faq-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.faq-intro .subhead {
  max-width: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(7, 94, 84, 0.06);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--wa-teal);
  border-bottom: 2px solid var(--wa-teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  color: var(--wa-teal);
  border-bottom: 1px solid var(--border);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-answer {
  padding: 0 20px;
}

.faq-answer p {
  margin: 0;
  padding: 16px 0 20px;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(7, 94, 84, 0.08), rgba(37, 211, 102, 0.12));
  border: 1px solid rgba(37, 211, 102, 0.18);
}

.faq-cta p {
  margin: 0 0 16px;
  font-weight: 600;
  color: #253239;
}

@media (max-width: 960px) {
  .hero,
  .signup-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 16px;
  }

  .topbar {
    margin-bottom: 28px;
  }

  .signup-card {
    padding: 24px 18px;
  }
}
