/* ═══════════════════════════════════════════
   LocalLift — Design System
   ═══════════════════════════════════════════ */

:root {
  --bg: #faf8f5;
  --bg-dark: #0f2318;
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --fg-subtle: #9a9a9a;
  --green: #1a4d2e;
  --green-mid: #2d6b42;
  --green-light: #4a8f65;
  --amber: #e8a838;
  --amber-light: #f5c96a;
  --white: #ffffff;
  --border: #e0ddd8;
  --card-bg: #ffffff;
  --font-head: 'DM Sans', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-mid); }

/* ── Nav ── */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}
.nav__tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
  margin-left: 8px;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--green); }
.nav__cta {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav__cta:hover { background: var(--green-mid) !important; }

/* ── Section Label ── */
.section__label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* ── Hero ── */
.hero {
  padding: 80px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.hero__headline {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--green);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  max-width: 760px;
}
.hero__lede {
  font-size: 20px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.6;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-secondary {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  color: var(--green);
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { border-color: var(--green); transform: translateY(-1px); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(26,77,46,0.08); }
.card__icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.card__body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.card__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── Sections ── */
.section {
  padding: 72px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section--dark {
  background: var(--bg-dark);
  max-width: 100%;
}
.section--dark .section__label { color: var(--amber-light); }
.section--dark h2 { color: var(--white); }
.section--dark .hero__lede { color: rgba(255,255,255,0.65); }
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}
.section h3 {
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 12px;
}

/* ── Demo Page ── */
.demo-header {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px 48px;
}
.demo-header__eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.demo-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.demo-header p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.6; }
.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 0 48px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.demo-tab {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 16px 20px;
  color: var(--fg-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.demo-tab:hover { color: var(--green); }
.demo-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(26,77,46,0.02); }
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-green { background: #e8f5ec; color: var(--green-mid); }
.badge-amber { background: #fdf3dc; color: #a07020; }
.badge-dark { background: var(--bg-dark); color: var(--amber); }

/* ── Chatbot Preview ── */
.chat-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 480px;
}
.chat-header {
  background: var(--green);
  color: var(--white);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chat-header__info h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.chat-header__info span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.chat-body { padding: 20px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.chat-msg--bot {
  background: var(--bg);
  color: var(--fg);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-msg--user {
  background: var(--green);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.chat-opt {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.chat-opt:hover { background: #e8f5ec; border-color: var(--green-light); }

/* ── Automation Flow ── */
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}
.flow-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-content h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.flow-content p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.flow-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green-mid);
}

/* ── Video Card ── */
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.video-thumb {
  background: linear-gradient(135deg, #1a4d2e 0%, #0f2318 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
}
.video-info { padding: 20px; }
.video-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.video-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.video-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.video-script {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.video-script__label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 8px;
}

/* ── Calendar ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-day-header {
  background: var(--bg);
  padding: 10px 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calendar-day {
  background: var(--card-bg);
  padding: 10px 12px;
  min-height: 100px;
  font-size: 13px;
  position: relative;
}
.calendar-day__num {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.calendar-day__item {
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  line-height: 1.3;
}
.cal-reel { background: #e8f5ec; color: var(--green-mid); }
.cal-tiktok { background: #fdf3dc; color: #a07020; }
.cal-story { background: #eaf0fb; color: #2563eb; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  text-align: center;
  color: var(--fg-subtle);
  font-size: 14px;
  font-family: var(--font-head);
}

/* ── Stat Boxes ── */
.stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  min-width: 160px;
  flex: 1;
}
.stat-box__val {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box__label {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-head);
  font-weight: 600;
}

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.login-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(26,77,46,0.06);
}
.login-box h1 {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--green);
  margin-bottom: 8px;
}
.login-box p { color: var(--fg-muted); font-size: 15px; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--green); }

/* ── Demo badge ── */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: #1a1a1a;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* ── Rich list ── */
.rich-list { list-style: none; }
.rich-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.rich-list li:last-child { border-bottom: none; }
.rich-list__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e8f5ec;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}
.rich-list__text strong {
  font-family: var(--font-head);
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
.rich-list__text span { font-size: 14px; color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav__links { display: none; }
  .hero { padding: 60px 24px 40px; }
  .section { padding: 48px 24px; }
  .demo-header { padding: 40px 24px; }
  .demo-tabs { padding: 0 24px; }
  .calendar-grid { grid-template-columns: repeat(7, minmax(40px, 1fr)); }
}