/* Pricing page styles - aligned with main theme (glass cards, Livvic fonts) */

.pricing-toggle {
	display: none; /* hidden on desktop */
	gap: 10px;
	justify-content: center;
	margin: 10px auto 20px auto;
}

.pricing-toggle-bottom {
	margin-top: 20px;
}

.pricing-tab {
	padding: 10px 16px;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,1);
	background: rgba(0,0,0,0.5);
	color: #fff;
	font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
	cursor: pointer;
}
.pricing-tab.is-selected {
	background: #fff;
	color: #000;
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.plan-card {
	border: 1px solid rgba(255,255,255,1);
	border-radius: 10px;
	background: rgba(0,0,0,0.5);
	backdrop-filter: blur(10px);
	color: #fff;
	text-align: left;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 420px;
}

.plan-header { margin-bottom: 12px; }
.plan-title { color: #ffc0cb; margin: 0 0 6px 0; }
.plan-subtitle { margin: 6px 0 0 0; opacity: 0.9; }
.plan-price { font-size: 1.6rem; margin-top: 8px; }
.plan-price .price-amount { font-family: "Livvic Medium", "Times New Roman", Georgia, Serif; }
.plan-price .price-period { font-size: 0.9rem; opacity: 0.85; margin-left: 6px; }

.plan-features {
	list-style: none;
	padding: 0;
	margin: 16px 0 20px 0;
}
.plan-features li {
	margin: 10px 0;
	padding-left: 1.6em;
	position: relative;
}
.plan-features li::before {
	content: "\2728"; /* ✨ */
	position: absolute;
	left: 0;
	top: 0.05em;
	font-size: 1.1em;
}

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

.pricing-note {
	opacity: 0.8;
	margin-top: 8px;
}

/* Mobile: single column with toggle */
@media (max-width: 768px) {
	.pricing-toggle { display: flex; }
	.pricing-grid {
		grid-template-columns: 1fr;
		gap: 0;
		position: relative;
		overflow: hidden;
	}
	.plan-card {
		display: none;
		animation: fadeIn 180ms ease-in;
		border-radius: 10px;
		margin: 0; /* full width within container */
	}
	.plan-card.is-active { display: flex; }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Table-based comparison (Launchpad vs Phoenix) */
.pricing-table-wrapper {
	width: 100%;
	overflow-x: auto;
}

.pricing-table {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 10px 0px;
	font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
	color: #fff;
}

.pricing-table th,
.pricing-table td {
	border: none; /* remove grid feel */
	background: transparent; /* default transparent */
	padding: 14px 14px;
	vertical-align: top;
	text-align: left;
}

.pricing-table thead th {
	font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
	color: #ffc0cb;
    font-size: 22px;
}
.pricing-table thead th.col-feature { /* mute Feature header to avoid product-like look */
	color: rgba(255,255,255,0.75);
}
/* Round only the top product headers */
.pricing-table thead tr:first-child th.col-launchpad,
.pricing-table thead tr:first-child th.col-phoenix {
	border-radius: 30px 30px 0 0;
}
/* Larger emoji in product headers */
.pricing-table thead th .plan-emoji {
	display: inline-block;
	font-size: 1.8em;
	line-height: 1;
}

.pricing-table .plan-descriptions td {
	font-style: italic;
	color: #fff;
}

.pricing-table .section-row th {
	text-align: center;
	color: #fcc;
    font-size: 20px;
    padding-top: 30px;
    padding-bottom: 40px;
	font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
}

.pricing-table .col-feature { width: 30%; }
.pricing-table .col-launchpad { width: 35%; }
.pricing-table .col-phoenix { width: 35%; }

/* Feature cell with optional info icon */
.feature-cell {
	display: grid;
	grid-template-columns: 1fr 16px; /* reserve space for the (i) icon */
	column-gap: 8px;
	align-items: center;
	width: 100%;
	position: relative; /* for tooltip positioning */
}
.feature-cell .feature-text {
    white-space: normal; /* allow wrapping so Feature column doesn't force extra width */
    text-align: right;
    justify-self: end; /* keep text aligned to the right edge */
    min-width: 0; /* allow text to shrink within grid */
}

.info-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	background: url('../assets/images/pricing/icon_info.svg') center / contain no-repeat;
	opacity: 0.9;
	border: none;
	padding: 0;
	cursor: help;
}
.info-icon:hover { opacity: 1; }
.info-icon.info-placeholder { visibility: hidden; pointer-events: none; }

/* Tooltip styling */
.info-icon[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	right: 0; /* align tooltip to the right edge of feature cell */
	top: 100%;
	margin-top: 8px;
	max-width: min(68vw, 380px);
	background: rgba(36, 50, 61, 0.95);
	backdrop-filter: blur(12px);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 1.2em;
	line-height: 1.35;
	white-space: pre-line; /* allow line breaks via real newlines or &#10; */
	text-align: left; /* left-aligned tooltip text */
	box-shadow: 0 10px 26px rgba(0,0,0,0.35);
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity 120ms ease, transform 120ms ease;
	z-index: 5;
}
.info-icon[data-tooltip]::before {
	content: '';
	position: absolute;
	right: 4px;
	top: calc(100% + 2px);
	width: 10px;
	height: 10px;
	background: rgba(0,0,0,0.85);
	border-left: 1px solid rgba(255,255,255,0.12);
	border-top: 1px solid rgba(255,255,255,0.12);
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 120ms ease;
}
.info-icon:hover::after,
.info-icon:hover::before { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
	.feature-cell { column-gap: 6px; }
	.info-icon[data-tooltip]::after { right: auto; left: 0; max-width: 86vw; }
}

/* Mobile: show Feature + one plan at a time */
@media (max-width: 768px) {
	.pricing-grid { display: none; }
	.pricing-toggle { display: flex; }

	/* On mobile, hide the non-active plan column */
	.pricing-table-wrapper[data-active-plan="launchpad"] .col-phoenix,
	.pricing-table-wrapper[data-active-plan="phoenix"] .col-launchpad { display: none; }

	/* Keep Feature column always visible */
	.pricing-table .col-feature { display: table-cell; }

	/* Section row spans the two visible columns */
	.pricing-table .section-row th { text-align: center; }
}

/* Column tints for product columns to feel like columns, not grid */
.pricing-table th.col-launchpad,
.pricing-table td.col-launchpad { background: rgba(255,255,255,0.06); text-align: center; }
.pricing-table th.col-phoenix,
.pricing-table td.col-phoenix { background: rgba(255,255,255,0.06); text-align: center; }

/* Feature column remains subtle and guiding */
.pricing-table th.col-feature,
.pricing-table td.col-feature { background: rgba(0,0,0,0.0); text-align: right; }

/* Row separators (subtle) for readability without heavy grid) */
.pricing-table tbody tr:not(.section-row) th.col-feature,
.pricing-table tbody tr:not(.section-row) td.col-launchpad,
.pricing-table tbody tr:not(.section-row) td.col-phoenix {
	border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Vertically center single-line items (e.g., checkmarks) in product columns */
.pricing-table tbody td.col-launchpad,
.pricing-table tbody td.col-phoenix {
    vertical-align: middle;
}

/* Also vertically center the description (Feature) column */
.pricing-table tbody th.col-feature {
	vertical-align: middle;
}

/* Price emphasis (simple text only) */
.price-total-chip {
	font-family: "Livvic Medium", "Times New Roman", Georgia, Serif;
    font-size: 22px;
}
.price-save-chip {
	font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
	opacity: 0.9;
}
.price-list {
	font-family: "Livvic ExtraLight", "Times New Roman", Georgia, Serif;
	opacity: 0.9;
}

