/* =========================================================================
   Bonsai product pages — modern showcase layer (scoped, brand: bonsaibim)
   Palette: green #40b74c / #74c77b · orange #f0855e · ink #2e3436
   ========================================================================= */

:root {
	--bx-green: #40b74c;
	--bx-green-dark: #2f9a3a;
	--bx-green-soft: #eaf6ec;
	--bx-orange: #f0855e;
	--bx-ink: #2e3436;
	--bx-muted: #6b7772;
	--bx-line: #e6e7e3;
	--bx-panel: #1c2128;
	--bx-radius: 18px;
	--bx-shadow: 0 24px 60px rgba(30, 45, 35, .16);
	--bx-shadow-sm: 0 10px 30px rgba(30, 45, 35, .10);
}

.bx { font-family: "Nunito", sans-serif; color: var(--bx-ink); }
/* Mirror Bootstrap .container exactly so content lines up with the header */
.bx-wrap { width: 100%; margin: 0 auto; padding-right: 12px; padding-left: 12px; }
@media (min-width: 576px)  { .bx-wrap { max-width: 540px; } }
@media (min-width: 768px)  { .bx-wrap { max-width: 720px; } }
@media (min-width: 992px)  { .bx-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .bx-wrap { max-width: 1140px; } }
@media (min-width: 1400px) { .bx-wrap { max-width: 1320px; } }
.bx-section { padding: 84px 0; position: relative; }
.bx-section.tint { background: linear-gradient(180deg, #f7f9f6 0%, #eef4ee 100%); }
.bx-section.ink { background: #12161b; color: #e7ece8; }

.bx-hero-id { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.bx-hero-grid.solo .bx-hero-id { justify-content: center; }
.bx-hero-logo { flex-shrink: 0; width: 60px; height: 60px; padding: 11px; object-fit: contain; background: #fff; border: 1px solid var(--bx-line); border-radius: 16px; box-shadow: var(--bx-shadow-sm); }
.bx-hero-id .bx-eyebrow { margin-bottom: 0; }
.bx-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--bx-green); background: var(--bx-green-soft);
	padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.bx-eyebrow.orange { color: #c85a34; background: #fdeee8; }

.bx-h1 { font-size: 56px; line-height: 1.05; font-weight: normal; margin: 0 0 18px; letter-spacing: -.02em; }
.bx-h2 { font-size: 40px; line-height: 1.1; font-weight: normal; margin: 0 0 16px; letter-spacing: -.01em; }
.bx-lead { font-size: 20px; line-height: 1.6; color: var(--bx-muted); margin: 0 0 28px; max-width: 620px; }
.bx-center { text-align: center; }
.bx-center .bx-lead { margin-left: auto; margin-right: auto; }
.bx-section-head { max-width: 720px; margin: 0 auto 56px; }

/* ---- Buttons ---------------------------------------------------------- */
.bx-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bx-center .bx-cta-row { justify-content: center; }
.bx-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer;
	padding: 14px 28px; border-radius: 12px; border: 2px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	white-space: nowrap;
}
.bx-btn img { width: 18px; height: auto; }
.bx-btn-primary { background: var(--bx-green); color: #fff; box-shadow: 0 10px 24px rgba(64, 183, 76, .32); }
.bx-btn-primary:hover { background: var(--bx-green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(64, 183, 76, .4); }
.bx-btn-ghost { background: #fff; color: var(--bx-ink); border-color: var(--bx-line); }
.bx-btn-ghost:hover { border-color: var(--bx-green); color: var(--bx-green); transform: translateY(-2px); }
.bx-btn-donate { background: var(--bx-orange); color: #fff; box-shadow: 0 10px 24px rgba(240, 133, 94, .32); }
.bx-btn-donate:hover { background: #e5734a; color: #fff; transform: translateY(-2px); }
.ink .bx-btn-ghost { background: transparent; color: #e7ece8; border-color: rgba(255,255,255,.22); }
.ink .bx-btn-ghost:hover { border-color: var(--bx-green); color: #fff; }
.bx-textlink { color: var(--bx-green); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bx-textlink:hover { color: var(--bx-orange); }
.bx-textlink .bx-arrow { transition: transform .18s ease; }
.bx-textlink:hover .bx-arrow { transform: translateX(4px); }

/* ---- Screenshot frame (app / browser chrome) -------------------------- */
.bx-frame {
	border-radius: var(--bx-radius); overflow: hidden; background: var(--bx-panel);
	box-shadow: var(--bx-shadow); border: 1px solid rgba(0, 0, 0, .06);
}
.bx-frame img { display: block; width: 100%; height: auto; }
.bx-frame.bare { border-radius: 0; overflow: visible; background: none; box-shadow: none; border: 0; }
.bx-credit { font-size: 12px; line-height: 1.5; color: var(--bx-muted); margin: 12px 4px 0; }
.bx-credit.bx-center { margin-top: 22px; }
.bx-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bx-credit a:hover { color: var(--bx-green); }

/* ---- Hero ------------------------------------------------------------- */
.bx-hero { padding: 76px 0 84px; background: radial-gradient(1200px 500px at 80% -10%, #eaf6ec 0%, rgba(234, 246, 236, 0) 60%); }
.bx-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bx-hero-grid.solo { grid-template-columns: 1fr; text-align: center; max-width: 820px; margin: 0 auto; }
.bx-hero-grid.solo .bx-lead { margin-left: auto; margin-right: auto; }
.bx-hero-grid.solo .bx-cta-row { justify-content: center; }

/* ---- Product cards (home hub) ----------------------------------------- */
.bx-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bx-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bx-line);
	border-radius: var(--bx-radius); overflow: hidden; box-shadow: var(--bx-shadow-sm);
	transition: transform .22s ease, box-shadow .22s ease; text-decoration: none; color: inherit;
}
.bx-card:hover { transform: translateY(-6px); box-shadow: var(--bx-shadow); color: inherit; }
.bx-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0e1216; }
.bx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bx-card:hover .bx-card-media img { transform: scale(1.05); }
.bx-badge {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	background: rgba(46, 52, 54, .82); color: #fff; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
.bx-card-body { padding: 38px 26px 30px; display: flex; flex-direction: column; flex: 1; position: relative; }
.bx-card-logo { position: absolute; top: -29px; left: 24px; width: 60px; height: 60px; padding: 10px; object-fit: contain; background: #fff; border: 1px solid var(--bx-line); border-radius: 16px; box-shadow: 0 8px 20px rgba(20, 30, 25, .18); }
.bx-card-body h3 { font-size: 24px; font-weight: normal; margin: 0 0 6px; }
.bx-card-kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bx-green); margin: 0 0 12px; }
.bx-card-body p { font-size: 16px; line-height: 1.55; color: var(--bx-muted); margin: 0 0 20px; flex: 1; }

/* ---- Feature zig-zag rows --------------------------------------------- */
.bx-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bx-feature + .bx-feature { margin-top: 96px; }
.bx-feature.reverse .bx-feature-media { order: 2; }
.bx-feature.reverse .bx-feature-text { order: 1; }
.bx-feature-text h3 { font-size: 30px; font-weight: normal; margin: 0 0 14px; letter-spacing: -.01em; }
.bx-feature-text p { font-size: 18px; line-height: 1.65; color: var(--bx-muted); margin: 0; }
.ink .bx-feature-text p { color: #a9b4ad; }

/* ---- Feature chips (compact grid) ------------------------------------- */
.bx-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bx-chip { background: #fff; border: 1px solid var(--bx-line); border-radius: 14px; padding: 26px 24px; box-shadow: var(--bx-shadow-sm); }
.ink .bx-chip { background: #1a1f26; border-color: rgba(255,255,255,.07); }
.bx-chip-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--bx-green-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.bx-chip-ico img { width: 36px; height: 36px; object-fit: contain; }
.bx-chip h4 { font-size: 19px; font-weight: normal; margin: 0 0 8px; }
.bx-chip p { font-size: 15px; line-height: 1.55; color: var(--bx-muted); margin: 0; }
.ink .bx-chip p { color: #a9b4ad; }

/* ---- CTA / donate band ------------------------------------------------ */
.bx-cta-band {
	background: linear-gradient(135deg, #2f9a3a 0%, #40b74c 100%); color: #fff;
	border-radius: 26px; padding: 60px 56px; text-align: center; box-shadow: var(--bx-shadow);
}
.bx-cta-band h2 { color: #fff; background: none; -webkit-text-fill-color: #fff; }
.bx-cta-band .bx-lead { color: rgba(255, 255, 255, .9); margin-left: auto; margin-right: auto; }
.bx-cta-band .bx-cta-row { justify-content: center; }
.bx-cta-band .bx-btn-primary { background: #fff; color: var(--bx-green-dark); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.bx-cta-band .bx-btn-primary:hover { background: #f2fff3; color: var(--bx-green-dark); }
.bx-cta-band .bx-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.bx-cta-band .bx-btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* funding progress */
.bx-fund { max-width: 460px; margin: 30px auto 0; }
.bx-fund-track { height: 10px; border-radius: 100px; background: rgba(0, 0, 0, .22); overflow: hidden; }
.bx-fund-fill { display: block; height: 100%; width: var(--percentage-raised, 45%); background: #fff; border-radius: 100px; transition: width 1s ease; }
.bx-fund-label { margin: 12px 0 0; font-size: 15px; color: rgba(255, 255, 255, .92); font-weight: 700; }

/* ---- Coming soon / live embed ----------------------------------------- */
.bx-embed-frame { border-radius: var(--bx-radius); overflow: hidden; background: var(--bx-panel); box-shadow: var(--bx-shadow); border: 1px solid rgba(255,255,255,.06); }
.bx-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0e1216; }
.bx-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bx-embed-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: blur(2px); }
.bx-embed-placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 16px; text-align: center; color: #cdd6cf; padding: 24px;
	background: radial-gradient(700px 340px at 50% 20%, rgba(64,183,76,.16), rgba(14,18,22,0) 70%);
}
.bx-embed-placeholder .bx-play { width: 66px; height: 66px; border-radius: 50%; background: var(--bx-green); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(64,183,76,.45); }
.bx-embed-placeholder .bx-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }
.bx-embed-placeholder h4 { font-size: 22px; font-weight: normal; color: #fff; -webkit-text-fill-color: #fff; background: none; margin: 0; }
.bx-embed-placeholder p { font-size: 15px; color: #9aa69e; margin: 0; max-width: 420px; }

/* ---- Utility ---------------------------------------------------------- */
.bx-stack-sm { margin-top: 18px; }
.bx-note { font-size: 14px; color: var(--bx-muted); margin: 14px 0 0; }
.ink .bx-note { color: #8b968f; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 991px) {
	.bx-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
	.bx-hero-grid .bx-lead { margin-left: auto; margin-right: auto; }
	.bx-hero-grid .bx-cta-row { justify-content: center; }
	.bx-products { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
	.bx-feature, .bx-feature.reverse { grid-template-columns: 1fr; gap: 28px; }
	.bx-feature.reverse .bx-feature-media, .bx-feature.reverse .bx-feature-text { order: initial; }
	.bx-feature-media { order: -1; }
	.bx-chips { grid-template-columns: 1fr; }
	.bx-h1 { font-size: 42px; }
	.bx-h2 { font-size: 32px; }
}
@media (max-width: 575px) {
	.bx-section { padding: 60px 0; }
	.bx-hero { padding: 48px 0 56px; }
	.bx-h1 { font-size: 34px; }
	.bx-h2 { font-size: 27px; }
	.bx-lead { font-size: 18px; }
	.bx-cta-band { padding: 44px 24px; }
	.bx-btn { width: 100%; justify-content: center; }
}
