/* ═══════════════════════════════════════════
   BRAMBLE IT — THEME CSS
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --green-50:  #f4fbee;
  --green-100: #e4f4d4;
  --green-200: #c3e8a0;
  --green-400: #5cb82a;
  --green-600: #2d8a1e;
  --green-800: #1e6614;
  --green-900: #122d0b;

  --sage-50:  #f7fdf3;
  --sage-100: #edf7e4;

  --neutral-50:  #f8f9f7;
  --neutral-100: #eeeeed;
  --neutral-200: #d8d9d6;
  --neutral-400: #8a8e85;
  --neutral-600: #4a5e3a;
  --neutral-800: #1a2310;
  --neutral-900: #0f150a;

  --white: #ffffff;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(30,102,20,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(30,102,20,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(30,102,20,0.12), 0 4px 12px rgba(0,0,0,0.06);

  --nav-height: 68px;
  --container: 1140px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--neutral-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-600);
  border-color: var(--green-600);
}
.btn-outline:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-100);
  border-color: var(--green-100);
  transform: translateY(-1px);
}

/* ── Typography helpers ── */
.bb-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 10px;
}
.bb-section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--neutral-900);
  margin-bottom: 48px;
  max-width: 400px;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-100);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}
.bb-header.scrolled { box-shadow: var(--shadow-sm); }

.bb-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.bb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bb-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-400) 0%, var(--green-800) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 17px;
  font-family: var(--font);
  flex-shrink: 0;
}
.bb-logo-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--neutral-800);
  letter-spacing: -0.3px;
}
.bb-logo-text strong {
  color: var(--green-600);
  font-weight: 800;
}

/* Nav links */
.bb-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.bb-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-600);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.bb-nav-links a:hover,
.bb-nav-links a.active {
  color: var(--green-600);
  background: var(--green-50);
}

/* Nav CTA */
.bb-nav-cta {
  flex-shrink: 0;
  background: var(--green-600);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--green-600);
  transition: all 0.18s;
}
.bb-nav-cta:hover {
  background: var(--green-800);
  border-color: var(--green-800);
}

/* Mobile toggle */
.bb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.bb-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: all 0.2s;
}
.bb-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bb-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bb-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.bb-hero {
  background: var(--sage-50);
  border-bottom: 1px solid var(--green-100);
  padding: 80px 0 72px;
}
.bb-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Badge */
.bb-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-100);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.bb-badge-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pip-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.bb-hero-copy h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--neutral-900);
  margin-bottom: 18px;
}
.bb-hero-copy h1 em {
  font-style: normal;
  color: var(--green-600);
}
.bb-hero-copy > p {
  font-size: 17px;
  color: var(--neutral-600);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 440px;
}
.bb-hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero visual card */
.bb-hero-visual {
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.bb-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bb-app-tile {
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  border: 1px solid var(--green-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bb-app-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bb-app-tile--dark { background: var(--green-600); border-color: var(--green-600); }
.bb-app-tile--light { background: var(--green-50); }
.bb-app-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.bb-app-tile--dark .bb-app-tile-icon { background: rgba(255,255,255,0.15); color: var(--white); }
.bb-app-tile--light .bb-app-tile-icon { background: var(--green-200); color: var(--green-800); }
.bb-app-tile-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}
.bb-app-tile--dark .bb-app-tile-name { color: var(--white); }
.bb-app-tile--light .bb-app-tile-name { color: var(--neutral-900); }
.bb-app-tile-desc { font-size: 11.5px; line-height: 1.4; }
.bb-app-tile--dark .bb-app-tile-desc { color: rgba(255,255,255,0.7); }
.bb-app-tile--light .bb-app-tile-desc { color: var(--neutral-600); }

/* Hero stats */
.bb-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--green-100);
}
.bb-hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bb-hero-stat-n {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.5px;
}
.bb-hero-stat-l {
  font-size: 11px;
  font-weight: 500;
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bb-hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--green-100);
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.bb-features {
  padding: 88px 0;
  background: var(--white);
}
.bb-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bb-feat-card {
  background: var(--sage-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bb-feat-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.bb-feat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 20px;
}
.bb-feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 10px;
  line-height: 1.3;
}
.bb-feat-card p {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.bb-about {
  padding: 88px 0;
  background: var(--sage-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
}
.bb-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.bb-about-copy h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--neutral-900);
  margin-bottom: 16px;
}
.bb-about-copy p {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.bb-about-copy .btn { margin-top: 8px; }

/* Why list */
.bb-why-list { display: flex; flex-direction: column; }
.bb-why-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--green-100);
  align-items: flex-start;
}
.bb-why-item:first-child { padding-top: 0; }
.bb-why-item:last-child { border-bottom: none; padding-bottom: 0; }
.bb-why-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--green-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.bb-why-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 5px;
}
.bb-why-item p {
  font-size: 13.5px;
  color: var(--neutral-600);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   CTA STRIP
   ═══════════════════════════════════════════ */
.bb-cta-strip {
  background: var(--green-800);
  padding: 80px 0;
}
.bb-cta-inner {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
}
.bb-cta-strip h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}
.bb-cta-strip p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.bb-footer {
  background: var(--white);
  border-top: 1px solid var(--green-100);
  padding: 28px 0;
}
.bb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bb-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--neutral-400);
  font-weight: 500;
}
.bb-footer-links {
  display: flex;
  gap: 24px;
}
.bb-footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-600);
  transition: color 0.15s;
}
.bb-footer-links a:hover { color: var(--green-600); }
.bb-footer-credit {
  font-size: 12px;
  color: var(--neutral-400);
}

/* ═══════════════════════════════════════════
   INNER PAGE TEMPLATES
   ═══════════════════════════════════════════ */
.bb-page-hero {
  background: var(--sage-50);
  border-bottom: 1px solid var(--green-100);
  padding: 60px 0 52px;
}
.bb-page-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--neutral-900);
}
.bb-page-content { padding: 64px 0 80px; }
.bb-prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--neutral-800);
}
.bb-prose h2 { font-size: 24px; font-weight: 700; margin: 2em 0 0.6em; color: var(--neutral-900); }
.bb-prose h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 0.5em; color: var(--neutral-900); }
.bb-prose p { margin-bottom: 1.2em; }
.bb-prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.bb-prose ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1.2em; }
.bb-prose li { margin-bottom: 0.4em; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bb-hero-copy h1 { font-size: 40px; }
  .bb-feat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }

  /* Nav mobile */
  .bb-nav-toggle { display: flex; }
  .bb-nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--green-100);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .bb-nav-links.open { display: flex; }
  .bb-nav-links a { padding: 10px 12px; font-size: 15px; }
  .bb-nav-cta { display: none; }
  .bb-header { position: relative; }

  /* Hero */
  .bb-hero { padding: 52px 0 48px; }
  .bb-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .bb-hero-copy h1 { font-size: 36px; letter-spacing: -1px; }
  .bb-hero-visual { order: -1; }

  /* Features */
  .bb-features { padding: 60px 0; }
  .bb-feat-grid { grid-template-columns: 1fr; }
  .bb-section-title { font-size: 26px; }

  /* About */
  .bb-about { padding: 60px 0; }
  .bb-about-inner { grid-template-columns: 1fr; gap: 40px; }
  .bb-about-copy h2 { font-size: 26px; }

  /* CTA */
  .bb-cta-strip { padding: 56px 0; }
  .bb-cta-strip h2 { font-size: 24px; }

  /* Footer */
  .bb-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .bb-hero-copy h1 { font-size: 30px; }
  .bb-hero-btns { flex-direction: column; align-items: stretch; }
  .bb-hero-btns .btn { justify-content: center; }
  .bb-app-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
