/* ============================================
   BudiHub Marketing Site — Design System
   Signature: "dispatch ticket" monospace stat
   blocks — real numbers, shown honestly, styled
   like a delivery manifest, not a corporate stat card.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --green: #16A34A;
  --green-dark: #0F7C37;
  --green-pale: #F0FDF4;
  --charcoal: #1F2937;
  --near-black: #111827;
  --cream: #F8FAF9;
  --white: #FFFFFF;
  --amber: #F8C34C;
  --amber-dark: #D99B1F;
  --muted: #6B7280;
  --border: #E5E7EB;

  --font-display: 'Baloo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { color: var(--charcoal); }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,249,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 30px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 600; color: var(--charcoal);
  transition: color .15s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); }
.nav-cta {
  background: var(--near-black); color: var(--white) !important;
  padding: 10px 20px; border-radius: 999px; font-weight: 700 !important;
  font-size: 0.9rem !important;
}
.nav-toggle { display: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,0.28); }
.btn-dark { background: var(--near-black); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,24,39,0.25); }
.btn-outline { background: transparent; color: var(--near-black); border: 2px solid var(--near-black); }
.btn-outline:hover { background: var(--near-black); color: var(--white); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
section.tight { padding: 64px 0; }
.section-dark { background: var(--near-black); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-green { background: var(--green); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }
.section-green p { color: rgba(255,255,255,0.9); }
.section-white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Dispatch ticket — the signature element ---------- */
/* Real stats rendered like a torn delivery-manifest stub: monospace
   numbers, a perforated edge, and a route-dot rule underneath. */
.ticket-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.ticket {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 24px 22px;
  overflow: hidden;
}
.ticket::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(
    to bottom, var(--amber) 0 8px, transparent 8px 16px
  );
}
.ticket .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 2.1rem; color: var(--green); line-height: 1;
  margin-bottom: 8px; display: block;
}
.ticket .lbl { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.ticket-dark { background: var(--near-black); border-color: rgba(255,255,255,0.1); }
.ticket-dark .num { color: var(--amber); }
.ticket-dark .lbl { color: rgba(255,255,255,0.65); }

/* Route-line divider — dotted, echoing a delivery path */
.route-divider {
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border) 0 10px, transparent 10px 20px);
  margin: 0 0 56px;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

.app-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; text-align: center; border: 1.5px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(17,24,39,0.08); }
.app-card img { height: 26px; margin: 0 auto 14px; }
.app-card p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Quote block (matches brochure voice) ---------- */
.quote {
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.quote cite { display: block; font-style: normal; font-weight: 700; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 22px; }
.hero-cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Signup form ---------- */
.signup-box {
  background: var(--white); border-radius: var(--radius);
  padding: 10px; display: flex; gap: 8px; max-width: 460px;
  border: 1.5px solid var(--border);
}
.signup-box input {
  flex: 1; border: none; outline: none; padding: 12px 14px;
  font-family: var(--font-body); font-size: 0.95rem; background: transparent;
}
.signup-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.price-table th { background: var(--near-black); color: var(--white); text-align: left; padding: 16px 20px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--cream); }
.price-table td.tier-name { font-weight: 700; }

/* ---------- Footer ---------- */
footer { background: var(--near-black); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 700px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } }
footer img.foot-logo { height: 26px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 0.9rem; }
footer a:hover { color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 56px; }
.badge-pill {
  display: inline-block; border: 1.5px solid currentColor; border-radius: 999px;
  padding: 6px 16px; font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
}
