/*
 * Kesatria Hetzner Plans — frontend
 * Brand palette: yellow #f3c82e, black #000000, warm tints.
 */

.khp-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	font-family: "Open Sans", Arial, sans-serif;
	color: #525252;
}

.khp-error {
	padding: 18px 22px;
	background: #fdecec;
	color: #c0392b;
	border-radius: 8px;
	font-size: 15px;
	text-align: center;
	font-weight: 600;
}

/* ─────────  Section header  ───────── */

.khp-section {
	margin: 0 0 96px;
	position: relative;
}

.khp-section:last-child {
	margin-bottom: 0;
}

.khp-section__head {
	text-align: center;
	margin: 0 0 48px;
	padding: 0 16px;
	position: relative;
}

.khp-section__overline {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #000000;
	margin: 0 0 16px;
	padding: 7px 18px;
	background: #f3c82e;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(243, 200, 46, 0.35);
}

.khp-section__title {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 42px;
	font-weight: 800;
	color: #000000;
	margin: 0 0 14px;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.khp-section__title em {
	font-style: normal;
	color: #f3c82e;
	background: #000000;
	padding: 0 10px;
	border-radius: 4px;
}

.khp-section__subtitle {
	font-size: 16px;
	color: #6b6f7a;
	margin: 0 auto;
	max-width: 600px;
	line-height: 1.6;
}

.khp-section__head::after {
	content: "";
	display: block;
	width: 60px;
	height: 4px;
	background: #f3c82e;
	margin: 22px auto 0;
	border-radius: 2px;
}

/* ─────────  Plan rows  ───────── */

.khp-table {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.khp-row {
	display: grid;
	grid-template-columns: 1.4fr 0.85fr 0.85fr 0.85fr 0.85fr 1.2fr 1fr;
	align-items: center;
	gap: 18px;
	padding: 30px 36px;
	background: #ffffff;
	border: 1px solid #ececec;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
	position: relative;
}

.khp-row:hover {
	border-color: #000000;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
	transform: translateY(-3px);
}

.khp-row--popular {
	border-color: #000000;
	border-width: 2px;
	box-shadow: 0 14px 36px rgba(243, 200, 46, 0.35);
	background: #fffdf5;
	padding: 38px 36px;
	margin: 14px 0;
	transform: scale(1.015);
}

@keyframes khp-popular-pulse {
	0%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(243, 200, 46, 0.6); }
	50%      { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(243, 200, 46, 0); }
}

.khp-row--popular::before {
	content: "MOST POPULAR";
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: #000000;
	color: #f3c82e;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	padding: 7px 20px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	border: 2px solid #f3c82e;
	animation: khp-popular-pulse 2.4s ease-in-out infinite;
}

.khp-row--popular .khp-price {
	font-size: 36px;
}

.khp-row--head {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0 36px 4px;
	color: #a8adba;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.khp-row--head:hover {
	border-color: transparent;
	box-shadow: none;
	transform: none;
}

/* ─────────  Cells  ───────── */

.khp-cell {
	font-size: 15px;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.khp-cell--name {
	font-weight: 800;
	font-size: 22px;
	color: #000000;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.khp-cell--name small {
	font-size: 11px;
	font-weight: 800;
	color: #8a8f9c;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.khp-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: #1a1a1a;
	opacity: 0.7;
}

.khp-tag {
	display: inline-block;
	padding: 4px 11px;
	background: #fff4c4;
	color: #000000;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.khp-cell--price {
	justify-content: flex-end;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
}

.khp-price {
	color: #000000;
	font-weight: 900;
	font-size: 32px;
	line-height: 1;
	letter-spacing: -0.02em;
}

.khp-per {
	color: #8a8f9c;
	font-size: 11px;
	margin-top: 6px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 800;
}

.khp-cell--cta {
	justify-content: flex-end;
}

.khp-cta {
	display: inline-block;
	background: #f3c82e;
	color: #000000;
	border: 2px solid #f3c82e;
	padding: 14px 28px;
	border-radius: 999px;
	font: 800 12px/1 "Open Sans", Arial, sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 14px rgba(243, 200, 46, 0.45);
}

.khp-cta:hover {
	background: #000000;
	color: #f3c82e;
	border-color: #000000;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.khp-row--popular .khp-cta {
	background: #000000;
	color: #f3c82e;
	border-color: #000000;
	padding: 16px 32px;
	font-size: 13px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.khp-row--popular .khp-cta:hover {
	background: #f3c82e;
	color: #000000;
	border-color: #f3c82e;
}

.khp-cell__label {
	display: none;
	font-size: 10px;
	color: #a8adba;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-right: 6px;
}

/* ─────────  Responsive  ───────── */

@media (max-width: 1100px) {
	.khp-row,
	.khp-row--head {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 16px;
		padding: 26px 28px;
	}
	.khp-row--popular { padding: 32px 28px; }
	.khp-row--head { display: none; }
	.khp-cell--name { grid-column: 1 / -1; font-size: 22px; padding-bottom: 12px; border-bottom: 1px dashed #ececec; margin-bottom: 8px; }
	.khp-cell--price,
	.khp-cell--cta { grid-column: span 1; }
	.khp-cell__label { display: inline-block; }
	.khp-cell--price { align-items: flex-start; justify-content: flex-start; }
	.khp-cell--cta { justify-content: flex-end; align-items: center; }
}

@media (max-width: 640px) {
	.khp-section { margin-bottom: 64px; }
	.khp-section__title { font-size: 30px; }
	.khp-section__head { margin-bottom: 32px; }
	.khp-row,
	.khp-row--head {
		grid-template-columns: 1fr 1fr;
		padding: 22px 20px;
		gap: 14px;
	}
	.khp-row--popular { padding: 28px 20px; transform: none; }
	.khp-row--popular .khp-price { font-size: 30px; }
	.khp-cell--cta { grid-column: 1 / -1; justify-content: stretch; margin-top: 6px; }
	.khp-cta { width: 100%; text-align: center; padding: 16px; }
	.khp-price { font-size: 28px; }
}
