/* ====================================================================
   TallyWhatsApp landing page
   Hand-written CSS, no framework. Target: < 15 KB minified.
   Palette: WhatsApp green for CTAs, deep slate for chrome, off-white BG.
   ==================================================================== */

:root {
  --green-500: #25d366;     /* WhatsApp brand green — CTAs only */
  --green-600: #1ebe5a;
  --green-700: #128c46;
  --green-50:  #ecfdf3;
  --ink-900:   #0b1220;     /* primary text */
  --ink-700:   #1f2937;
  --ink-500:   #4b5563;
  --ink-400:   #6b7280;
  --ink-300:   #9aa3b2;
  --ink-200:   #d1d5db;
  --ink-100:   #e5e7eb;
  --ink-50:    #f5f7fa;
  --paper:     #ffffff;
  --bg:        #fafbfc;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 1px 3px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(11, 18, 32, 0.06), 0 10px 20px -5px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 10px 20px -5px rgba(11, 18, 32, 0.08), 0 20px 40px -10px rgba(11, 18, 32, 0.12);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --max-w:     1140px;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Layout primitives ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 10px;
  border-radius: 999px;
}
.eyebrow.center { display: block; width: max-content; margin: 0 auto 16px; }
.section-title {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 48px;
}
.section-title.center { text-align: center; }
.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0 0 32px;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-500);
  color: #052b13;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-primary:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.btn-ghost {
  color: var(--ink-700);
  border: 1px solid var(--ink-200);
  background: var(--paper);
}
.btn-ghost:hover { border-color: var(--ink-400); color: var(--ink-900); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green-500);
  color: #052b13;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}
.brand-name span { color: var(--green-700); }
nav[aria-label="Primary"] {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav[aria-label="Primary"] a {
  font-size: 0.95rem;
  color: var(--ink-500);
  font-weight: 500;
  transition: color .15s ease;
}
nav[aria-label="Primary"] a:hover { color: var(--ink-900); }
nav[aria-label="Primary"] .btn { color: #052b13; }

@media (max-width: 720px) {
  nav[aria-label="Primary"] a:not(.btn) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(37, 211, 102, 0.10), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(18, 140, 70, 0.06), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 64px; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw + 0.5rem, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  color: var(--ink-900);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-600), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--ink-500);
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* Hero visual: phone + floating card */
.hero-visual {
  position: relative;
  min-height: 520px;
}
.phone {
  width: min(330px, 100%);
  margin: 0 auto;
  background: #f0f2f5;
  border: 8px solid #1f2937;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.phone-bar {
  background: #075e54;
  color: #fff;
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-back { font-size: 1.4rem; line-height: 1; opacity: 0.9; }
.phone-contact { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #052b13;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.phone-name { font-weight: 600; font-size: 0.95rem; }
.phone-sub { font-size: 0.75rem; opacity: 0.85; }
.phone-chat {
  background:
    repeating-linear-gradient(45deg, #ece5dd 0 2px, #e7dfd5 2px 4px);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
}
.msg {
  max-width: 82%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  background: #dcf8c6;
  align-self: flex-end;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  position: relative;
  color: #111b21;
}
.msg-out { align-self: flex-end; }
.msg-meta {
  display: block;
  font-size: 0.7rem;
  color: #667781;
  text-align: right;
  margin-top: 2px;
}
.msg-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #d2efaf;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.doc-icon {
  width: 36px; height: 36px;
  background: #fff;
  color: #c0392b;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.doc-title { font-size: 0.82rem; font-weight: 600; color: #111b21; }
.doc-sub { font-size: 0.72rem; color: #667781; }

.floating-card {
  position: absolute;
  bottom: 16px;
  left: -8px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  width: 240px;
  z-index: 2;
}
.fc-title {
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-400);
}
.fc-row {
  padding: 6px 0;
  color: var(--ink-500);
  display: flex; align-items: center; justify-content: space-between;
}
.fc-active {
  color: var(--green-700);
  font-weight: 600;
}
.fc-success {
  color: var(--green-700);
  font-weight: 600;
  border-top: 1px solid var(--ink-100);
  margin-top: 4px;
  padding-top: 10px;
}
kbd {
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 0.7rem;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink-700);
  font-weight: 600;
}

@media (max-width: 540px) {
  .floating-card { left: 50%; transform: translateX(-50%); width: 280px; }
}

/* ── Problem ───────────────────────────────────────────────────────── */
.problem { padding: 80px 0; background: var(--paper); border-top: 1px solid var(--ink-100); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
}
.problem-num {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.problem-card p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* ── How it works ──────────────────────────────────────────────────── */
.how { padding: 96px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) { .how-grid { grid-template-columns: 1fr; } }
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin: 0 0 8px; color: var(--ink-900); }
.step p { margin: 0; color: var(--ink-500); }

/* ── Features ──────────────────────────────────────────────────────── */
.features { padding: 96px 0; background: var(--paper); border-top: 1px solid var(--ink-100); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-900);
}
.feature p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }
code {
  background: var(--ink-50);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: ui-monospace, monospace;
  color: var(--ink-700);
}

/* ── Privacy ───────────────────────────────────────────────────────── */
.privacy {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--green-50) 100%);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; gap: 32px; } }
.privacy-list { display: flex; flex-direction: column; gap: 16px; }
.privacy-list li {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.privacy-list strong { color: var(--ink-900); font-size: 1rem; }
.privacy-list span { color: var(--ink-500); font-size: 0.92rem; }

/* ── Pricing ───────────────────────────────────────────────────────── */
.pricing { padding: 96px 0; }
.price-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px solid var(--green-500);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.15);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
}
.price-head h3 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.price-head p { color: var(--ink-500); margin: 0 0 24px; }
.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}
.currency { font-size: 1.6rem; color: var(--ink-500); font-weight: 600; }
.number {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.period { font-size: 0.95rem; color: var(--ink-500); margin-left: 8px; }
.price-features {
  text-align: left;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-700);
  font-size: 0.95rem;
}
.price-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  background: var(--green-50);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23128c46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.price-note {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin: 16px 0 0;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { padding: 96px 0; background: var(--paper); border-top: 1px solid var(--ink-100); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--green-500); background: var(--paper); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink-400);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--green-700); }
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq details p a { color: var(--green-700); text-decoration: underline; }

/* ── Final CTA ─────────────────────────────────────────────────────── */
.final-cta {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(37, 211, 102, 0.18), transparent 60%);
}
.final-cta h2 {
  font-size: clamp(1.6rem, 2.8vw + 0.5rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.final-cta p {
  color: var(--ink-500);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  background: var(--ink-900);
  color: #c8d2e0;
  padding: 64px 0 32px;
}
footer .brand-name span { color: var(--green-500); }
footer .brand { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-tag { color: #94a3b8; font-size: 0.9rem; margin: 12px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #c8d2e0; font-size: 0.95rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact div:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.footer-contact a { color: var(--green-500); font-weight: 600; }
.footer-mini { color: #94a3b8; font-size: 0.85rem; margin: 12px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
