:root {
  --primary: #0B6623;
  --primary-dark: #084A1A;
  --accent: #D4A017;
  --bg: #F5F5F0;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #4B5563;
  --text-soft: #6B7280;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: none; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 48px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(212, 160, 23, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(11, 102, 35, 0.10), transparent 60%);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 102, 35, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero h1 .accent { color: var(--primary); }
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Phone mockup (real dashboard) ---------- */
.phone-mock {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: #0a0f0c;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(8, 74, 26, 0.45), 0 10px 30px -10px rgba(0,0,0,0.25);
  position: relative;
}
.phone-mock .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0f0c;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 34px;
  padding: 34px 12px 62px;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  position: relative;
}

.ph-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.ph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ph-greeting { font-size: 10px; color: #6B7280; }
.ph-biz {
  font-size: 15px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.3px;
}
.ph-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

/* Revenue card */
.ph-revenue {
  background: var(--primary);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  color: #fff;
}
.ph-rev-label { font-size: 9px; color: rgba(255,255,255,0.75); }
.ph-rev-amount {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 2px;
}
.ph-change-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.ph-change-badge {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.ph-change-hint { font-size: 9px; color: rgba(255,255,255,0.6); }
.ph-rev-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 12px 0 10px;
}
.ph-rev-stats {
  display: flex;
  justify-content: space-between;
}
.ph-stat-label {
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.4px;
  margin-bottom: 1px;
}
.ph-stat-value {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.ph-stat-value.gold { color: var(--accent); }

/* Hero card */
.ph-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E8F5E9;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 6px;
}
.ph-hero-left { display: flex; align-items: center; gap: 9px; }
.ph-hero-emoji { font-size: 20px; }
.ph-hero-title {
  font-size: 12px;
  font-weight: 800;
  color: #04372A;
}
.ph-hero-sub {
  font-size: 8px;
  color: #065F46;
  margin-top: 1px;
}
.ph-hero-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
}

/* Quick actions */
.ph-quick {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.ph-quick-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 15px;
}
.ph-quick-card.blue { background: #E3F2FD; color: #082F6C; }
.ph-quick-card.red { background: #FDE8E8; color: #7F1D1D; }
.ph-quick-card.yellow { background: #FFF8E1; color: #5C4506; }
.ph-quick-label {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

/* Section title */
.ph-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 3px;
}

/* Who Owes You */
.ph-owes {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF8E1;
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.ph-owes-radio {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ph-owes-radio-fill {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.ph-owes-text { flex: 1; min-width: 0; }
.ph-owes-title {
  font-size: 11px;
  font-weight: 700;
  color: #5C4506;
}
.ph-owes-sub {
  font-size: 8px;
  color: #92400E;
  margin-top: 1px;
}
.ph-owes-amount {
  font-size: 13px;
  font-weight: 900;
  color: #5C4506;
  white-space: nowrap;
}

/* Low stock banner */
.ph-lowstock {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  border-radius: 10px;
  padding: 7px 10px;
  margin-top: 6px;
}
.ph-lowstock-icon { font-size: 11px; }
.ph-lowstock-text {
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  color: #92400E;
}
.ph-lowstock-arrow {
  font-size: 11px;
  font-weight: 700;
  color: #92400E;
}

/* Bottom tab bar */
.ph-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 4px 6px;
}
.ph-tab,
.ph-tab-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.ph-tab {
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 600;
  padding-top: 6px;
}
.ph-tab.active { color: var(--primary); }
.ph-tab svg { width: 18px; height: 18px; }

.ph-tab-center { position: relative; }
.ph-tab-center .circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -22px;
  box-shadow: 0 6px 14px -4px rgba(11, 102, 35, 0.55);
}
.ph-tab-center .circle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero .grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; }
}

/* ---------- Section generic ---------- */
section.block { padding: 60px 0; }
section.block.tight { padding: 40px 0; }
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 102, 35, 0.10);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature.gold .icon { background: rgba(212, 160, 23, 0.15); color: #8a6a0f; }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Trust band ---------- */
.trust {
  background: var(--primary-dark);
  color: #fff;
}
.trust .container { padding-top: 56px; padding-bottom: 56px; }
.trust h2 { color: #fff; }
.trust p { color: rgba(255,255,255,0.8); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 22px;
}
.trust-item h3 { margin: 0 0 6px; font-size: 17px; color: var(--accent); font-weight: 700; }
.trust-item p { margin: 0; font-size: 15px; color: rgba(255,255,255,0.85); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -20px rgba(11, 102, 35, 0.35);
}
.plan .badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #2a1f00;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.plan h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.plan .tagline { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.plan .price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan .price small {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}
.plan .annual {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 20px;
}
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
}
.plan li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(11, 102, 35, 0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6623' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  margin: 60px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 0 24px; font-size: 17px; }
.cta-band .btn-primary { background: var(--accent); color: #2a1f00; }
.cta-band .btn-primary:hover { background: #e5b228; color: #2a1f00; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0f0c;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 30px;
  font-size: 14px;
}
.site-footer .brand { color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.site-footer .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  z-index: 40;
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.05); text-decoration: none; color: #fff; }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
}
.legal {
  padding: 40px 0 80px;
}
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -0.01em; }
.legal .updated { color: var(--text-soft); font-size: 14px; margin-bottom: 32px; }
.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th { background: #EFEFE9; font-weight: 700; color: var(--text); }
.legal td { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal em { color: var(--text-soft); }
.legal code { background: #EFEFE9; padding: 2px 6px; border-radius: 4px; font-size: 0.95em; }
