/* ============================================
   Pharmbells Website - Design System & Components
   ============================================ */

/* --- Google Fonts ---
   Loaded via <link> tags in pharmbells_base.html for better Safari compatibility.
   CSS @import blocks rendering in Safari, causing blank pages on slow networks. */

/* --- CSS Custom Properties --- */
:root {
	/* Primary - Deep pharma blue */
	--pb-primary: #1B4D8E;
	--pb-primary-dark: #0F3460;
	--pb-primary-light: #E8F0FE;
	--pb-primary-rgb: 27, 77, 142;

	/* Accent - Energetic teal */
	--pb-accent: #00B894;
	--pb-accent-dark: #009B7D;
	--pb-accent-light: #E6F9F4;
	--pb-accent-rgb: 0, 184, 148;

	/* Neutrals */
	--pb-text: #1A1A2E;
	--pb-text-secondary: #4A5568;
	--pb-text-muted: #6C757D;
	--pb-bg: #FFFFFF;
	--pb-bg-light: #F8F9FC;
	--pb-bg-dark: #0F172A;
	--pb-border: #E2E8F0;

	/* Status colors */
	--pb-success: #10B981;
	--pb-error: #EF4444;
	--pb-warning: #F59E0B;

	/* Typography */
	--pb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--pb-font-display: 'Plus Jakarta Sans', var(--pb-font);

	/* Spacing — hierarchy: hero 120, major 100, minor 80 */
	--pb-section-py: 100px;
	--pb-section-py-sm: 80px;
	--pb-container-max: 1200px;
	--pb-gap: 24px;

	/* Shadows */
	--pb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--pb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
	--pb-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
	--pb-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

	/* Border radius */
	--pb-radius-sm: 6px;
	--pb-radius: 8px;
	--pb-radius-lg: 16px;
	--pb-radius-xl: 24px;

	/* Transitions */
	--pb-transition: all 0.3s ease;
}

/* --- Reset & Base --- */
.pb-page {
	font-family: var(--pb-font);
	color: var(--pb-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.pb-page *,
.pb-page *::before,
.pb-page *::after {
	box-sizing: border-box;
}

/* --- Container --- */
.pb-container {
	max-width: var(--pb-container-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Section --- */
.pb-section {
	padding: var(--pb-section-py) 0;
}

.pb-section--sm {
	padding: var(--pb-section-py-sm) 0;
}

.pb-section--light {
	background: #F8FAFC;
	background-image: radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
	background-size: 24px 24px;
}

.pb-section--tint {
	background: linear-gradient(165deg, #F8FAFC 0%, #EEF4FE 40%, #EBF8F4 100%);
}

.pb-section--dark {
	background: var(--pb-bg-dark);
	color: #FFFFFF;
}

.pb-section--primary {
	background: linear-gradient(135deg, var(--pb-primary-dark), var(--pb-primary));
	color: #FFFFFF;
}

/* --- Typography --- */
.pb-h1 {
	font-family: var(--pb-font-display);
	font-size: 3.25rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}

.pb-h2 {
	font-family: var(--pb-font-display);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}

.pb-h3 {
	font-family: var(--pb-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

.pb-h4 {
	font-family: var(--pb-font);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
}

.pb-subtitle {
	font-size: 1.25rem;
	color: var(--pb-text-secondary);
	line-height: 1.6;
	max-width: 640px;
}

.pb-section-header {
	text-align: center;
	margin-bottom: 48px;
}

.pb-section-header .pb-subtitle {
	margin: 0 auto;
}

.pb-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pb-accent);
	margin-bottom: 8px;
	display: block;
}

.pb-body-text {
	color: var(--pb-text-secondary);
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: 32px;
}

/* --- Buttons --- */
.pb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-family: var(--pb-font);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--pb-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: var(--pb-transition);
	text-decoration: none;
	line-height: 1.5;
	white-space: nowrap;
}

.pb-btn:hover {
	transform: translateY(-1px);
}

.pb-btn:active {
	transform: translateY(0);
}

.pb-btn--primary {
	background: var(--pb-accent);
	color: #FFFFFF;
	border-color: var(--pb-accent);
}

.pb-btn--primary:hover {
	background: var(--pb-accent-dark);
	border-color: var(--pb-accent-dark);
	color: #FFFFFF;
	box-shadow: 0 4px 16px rgba(var(--pb-accent-rgb), 0.35);
}

/* Subtle glow pulse on hero/CTA primary buttons */
.pb-hero .pb-btn--primary,
.pb-cta-banner .pb-btn--white {
	animation: pb-btn-glow 3s ease-in-out infinite;
}

.pb-hero .pb-btn--primary:hover,
.pb-cta-banner .pb-btn--white:hover {
	animation: none;
}

@keyframes pb-btn-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(var(--pb-accent-rgb), 0); }
	50% { box-shadow: 0 0 20px 2px rgba(var(--pb-accent-rgb), 0.15); }
}

.pb-btn--outline {
	background: transparent;
	color: var(--pb-primary);
	border-color: var(--pb-primary);
}

.pb-btn--outline:hover {
	background: var(--pb-primary);
	color: #FFFFFF;
}

.pb-btn--white {
	background: #FFFFFF;
	color: var(--pb-primary);
	border-color: #FFFFFF;
}

.pb-btn--white:hover {
	background: var(--pb-primary-light);
	border-color: var(--pb-primary-light);
}

.pb-btn--lg {
	padding: 16px 36px;
	font-size: 1.125rem;
	border-radius: var(--pb-radius-lg);
}

.pb-btn--sm {
	padding: 8px 20px;
	font-size: 0.875rem;
}

.pb-btn--full {
	width: 100%;
}

.pb-btn:disabled,
.pb-btn--loading {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.pb-btn--loading .pb-btn-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: pb-spin 0.6s linear infinite;
}

@keyframes pb-spin {
	to { transform: rotate(360deg); }
}

/* --- Cards --- */
.pb-card {
	background: var(--pb-bg);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius-lg);
	padding: 32px;
	transition: var(--pb-transition);
}

.pb-card:hover {
	box-shadow: var(--pb-shadow-md);
	border-color: transparent;
}

.pb-card--elevated {
	box-shadow: var(--pb-shadow-md);
	border-color: transparent;
}

.pb-card--elevated:hover {
	box-shadow: var(--pb-shadow-lg);
	transform: translateY(-4px);
}

.pb-card--highlight {
	border: 2px solid var(--pb-accent);
	position: relative;
}

.pb-card--light-bg {
	background: var(--pb-bg-light);
}

.pb-card--primary-bg {
	background: var(--pb-primary-light);
}

.pb-card .pb-card__text {
	color: var(--pb-text-secondary);
	margin: 0;
}

/* --- Grids --- */
.pb-grid {
	display: grid;
	gap: var(--pb-gap);
}

.pb-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.pb-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.pb-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

/* --- Forms --- */
.pb-form-group {
	margin-bottom: 20px;
}

.pb-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pb-text);
	margin-bottom: 6px;
}

.pb-form-label .pb-required {
	color: var(--pb-error);
	margin-left: 2px;
}

.pb-input,
.pb-textarea,
.pb-select {
	width: 100%;
	padding: 12px 16px;
	font-family: var(--pb-font);
	font-size: 1rem;
	color: var(--pb-text);
	background: var(--pb-bg);
	border: 1.5px solid var(--pb-border);
	border-radius: var(--pb-radius);
	transition: var(--pb-transition);
	outline: none;
}

.pb-input:focus,
.pb-textarea:focus,
.pb-select:focus {
	border-color: var(--pb-primary);
	box-shadow: 0 0 0 3px rgba(var(--pb-primary-rgb), 0.1);
}

.pb-input::placeholder,
.pb-textarea::placeholder {
	color: var(--pb-text-muted);
}

.pb-textarea {
	resize: vertical;
	min-height: 120px;
}

.pb-input--error {
	border-color: var(--pb-error);
}

.pb-form-error {
	font-size: 0.8125rem;
	color: var(--pb-error);
	margin-top: 4px;
}

.pb-form-footer {
	font-size: 0.75rem;
	color: var(--pb-text-muted);
	margin-top: 12px;
	text-align: center;
}

/* --- Badges --- */
.pb-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 50px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pb-badge--accent {
	background: var(--pb-accent-light);
	color: var(--pb-accent-dark);
}

.pb-badge--primary {
	background: var(--pb-primary-light);
	color: var(--pb-primary);
}

/* --- Toggle Switch (Pricing) --- */
.pb-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.pb-toggle__track {
	position: relative;
	width: 52px;
	height: 28px;
	background: var(--pb-border);
	border-radius: 14px;
	transition: var(--pb-transition);
}

.pb-toggle__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: #FFFFFF;
	border-radius: 50%;
	transition: var(--pb-transition);
	box-shadow: var(--pb-shadow-sm);
}

.pb-toggle--active .pb-toggle__track {
	background: var(--pb-accent);
}

.pb-toggle--active .pb-toggle__thumb {
	left: 27px;
}

.pb-toggle__label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--pb-text-muted);
}

.pb-toggle__label--active {
	color: var(--pb-text);
	font-weight: 600;
}

.pb-toggle-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

/* --- Pricing Card --- */
.pb-pricing-card {
	text-align: center;
}

.pb-pricing-card .pb-price {
	font-family: var(--pb-font-display);
	font-size: 3rem;
	font-weight: 800;
	color: var(--pb-primary);
	line-height: 1;
}

.pb-pricing-card .pb-price-period {
	font-size: 1rem;
	font-weight: 400;
	color: var(--pb-text-muted);
}

.pb-pricing-card .pb-price-annual {
	font-size: 0.875rem;
	color: var(--pb-accent);
	font-weight: 500;
	margin-top: 4px;
}

.pb-pricing-features {
	list-style: none;
	padding: 0;
	margin: 24px 0;
	text-align: left;
}

.pb-pricing-features li {
	padding: 8px 0;
	padding-left: 28px;
	position: relative;
	color: var(--pb-text-secondary);
}

.pb-pricing-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--pb-accent);
	font-weight: 700;
}

.pb-popular-banner {
	text-align: center;
	margin: -32px -32px 20px;
	padding: 8px;
	background: var(--pb-accent);
	color: #fff;
	border-radius: var(--pb-radius-lg) var(--pb-radius-lg) 0 0;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pb-plan-desc {
	color: var(--pb-text-muted);
	font-size: 0.9375rem;
	margin-bottom: 20px;
}

/* --- FAQ Accordion --- */
.pb-accordion-item {
	border-bottom: 1px solid var(--pb-border);
}

.pb-accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--pb-text);
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	font-family: var(--pb-font);
}

.pb-accordion-header::after {
	content: "+";
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--pb-text-muted);
	transition: var(--pb-transition);
}

.pb-accordion-item.active .pb-accordion-header::after {
	content: "\2212";
}

.pb-accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.pb-accordion-item.active .pb-accordion-body {
	max-height: 500px;
}

.pb-accordion-content {
	padding: 0 0 20px;
	color: var(--pb-text-secondary);
	line-height: 1.7;
}

/* --- Feature Card Icon --- */
.pb-feature-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--pb-radius-lg);
	background: var(--pb-primary-light);
	color: var(--pb-primary);
	font-size: 1.5rem;
	margin-bottom: 16px;
}

.pb-feature-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--pb-primary);
	stroke-width: 1.75;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Small inline icons for contact info etc */
.pb-icon-sm {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

.pb-icon-sm svg {
	width: 20px;
	height: 20px;
	stroke: var(--pb-primary);
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Testimonial Card --- */
.pb-testimonial {
	position: relative;
	border-left: 3px solid var(--pb-accent);
}

.pb-testimonial::before {
	content: "\201C";
	position: absolute;
	top: 20px;
	right: 24px;
	font-size: 4rem;
	line-height: 1;
	color: var(--pb-accent-light);
	font-family: Georgia, serif;
	pointer-events: none;
}

.pb-testimonial__stars {
	display: flex;
	gap: 2px;
	margin-bottom: 12px;
}

.pb-testimonial__stars svg {
	width: 18px;
	height: 18px;
	fill: #FBBF24;
	stroke: none;
}

.pb-testimonial__quote {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--pb-text-secondary);
	font-style: italic;
	margin-bottom: 20px;
}

.pb-testimonial__footer {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pb-testimonial__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pb-primary), var(--pb-accent));
	color: #FFFFFF;
	font-weight: 700;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pb-testimonial__author {
	font-weight: 600;
	color: var(--pb-text);
}

.pb-testimonial__role {
	font-size: 0.875rem;
	color: var(--pb-text-muted);
}

/* --- Steps / How it works --- */
.pb-steps {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Safari < 14.1 flexbox gap fallback */
@supports not (gap: 32px) {
	.pb-steps > * + * { margin-left: 32px; }
	.pb-hero__actions > * + * { margin-left: 16px; }
	.pb-navbar__links > * + * { margin-left: 32px; }
	.pb-testimonial__footer > * + * { margin-left: 12px; }
	.pb-toggle-container > * + * { margin-left: 16px; }
	.pb-mockup__dots > * + * { margin-left: 6px; }
	.pb-mockup__bars > * + * { margin-left: 8px; }
}

.pb-step {
	flex: 1;
	text-align: center;
	position: relative;
}

.pb-step::after {
	content: "";
	position: absolute;
	top: 24px;
	left: calc(50% + 36px);
	width: calc(100% - 72px);
	height: 2px;
	background: linear-gradient(90deg, var(--pb-accent), var(--pb-border));
	pointer-events: none;
}

.pb-step:last-child::after {
	display: none;
}

.pb-step__number {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pb-accent);
	color: #FFFFFF;
	font-family: var(--pb-font-display);
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.pb-step__title {
	font-weight: 600;
	margin-bottom: 8px;
}

.pb-step__desc {
	font-size: 0.9375rem;
	color: var(--pb-text-secondary);
}

/* --- CTA Banner --- */
.pb-cta-banner {
	text-align: center;
	padding: 64px 24px;
	border-radius: var(--pb-radius-xl);
	background: linear-gradient(135deg, var(--pb-primary-dark), var(--pb-primary));
	color: #FFFFFF;
	position: relative;
	overflow: hidden;
}

.pb-cta-banner::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.pb-cta-banner::after {
	content: "";
	position: absolute;
	bottom: -30%;
	left: -5%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(var(--pb-accent-rgb), 0.1);
}

.pb-cta-banner .pb-h2 {
	color: #FFFFFF;
	position: relative;
	z-index: 1;
}

.pb-cta-banner .pb-subtitle {
	color: rgba(255, 255, 255, 0.85);
	margin: 0 auto 24px;
	position: relative;
	z-index: 1;
}

.pb-cta-banner .pb-btn {
	position: relative;
	z-index: 1;
}

/* --- Alert Messages --- */
.pb-alert {
	padding: 16px 20px;
	border-radius: var(--pb-radius);
	font-size: 0.9375rem;
	margin-bottom: 20px;
	display: none;
}

.pb-alert--success {
	background: #ECFDF5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}

.pb-alert--error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.pb-alert.visible {
	display: block;
}

/* --- Success Checkmark (Thank-you page) --- */
.pb-success-check {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--pb-accent-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	animation: pb-check-pop 0.5s ease;
}

.pb-success-check svg {
	width: 40px;
	height: 40px;
	stroke: var(--pb-accent);
	stroke-width: 3;
	fill: none;
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	animation: pb-check-draw 0.6s ease 0.3s forwards;
}

@keyframes pb-check-pop {
	0% { transform: scale(0); }
	50% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

@keyframes pb-check-draw {
	to { stroke-dashoffset: 0; }
}

/* --- Sticky Header (Glassmorphism) --- */
.pb-header {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(226, 232, 240, 0.6);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* --- Custom Navbar --- */
.pb-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
}

.pb-navbar__logo {
	font-family: var(--pb-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--pb-primary);
	text-decoration: none;
}

.pb-navbar__logo span {
	color: var(--pb-accent);
}

.pb-navbar__links {
	display: flex;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-navbar__link {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--pb-text-secondary);
	text-decoration: none;
	transition: var(--pb-transition);
	position: relative;
}

.pb-navbar__link:hover {
	color: var(--pb-primary);
}

.pb-navbar__link--active {
	color: var(--pb-primary);
	font-weight: 600;
}

.pb-navbar__link--active::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--pb-accent);
	border-radius: 1px;
}

.pb-navbar__mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.pb-navbar__mobile-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--pb-text);
	margin: 5px 0;
	transition: var(--pb-transition);
}

/* --- Footer --- */
.pb-footer {
	background: var(--pb-bg-dark);
	color: rgba(255, 255, 255, 0.7);
	padding: 64px 0 32px;
}

.pb-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 48px;
}

.pb-footer__brand {
	font-family: var(--pb-font-display);
	font-size: 1.5rem;
	font-weight: 800;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.pb-footer__brand span {
	color: var(--pb-accent);
}

.pb-footer__desc {
	font-size: 0.9375rem;
	line-height: 1.6;
	max-width: 300px;
}

.pb-footer__title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #FFFFFF;
	margin-bottom: 16px;
}

.pb-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pb-footer__links li {
	margin-bottom: 10px;
}

.pb-footer__links a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: var(--pb-transition);
}

.pb-footer__links a:hover {
	color: var(--pb-accent);
}

.pb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 24px;
	font-size: 0.8125rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
}

.pb-footer__bottom a {
	color: inherit;
	text-decoration: underline;
}

/* --- Hero --- */
.pb-hero {
	padding: 120px 0 100px;
	background:
		linear-gradient(165deg,
			rgba(248, 250, 252, 1) 0%,
			rgba(232, 240, 254, 0.7) 35%,
			rgba(230, 249, 244, 0.5) 65%,
			rgba(248, 250, 252, 1) 100%);
	position: relative;
	overflow: hidden;
}

.pb-hero::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: rgba(var(--pb-primary-rgb), 0.04);
}

.pb-hero::after {
	content: "";
	position: absolute;
	bottom: -30%;
	right: 10%;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: rgba(var(--pb-accent-rgb), 0.06);
}

.pb-hero > .pb-container {
	display: flex;
	align-items: center;
	gap: 64px;
}

.pb-hero__content {
	position: relative;
	z-index: 1;
	max-width: 600px;
	flex-shrink: 0;
}

.pb-hero__actions {
	display: flex;
	gap: 16px;
	margin-top: 32px;
	flex-wrap: wrap;
}

/* Hero visual — CSS-only abstract dashboard mockup */
.pb-hero__visual {
	position: relative;
	z-index: 1;
	flex: 1;
	min-width: 0;
}

.pb-hero__mockup {
	background: #FFFFFF;
	border-radius: var(--pb-radius-xl);
	box-shadow:
		0 8px 32px rgba(var(--pb-primary-rgb), 0.08),
		0 20px 60px rgba(0, 0, 0, 0.1),
		0 0 0 1px rgba(var(--pb-primary-rgb), 0.04);
	padding: 24px;
	position: relative;
	overflow: hidden;
	animation: pb-float 6s ease-in-out infinite;
}

@keyframes pb-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

.pb-hero__mockup::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 48px;
	background: var(--pb-bg-light);
	border-bottom: 1px solid var(--pb-border);
	border-radius: var(--pb-radius-xl) var(--pb-radius-xl) 0 0;
}

.pb-mockup__dots {
	display: flex;
	gap: 6px;
	position: relative;
	z-index: 1;
	margin-bottom: 24px;
	padding-top: 4px;
}

.pb-mockup__dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.pb-mockup__dots span:nth-child(1) { background: #EF4444; }
.pb-mockup__dots span:nth-child(2) { background: #F59E0B; }
.pb-mockup__dots span:nth-child(3) { background: #10B981; }

.pb-mockup__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pb-mockup__stat {
	background: var(--pb-bg-light);
	border-radius: var(--pb-radius);
	padding: 16px;
	border: 1px solid var(--pb-border);
}

.pb-mockup__stat-label {
	font-size: 0.6875rem;
	color: var(--pb-text-muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pb-mockup__stat-value {
	font-family: var(--pb-font-display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--pb-primary);
}

.pb-mockup__stat-value--accent {
	color: var(--pb-accent);
}

.pb-mockup__bar-chart {
	grid-column: 1 / -1;
	background: var(--pb-bg-light);
	border-radius: var(--pb-radius);
	padding: 16px;
	border: 1px solid var(--pb-border);
}

.pb-mockup__bar-chart-label {
	font-size: 0.6875rem;
	color: var(--pb-text-muted);
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pb-mockup__bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 64px;
}

.pb-mockup__bar {
	flex: 1;
	border-radius: 4px 4px 0 0;
	min-height: 8px;
}

.pb-mockup__bar--primary { background: var(--pb-primary); opacity: 0.7; }
.pb-mockup__bar--accent { background: var(--pb-accent); opacity: 0.7; }
.pb-mockup__bar--light { background: var(--pb-primary-light); }

/* --- Two Column Layout (forms) --- */
.pb-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: start;
}

/* --- Contact Page --- */
.pb-contact-item {
	margin-bottom: 24px;
}

.pb-contact-item__label {
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--pb-text);
	display: flex;
	align-items: center;
	gap: 6px;
}

.pb-contact-item__value {
	color: var(--pb-text-secondary);
}

.pb-contact-item__value a {
	color: var(--pb-primary);
	text-decoration: none;
}

.pb-contact-item__value a:hover {
	text-decoration: underline;
}

/* --- Demo Page — Form Card --- */
.pb-form-card {
	background: var(--pb-bg);
	border-radius: var(--pb-radius-lg);
	padding: 36px;
	box-shadow: var(--pb-shadow-md);
	border: 1px solid var(--pb-border);
}

/* --- Demo Page — Expect List --- */
.pb-expect-item {
	padding: 16px 0;
	padding-left: 36px;
	position: relative;
	color: var(--pb-text-secondary);
	border-bottom: 1px solid var(--pb-border);
}

.pb-expect-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pb-expect-item:first-child {
	padding-top: 0;
}

.pb-expect-item__check {
	position: absolute;
	left: 0;
	top: 18px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pb-accent-light);
	color: var(--pb-accent);
	font-weight: 700;
	font-size: 0.75rem;
	border-radius: 50%;
}

.pb-expect-item:first-child .pb-expect-item__check {
	top: 2px;
}

.pb-expect-item strong {
	display: block;
	color: var(--pb-text);
	margin-bottom: 2px;
}

.pb-expect-item__desc {
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* --- Thank-you Page --- */
.pb-thankyou-section {
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.pb-thankyou-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.pb-next-step {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	text-align: left;
}

.pb-next-step .pb-step__number {
	width: 36px;
	height: 36px;
	min-width: 36px;
	font-size: 0.875rem;
}

.pb-next-step__text strong {
	display: block;
	color: var(--pb-text);
}

.pb-next-step__text p {
	color: var(--pb-text-muted);
	margin: 4px 0 0;
	font-size: 0.9375rem;
}

/* --- Add-on rates table --- */
.pb-addon-table {
	width: 100%;
	border-collapse: collapse;
}

.pb-addon-table th,
.pb-addon-table td {
	padding: 14px 20px;
	text-align: left;
	border-bottom: 1px solid var(--pb-border);
}

.pb-addon-table th {
	font-weight: 600;
	color: var(--pb-text);
	background: var(--pb-bg-light);
}

.pb-addon-table td {
	color: var(--pb-text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.pb-h1 {
		font-size: 2.5rem;
	}

	.pb-h2 {
		font-size: 1.875rem;
	}

	.pb-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.pb-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.pb-hero__visual {
		display: none;
	}

	.pb-hero > .pb-container {
		display: block;
	}

	.pb-hero__content {
		max-width: 720px;
	}
}

@media (max-width: 768px) {
	:root {
		--pb-section-py: 64px;
		--pb-section-py-sm: 48px;
	}

	.pb-h1 {
		font-size: 2rem;
	}

	.pb-h2 {
		font-size: 1.625rem;
	}

	.pb-grid--2,
	.pb-grid--3,
	.pb-grid--4 {
		grid-template-columns: 1fr;
	}

	.pb-two-col {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.pb-form-card {
		padding: 24px;
	}

	.pb-steps {
		flex-direction: column;
		gap: 24px;
	}

	.pb-step::after {
		display: none;
	}

	.pb-hero {
		padding: 80px 0 64px;
	}

	.pb-hero__actions {
		flex-direction: column;
	}

	.pb-hero__actions .pb-btn {
		width: 100%;
	}

	.pb-navbar__links {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--pb-bg);
		flex-direction: column;
		padding: 24px;
		gap: 16px;
		box-shadow: var(--pb-shadow-lg);
		border-radius: 0 0 var(--pb-radius-lg) var(--pb-radius-lg);
	}

	.pb-navbar__links.active {
		display: flex;
	}

	.pb-navbar__link--active::after {
		display: none;
	}

	.pb-navbar__mobile-toggle {
		display: block;
	}

	.pb-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pb-cta-banner {
		padding: 48px 20px;
	}
}

@media (max-width: 480px) {
	.pb-h1 {
		font-size: 1.75rem;
	}

	.pb-container {
		padding: 0 16px;
	}

	.pb-card {
		padding: 24px;
	}

	.pb-pricing-card .pb-price {
		font-size: 2.5rem;
	}

	.pb-popular-banner {
		margin: -24px -24px 20px;
	}
}

/* --- Utilities --- */
.pb-text-center { text-align: center; }
.pb-text-left { text-align: left; }
.pb-text-secondary { color: var(--pb-text-secondary); }
.pb-text-muted { color: var(--pb-text-muted); }
.pb-text-primary { color: var(--pb-primary); }
.pb-text-sm { font-size: 0.9375rem; }
.pb-text-xs { font-size: 0.75rem; }
.pb-text-lg { font-size: 1.125rem; }
.pb-fw-600 { font-weight: 600; }
.pb-m-0 { margin: 0; }
.pb-mt-0 { margin-top: 0; }
.pb-mt-1 { margin-top: 8px; }
.pb-mt-2 { margin-top: 16px; }
.pb-mt-3 { margin-top: 24px; }
.pb-mt-4 { margin-top: 32px; }
.pb-mb-0 { margin-bottom: 0; }
.pb-mb-1 { margin-bottom: 8px; }
.pb-mb-2 { margin-bottom: 16px; }
.pb-mb-3 { margin-bottom: 24px; }
.pb-mb-4 { margin-bottom: 32px; }
.pb-mb-5 { margin-bottom: 40px; }
.pb-pt-5 { padding-top: 40px; }
.pb-p-0 { padding: 0; }
.pb-mx-auto { margin-left: auto; margin-right: auto; }
.pb-max-w-md { max-width: 600px; }
.pb-max-w-lg { max-width: 720px; }
.pb-max-w-xl { max-width: 800px; }
.pb-flex { display: flex; }
.pb-flex-center { display: flex; align-items: center; justify-content: center; }
.pb-flex-wrap { flex-wrap: wrap; }
.pb-gap-2 { gap: 16px; }
.pb-gap-3 { gap: 24px; }
.pb-list-none { list-style: none; }

/* Hide default Frappe navbar/footer — suppressed via template blocks,
   CSS fallback targets body-level siblings just in case */
.navbar:not(.pb-navbar),
.web-footer,
.page-breadcrumbs {
	display: none !important;
}

.pb-page .page-content-wrapper {
	padding: 0;
}

.pb-page main.container {
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* Hide reCAPTCHA badge - we disclose in form footer */
.grecaptcha-badge {
	visibility: hidden;
}
