@import url('brand.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--mint);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--mint); color: #06110c; box-shadow: var(--shadow-mint); }
.btn-primary:hover { background: var(--mint-2); }
.btn-ghost { background: transparent; border-color: var(--border-soft); color: var(--paper); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft-2);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  display: flex; align-items: center; justify-content: center;
  color: #06110c; font-weight: 900; font-size: 16px;
}
.main-nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.main-nav a:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 24px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .header-actions > a.btn { display: none; }
}

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero h1 .mint { color: var(--mint); }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Hero visual: chat + invoice */
.hero-visual { position: relative; min-height: 420px; }
.stage { position: absolute; inset: 0; }
.chat-card, .invoice-card {
  position: absolute;
  width: 300px;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.chat-card { right: 0; top: 0; z-index: 2; }
.invoice-card { left: 0; bottom: 0; z-index: 1; background: var(--paper); color: #1a1a1a; }
[data-theme='light'] .invoice-card { background: #ffffff; }

.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
  font-weight: 700; font-size: 14px;
}
.chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-2));
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #06110c; font-weight: 800;
}
.chat-body { padding: 16px; min-height: 190px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(6px);
  animation: bubbleIn 0.4s ease forwards;
}
.bubble.user { align-self: flex-end; background: var(--mint); color: #06110c; border-bottom-left-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--border-soft-2); border-bottom-right-radius: 4px; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

.invoice-head { padding: 18px 20px 10px; display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-head .doc-title { font-weight: 800; font-family: var(--font-display); font-size: 15px; }
.invoice-head .doc-no { font-size: 11px; color: #6b7280; }
.invoice-lines { padding: 4px 20px 16px; font-size: 12.5px; }
.invoice-line {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  opacity: 0; transform: translateX(6px);
  animation: lineIn 0.35s ease forwards;
}
[dir='rtl'] .invoice-line { transform: translateX(-6px); }
@keyframes lineIn { to { opacity: 1; transform: translateX(0); } }
.invoice-total { display: flex; justify-content: space-between; padding: 12px 20px; font-weight: 800; border-top: 1px solid rgba(0,0,0,0.12); }
.paid-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-14deg) scale(0.6);
  border: 3px solid #16a34a; color: #16a34a; font-weight: 900; font-family: var(--font-display);
  padding: 6px 18px; border-radius: 10px; font-size: 18px; opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.paid-stamp.show { opacity: 0.92; transform: translate(-50%,-50%) rotate(-14deg) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .bubble, .invoice-line { animation: none !important; opacity: 1 !important; transform: none !important; }
  .paid-stamp { transition: none; }
}
@media (max-width: 640px) {
  .chat-card, .invoice-card { width: 88vw; max-width: 320px; }
  .chat-card { right: 6vw; }
  .invoice-card { left: 6vw; }
  .hero-visual { min-height: 480px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--ink-2); border: 1px solid var(--border-soft-2);
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(61,220,151,0.12); color: var(--mint);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--ink-2); border: 1px solid var(--border-soft-2); border-radius: var(--radius-md);
  padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: rgba(61,220,151,0.4); transform: translateY(-2px); }
.feature-icon { font-size: 24px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan-card {
  background: var(--ink-2); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border-color: var(--mint); box-shadow: var(--shadow-mint); }
.plan-badge {
  position: absolute; top: -13px; right: 24px; background: var(--mint); color: #06110c;
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.plan-price { font-size: 32px; font-weight: 800; margin: 10px 0 4px; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-price span.price-num { font-size: 32px; font-weight: 800; color: inherit; }
.plan-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-list li { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); align-items: flex-start; }
.plan-list li::before { content: '✓'; color: var(--mint); font-weight: 800; flex-shrink: 0; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--ink-2); border: 1px solid var(--border-soft-2); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--paper); text-align: inherit;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  font-size: 15.5px; font-weight: 700;
}
.faq-q .chev { transition: transform 0.2s ease; color: var(--mint); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; margin: 0; }
.faq-q::-webkit-details-marker { display: none; }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, rgba(61,220,151,0.14), rgba(61,220,151,0.02));
  border: 1px solid rgba(61,220,151,0.25);
  border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px,3.4vw,34px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-soft-2); padding: 48px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--border-soft-2); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* WhatsApp floating button */
.wa-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  border: none;
}
[dir='rtl'] .wa-fab { left: 24px; right: auto; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-soft);
  background: transparent; color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.theme-toggle:hover { border-color: var(--mint); }

/* Mobile nav sheet */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 60; background: rgba(6,7,10,0.6);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: 78%; max-width: 320px;
  background: var(--ink-2); padding: 24px; display: flex; flex-direction: column; gap: 20px;
}
.mobile-nav-panel a { font-size: 16px; font-weight: 700; }
.mobile-nav-close { align-self: flex-start; background: none; border: none; color: var(--paper); font-size: 22px; }
