@import url('https://fonts.googleapis.com/css2?family=Cardo:wght@400;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* WCAG AAA Compliant - Eye-Friendly Soft Moonlight */
:root {
	/* Backgrounds */
	--bg-primary: #1a1a1e;
	--bg-elevated: #22222a;
	--bg-overlay: #0d0d0f;

	/* Text - All AAA Compliant & Eye-Friendly */
	--text-heading: #f0f0f0; /* Soft white - 18.5:1 */
	--text-subheading: #e8e9ed; /* 15.2:1 */
	--text-body: #c9cbd3; /* 10.8:1 */
	--text-muted: #9fa1ad; /* 7.2:1 */

	/* Your Brand Color #60667a */
	--brand-primary: #60667a; /* For buttons, borders */
	--brand-hover: #707796; /* Hover state */

	/* Interactive Elements - #9db4c8 */
	--interactive: #9db4c8; /* Links, active states (8.7:1 AAA) */
	--interactive-hover: #b8cbdc; /* Hover state */

	/* CTA Warm Gradient */
	--cta-gradient-start: #5c3d2e;
	--cta-gradient-mid: #7a5244;
	--cta-gradient-end: #8b5a44;

	/* Borders */
	--border-primary: #60667a;
	--border-subtle: #2a2a32;

	/* Legacy variables for backward compatibility */
	--color-base-100: var(--bg-primary);
	--color-base-200: var(--bg-elevated);
	--color-base-300: var(--border-subtle);
	--color-base-content: var(--text-body);
	--color-base-content-secondary: var(--text-subheading);
	--color-base-content-muted: var(--text-muted);
	--color-primary: var(--brand-primary);
	--color-primary-rgb: 96, 102, 122;
	--color-primary-content: #ffffff;
	--color-primary-text: var(--interactive);
	--color-info-content: var(--interactive);

	/* Secondary & Accent */
	--color-secondary: #5e546b;
	--color-secondary-content: #e8e9ed;
	--color-accent: #b5887a;
	--color-accent-content: #e8e9ed;

	/* Neutral */
	--color-neutral: #6a626d;
	--color-neutral-content: #c9cbd3;

	/* Info */
	--color-info: #60667a;

	/* Status Colors */
	--color-success: #558575;
	--color-success-content: #e6f5f0;
	--color-warning: #b88655;
	--color-warning-content: #fff5e8;
	--color-error: #a85c5c;
	--color-error-content: #ffe8e8;

	/* Typography */
	--font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial,
		system-ui, sans-serif;
	--font-display: 'Cardo', Georgia, serif;

	/* Borders & Radius */
	--radius-selector: 0.25rem;
	--radius-field: 0.5rem;
	--radius-box: 0.5rem;
}
/* Custom Select Dropdown Styling */
select {
	background-color: var(--bg-elevated);
	color: var(--text-body);
	border: 1px solid var(--border-subtle);
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1em;
}

select:focus {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

/* Fix dropdown options */
option {
	background-color: var(--bg-elevated);
	color: var(--text-body);
	padding: 0.5rem;
}

/* Custom styles for specific select elements */
.select-bordered {
	border: 1px solid var(--border-subtle);
}

.select-md {
	height: 2.5rem;
	padding-left: 1rem;
	padding-right: 2rem;
	font-size: 0.875rem;
}

/* Custom Chat Components */
.chat-bubble {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	border-radius: 0.5rem;
}

.chat-bubble-primary {
	background-color: var(--bg-elevated);
	color: var(--text-body);
	border-bottom-left-radius: 0;
}

.chat-bubble-secondary {
	background-color: var(--brand-primary);
	color: var(--color-primary-content);
	border-bottom-right-radius: 0;
}

.chat-header {
	font-size: 0.75rem;
	margin-bottom: 0.125rem;
}

.chat-footer {
	font-size: 0.7rem;
	margin-top: 0.125rem;
}

.chat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.chat-start {
	align-items: flex-start;
}

.chat-end {
	align-items: flex-end;
}

/* Interactive elements cursor styles */
button,
.btn,
.tab,
[role='button'],
label.cursor-pointer,
.clickable,
.toggle,
.checkbox,
.radio {
	cursor: pointer;
}

/* Button styles */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	font-family: var(--font-sans);
	font-weight: 500;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.btn-primary {
	background-color: var(--brand-primary);
	color: var(--color-primary-content);
}
.btn-primary:hover {
	background-color: var(--brand-primary);
	opacity: 0.8;
}

.btn-secondary {
	background-color: var(--color-secondary);
	color: var(--color-secondary-content);
}

.btn-outline {
	background-color: transparent;
	border: 1px solid currentColor;
}

/* Mobile Frame Container */
.mobile-frame {
	width: 428px;
	max-width: 100vw; /* Prevent horizontal overflow on small screens */
	height: 99vh;
	margin: 0 auto;
	display: flex; /* Added from tk-styles.css */
	flex-direction: column; /* Added from tk-styles.css */
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
	border-radius: 1.5rem;
	overflow: hidden;
	position: relative;
	background-color: var(--bg-primary);
}

/* Added mobile content background from tk-styles.css */
/* .mobile-content {
	background-color: var(--border-subtle);
} */

/* Content Container */
.mobile-content {
	flex: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	color: var(--text-body);
	background-color: var(--bg-primary);
}

/* Styles Appended from tk-styles.css */

/* Page layout components */
.page-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	position: relative;
}

.page-header {
	flex: 0 0 auto;
	z-index: 10;
}

.page-content {
	flex: 1 1 auto;
	overflow-y: auto;
	position: relative;
	height: calc(100% - 140px); /* Account for header and footer heights */
	padding-bottom: 10px;
}

.page-footer {
	flex: 0 0 auto;
	z-index: 10;
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
}

/* Chat date marker */
.chat-date-marker {
	text-align: center;
	margin: 1rem 0;
	user-select: none;
}

.chat-date-marker span {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background-color: var(--bg-elevated);
	border-radius: 1rem;
	font-size: 0.75rem;
}

/* Quick response buttons */
.quick-response-btn {
	border: 1px solid var(--border-subtle);
	background-color: var(--bg-elevated);
	color: var(--text-body);
	padding: 0.375rem 0.75rem;
	border-radius: 1rem;
	margin-right: 0.5rem;
	white-space: nowrap;
}

.quick-response-btn:hover {
	background-color: var(--border-subtle);
	border-color: var(--brand-primary);
}

/* Chat input styling */
.chat-input-wrapper {
	padding: 0.75rem;
	background-color: var(--bg-elevated);
	border-top: 1px solid var(--border-subtle);
}

.chat-input-container {
	display: flex;
	align-items: center;
	background-color: var(--bg-primary);
	border-radius: 1.5rem;
	padding: 0.25rem;
	position: relative;
}

.chat-input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 0.5rem 0.75rem;
	color: var(--text-body);
	outline: none;
}

.chat-input:focus {
	outline: none;
}

.chat-send-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: var(--brand-primary);
	color: var(--color-primary-content);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s;
}

.chat-send-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.chat-send-btn:hover:not([disabled]) {
	background-color: var(--brand-primary);
	opacity: 0.9;
}

/* Button customization (already partially defined, ensure no conflicts) */
button,
.btn {
	font-family: var(--font-sans); /* Ensure font is set if not already */
}

/* Online status indicator */
.online-indicator {
	display: inline-block;
	width: 0.625rem; /* 10px */
	height: 0.625rem; /* 10px */
	background-color: var(--color-success);
	border-radius: 50%;
}

div[aria-label='Help'] {
	display: none;
}

/* TK Wellness Toast Styling */
.tk-wellness-toast {
	background-color: var(--bg-elevated) !important;
	color: var(--text-body) !important;
	border: none !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
	font-family: var(--font-sans) !important;
}

/* Global Scrollbar Styling for TK pages */
/* Webkit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

*::-webkit-scrollbar-track {
	background: transparent;
}

*::-webkit-scrollbar-thumb {
	background-color: rgba(255, 240, 220, 0.2);
	border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 240, 220, 0.3);
}

/* Firefox scrollbar styling */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 240, 220, 0.2) transparent;
}

/* TK Utility Classes */
.tk-bg-base-100 {
	background-color: var(--bg-primary);
}

.tk-bg-base-200 {
	background-color: var(--bg-elevated);
}

.tk-text-base-content {
	color: var(--text-body);
}

.tk-text-neutral-content {
	color: var(--text-body);
}

/* Line clamp utilities */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-4 {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* From 0 to 1 Article Styles */
.prose-content a {
	color: var(--interactive);
	text-decoration: underline;
	transition: opacity 0.2s;
}

.prose-content a:hover {
	opacity: 0.8;
}

.prose-content h3 {
	color: var(--text-body);
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.prose-content {
	transition: opacity 0.3s ease-in-out;
}

.not-prose * {
	margin: 0;
}

article.group:hover {
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.prose-content {
		font-size: 0.95rem;
	}
}

/* Trust Score Details Styling - Target all collapsible content */
.mb-1\.5 p {
	font-size: 0.7rem !important;
	color: var(--text-muted) !important;
}

/* Also target the collapsible header */
/* .w-full.space-y-1 .cursor-pointer {
	opacity: 0.6 !important;
	font-size: 0.70rem !important;
} */

/* .w-full.space-y-1:hover {
	opacity: 0.8 !important;
} */

/* Body styling for TK routes only - excludes tkpages layouts */
body:not(:has(.tkpages-layout)) {
	margin: 0;
	padding: 0;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #1a191d;
}

/* Signature styles for from-0-to-1 page */
.signature-base {
	font-family: 'Dawning of a New Day', cursive;
	color: var(--text-muted);
	font-weight: 300;
	letter-spacing: 0.05em;
	font-size: 2.25rem; /* text-4xl */
}

.signature-some {
	transform: rotate(-1deg);
}

.signature-one {
	transform: rotate(1deg);
}

.signature-inline {
	font-family: 'Dawning of a New Day', cursive;
	font-weight: 500;
	letter-spacing: 0.05em;
	font-size: 1.125rem; /* text-lg */
}

.signature-inline-some {
	color: var(--color-primary-content);
}

.signature-inline-one {
	color: var(--color-accent-content);
}

/* Age verification modal styles */
.age-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.age-modal-content {
	background-color: var(--bg-primary);
	border: 1px solid var(--border-subtle);
	border-radius: 0.75rem;
	padding: 2rem;
	max-width: 28rem;
	margin: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Age modal header */
.age-modal-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.age-modal-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-warning);
	color: var(--color-warning-content);
}

.age-modal-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text-body);
}

.age-modal-description {
	font-size: 1.125rem;
	color: var(--text-body);
}

/* Age modal question section */
.age-modal-question {
	text-align: center;
	margin-bottom: 2rem;
}

.age-question-text {
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 1rem;
	color: var(--text-body);
}

.age-question-subtitle {
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* Age modal buttons */
.age-modal-buttons {
	display: flex;
	gap: 1rem;
}

.age-btn {
	flex: 1;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	border: none;
}

.age-btn:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--brand-primary);
}

.age-btn-yes {
	background-color: var(--brand-primary);
	color: var(--color-primary-content);
}

.age-btn-yes:hover {
	opacity: 0.9;
}

.age-btn-no {
	background-color: var(--bg-elevated);
	color: var(--text-body);
	border: 1px solid var(--border-subtle);
}

.age-btn-no:hover {
	opacity: 0.9;
}

/* Age modal footer */
.age-modal-footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-subtle);
	text-align: center;
}

.age-disclaimer {
	font-size: 0.75rem;
	color: var(--text-muted);
}

/* Missing Tailwind utility classes for TKPages */

/* Text color utilities */
.text-info {
	color: var(--color-info) !important;
}

.text-info-content {
	color: var(--interactive) !important;
}

.hover\:text-info-content:hover {
	color: var(--interactive) !important;
}

.hover\:text-info:hover {
	color: var(--color-info) !important;
}

/* Background color utilities */
.bg-base-100 {
	background-color: var(--bg-primary) !important;
}

.bg-base-200 {
	background-color: var(--bg-elevated) !important;
}

.bg-base-300 {
	background-color: var(--border-subtle) !important;
}

/* Grid utilities for responsive layout */
.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

/* Gap utilities */
.gap-4 {
	gap: 1rem;
}

.gap-x-8 {
	column-gap: 2rem;
}

.gap-y-12 {
	row-gap: 3rem;
}

.gap-8 {
	gap: 2rem;
}

/* Responsive grid utilities */
@media (min-width: 768px) {
	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.md\:grid-cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lg\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lg\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Column span utilities for grid layouts */
.col-span-1 {
	grid-column: span 1 / span 1;
}

.col-span-2 {
	grid-column: span 2 / span 2;
}

.col-span-full {
	grid-column: 1 / -1;
}

@media (min-width: 768px) {
	.md\:col-span-1 {
		grid-column: span 1 / span 1;
	}

	.md\:col-span-2 {
		grid-column: span 2 / span 2;
	}

	.md\:col-auto {
		grid-column: auto;
	}

	.md\:mb-0 {
		margin-bottom: 0;
	}
}

/* Display utilities */
.hidden {
	display: none;
}

.block {
	display: block;
}

/* Flexbox utilities */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-row {
	flex-direction: row;
}

.flex-1 {
	flex: 1 1 0%;
}

.flex-wrap {
	flex-wrap: wrap;
}

.items-center {
	align-items: center;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.self-start {
	align-self: flex-start;
}

.self-end {
	align-self: flex-end;
}

/* Position utilities */
.sticky {
	position: sticky;
}

.top-8 {
	top: 2rem;
}

.top-24 {
	top: 6rem;
}

/* Small breakpoint (640px) */
@media (min-width: 640px) {
	.sm\:flex-row {
		flex-direction: row;
	}

	.sm\:gap-6 {
		gap: 1.5rem;
	}

	.sm\:inline {
		display: inline;
	}

	.sm\:text-sm {
		font-size: 0.875rem;
		line-height: 1.25rem;
	}
}

.gap-3 {
	gap: 0.75rem;
}

.gap-6 {
	gap: 1.5rem;
}

.py-1\.5 {
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
}

@media (min-width: 768px) {
	.md\:hidden {
		display: none;
	}

	.md\:block {
		display: block;
	}
}

@media (min-width: 1024px) {
	.lg\:hidden {
		display: none;
	}

	.lg\:block {
		display: block;
	}

	.lg\:flex-row {
		flex-direction: row;
	}

	.lg\:items-start {
		align-items: flex-start;
	}

	.lg\:w-64 {
		width: 16rem;
	}

	.lg\:gap-12 {
		gap: 3rem;
	}

	.lg\:order-1 {
		order: 1;
	}

	.lg\:order-2 {
		order: 2;
	}
}

/* Footer grid layout (4/2/2/4 ratio on desktop) */
.footer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 2fr 1fr 1fr 2fr;
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		gap: 3rem;
	}
}

/* Footer styling for TKPages */
.footer-link {
	color: var(--text-body);
	text-decoration: none;
	font-size: 0.875rem;
	transition: all 0.2s ease-in-out;
}

.footer-link:hover {
	color: var(--interactive);
	text-decoration: none;
}

.footer-link:visited {
	color: var(--text-body);
}

/* Additional utilities for footer */
.text-base-content {
	color: var(--text-body) !important;
}

.text-neutral-content {
	color: var(--text-body) !important;
}

/* Footer specific background colors for info buttons */
.bg-info\/50 {
	background-color: rgba(82, 97, 122, 0.5) !important; /* --color-info with 50% opacity */
}

.hover\:bg-info\/60:hover {
	background-color: rgba(82, 97, 122, 0.6) !important; /* --color-info with 60% opacity */
}

/* Border utilities */
.border-base-content\/20 {
	border-color: rgba(255, 240, 220, 0.2) !important; /* --color-base-content with 20% opacity */
}

.border-t {
	border-top-width: 1px;
	border-style: solid;
}

/* Border utilities for reference blocks */
.border-l-2 {
	border-left-width: 2px;
	border-left-style: solid;
}

.border-base-300 {
	border-color: var(--border-subtle) !important;
}

/* Spacing utilities */
.pl-3 {
	padding-left: 0.75rem;
}

.p-3 {
	padding: 0.75rem;
}

.pt-20 {
	padding-top: 5rem;
}

.pt-32 {
	padding-top: 8rem;
}

.pt-40 {
	padding-top: 10rem;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

/* Text utilities */
.text-xs {
	font-size: 0.75rem;
	line-height: 1rem;
}

.opacity-85 {
	opacity: 0.85;
}

.space-y-2 > * + * {
	margin-top: 0.5rem;
}

.list-none {
	list-style-type: none;
}

/* Link styling for reference blocks */

.underline {
	text-decoration: underline;
}

.hover\:opacity-90:hover {
	opacity: 0.9;
}

/* Accessibility utilities */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.focus\:not-sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/* ===================================
   TK Public Pages - Responsive Navigation
   =================================== */

/* Mobile: Hide navbar links by default */
nav .hidden.md\:flex {
	display: none;
}

/* Desktop: Show navbar links on medium screens and up (≥768px) */
@media (min-width: 768px) {
	nav .hidden.md\:flex {
		display: flex;
	}
}

/* Welcome Header: Responsive navigation links */
/* Mobile/Laptop: Show flex.lg:hidden navigation links (< 1024px) */
.flex.lg\:hidden {
	display: flex;
}

/* Large Desktop: Hide flex.lg:hidden, show hidden.lg:flex navigation links (≥ 1024px) */
@media (min-width: 1024px) {
	.flex.lg\:hidden {
		display: none;
	}
	.hidden.lg\:flex {
		display: flex;
	}
	/* Also handle the flex-1 and flex-none classes for logo container */
	.flex-1.lg\:flex-none {
		flex: none;
	}
	/* Handle gap-0 at lg breakpoint */
	.gap-3.lg\:gap-0 {
		gap: 0;
	}

	/* Features page grid fixes */
	.grid.grid-cols-1.lg\:grid-cols-2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}

	/* Order classes for alternating layout */
	.order-1.lg\:order-1 {
		order: 1;
	}

	.order-1.lg\:order-2 {
		order: 2;
	}

	.order-2.lg\:order-1 {
		order: 1;
	}

	.order-2.lg\:order-2 {
		order: 2;
	}
}

/* Features page - mobile */
@media (max-width: 1023px) {
	.grid.grid-cols-1.lg\:grid-cols-2 {
		display: block;
	}

	.grid.grid-cols-1.lg\:grid-cols-2 > * {
		margin-bottom: 2rem;
	}

	.grid.grid-cols-1.lg\:grid-cols-2 > *:last-child {
		margin-bottom: 0;
	}

	/* Small cards grid on mobile */
	.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* Features page - tablet */
@media (min-width: 768px) and (max-width: 1023px) {
	.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

/* Features page - desktop */
@media (min-width: 1024px) {
	.grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 1rem;
	}
}

/* Typography - Line Heights */
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.2;
}

p {
	line-height: 1.7;
}

li {
	line-height: 1.6;
}

/* ===================================
   Welcome Hero Section Animations
   =================================== */

/* Subtle floating animation for phone mockup */
.hero-phone-float {
	animation: heroFloatAnimation 8s ease-in-out infinite;
}

@keyframes heroFloatAnimation {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

/* Hero CTA button hover effects - refined and subtle */
.hero-cta-primary {
	box-shadow: 0 4px 14px rgba(181, 136, 122, 0.3);
	transition: all 0.2s ease;
}

.hero-cta-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(181, 136, 122, 0.4);
}

.hero-cta-secondary {
	transition: all 0.2s ease;
}

.hero-cta-secondary:hover {
	background-color: var(--bg-elevated) !important;
	border-color: var(--color-accent) !important;
	transform: translateY(-2px);
}

/* ===================================
   Header Dropdown (CSS-only)
   =================================== */

.header-dropdown {
	position: static;
}

.header-dropdown summary {
	list-style: none;
	position: relative;
}

.header-dropdown summary::-webkit-details-marker {
	display: none;
}

.header-dropdown summary::marker {
	display: none;
	content: '';
}

.header-dropdown-chevron {
	transition: transform 0.2s ease;
}

.header-dropdown[open] .header-dropdown-chevron {
	transform: rotate(180deg);
}

.header-dropdown > div {
	position: fixed;
	top: auto;
	right: 1rem;
	margin-top: 0.5rem;
}

/* ===================================
   Feature Cards - Hover & Focus States
   =================================== */

.feature-card {
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
	transform: translateY(-6px);
	border-color: var(--color-accent) !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:focus-within {
	outline: 2px solid var(--interactive);
	outline-offset: 2px;
}

/* Icon container glow on card hover */
.feature-card:hover .icon-container {
	background-color: rgba(181, 136, 122, 0.25) !important;
	transform: scale(1.05);
}

.icon-container {
	transition: background-color 0.25s ease, transform 0.25s ease;
}

/* Featured/highlighted card */
.feature-card-featured {
	background: linear-gradient(135deg, rgba(181, 136, 122, 0.08) 0%, var(--color-base-100) 100%) !important;
	border: 2px solid var(--color-accent) !important;
	position: relative;
}

.feature-card-featured::before {
	content: 'Key Differentiator';
	position: absolute;
	top: -12px;
	left: 24px;
	padding: 4px 12px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
	background-color: var(--color-accent);
	color: #1a1a1e;
}

/* ===================================
   FAQ Accordion - Accessibility & UX
   =================================== */

details.faq-item summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding-right: 3rem;
	transition: color 0.2s ease;
}

details.faq-item summary::-webkit-details-marker {
	display: none;
}

details.faq-item summary::marker {
	display: none;
}

/* Focus state for keyboard navigation */
details.faq-item summary:focus {
	outline: 2px solid var(--interactive);
	outline-offset: 4px;
	border-radius: 0.5rem;
}

details.faq-item summary:focus:not(:focus-visible) {
	outline: none;
}

/* Text marker / highlighter effect — accent #b5887a at ~45% opacity */
.text-marker {
	background: linear-gradient(transparent 55%, rgba(181, 136, 122, 0.45) 55%);
	padding: 0 2px;
}

details.faq-item summary:focus-visible {
	outline: 2px solid var(--interactive);
	outline-offset: 4px;
}

/* Hover state */
details.faq-item:hover summary {
	color: var(--color-accent);
}

/* Expand/collapse indicator */
details.faq-item summary::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--color-accent);
	transition: transform 0.3s ease;
}

details.faq-item[open] summary::after {
	content: '−';
	transform: translateY(-50%) rotate(180deg);
}

/* Content reveal animation */
details.faq-item[open] > div {
	animation: faqReveal 0.3s ease-out;
}

@keyframes faqReveal {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Open state styling */
details.faq-item[open] {
	background: linear-gradient(135deg, rgba(181, 136, 122, 0.05) 0%, var(--bg-elevated) 100%) !important;
}

/* ===================================
   Social Proof Section
   =================================== */

.social-proof-stat {
	text-align: center;
	padding: 0 1.5rem;
}

.social-proof-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-heading);
	line-height: 1.2;
}

.social-proof-label {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
}

.social-proof-divider {
	width: 1px;
	height: 3rem;
	background-color: var(--border-subtle);
}

/* ===================================
   Comparison Table Enhancements
   =================================== */

.comparison-table tr {
	transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
	background-color: rgba(181, 136, 122, 0.05);
}

.comparison-category-header {
	background-color: var(--bg-elevated) !important;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent) !important;
}

/* Checkmark styling for comparison */
.check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background-color: rgba(85, 133, 117, 0.2);
	color: var(--color-success);
	margin-right: 0.5rem;
}

/* ===================================
   Pricing Comparison Table
   =================================== */

.pricing-comparison-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

/* Feature name column - left aligned */
.pricing-comparison-table td:first-child,
.pricing-comparison-table th:first-child {
	text-align: left;
}

/* Plan value columns - centered */
.pricing-comparison-table td:not(:first-child),
.pricing-comparison-table th:not(:first-child) {
	text-align: center;
}

/* Crush column subtle tint (2nd column after swap) */
.pricing-comparison-table td:nth-child(2) {
	background-color: rgba(181, 136, 122, 0.03);
}

/* Row borders and padding */
.pricing-comparison-table td {
	border-bottom: 1px solid var(--border-subtle);
	padding: 0.625rem 0.5rem;
	font-size: 0.875rem;
	color: var(--text-body);
}

/* Header cells */
.pricing-comparison-table th {
	padding: 1rem 0.5rem 0.75rem;
	vertical-align: top;
	border-bottom: 2px solid var(--border-subtle);
}

/* Row hover */
.pricing-comparison-table tbody tr {
	transition: background-color 0.2s ease;
}

.pricing-comparison-table tbody tr:hover {
	background-color: rgba(181, 136, 122, 0.05);
}

/* Footer CTA row - no bottom border */
.pricing-comparison-table tfoot td {
	border-bottom: none;
	padding-top: 1rem;
}

/* Mobile: tighter padding and smaller text */
@media (max-width: 480px) {
	.pricing-comparison-table td,
	.pricing-comparison-table th {
		padding: 0.5rem 0.25rem;
		font-size: 0.6875rem;
	}

	/* Reduce header text on mobile */
	.pricing-comparison-table th h2 {
		font-size: 0.875rem !important;
	}

	/* Compact price display on mobile */
	.pricing-comparison-table th .text-2xl {
		font-size: 1.125rem !important;
	}
}

/* Feature tooltip styling - explicit width since static Tailwind may lack w-56 */
.feature-tooltip {
	width: 14rem;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
	line-height: 1.4;
}

/* Desktop hover for feature tooltips (CSS-only, no JS mouseenter conflicts) */
@media (hover: hover) {
	.feature-help-btn:hover + .feature-tooltip {
		display: block !important;
	}
}

/* ===================================
   CTA Section Enhancements
   =================================== */

.cta-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--cta-gradient-start) 0%, var(--cta-gradient-mid) 50%, var(--cta-gradient-end) 100%);
	color: white;
}

.cta-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/static/images/features/heart-pattern.svg');
	background-size: 48px 48px;
}

.cta-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.15);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.cta-button-primary {
	background-color: white;
	color: var(--cta-gradient-end);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	transition: all 0.2s ease;
}

.cta-button-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary {
	background-color: rgba(127, 127, 127, 0.25);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.2s ease;
}

.cta-button-secondary:hover {
	background-color: rgba(255, 255, 255, 0.15) !important;
	transform: translateY(-2px);
}

/* Subtle pulse animation for urgency */
@keyframes subtlePulse {
	0%, 100% {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	}
	50% {
		box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
	}
}

.cta-button-primary:not(:hover) {
	animation: subtlePulse 3s ease-in-out infinite;
}

/* ===================================
   Compact Mode - Reduced spacing for denser UI
   =================================== */

/* Applied to the chat container when compactMode is enabled */
.compact-mode .message,
.compact-mode [data-message] {
	padding-top: 0.375rem !important;
	padding-bottom: 0.375rem !important;
}

.compact-mode .chat-bubble {
	padding: 0.375rem 0.625rem !important;
}

.compact-mode .gap-2 {
	gap: 0.25rem !important;
}

.compact-mode .gap-3 {
	gap: 0.375rem !important;
}

.compact-mode .gap-4 {
	gap: 0.5rem !important;
}

.compact-mode .py-2 {
	padding-top: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}

.compact-mode .py-3 {
	padding-top: 0.375rem !important;
	padding-bottom: 0.375rem !important;
}

.compact-mode .py-4 {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}

.compact-mode .mb-2 {
	margin-bottom: 0.25rem !important;
}

.compact-mode .mb-3 {
	margin-bottom: 0.375rem !important;
}

.compact-mode .mb-4 {
	margin-bottom: 0.5rem !important;
}

/* Reduce line-height for more compact text */
.compact-mode p {
	line-height: 1.5 !important;
}

/* Reduce avatar and image sizes slightly */
.compact-mode .size-10 {
	width: 2rem !important;
	height: 2rem !important;
}

.compact-mode .size-8 {
	width: 1.75rem !important;
	height: 1.75rem !important;
}

/* ===================================
   Companions Page Styles
   =================================== */

/* Scroll offset for anchor links */
#meet-companions,
#your-ideal-partner {
    scroll-margin-top: 2rem;
}

.companion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .companion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .companion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.companion-card {
    background-color: var(--color-base-100);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.companion-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* Zoom effect on hover */
.companion-card:hover .companion-carousel-img.active {
    transform: scale(1.05);
}

.companion-card:hover img:not(.companion-carousel-img) {
    transform: scale(1.05);
}

/* Clear dim overlay on hover */
.companion-card:hover .companion-card-dim {
    opacity: 0;
}

/* Show CTA on hover */
.companion-card:hover .companion-card-cta {
    opacity: 1;
}

/* Active/selected state for touch devices */
.companion-card.active {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.companion-card.active .companion-card-cta {
    opacity: 1;
}

/* Show hint when card is selected (fades out after 2s) */
/* Mobile: swipe up, Desktop: click */
.companion-card.active .companion-card-image::after {
    content: 'Swipe up to enlarge';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 25;
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@media (min-width: 768px) {
    .companion-card.active .companion-card-image::after {
        content: 'Click to enlarge';
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Fullscreen hint fade out animation */
.fullscreen-hint-fade {
    animation: fullscreenHintFade 4s ease-in-out forwards;
}

@keyframes fullscreenHintFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

/* Fullscreen hints: mobile vs desktop */
#fullscreen-hint-mobile {
    display: inline-block;
}
#fullscreen-hint-desktop {
    display: none;
}

@media (min-width: 768px) {
    #fullscreen-hint-mobile {
        display: none;
    }
    #fullscreen-hint-desktop {
        display: inline-block;
    }
}

/* Scale up when selected, scale back down when deselected */
.companion-card .companion-card-image img {
    transition: transform 0.3s ease, opacity 0.8s ease-in-out;
}

.companion-card.active .companion-card-image img {
    transform: scale(1.03);
}

.companion-card:focus-within {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.companion-card-image {
    aspect-ratio: 3 / 4;
    position: relative;
}

/* CTA Button with pulse animation - triggered on image change */
.companion-cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c9a090 0%, #b5887a 50%, #a07868 100%);
    color: #1a1a1e;
    box-shadow: 0 4px 15px rgba(181, 136, 122, 0.4);
    transition: box-shadow 0.3s ease;
}

.companion-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.companion-cta-button.pulse {
    animation: cta-glow 0.6s ease-out;
}

.companion-cta-button.pulse::before {
    animation: cta-shine 0.6s ease-out;
}

.companion-cta-button:hover,
.companion-cta-button:active {
    box-shadow: 0 6px 25px rgba(181, 136, 122, 0.6);
}

@keyframes cta-glow {
    0% {
        box-shadow: 0 4px 15px rgba(181, 136, 122, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(181, 136, 122, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(181, 136, 122, 0.4);
    }
}

@keyframes cta-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.differentiator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .differentiator-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Companion Card Image Carousel */
.companion-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.companion-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.companion-carousel-img.active {
    opacity: 1;
    z-index: 2;
}

.companion-carousel-dot {
    cursor: pointer;
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.companion-carousel-dot:hover {
    transform: scale(1.3);
    border-color: white;
}

/* Larger touch targets on mobile */
@media (max-width: 768px) {
    .companion-carousel-dot {
        width: 16px;
        height: 16px;
    }
}

.companion-carousel-dot.active {
    background-color: white;
    border-color: white;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
}

body {
	font-family: var(--font-sans);
}

button:not(.font-display),
.btn:not(.font-display) {
	font-family: var(--font-sans);
	font-weight: 500;
}

/* Missing responsive utilities (not in static tailwind.css) */
@media (min-width: 640px) {
	.sm\:pb-16 { padding-bottom: 4rem; }
	.sm\:p-5 { padding: 1.25rem; }
}
@media (min-width: 1024px) {
	.lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ===================================
   Mobile header clearance
   Header has two rows on mobile (logo + nav),
   so hero sections need extra top padding.
   =================================== */
@media (max-width: 767px) {
	.tkpage-hero {
		padding-top: 7rem;
	}
}
