// Direction 05 — BRAND × BENTO
// 00 brand palette/type/logo + 01 Instrument Serif italic accents + 02 pastel bento sticker grid.

const BB = {
  cream: "#FFF1E4",
  yellow: "#FFD76B",
  orange: "#FF8432",
  plum: "#270233",
  plumSoft: "#3D1450",
  // tinted brand pastels (warm + on-palette)
  peach: "#FFD9B8",
  butter: "#FFE9A8",
  apricot: "#FFC79A",
  blush: "#FBD2C5",
  sand: "#F5E2C8",
  inkSoft: "rgba(39,2,51,0.7)",
  inkMuted: "rgba(39,2,51,0.5)",
  border: "rgba(39,2,51,0.12)",
  font: "'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif",
  serif: "'Instrument Serif', 'Times New Roman', serif",
  mono: "'DM Mono', 'Geist Mono', ui-monospace, monospace",
};

const BBSms = ({ children, style, variant = "accent" }) => {
  const variants = {
    primary: { background: BB.plum, color: BB.cream },
    accent: { background: `linear-gradient(135deg, ${BB.yellow}, ${BB.orange})`, color: BB.plum },
    cream: { background: BB.cream, color: BB.plum },
  };
  return (
    <a href="sms:+16178659772&body=Hey%20Magica!" style={{
      display: "inline-flex", alignItems: "center", gap: 8,
      padding: "14px 26px", borderRadius: 999,
      fontSize: 16, fontWeight: 700, textDecoration: "none",
      fontFamily: BB.font, transition: "transform .15s",
      ...variants[variant], ...style,
    }}
    onMouseEnter={(e) => e.currentTarget.style.transform = "translateY(-2px)"}
    onMouseLeave={(e) => e.currentTarget.style.transform = "translateY(0)"}>
      {children}
    </a>
  );
};

const BBWordLight = ({ height = 32 }) => <img src="assets/wordmark-light-bg.png" alt="Magica" style={{ height, display: "block" }} />;
const BBWordDark = ({ height = 32 }) => <img src="assets/wordmark-dark-bg.png" alt="Magica" style={{ height, display: "block" }} />;
const BBIcon = ({ size = 48 }) => <img src="assets/magica-icon.png" alt="" style={{ width: size, height: size, display: "block" }} />;

const BBEm = ({ children, color }) => (
  <em style={{
    fontFamily: BB.serif, fontStyle: "italic", fontWeight: 400,
    color: color || BB.orange, letterSpacing: -1,
  }}>{children}</em>
);

const BBLabel = ({ children }) => (
  <div style={{ fontFamily: BB.font, fontSize: 13, fontWeight: 600, color: BB.orange, marginBottom: 12, letterSpacing: 0.4 }}>
    — {children}
  </div>
);

const bbH2 = {
  fontFamily: BB.font, fontWeight: 700,
  fontSize: 60, lineHeight: 1, letterSpacing: -2,
  color: BB.plum, margin: 0, maxWidth: 900,
};

// ---------- NAV ----------
const BBNav = () => (
  <div className="bb-nav-wrap" style={{
    position: "sticky", top: 0, zIndex: 100,
    background: `${BB.cream}f2`, backdropFilter: "saturate(180%) blur(12px)",
    WebkitBackdropFilter: "saturate(180%) blur(12px)",
    borderBottom: `1px solid ${BB.border}`,
  }}>
  <nav className="bb-nav" style={{
    display: "flex", justifyContent: "space-between", alignItems: "center",
    padding: "16px 40px", maxWidth: 1280, margin: "0 auto",
  }}>
    <BBWordLight height={28} />
    <div className="bb-nav-links" style={{ display: "flex", gap: 32, fontSize: 15, color: BB.inkSoft, fontFamily: BB.font, fontWeight: 500 }}>
      {[
        { label: "how it works", href: "#how-it-works" },
        { label: "capabilities", href: "#capabilities" },
        { label: "examples", href: "#examples" },
        { label: "faq", href: "#faq" },
      ].map(l => (
        <a key={l.label} href={l.href} style={{ color: "inherit", textDecoration: "none" }}>{l.label}</a>
      ))}
    </div>
    <BBSms variant="primary" style={{ padding: "10px 18px", fontSize: 14 }}>text magica →</BBSms>
  </nav>
  </div>
);

// ---------- HERO (soft brand glow, no blocks) ----------
const BBHero = () => (
  <section className="bb-hero" style={{
    position: "relative", padding: "40px 40px 100px",
    maxWidth: 1280, margin: "0 auto",
    display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 60, alignItems: "center",
  }}>
    <div aria-hidden style={{
      position: "absolute", top: -150, right: -200, width: 800, height: 800,
      background: `radial-gradient(circle, ${BB.yellow}aa 0%, ${BB.orange}33 35%, transparent 65%)`,
      pointerEvents: "none", zIndex: 0, filter: "blur(20px)",
    }} />
    <div style={{ position: "relative", zIndex: 1 }}>
      <div style={{
        display: "inline-flex", alignItems: "center", gap: 8,
        padding: "6px 14px", borderRadius: 999,
        background: BB.plum, color: BB.yellow,
        fontSize: 13, fontFamily: BB.font, fontWeight: 500, marginBottom: 28,
      }}>
        <span style={{ width: 6, height: 6, borderRadius: 3, background: BB.yellow }} />
        available on imessage
      </div>
      <h1 className="bb-hero-h1" style={{
        fontFamily: BB.font, fontWeight: 700,
        fontSize: 84, lineHeight: 0.95, letterSpacing: -3,
        color: BB.plum, margin: "0 0 24px",
      }}>
        your personal<br />assistant,<br />
        <BBEm>one text away.</BBEm>
      </h1>
      <p style={{ fontFamily: BB.font, fontSize: 19, lineHeight: 1.5, color: BB.inkSoft, maxWidth: 480, margin: "0 0 36px" }}>
        text what you need. magica handles the calls, the hold music,
        the phone trees, and texts you back when it's done.
      </p>
      <div className="bb-hero-cta" style={{ display: "flex", gap: 14, alignItems: "center", flexWrap: "wrap" }}>
        <BBSms variant="accent" style={{ padding: "16px 28px", fontSize: 17 }}>text magica →</BBSms>
        <span style={{ fontFamily: BB.mono, fontSize: 13, color: BB.inkMuted }}>or text +1 (617) 865-9772</span>
      </div>
    </div>
    <div className="bb-hero-phone-outer" style={{ position: "relative", zIndex: 1, textAlign: "center" }}>
    <div className="bb-hero-phone" style={{ position: "relative", display: "inline-block", textAlign: "left" }}>
      <Phone width={340} height={680} bg="#fff" frame={BB.plum}>
        <Thread messages={THREAD_LIBRARY.pharmacy.messages} accent="#0A84FF" themBg="#E9E9EB"
                headerName="magica" headerSub="iMessage" headerAvatar="assets/magica-icon.png" loop />
      </Phone>
      <div className="bb-hero-sticker bb-hero-sticker-l" style={{
        position: "absolute", zIndex: 5,
        top: 30, left: "calc(50% - 200px)",
        background: BB.cream, borderRadius: 16, padding: "12px 16px",
        boxShadow: "0 12px 32px rgba(39,2,51,0.18)",
        fontFamily: BB.font, fontSize: 13, color: BB.plum, fontWeight: 500,
        transform: "rotate(-4deg)", display: "flex", gap: 8, alignItems: "center",
      }}>
        <span style={{ width: 8, height: 8, borderRadius: 4, background: BB.orange, animation: "bbpulse 1.4s infinite" }} />
        calling cvs porter sq...
      </div>
      <div className="bb-hero-sticker bb-hero-sticker-r" style={{
        position: "absolute", zIndex: 5,
        bottom: 80, right: "calc(50% - 200px)",
        background: `linear-gradient(135deg, ${BB.yellow}, ${BB.orange})`, color: BB.plum,
        borderRadius: 16, padding: "12px 16px",
        boxShadow: "0 12px 32px rgba(255,132,50,0.4)",
        fontFamily: BB.font, fontSize: 13, fontWeight: 600, transform: "rotate(3deg)",
      }}>
        ✓ added to calendar
      </div>
    </div>
    </div>
    <style>{`@keyframes bbpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }`}</style>
  </section>
);

// ---------- HOW IT WORKS — soft brand cards w/ italic numerals ----------
const BBHow = () => (
  <section id="how-it-works" className="bb-section bb-anchor" style={{ padding: "100px 40px", maxWidth: 1280, margin: "0 auto" }}>
    <div className="bb-how-grid" style={{ display: "grid", gridTemplateColumns: "1fr 2fr", gap: 60, alignItems: "start" }}>
      <div>
        <BBLabel>how it works</BBLabel>
        <h2 className="bb-h2" style={bbH2}>three steps, <BBEm>that's it.</BBEm></h2>
      </div>
      <div style={{ display: "flex", flexDirection: "column", gap: 16 }}>
        {[
          { n: "01", c: BB.peach, t: "text magica", b: "say it like you'd tell a friend. no commands, no syntax, no thinking about it." },
          { n: "02", c: BB.butter, t: "magica gets to work", b: "calls who needs calling. waits on hold. navigates phone trees. takes notes." },
          { n: "03", c: BB.apricot, t: "you get your time back", b: "you get a text when it's done — usually with a confirmation, sometimes a question." },
        ].map((s, i) => (
          <div key={i} style={{
            background: "#fff", borderRadius: 24, padding: "24px 28px",
            border: `1px solid ${BB.border}`,
            display: "grid", gridTemplateColumns: "auto 1fr", gap: 24, alignItems: "center",
          }}>
            <div style={{
              width: 64, height: 64, borderRadius: 20,
              background: s.c, display: "flex", alignItems: "center", justifyContent: "center",
              fontFamily: BB.serif, fontStyle: "italic", fontSize: 32, color: BB.plum, fontWeight: 400,
            }}>{s.n}</div>
            <div>
              <div style={{ fontFamily: BB.font, fontSize: 22, fontWeight: 700, color: BB.plum, letterSpacing: -0.4 }}>{s.t}</div>
              <div style={{ fontFamily: BB.font, fontSize: 15, color: BB.inkSoft, marginTop: 4, lineHeight: 1.5 }}>{s.b}</div>
            </div>
          </div>
        ))}
      </div>
    </div>
  </section>
);

// ---------- CAPABILITIES — BENTO STICKER GRID (Pocket-style, brand pastels) ----------
const BBCaps = () => (
  <section id="capabilities" className="bb-section bb-anchor" style={{ padding: "100px 40px", background: BB.cream }}>
    <div style={{ maxWidth: 1280, margin: "0 auto" }}>
      <BBLabel>capabilities</BBLabel>
      <h2 className="bb-h2" style={{ ...bbH2, marginBottom: 48 }}>
        what magica <BBEm>can do.</BBEm>
      </h2>
      <div className="bb-bento" style={{
        display: "grid", gridTemplateColumns: "repeat(12, 1fr)",
        gridAutoRows: "120px", gap: 16,
      }}>
        {/* Big phone-thread tile */}
        <div className="bb-bento-phone" style={{
          gridColumn: "span 5", gridRow: "span 4",
          background: `linear-gradient(135deg, ${BB.yellow}, ${BB.orange})`,
          borderRadius: 32, padding: 28, position: "relative", overflow: "hidden",
          display: "flex", alignItems: "center", justifyContent: "center",
        }}>
          <div style={{
            position: "absolute", top: 24, left: 28,
            fontFamily: BB.serif, fontStyle: "italic", fontSize: 22, color: BB.plum,
          }}>→ rx pickup</div>
          <Phone width={260} height={500} bg="#fff" frame={BB.plum}>
            <Thread messages={THREAD_LIBRARY.pharmacy.messages} accent="#0A84FF" themBg="#E9E9EB"
                    headerName="magica" headerSub="iMessage" headerAvatar="assets/magica-icon.png" loop />
          </Phone>
        </div>

        <BBSticker bg={BB.peach} icon="📞" title="phone calls" sub="restaurants, pharmacies, doctors, airlines" cols={4} rows={2} />
        <BBSticker bg={BB.butter} icon="📅" title="appointments" sub="haircut. dentist. car service. vet." cols={3} rows={2} />
        <BBSticker bg={BB.blush} icon="🍽" title="reservations" sub="cuisine, vibe, party size — done." cols={3} rows={2} />
        <BBSticker bg={BB.apricot} icon="🗓" title="calendar" sub="syncs with google. blocks time. fixes conflicts." cols={4} rows={2} />
        <BBSticker bg={BB.sand} icon="⏰" title="reminders" sub="on the day, on the hour, every time" cols={5} rows={2} />
        <BBSticker bg={BB.peach} icon="🧠" title="memory" sub="your pharmacy, your doctor, your usual" cols={7} rows={2} />
      </div>
    </div>
  </section>
);

const BBSticker = ({ bg, icon, title, sub, cols, rows }) => (
  <div style={{
    gridColumn: `span ${cols}`, gridRow: `span ${rows}`,
    background: bg, borderRadius: 28, padding: 24,
    display: "flex", flexDirection: "column", justifyContent: "space-between",
    transition: "transform .2s", border: `1px solid ${BB.border}`,
  }}
  onMouseEnter={(e) => e.currentTarget.style.transform = "translateY(-4px) rotate(-1deg)"}
  onMouseLeave={(e) => e.currentTarget.style.transform = "translateY(0) rotate(0)"}>
    <div style={{ fontSize: 32 }}>{icon}</div>
    <div>
      <div style={{ fontFamily: BB.font, fontSize: 20, fontWeight: 700, color: BB.plum, letterSpacing: -0.3 }}>{title}</div>
      <div style={{ fontFamily: BB.font, fontSize: 13, color: BB.inkSoft, marginTop: 4 }}>{sub}</div>
    </div>
  </div>
);

// ---------- LIVE DEMO — "pick a thing. watch magica do it." ----------
const BBDemo = () => {
  const scenarios = ["dinner", "haircut", "flight", "doctor", "car", "vet"];
  const [active, setActive] = React.useState("dinner");
  const t = THREAD_LIBRARY[active];
  return (
    <section className="bb-section" style={{
      padding: "120px 40px",
      background: `linear-gradient(135deg, ${BB.plum} 0%, ${BB.plumSoft} 100%)`,
      color: BB.cream, position: "relative", overflow: "hidden",
    }}>
      <div aria-hidden style={{
        position: "absolute", top: -200, left: -150, width: 500, height: 500,
        background: `radial-gradient(circle, ${BB.orange}55 0%, transparent 60%)`,
        pointerEvents: "none",
      }} />
      <div className="bb-demo-grid" style={{ maxWidth: 1280, margin: "0 auto", display: "grid", gridTemplateColumns: "1fr 1fr", gap: 80, alignItems: "center", position: "relative" }}>
        <div>
          <div style={{ fontFamily: BB.font, fontSize: 13, fontWeight: 600, color: BB.yellow, marginBottom: 12, letterSpacing: 0.4 }}>
            — live demo
          </div>
          <h2 className="bb-h2" style={{ ...bbH2, color: BB.cream, marginBottom: 24 }}>
            pick a thing.<br />
            <BBEm color={BB.yellow}>watch magica do it.</BBEm>
          </h2>
          <p style={{ fontFamily: BB.font, fontSize: 17, lineHeight: 1.5, color: "rgba(255,241,228,0.7)", margin: "0 0 32px", maxWidth: 460 }}>
            real conversations. real outcomes. lowercase, low-key, gets the job done.
          </p>
          <div style={{ display: "flex", flexWrap: "wrap", gap: 8 }}>
            {scenarios.map(k => {
              const s = THREAD_LIBRARY[k];
              const isOn = active === k;
              return (
                <button key={k} onClick={() => setActive(k)} style={{
                  padding: "10px 18px", borderRadius: 999,
                  border: `1.5px solid ${isOn ? BB.yellow : "rgba(255,241,228,0.25)"}`,
                  background: isOn ? `linear-gradient(135deg, ${BB.yellow}, ${BB.orange})` : "transparent",
                  color: isOn ? BB.plum : BB.cream,
                  fontFamily: BB.font, fontSize: 14, fontWeight: 500, cursor: "pointer",
                  display: "inline-flex", gap: 6, alignItems: "center",
                }}>
                  <span>{s.icon}</span> {s.title}
                </button>
              );
            })}
          </div>
        </div>
        <div style={{ display: "flex", justifyContent: "center" }}>
          <Phone width={320} height={620} bg="#fff" frame="#000">
            <Thread key={active} messages={t.messages} accent="#0A84FF" themBg="#E9E9EB"
                    headerName="magica" headerSub="iMessage" headerAvatar="assets/magica-icon.png" loop />
          </Phone>
        </div>
      </div>
    </section>
  );
};

// ---------- EXAMPLES — sticker cards (Pocket-style, brand pastels) ----------
const BBExamples = () => {
  const keys = ["pharmacy", "reminder", "haircut"];
  const colors = [BB.peach, BB.butter, BB.apricot];
  return (
    <section id="examples" className="bb-section bb-anchor" style={{ padding: "120px 40px", maxWidth: 1280, margin: "0 auto" }}>
      <BBLabel>real threads</BBLabel>
      <h2 className="bb-h2" style={{ ...bbH2, marginBottom: 48 }}>
        a few things people asked magica <BBEm>this week.</BBEm>
      </h2>
      <div className="bb-examples-grid" style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 24 }}>
        {keys.map((k, i) => {
          const t = THREAD_LIBRARY[k];
          return (
            <div key={k} style={{
              background: colors[i], borderRadius: 28, padding: 16,
              border: `1px solid ${BB.border}`,
            }}>
              <div style={{
                display: "flex", alignItems: "center", gap: 8,
                padding: "8px 12px 12px",
                fontFamily: BB.font, fontSize: 13, fontWeight: 600, color: BB.plum,
              }}>
                <span style={{ fontSize: 18 }}>{t.icon}</span> {t.title}
              </div>
              <div style={{ height: 420, background: "#fff", borderRadius: 18, overflow: "hidden" }}>
                <Thread messages={t.messages} accent="#0A84FF" themBg="#E9E9EB" showHeader={false} loop bg="#fff" />
              </div>
            </div>
          );
        })}
      </div>
    </section>
  );
};

// ---------- FAQ ----------
const BBFaq = () => {
  const [open, setOpen] = React.useState(0);
  const items = [
    { q: "do i need to download an app?", a: "no. magica works in imessage. add the number, text it like a friend." },
    { q: "is it really making real phone calls?", a: "yes. ai voice calls. it waits on hold, navigates phone trees, and writes you a summary when it's done." },
    { q: "what if it gets something wrong?", a: "magica asks before doing anything that's hard to undo. for everything else, you can just text 'no, redo it.'" },
    { q: "what about my data?", a: "encrypted at rest, never sold, never used to train models. text 'forget me' to delete everything." },
    { q: "android?", a: "yes — over sms. some imessage features are nicer on iphone, but magica works for everyone." },
    { q: "international?", a: "us numbers only for now." },
  ];
  return (
    <section id="faq" className="bb-section bb-anchor" style={{ padding: "120px 40px", maxWidth: 900, margin: "0 auto" }}>
      <BBLabel>faq</BBLabel>
      <h2 className="bb-h2" style={{ ...bbH2, marginBottom: 40 }}>
        questions, <BBEm>answered.</BBEm>
      </h2>
      <div>
        {items.map((it, i) => (
          <div key={i} style={{
            borderTop: `1px solid ${BB.border}`,
            borderBottom: i === items.length - 1 ? `1px solid ${BB.border}` : "none",
          }}>
            <button onClick={() => setOpen(open === i ? -1 : i)} style={{
              width: "100%", display: "flex", justifyContent: "space-between", alignItems: "center",
              padding: "22px 0", background: "transparent", border: "none",
              fontFamily: BB.font, fontSize: 19, fontWeight: 600, color: BB.plum,
              cursor: "pointer", textAlign: "left",
            }}>
              <span>{it.q}</span>
              <span style={{ color: BB.orange, fontSize: 24, transition: "transform .2s", transform: open === i ? "rotate(45deg)" : "none" }}>+</span>
            </button>
            {open === i && (
              <div style={{ fontFamily: BB.font, fontSize: 16, lineHeight: 1.5, color: BB.inkSoft, paddingBottom: 24, maxWidth: 760 }}>{it.a}</div>
            )}
          </div>
        ))}
      </div>
    </section>
  );
};

// ---------- FINAL CTA ----------
const BBFinal = () => (
  <section className="bb-final" style={{
    padding: "140px 40px", textAlign: "center", position: "relative", overflow: "hidden",
    background: `linear-gradient(135deg, ${BB.orange} 0%, ${BB.yellow} 100%)`,
  }}>
    <div aria-hidden style={{
      position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)",
      width: 800, height: 800, borderRadius: "50%",
      background: `radial-gradient(circle, ${BB.cream}55 0%, transparent 60%)`,
      pointerEvents: "none",
    }} />
    <div style={{ display: "flex", justifyContent: "center", marginBottom: 32, position: "relative" }}>
      <BBIcon size={88} />
    </div>
    <h2 className="bb-final-h2" style={{
      fontFamily: BB.font, fontWeight: 700,
      fontSize: 84, lineHeight: 0.9, letterSpacing: -3,
      color: BB.plum, margin: "0 auto 24px", maxWidth: 900, position: "relative",
    }}>
      ready to get<br /><BBEm>your time back?</BBEm>
    </h2>
    <p style={{ fontFamily: BB.font, fontSize: 18, color: BB.plum, opacity: 0.7, margin: "0 0 36px", position: "relative" }}>
      no app to download. just text.
    </p>
    <BBSms variant="primary" style={{ padding: "18px 32px", fontSize: 18, position: "relative" }}>text magica →</BBSms>
  </section>
);

const BBFooter = () => (
  <footer style={{ padding: "40px", background: BB.plum, color: "rgba(255,241,228,0.6)" }}>
    <div className="bb-footer" style={{
      maxWidth: 1280, margin: "0 auto",
      display: "flex", justifyContent: "space-between", alignItems: "center",
      fontFamily: BB.font, fontSize: 13,
    }}>
      <BBWordDark height={24} />
      <div style={{ display: "flex", gap: 24 }}>
        <a href="/terms-of-service" style={{ color: "inherit", textDecoration: "none" }}>terms</a>
        <a href="/privacy" style={{ color: "inherit", textDecoration: "none" }}>privacy</a>
        <a href="/consumer-health-data-privacy" style={{ color: "inherit", textDecoration: "none" }}>health data</a>
      </div>
      <div>© 2026 insito health</div>
    </div>
  </footer>
);

const BrandBentoSite = () => (
  <div className="bb-site" style={{
    background: BB.cream, color: BB.plum,
    fontFamily: BB.font, width: "100%", overflowX: "clip",
  }}>
    <style>{`
      html { scroll-behavior: smooth; }
      .bb-site .bb-anchor { scroll-margin-top: 80px; }

      @media (max-width: 820px) {
        .bb-site .bb-nav { padding: 16px 20px !important; gap: 12px; flex-wrap: wrap; }
        .bb-site .bb-nav-links { display: none !important; }

        .bb-site .bb-hero {
          grid-template-columns: 1fr !important;
          gap: 32px !important;
          padding: 16px 20px 56px !important;
        }
        .bb-site .bb-hero-h1 { font-size: 48px !important; letter-spacing: -1.5px !important; }
        .bb-site .bb-hero p { font-size: 16px !important; max-width: 100% !important; }
        .bb-site .bb-hero-cta span { font-size: 12px !important; }
        .bb-site .bb-stats { margin-top: 36px !important; gap: 20px 28px !important; }
        .bb-site .bb-hero-phone-outer { margin: -10px 0 -40px; }
        .bb-site .bb-hero-phone {
          transform: scale(0.82);
          transform-origin: top center;
        }
        .bb-site .bb-hero-sticker-l { top: 10px !important; left: 10px !important; font-size: 11px !important; padding: 8px 12px !important; }
        .bb-site .bb-hero-sticker-r { bottom: 80px !important; right: 10px !important; font-size: 11px !important; padding: 8px 12px !important; }

        .bb-site .bb-section { padding: 64px 20px !important; }
        .bb-site .bb-h2 { font-size: 38px !important; letter-spacing: -1.2px !important; line-height: 1.05 !important; }

        .bb-site .bb-how-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

        .bb-site .bb-bento {
          grid-template-columns: repeat(2, 1fr) !important;
          grid-auto-rows: auto !important;
        }
        .bb-site .bb-bento > * {
          grid-column: span 1 !important;
          grid-row: auto !important;
          min-height: 160px;
        }
        .bb-site .bb-bento-phone {
          grid-column: span 2 !important;
          padding: 64px 16px 16px !important;
          min-height: 580px !important;
          flex-direction: column !important;
          justify-content: flex-end !important;
          align-items: center !important;
        }

        .bb-site .bb-demo-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

        .bb-site .bb-examples-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

        .bb-site .bb-final { padding: 80px 20px !important; }
        .bb-site .bb-final-h2 { font-size: 52px !important; letter-spacing: -1.5px !important; }

        .bb-site .bb-footer {
          flex-direction: column !important;
          gap: 18px !important;
          text-align: center;
        }
      }

      @media (max-width: 380px) {
        .bb-site .bb-hero-h1 { font-size: 40px !important; }
        .bb-site .bb-h2 { font-size: 32px !important; }
        .bb-site .bb-final-h2 { font-size: 42px !important; }
      }
    `}</style>
    <BBNav />
    <BBHero />
    <BBHow />
    <BBCaps />
    <BBDemo />
    <BBExamples />
    <BBFaq />
    <BBFinal />
    <BBFooter />
  </div>
);

window.BrandBentoSite = BrandBentoSite;
