/* ============================================
   CUSTOM DATABASE PAGE - Blueprint Design
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.custom-hero {
	padding-top: var(--space-16);
	padding-bottom: 0;
	text-align: left;
	position: relative;
	overflow: hidden;
	background: transparent;
	border-bottom: 1px solid var(--border-default);
}

.custom-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06));
	pointer-events: none;
	z-index: 2;
}

.custom-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-16);
	align-items: end;
}

.custom-hero-text {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: var(--space-4);
	padding-bottom: var(--space-16);
	align-self: end;
}

/* Custom Badge */
.custom-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding: 4px 10px;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: var(--radius-pill);
	margin-bottom: var(--space-4);
	width: fit-content;
}

.custom-badge span {
	font-size: 11px;
	font-weight: 600;
	color: var(--blue-400);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Hero Header */
.custom-hero-header {
	max-width: 640px;
	margin-bottom: var(--space-6);
}

.custom-hero-header h1 {
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 700;
	letter-spacing: var(--letter-spacing-tighter);
	line-height: 1.15;
	color: var(--text-primary);
	margin-bottom: var(--space-5);
}

.custom-hero-header p {
	font-size: clamp(1rem, 1.5vw, var(--font-size-lg));
	color: var(--text-secondary);
	line-height: var(--line-height-loose);
	max-width: 540px;
	margin: 0;
}

/* Hero CTA Buttons */
.custom-hero-cta {
	display: flex;
	gap: var(--space-4);
	align-items: center;
	margin-bottom: var(--space-6);
}

/* Database logos */
.custom-hero-logos {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	opacity: 0.5;
}

.custom-hero-logos img {
	height: 20px;
	width: auto;
}

/* SQL Editor Mockup */
.custom-hero-mockup {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	position: relative;
	align-self: end;
}

/* Custom DB hero overrides for sql-mockup (base styles in marketing.css) */
.custom-hero-mockup .sql-mockup {
	max-width: 480px;
	border-radius: 12px 12px 0 0;
	border-bottom: none;
}

.custom-hero-mockup .sql-mockup-body {
	min-height: 280px;
}


/* ============================================
   CUSTOM INTELLIGENCE SECTION - Blueprint
   ============================================ */
#custom-intelligence-section {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

#custom-intelligence-section .section-container {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

#custom-intelligence-section .custom-intelligence-header {
	padding: var(--space-16) 0 var(--space-8);
}

#custom-intelligence-section .custom-intelligence-header .twocol-header {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-12);
	padding-right: var(--space-12);
}

#custom-intelligence-section .custom-intelligence-header .sp-section-label,
#custom-intelligence-section .custom-intelligence-header h2,
#custom-intelligence-section .custom-intelligence-header p {
	text-align: center;
}

#custom-intelligence-section .custom-intelligence-blueprint {
	border-top: 1px solid var(--border-default);
	margin-bottom: 0;
	--bp-rail-extend-top: -1px;
}

#custom-intelligence-section .custom-intelligence-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	position: relative;
	margin-bottom: 0;
}

#custom-intelligence-section .custom-intelligence-grid::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 1px;
	background: var(--border-default);
	pointer-events: none;
}

#custom-intelligence-section .custom-intelligence-content,
#custom-intelligence-section .custom-intelligence-mockup {
	padding: var(--space-12);
	padding-bottom: 0;
}

#custom-intelligence-section .custom-intelligence-mockup {
	display: flex;
	align-items: center;
}

#custom-intelligence-section .custom-intelligence-content h3 {
	font-size: clamp(1.5rem, 2.5vw, 1.875rem);
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--space-4);
	letter-spacing: var(--letter-spacing-tight);
}

#custom-intelligence-section .custom-intelligence-content > p {
	font-size: 1.0625rem;
	color: var(--text-secondary);
	line-height: var(--line-height-loose);
	margin-bottom: var(--space-8);
}

#custom-intelligence-section .why-points {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

#custom-intelligence-section .why-points-grid {
	margin-top: var(--space-2);
	margin-left: calc(-1 * var(--space-12));
	margin-right: calc(-1 * var(--space-12));
}

#custom-intelligence-section .why-point {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-12);
	border: none;
	background: transparent;
}

#custom-intelligence-section .why-point:nth-child(odd) {
	border-right: 1px solid var(--border-default);
}

#custom-intelligence-section .why-point:nth-child(-n+2) {
	border-top: 1px solid var(--border-default);
	border-bottom: 1px solid var(--border-default);
}

#custom-intelligence-section .why-point-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: var(--letter-spacing-normal);
}

#custom-intelligence-section .why-point-desc {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	line-height: var(--line-height-loose);
}

#custom-intelligence-section .why-point-unlimited {
	background: var(--charcoal-900);
}

#custom-intelligence-section .why-point-unlimited .why-point-title {
	color: var(--blue-400);
}

/* SI CTA Row */
#custom-intelligence-section .si-cta-row {
	border-top: 1px solid var(--border-default);
	--bp-rail-extend-top: -1px;
}

#custom-intelligence-section .si-cta-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-12);
	padding: var(--space-16) var(--space-12);
	position: relative;
	overflow: visible;
}

#custom-intelligence-section .si-cta-text {
	max-width: 540px;
}

#custom-intelligence-section .si-cta-text h2 {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: var(--letter-spacing-tight);
	line-height: var(--line-height-snug);
	color: var(--text-primary);
	margin: 0 0 var(--space-5) 0;
}

#custom-intelligence-section .si-cta-text p {
	font-size: var(--font-size-base);
	color: var(--text-secondary);
	line-height: var(--line-height-loose);
	margin: 0;
}

#custom-intelligence-section .si-cta-action {
	flex-shrink: 0;
}

/* Ask Flow Mockup */
#custom-intelligence-section .mockup-ask-flow {
	width: 100%;
	max-width: 480px;
	background: transparent;
	border: none;
	padding: 0;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}

#custom-intelligence-section .mockup-handwritten {
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

#custom-intelligence-section .mockup-handwritten .handwritten-text {
	font-family: 'Kalam', 'Bradley Hand', 'Brush Script MT', 'Segoe Script', cursive;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 400;
	color: var(--text-primary);
	white-space: nowrap;
}

#custom-intelligence-section .mockup-handwritten .hero-arrow {
	color: var(--blue-400);
	display: flex;
}

#custom-intelligence-section .mockup-handwritten .hero-arrow svg {
	width: 48px;
	height: 30px;
}

#custom-intelligence-section .mockup-handwritten-ask .hero-arrow {
	transform: rotate(90deg);
}

#custom-intelligence-section .mockup-handwritten-ask {
	padding-left: var(--space-10);
}

#custom-intelligence-section .mockup-handwritten-get {
	justify-content: flex-end;
	margin-top: var(--space-8);
	padding-right: var(--space-10);
}

#custom-intelligence-section .mockup-handwritten-get .hero-arrow {
	transform: rotate(90deg);
}

/* Question bubble */
#custom-intelligence-section .mockup-question-bubble {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	min-height: 56px;
	height: 56px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--blue-500);
	border-radius: 32px;
	box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.2);
	width: 100%;
}

#custom-intelligence-section .mockup-bubble-icon {
	color: rgba(147, 197, 253, 0.9);
	font-size: 18px;
	flex-shrink: 0;
}

#custom-intelligence-section .mockup-question-bubble span {
	flex: 1;
	color: #fff;
	font-size: clamp(15px, 1.5vw, 18px);
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

/* Answer box */
#custom-intelligence-section .mockup-answer-box {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 20px;
}

#custom-intelligence-section .mockup-answer-text {
	font-size: clamp(15px, 1.5vw, 18px);
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--text-primary);
	margin-bottom: 0;
}

#custom-intelligence-section .mockup-answer-text strong {
	color: var(--blue-400);
	font-weight: 600;
}


/* ============================================
   HOW IT WORKS - Blueprint Steps Grid
   ============================================ */
#how-it-works {
	padding-top: 0;
	padding-bottom: 0;
}

#how-it-works .section-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

#how-it-works .hiw-header {
	border-top: 1px solid var(--border-default);
	padding: var(--space-16) 0 var(--space-8);
	--bp-rail-extend-top: -1px;
}

#how-it-works .hiw-header > [class*="bp-oh-"] {
	top: -1px;
}

#how-it-works .hiw-header .twocol-header {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-12);
	padding-right: var(--space-12);
}

#how-it-works .hiw-header .sp-section-label,
#how-it-works .hiw-header h2,
#how-it-works .hiw-header p {
	text-align: center;
}

/* Steps grid */
#how-it-works .hiw-steps-grid {
	border-top: 1px solid var(--border-default);
	border-bottom: 1px solid var(--border-default);
	--bp-rail-extend-top: -1px;
	--bp-rail-extend-bottom: -1px;
}

#how-it-works .hiw-steps-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--border-default);
}

#how-it-works .hiw-steps-row:last-child {
	border-bottom: none;
}

#how-it-works .hiw-steps-row-2 {
	grid-template-columns: repeat(2, 1fr);
}

#how-it-works .hiw-step-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-10);
	border-right: 1px solid var(--border-default);
}

#how-it-works .hiw-step-card:last-child {
	border-right: none;
}

/* Step number box — flush top-left corner */
#how-it-works .hiw-step-number-box {
	position: absolute;
	top: 0;
	left: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--border-default);
	border-bottom: 1px solid var(--border-default);
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-muted);
	background: transparent;
}

#how-it-works .hiw-step-card {
	padding-top: calc(var(--space-10) + 8px);
	padding-left: var(--space-10);
}

#how-it-works .hiw-step-card h4 {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
	letter-spacing: var(--letter-spacing-normal);
}

#how-it-works .hiw-step-card p {
	font-size: var(--font-size-sm);
	color: var(--text-secondary);
	line-height: var(--line-height-loose);
	margin: 0;
}

/* Tags */
#how-it-works .hiw-step-tags {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
	margin-top: var(--space-2);
}

#how-it-works .hiw-tag {
	display: inline-block;
	padding: 3px 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	font-weight: 500;
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

#how-it-works .hiw-tag-accent {
	color: var(--blue-400);
	border-color: rgba(59, 130, 246, 0.2);
	background: rgba(59, 130, 246, 0.08);
}

/* Done card — accent style */
#how-it-works .hiw-step-done {
	background: var(--charcoal-900);
}

#how-it-works .hiw-step-done h4 {
	color: var(--blue-400);
}

#how-it-works .hiw-step-done-box {
	background: rgba(59, 130, 246, 0.1);
}

#how-it-works .hiw-step-done-box i {
	font-size: 1.25rem;
	color: var(--blue-400);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
	.custom-hero {
		min-height: auto;
		padding-bottom: var(--space-12);
	}

	.custom-hero-inner {
		grid-template-columns: 1fr;
		gap: var(--space-12);
	}

	.custom-hero-text {
		text-align: center;
		align-items: center;
	}

	.custom-badge {
		margin-left: auto;
		margin-right: auto;
	}

	.custom-hero-header {
		max-width: 100%;
	}

	.custom-hero-header h1 {
		text-align: center;
	}

	.custom-hero-header p {
		text-align: center;
		max-width: 100%;
	}

	.custom-hero-cta {
		justify-content: center;
		flex-wrap: wrap;
	}

	.custom-hero-logos {
		justify-content: center;
	}

	.custom-hero-mockup {
		align-self: center;
		margin-bottom: 0;
	}

	.custom-hero-text {
		padding-bottom: 0;
	}

	/* Intelligence */
	#custom-intelligence-section .custom-intelligence-header {
		padding-top: var(--space-10);
		padding-bottom: var(--space-6);
	}

	#custom-intelligence-section .custom-intelligence-header .twocol-header {
		padding-left: var(--space-8);
		padding-right: var(--space-8);
	}

	#custom-intelligence-section .custom-intelligence-grid {
		grid-template-columns: 1fr;
	}

	#custom-intelligence-section .custom-intelligence-grid::before {
		display: none;
	}

	#custom-intelligence-section .custom-intelligence-content,
	#custom-intelligence-section .custom-intelligence-mockup {
		padding: var(--space-8);
		padding-bottom: 0;
	}

	#custom-intelligence-section .why-points-grid {
		grid-template-columns: 1fr;
		gap: 0;
		margin-left: calc(-1 * var(--space-8));
		margin-right: calc(-1 * var(--space-8));
	}

	#custom-intelligence-section .why-point {
		border-right: none;
		padding: var(--space-8);
	}

	#custom-intelligence-section .why-point:last-child {
		border-bottom: none;
	}

	#custom-intelligence-section .si-cta-grid {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: var(--space-6);
		padding: var(--space-8) var(--space-6);
	}

	#custom-intelligence-section .si-cta-text {
		max-width: none;
	}

	/* How It Works */
	#how-it-works .hiw-steps-row {
		grid-template-columns: 1fr;
	}

	#how-it-works .hiw-step-card {
		border-right: none;
		border-bottom: 1px solid var(--border-default);
	}

	#how-it-works .hiw-step-card:last-child {
		border-bottom: none;
	}
}

@media (max-width: 600px) {
	.custom-hero-cta {
		flex-direction: column;
		width: 100%;
	}

	.custom-hero-cta .btn {
		width: 100%;
		justify-content: center;
	}

	#custom-intelligence-section .mockup-ask-flow {
		min-height: auto;
		gap: 16px;
	}

	#custom-intelligence-section .mockup-handwritten .handwritten-text {
		font-size: 1.5rem;
	}

	#custom-intelligence-section .mockup-handwritten .hero-arrow svg {
		width: 40px;
		height: 24px;
	}

	#custom-intelligence-section .mockup-question-bubble {
		padding: 12px 16px;
		min-height: 48px;
		height: auto;
	}

	#custom-intelligence-section .mockup-question-bubble span {
		font-size: 14px;
	}

	#custom-intelligence-section .mockup-answer-box {
		padding: 16px;
	}

	#custom-intelligence-section .mockup-answer-text {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.custom-hero {
		padding-top: var(--space-6);
	}
}
