/* Bump and Beyond doodles (gated by bb_doodles_on(); see inc/doodles.php).
   Inline SVG line doodles in brand brown + coral. Decorative only. */

.bb-dd-host { position: relative; }
.bb-dd {
	position: absolute;
	display: block;
	width: var(--dd-w, 56px);
	height: var(--dd-w, 56px);
	pointer-events: none;
	z-index: 2;
	transform: rotate(var(--dd-r, 0deg));
	opacity: .9;
}
.bb-dd svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bb-dd path {
	fill: none;
	stroke: var(--dd-ink, #4A2F27);
	stroke-width: var(--sw, 2.5);
	stroke-linecap: round;
	stroke-linejoin: round;
}
.bb-dd path.a { stroke: var(--dd-acc, #E07A5F); }

/* Ink-in: each stroke draws in turn. Hidden start state exists only while JS has marked it. */
.bb-dd path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.bb-dd[data-dd="wait"] path { stroke-dashoffset: 1; }
.bb-dd-anim .bb-dd[data-dd="in"] path {
	transition: stroke-dashoffset 700ms cubic-bezier(.65, 0, .35, 1);
	transition-delay: calc(var(--dd-d, 0ms) + var(--k, 0) * 110ms);
}
.bb-dd-static .bb-dd path { stroke-dashoffset: 0 !important; transition: none !important; }
.bb-dd-note { transition: opacity 500ms ease; transition-delay: calc(var(--dd-d, 0ms) + 500ms); }
.bb-dd[data-dd="wait"] .bb-dd-note { opacity: 0; }

/* ---------- Home hero: around the dashboard mockup ---------- */
.bb-dd-hero-a { --dd-w: 64px; --sw: 2.2; --dd-r: -14deg; top: 4px; left: -6px; }
.bb-dd-hero-b { --dd-w: 38px; --sw: 3.4; top: 6px; right: 2%; }
.bb-dd-hero-c { --dd-w: 58px; --sw: 2.4; --dd-r: 22deg; bottom: -34px; right: 0; }
@media (max-width: 767px) {
	.bb-dd-hero-a { --dd-w: 46px; --sw: 3; top: -6px; left: 0; }
	.bb-dd-hero-b { --dd-w: 30px; --sw: 4.2; top: 0; right: 4px; }
	.bb-dd-hero-c { --dd-w: 44px; --sw: 3.2; bottom: -30px; right: 6px; }
}

/* Empathy band: piggy bank beside the heading */
.bb-dd-side { --dd-w: 92px; --sw: 1.6; --dd-r: 8deg; top: 0; right: 0; }
@media (max-width: 900px) { .bb-dd-side { --dd-w: 48px; --sw: 2.9; top: -18px; right: 8px; } }

/* Step cards: a small doodle in the corner */
.bb-dd-step { --dd-w: 46px; --sw: 3; --dd-r: 10deg; top: -10px; right: 0; }
@media (max-width: 767px) { .bb-dd-step { --dd-w: 38px; --sw: 3.6; top: -4px; } }

/* Heading underline */
.bb-dd-u { position: relative; white-space: nowrap; isolation: isolate; }
.bb-dd-u .bb-dd-line {
	position: absolute;
	left: -.04em;
	right: -.04em;
	top: auto;
	bottom: -.16em;
	width: auto;
	height: .22em;
	transform: none;
	z-index: -1;
}
/* The underline is stretched to the word, so it keeps a fixed line width and wipes in instead of drawing. */
.bb-dd-u .bb-dd-line path { stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-dasharray: none; stroke-dashoffset: 0 !important; }
.bb-dd-line[data-dd="wait"] { clip-path: inset(0 100% 0 0); }
.bb-dd-anim .bb-dd-line[data-dd="in"] { clip-path: inset(0 0 0 0); transition: clip-path 800ms cubic-bezier(.65, 0, .35, 1) var(--dd-d, 0ms); }

/* Pricing: curly "start here" arrow pointing back at the free card's button */
.bb-dd-start { --sw: 3.4; width: 104px; height: 62px; top: 50%; left: 8.75rem; margin-top: -44px; transform: rotate(-6deg); }
.bb-dd-start svg { transform: scaleX(-1); }
.bb-dd-note {
	position: absolute;
	left: 70px;
	top: -26px;
	font-family: var(--bb-font-display, 'Fraunces', Georgia, serif);
	font-style: italic;
	font-weight: 500;
	font-size: 1.375rem;
	line-height: 1;
	color: #B04A30;
	white-space: nowrap;
	transform: rotate(-10deg);
}
@media (max-width: 359px) { .bb-dd-start { display: none; } }

/* Featured card: a sparkle on the corner */
.bb-dd-card { --dd-w: 40px; --sw: 3.4; top: -18px; right: -12px; }
@media (max-width: 767px) { .bb-dd-card { right: 4px; } }

/* Page heroes: doodles to the right of the heading */
.bb-dd-pg { --dd-w: 104px; --sw: 1.5; --dd-r: -8deg; top: 50%; right: 4%; margin-top: -52px; }
.bb-dd-pg2 { --dd-w: 40px; --sw: 3.4; --dd-r: 12deg; top: 50%; right: calc(4% + 104px); margin-top: -70px; }
@media (max-width: 1100px) { .bb-dd-pg { right: 0; } .bb-dd-pg2 { right: 96px; } }
@media (max-width: 900px) {
	.bb-dd-pg { --dd-w: 44px; --sw: 3.2; top: -46px; right: 0; margin-top: 0; }
	.bb-dd-pg2 { --dd-w: 24px; --sw: 5; top: -40px; right: 52px; margin-top: 0; }
}

/* How It Works illustration cards */
.bb-dd-illus { --dd-w: 48px; --sw: 2.9; --dd-r: -12deg; top: -24px; left: -22px; }
@media (max-width: 767px) { .bb-dd-illus { --dd-w: 40px; --sw: 3.4; top: -20px; left: -6px; } }

/* Footer: a quiet row of tiny doodles */
.bb-dd-row {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 22px 30px;
	margin-bottom: var(--bb-space-7, 3rem);
	--dd-ink: #FDE1D6;
	--dd-acc: #E8957D;
}
.bb-dd-row .bb-dd { position: relative; --dd-w: 34px; --sw: 3.4; opacity: .7; }
.bb-dd-row .bb-dd:nth-child(odd) { --dd-r: -8deg; }
.bb-dd-row .bb-dd:nth-child(even) { --dd-r: 9deg; }
@media (max-width: 767px) { .bb-dd-row { gap: 14px 14px; } .bb-dd-row .bb-dd { --dd-w: 26px; --sw: 4.2; } }

.bb-dd-static .bb-dd-line { clip-path: none !important; transition: none !important; }

@media print { .bb-dd, .bb-dd-row { display: none !important; } }
