/**
 * Subscription Plan Page – "Pick Your Plan" layout.
 * Card types: neutral, warm, cool. Button types: neutral, primary, secondary.
 */

.hta-subscription-plans {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.hta-subscription-plans__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.hta-subscription-plans__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.hta-subscription-plans__subtitle {
	font-size: 1.1rem;
	color: #555;
	margin: 0;
}

.hta-subscription-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.hta-plan-card {
	position: relative;
	border-radius: 12px;
	border: 2px solid #e0e0e0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: visible;
	display: flex;
	flex-direction: column;
}

.hta-plan-card__inner {
	padding: 1.75rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 10px;
}

/* Parallelogram badge: floats above top border, 4 sharp corners, angled left/right */
.hta-plan-card__badge {
	position: absolute;
	left: 12px;
	top: -10px;
	background: linear-gradient(180deg, #e6a344 0%, #d8942e 100%);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.5rem 1.35rem;
	clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), 0 4px 14px rgba(0, 0, 0, 0.14);
	z-index: 4;
}

.hta-plan-card__title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.hta-plan-card__subtitle {
	font-size: 0.95rem;
	color: #666;
	margin: 0 0 1rem;
}

.hta-plan-card__price {
	font-size: 1rem;
	margin: 0 0 1.25rem;
	line-height: 1.4;
}

.hta-plan-card__price strong {
	font-weight: 700;
}

.hta-plan-card__features {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.hta-plan-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.hta-plan-card__check {
	align-items: center;
	justify-content: center;
	width: 1.1em;
	height: 1.1em;
	flex-shrink: 0;
	position: relative;
	top: 0.05em;
	color: #2e7d32;
	font-size: 0.9em;
}

.hta-plan-card__check .fas {
	font-size: inherit;
}

.hta-plan-card--neutral {
	border-color: #e0e0e0;
	background: #fafafa;
}

.hta-plan-card--warm {
	border-color: #f0c14b;
	background: #fffde7;
}

.hta-plan-card--warm.hta-plan-card--featured {
	border-color: #e6a800;
	background: #fff8e1;
}

.hta-plan-card--featured .hta-plan-card__inner {
	padding-top: 2.25rem;
}

.hta-plan-card--cool {
	border-color: #64b5f6;
	background: #e3f2fd;
}

.hta-plan-card--highlighted {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hta-plan-btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
	margin-top: auto;
}

.hta-plan-btn:hover {
	opacity: 0.9;
}

.hta-plan-btn:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.hta-plan-btn--neutral {
	background: #f5f5dc;
	color: #333;
	border: 1px solid #ddd;
}

.hta-plan-btn--primary {
	background: #e65100;
	color: #fff;
}

.hta-plan-btn--secondary {
	background: #1976d2;
	color: #fff;
}

.hta-plan-btn--current {
	cursor: default;
	opacity: 0.85;
}

.hta-plan-btn--current:hover {
	opacity: 0.85;
}

.hta-subscription-plans__footer {
	border-top: 1px solid #e0e0e0;
	padding-top: 2rem;
	margin-top: 1rem;
}

.hta-subscription-plans__footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.hta-subscription-plans__footer-col--intro {
	flex: 1 1 100%;
	text-align: center;
	margin-bottom: 1rem;
}

.hta-subscription-plans__footer-teams {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	width: 100%;
}

@media (max-width: 900px) {
	.hta-subscription-plans__footer-teams {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.hta-subscription-plans__footer-teams {
		grid-template-columns: 1fr;
	}
}

.hta-subscription-plans__footer-col h4 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}

.hta-subscription-plans__footer-col p {
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

.hta-subscription-plans__footer-col a {
	text-decoration: none;
	color: #1976d2;
}

.hta-subscription-plans__footer-col a:hover {
	text-decoration: underline;
}

.hta-subscription-plans__footer-desc {
	color: #666;
	font-size: 0.9rem;
}

.hta-subscription-plans-placeholder {
	padding: 1rem;
	background: #f5f5f5;
	border-radius: 8px;
	color: #666;
}

/* Plan subscribe modal (subscription only) – critical so popup shows above theme */
.hta-plan-subscribe-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	visibility: hidden;
	pointer-events: none;
}
.hta-plan-subscribe-modal[aria-hidden="false"] {
	visibility: visible;
	pointer-events: auto;
	display: flex !important;
}
.hta-plan-subscribe-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
	cursor: pointer;
}
.hta-plan-subscribe-modal__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	padding: 2rem;
	max-width: 420px;
	width: 100%;
}
.hta-plan-subscribe-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
}
.hta-plan-subscribe-modal__price {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	color: #333;
}
.hta-plan-subscribe-modal__desc {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	color: #666;
}
.hta-plan-subscribe-modal__cta {
	display: inline-block;
	padding: 0.6rem 1.5rem;
	background: #1976d2;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}
.hta-plan-subscribe-modal__cta:hover {
	background: #1565c0;
	color: #fff;
}
.hta-plan-subscribe-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0;
}
.hta-plan-subscribe-modal__close:hover {
	color: #333;
}
