/**
 * TBB PhD Coaching Landing Page — styles.
 * Everything is scoped under .tbb-lp so it never leaks into the surrounding theme.
 * Uses CSS variables for the brand system.
 */
.tbb-lp {
	--tbb-grad: linear-gradient(135deg, #36B3F7, #2F92F2, #2564EB, #2056DF);
	--tbb-grad-lr: linear-gradient(90deg, #36B3F7, #2056DF);
	--tbb-solid: #2564EB;
	--tbb-deep: #2056DF;
	--tbb-light-blue: #EEF5FF;
	--tbb-border: #E2EAF4;
	--tbb-text-dark: #1A1A2E;
	--tbb-text: #444;
	--tbb-muted: #666;
	--tbb-alt-bg: #F7F9FC;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--tbb-text);
	font-size: 16px;
	line-height: 1.7;
	background: #ffffff;
}
.tbb-lp * { box-sizing: border-box; }

/* ---- Layout ---- */
.tbb-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.tbb-section { padding: 44px 0; }
.tbb-section.tbb-alt { background: var(--tbb-alt-bg); }
/* Where two same-background (alt) sections touch, there's no color divider, so
   the two paddings read as one oversized void. Collapse the touching edges. */
.tbb-section.tbb-alt + .tbb-section.tbb-alt { padding-top: 24px; }
.tbb-section.tbb-alt:has(+ .tbb-section.tbb-alt) { padding-bottom: 24px; }
.tbb-center { text-align: center; }

/* ---- Typography ---- */
.tbb-h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	color: var(--tbb-text-dark);
	margin: 0 0 18px;
}
.tbb-h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 600;
	font-size: 24px;
	line-height: 1.2;
	color: var(--tbb-text-dark);
	margin: 0 0 16px;
}
.tbb-sub { font-size: 17px; color: var(--tbb-muted); max-width: 680px; margin: 0 auto 8px; }
.tbb-muted-note { color: #777; font-size: 14px; margin-top: 28px; }
.tbb-lp a { color: var(--tbb-solid); }

/* Gradient text utility (background-clip technique) */
.tbb-gradient-text {
	background: var(--tbb-grad-lr);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--tbb-solid); /* fallback */
}

/* ---- Buttons ---- */
.tbb-btn {
	display: inline-block;
	font-family: inherit;
	font-weight: 500;
	font-size: 16px;
	border-radius: 50px;
	padding: 14px 32px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
/* Scoped under `.tbb-lp a` so this white text beats the generic
   `.tbb-lp a { color: var(--tbb-solid) }` link rule (higher specificity). */
.tbb-lp a.tbb-btn-primary {
	/* !important forces OUR single clean gradient to win. The theme stacks its
	   own (opposite-direction) button gradient under ours, and the two layers
	   blended into a muddy left-dark / right-light cross effect. background-image
	   with a single layer guarantees no second gradient can stack. */
	background-color: transparent !important;
	background-image: linear-gradient(90deg, #36B3F7, #2056DF) !important;
	color: #fff;
	box-shadow: 0 15px 15px -15px rgba(37,100,235,0.6);
}
.tbb-btn-primary:hover { filter: brightness(0.95); transform: scale(1.02); color: #fff; }
/* Ghost / secondary: white bg, gradient border + gradient text */
.tbb-btn-ghost {
	background: #fff;
	border: 2px solid transparent;
	background-image: linear-gradient(#fff, #fff), var(--tbb-grad-lr);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	color: var(--tbb-solid);
	font-weight: 600;
}
.tbb-btn-ghost:hover { transform: scale(1.02); }
.tbb-btn-white { background: #fff; color: var(--tbb-solid); font-weight: 700; }
.tbb-btn-white:hover { transform: scale(1.02); filter: brightness(0.97); }

/* Hero pulse — plays once on load then stops */
@keyframes tbb-pulse {
	0%   { box-shadow: 0 6px 18px rgba(37,100,235,0.25), 0 0 0 0 rgba(47,146,242,0.45); }
	70%  { box-shadow: 0 6px 18px rgba(37,100,235,0.25), 0 0 0 16px rgba(47,146,242,0); }
	100% { box-shadow: 0 6px 18px rgba(37,100,235,0.25), 0 0 0 0 rgba(47,146,242,0); }
}
.tbb-pulse { animation: tbb-pulse 1.6s ease-out 1; }

/* ---- Trust bar (the inner layout is shared by the hero trust strip) ---- */
.tbb-trustbar-inner {
	max-width: 1100px;
	margin: 0 auto;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 500;
}
.tbb-tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tbb-tb-item svg { stroke: #fff; }

/* Trust-bar track. Desktop: static, centered, duplicate set hidden. */
.tbb-tb-track { display: flex; align-items: center; gap: 28px; }
.tbb-tb-dup { display: none; }

@keyframes tbb-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); } /* -50% = exactly one item set → seamless loop */
}

/* Mobile: not enough room for all four badges on one line, so scroll them. */
@media (max-width: 600px) {
	.tbb-trustbar-inner { justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; height: 40px; }
	.tbb-tb-track {
		width: max-content;
		flex-wrap: nowrap;
		gap: 0;
		animation: tbb-marquee 18s linear infinite;
	}
	/* Equal right margin on every item (incl. the last of each set) keeps the
	   two halves identical, so translateX(-50%) loops with no visible jump. */
	.tbb-tb-track .tbb-tb-item { margin-right: 32px; }
	.tbb-tb-dup { display: inline-flex; }
	/* Pause while the user is touching/hovering the bar. */
	.tbb-herobar:hover .tbb-tb-track,
	.tbb-herobar:active .tbb-tb-track { animation-play-state: paused; }
}

/* Accessibility: motion-sensitive users get a static, wrapped bar (no scroll). */
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
	.tbb-trustbar-inner { height: auto; min-height: 40px; overflow: visible; justify-content: center; flex-wrap: wrap; padding: 8px 16px; }
	.tbb-tb-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 12px 22px; animation: none; }
	.tbb-tb-track .tbb-tb-item { margin-right: 0; }
	.tbb-tb-dup { display: none; }
}

/* ---- Section 2: Hero ---- */
.tbb-hero { padding: 64px 0 56px; background: #E3EDFD; }
.tbb-hero-inner { text-align: center; }
.tbb-socialproof { color: #777; font-size: 14px; margin: 22px 0 0; }
.tbb-hero-cta { text-align: center; margin-top: 28px; }
/* Hero CTA: wider, chunkier, more button-like (less pill, squarer corners) */
.tbb-hero-cta .tbb-btn {
	min-width: 300px;
	max-width: 100%;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 700;
	border-radius: 12px;
}
@media (max-width: 480px) {
	.tbb-hero-cta .tbb-btn { min-width: 0; width: 100%; padding: 12px 20px; }
}
/* Trust strip below the hero CTA. Sticks to the top of the viewport once the
   user scrolls past it. (Full-width is handled by the theme's page layout.) */
.tbb-herobar {
	background: var(--tbb-grad-lr);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 999;
}
/* Keep the sticky strip clear of the WordPress admin bar for logged-in users. */
body.admin-bar .tbb-herobar { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .tbb-herobar { top: 46px; }
}

/* ---- Section 3: Steps ---- */
.tbb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tbb-step { text-align: center; position: relative; }
.tbb-step-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; display: block; line-height: 1; }
.tbb-step-icon { display: inline-flex; color: var(--tbb-solid); margin: 10px 0 4px; }
.tbb-step-title { font-size: 19px; color: var(--tbb-text-dark); margin: 8px 0 6px; font-weight: 700; }
.tbb-step-desc { color: var(--tbb-muted); font-size: 15px; margin: 0; }

/* ---- Cards (shared) ---- */
.tbb-card {
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: 14px;
	padding: 1.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tbb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(37,100,235,0.10); }

/* ---- Section 4: Feature grid ---- */
.tbb-feature-grid {
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 32px;
}
.tbb-feature-grid li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--tbb-text); }
.tbb-feature-grid li svg { flex: 0 0 auto; margin-top: 2px; }

/* ---- Section 5: Pricing ---- */
.tbb-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 32px;
	align-items: stretch;
}
.tbb-price-card { display: flex; flex-direction: column; position: relative; }
.tbb-price-name { font-size: 20px; font-weight: 700; color: var(--tbb-text-dark); margin: 0 0 6px; }
.tbb-price { font-size: 30px; font-weight: 700; margin-bottom: 14px; font-family: 'Playfair Display', serif; }
.tbb-price-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.tbb-price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin-bottom: 10px; color: var(--tbb-text); }
.tbb-price-list li svg { flex: 0 0 auto; margin-top: 2px; }
.tbb-price-card .tbb-btn { width: 100%; text-align: center; margin-top: auto; padding-top: 16px; padding-bottom: 16px; font-size: 16px; }

/* Standard = Most Popular: gradient border + badge */
.tbb-popular {
	border: 2px solid transparent;
	background-image: linear-gradient(#fff, #fff), var(--tbb-grad-lr);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}
.tbb-popular-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tbb-grad-lr);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 16px;
	border-radius: 50px;
	white-space: nowrap;
}

/* Card 5 — Customise Your Plan: gradient bg, larger, spans full bottom row */
.tbb-custom-card {
	grid-column: 1 / -1;
	background: var(--tbb-grad);
	color: #fff;
	border-radius: 16px;
	padding: 2.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tbb-custom-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,100,235,0.25); }
.tbb-custom-badge {
	display: inline-block;
	background: rgba(255,255,255,0.2);
	border: 1px solid rgba(255,255,255,0.5);
	color: #fff;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 6px 16px;
	border-radius: 50px;
	margin-bottom: 14px;
}
.tbb-custom-headline { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.tbb-custom-sub { color: rgba(255,255,255,0.92); max-width: 640px; margin: 0 auto 22px; font-size: 15px; }
.tbb-price-list-light {
	max-width: 760px;
	margin: 0 auto 24px;
	text-align: left;
	flex: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 40px;
}
.tbb-price-list-light li { color: #fff; }
.tbb-custom-card .tbb-btn-white { margin-top: 0; }
.tbb-custom-note { color: rgba(255,255,255,0.85); font-size: 13px; margin: 12px 0 0; }

/* Pay-later reassurance banner */
.tbb-pay-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--tbb-light-blue);
	border: 1px solid var(--tbb-solid);
	color: var(--tbb-deep);
	border-radius: 12px;
	padding: 18px 24px;
	margin-top: 40px;
	font-weight: 500;
	text-align: center;
}
.tbb-pay-banner svg { stroke: var(--tbb-deep); flex: 0 0 auto; }

/* ---- Section 7: Trust columns ---- */
.tbb-trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.tbb-trust-col { text-align: center; }
.tbb-trust-icon { display: inline-flex; color: var(--tbb-solid); margin-bottom: 10px; }
.tbb-trust-icon svg { width: 28px; height: 28px; }

/* ---- Section 8: Form ---- */
/* scroll-margin-top offsets the CTA jump so the form heading isn't hidden
   under the 40px sticky trust strip when a "Get started" button is clicked. */
.tbb-form-section { background: linear-gradient(180deg, #EEF5FF, #ffffff); scroll-margin-top: 56px; }
.tbb-micro-badges { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 18px 0 30px; }
.tbb-micro-badges span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--tbb-muted); font-weight: 500; }
.tbb-micro-badges svg { stroke: var(--tbb-solid); }
#tbb-forminator-embed {
	max-width: none;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: 14px;
	padding: 2rem;
	box-shadow: 0 8px 24px rgba(37,100,235,0.08);
	text-align: left;
}

/* ---- FAQ (native <details> accordion — no JS, fully crawlable) ---- */
.tbb-faq { max-width: 820px; margin: 32px auto 0; }
.tbb-faq-item {
	background: #fff;
	border: 1px solid var(--tbb-border);
	border-radius: 12px;
	margin-bottom: 14px;
	overflow: hidden;
}
.tbb-faq-item summary {
	cursor: pointer;
	padding: 18px 48px 18px 22px;
	font-weight: 700;
	color: var(--tbb-text-dark);
	font-size: 17px;
	position: relative;
	list-style: none;
}
.tbb-faq-item summary::-webkit-details-marker { display: none; }
.tbb-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: var(--tbb-solid);
}
.tbb-faq-item[open] summary::after { content: '\2212'; } /* minus sign */
.tbb-faq-a { padding: 0 22px 20px; color: var(--tbb-muted); font-size: 15px; }

/* ---- Scroll reveal (IntersectionObserver) ---- */
/* Hidden initial state only applies once JS has confirmed it is running
   (root gets .tbb-js). Without JS, sections stay fully visible — no blank page. */
.tbb-lp.tbb-js .tbb-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tbb-lp.tbb-js .tbb-reveal.tbb-visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
	.tbb-h1 { font-size: 22px; }
	.tbb-h2 { font-size: 18px; }
	.tbb-section { padding: 40px 0; }
	.tbb-steps,
	.tbb-trust-cols,
	.tbb-pricing-grid { grid-template-columns: 1fr; }
	.tbb-feature-grid { grid-template-columns: 1fr; }
	.tbb-price-list-light { grid-template-columns: 1fr; max-width: 360px; }
}
