/* Hello22 Pricing & Plans — frontend styles */

.h22p-section {
	--h22p-blue: #2f6bff;
	--h22p-blue-dark: #1e50d8;
	--h22p-ink: #101828;
	--h22p-gray: #5b6472;
	--h22p-border: #e6eaf2;
	--h22p-bg: #f4f7fd;
	--h22p-card: #ffffff;
	--h22p-red: #ef4444;
	font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
	background:
		radial-gradient(560px 560px at 92% 18%, #dbe7ff 0%, rgba(219, 231, 255, 0) 70%),
		radial-gradient(420px 420px at 4% 78%, #e6eeff 0%, rgba(230, 238, 255, 0) 70%),
		var(--h22p-bg);
	padding: 72px 20px 88px;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}
.h22p-section *,
.h22p-section *::before,
.h22p-section *::after { box-sizing: border-box; }

.h22p-inner { width: 100%; margin: 0 auto; position: relative; z-index: 1; }

/* ---------- Header ---------- */
.h22p-head { text-align: center; margin-bottom: 44px; }
.h22p-badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: #e6efff; color: var(--h22p-blue);
	font-size: 13.5px; font-weight: 600;
	border-radius: 999px; padding: 7px 16px; margin-bottom: 18px;
}
.h22p-badge svg { width: 14px; height: 14px; }
.h22p-heading {
	font-size: clamp(28px, 4.2vw, 42px);
	font-weight: 800; color: var(--h22p-ink);
	margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.5px;
}
.h22p-heading span { color: var(--h22p-blue); }
.h22p-subheading {
	max-width: 560px; margin: 0 auto;
	color: var(--h22p-gray); font-size: 15.5px; line-height: 1.6;
}

/* Currency switcher */
.h22p-switcher {
	display: inline-flex; margin-top: 20px;
	background: #e8edf7; border-radius: 999px; padding: 4px; gap: 2px;
}
.h22p-switch-btn {
	border: 0; background: transparent; cursor: pointer;
	font: inherit; font-size: 13.5px; font-weight: 700;
	color: var(--h22p-gray); border-radius: 999px; padding: 7px 20px;
	transition: all .18s ease;
}
.h22p-switch-btn.is-active { background: #fff; color: var(--h22p-blue); box-shadow: 0 2px 8px rgba(16, 24, 40, .1); }

/* Hide prices until the visitor's region is detected (prevents a wrong-currency flash).
   Auto-reveals after 2s as a safety net if JavaScript fails. */
.h22p-section:not(.h22p-geo-ready) .h22p-price-row {
	visibility: hidden;
	animation: h22p-reveal 0s linear 2s forwards;
}
@keyframes h22p-reveal { to { visibility: visible; } }

/* ---------- Grid ---------- */
.h22p-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 26px;
	align-items: stretch;
}
@media (min-width: 1024px) {
	.h22p-grid.h22p-count-3 { grid-template-columns: repeat(3, 1fr); }
	.h22p-grid.h22p-count-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) and (max-width: 1023px) {
	.h22p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) {
	.h22p-grid { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.h22p-card {
	position: relative;
	background: var(--h22p-card);
	border: 1px solid var(--h22p-border);
	border-radius: 18px;
	padding: 30px 26px 28px;
	display: flex; flex-direction: column;
	box-shadow: 0 4px 18px rgba(16, 24, 40, .04);
	transition: transform .22s ease, box-shadow .22s ease;
}
.h22p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16, 24, 40, .1); }
.h22p-card.is-popular {
	border: 2px solid var(--h22p-blue);
	box-shadow: 0 16px 40px rgba(47, 107, 255, .16);
}
.h22p-popular-badge {
	position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
	background: var(--h22p-blue); color: #fff;
	font-size: 13px; font-weight: 600; white-space: nowrap;
	padding: 7px 18px; border-radius: 8px;
	box-shadow: 0 6px 16px rgba(47, 107, 255, .35);
}

.h22p-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.h22p-plan-icon {
	width: 42px; height: 42px; flex: 0 0 42px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--h22p-blue); color: #fff; border-radius: 50%;
}
.h22p-plan-icon svg { width: 21px; height: 21px; }
.h22p-plan-name { font-size: 20px; font-weight: 700; color: var(--h22p-ink); margin: 0; }

/* Price */
.h22p-price-row { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; min-height: 52px; flex-wrap: wrap; }
.h22p-cur-label { font-size: 14px; font-weight: 700; color: var(--h22p-gray); letter-spacing: .5px; }
.h22p-amount { font-size: 44px; font-weight: 800; color: var(--h22p-ink); letter-spacing: -1px; line-height: 1; }
.h22p-period { font-size: 15px; font-weight: 600; color: var(--h22p-gray); }
.h22p-tagline { margin: -8px 0 16px; font-size: 14px; color: var(--h22p-gray); line-height: 1.5; }
.h22p-price-custom { font-size: 36px; font-weight: 800; color: var(--h22p-ink); line-height: 1.15; }

/* Chips */
.h22p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.h22p-chip {
	display: inline-flex; align-items: center;
	border: 1px solid #cfdcff; color: var(--h22p-blue); background: #f6f9ff;
	font-size: 12.5px; font-weight: 600;
	border-radius: 999px; padding: 6px 13px;
}

/* Features */
.h22p-features { list-style: none; margin: 0 0 26px; padding: 0; flex: 1 1 auto; }
.h22p-features li {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: 14px; line-height: 1.45; color: #333c49;
	padding: 6.5px 0;
}
.h22p-features li.is-off { color: #98a2b3; }
.h22p-fi { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 1px; display: inline-flex; }
.h22p-fi svg { width: 100%; height: 100%; }
.h22p-fi-on { color: var(--h22p-blue); }
.h22p-fi-off { color: var(--h22p-red); }

/* Buttons */
.h22p-btn {
	display: block; width: 100%; text-align: center;
	font: inherit; font-size: 15px; font-weight: 600;
	color: var(--h22p-blue);
	background: #fff; border: 1.5px solid #bcd0ff;
	border-radius: 10px; padding: 13px 18px;
	cursor: pointer; text-decoration: none;
	transition: all .18s ease;
}
.h22p-btn:hover { border-color: var(--h22p-blue); background: #f4f8ff; color: var(--h22p-blue-dark); text-decoration: none; }
.h22p-btn-solid {
	background: var(--h22p-blue); color: #fff; border-color: var(--h22p-blue);
	box-shadow: 0 8px 20px rgba(47, 107, 255, .3);
}
.h22p-btn-solid:hover { background: var(--h22p-blue-dark); border-color: var(--h22p-blue-dark); color: #fff; }

/* ---------- Modal ---------- */
.h22p-modal {
	--h22p-blue: #2f6bff;
	--h22p-blue-dark: #1e50d8;
	--h22p-ink: #101828;
	--h22p-gray: #5b6472;
	--h22p-red: #ef4444;
	position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.h22p-modal[hidden] { display: none; }
.h22p-modal-overlay { position: absolute; inset: 0; background: rgba(13, 22, 44, .55); backdrop-filter: blur(3px); }
.h22p-modal-box {
	position: relative; width: 100%; max-width: 480px;
	max-height: calc(100vh - 40px); overflow-y: auto;
	background: #fff; border-radius: 18px;
	padding: 30px 28px;
	box-shadow: 0 24px 70px rgba(13, 22, 44, .35);
	animation: h22pPop .22s ease;
	font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}
@keyframes h22pPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.h22p-modal-box *, .h22p-modal-box *::before, .h22p-modal-box *::after { box-sizing: border-box; }
.h22p-modal-close {
	position: absolute; top: 12px; right: 14px;
	border: 0; background: #f1f4f9; color: #5b6472;
	width: 34px; height: 34px; border-radius: 50%;
	font-size: 21px; line-height: 1; cursor: pointer;
	transition: all .15s ease;
}
.h22p-modal-close:hover { background: #e5e9f2; color: #101828; }
.h22p-modal-header h3 { margin: 0 0 6px; font-size: 23px; font-weight: 800; color: #101828; }
.h22p-modal-header p { margin: 0 0 18px; font-size: 14px; color: #5b6472; line-height: 1.55; }

.h22p-field { margin-bottom: 14px; }
.h22p-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .h22p-field-row { grid-template-columns: 1fr; gap: 0; } }
.h22p-field label { display: block; font-size: 13.5px; font-weight: 600; color: #344054; margin-bottom: 6px; }
.h22p-field label em { color: #ef4444; font-style: normal; }
.h22p-field input, .h22p-field select, .h22p-field textarea {
	width: 100%;
	font: inherit; font-size: 14.5px; color: #101828;
	background: #fff; border: 1.5px solid #d7deeb;
	border-radius: 9px; padding: 11px 13px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.h22p-field textarea { resize: vertical; min-height: 84px; font-family: inherit; }
.h22p-field input:focus, .h22p-field select:focus, .h22p-field textarea:focus {
	outline: none; border-color: #2f6bff;
	box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}
.h22p-field.has-error input, .h22p-field.has-error select { border-color: #ef4444; }
.h22p-error { display: none; font-size: 12.5px; color: #ef4444; margin-top: 4px; }
.h22p-error.is-visible { display: block; }
.h22p-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.h22p-form-message { border-radius: 9px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.h22p-btn-submit { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 6px; }
.h22p-btn-submit[disabled] { opacity: .65; cursor: default; }
.h22p-spinner {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
	animation: h22pSpin .7s linear infinite;
}
@keyframes h22pSpin { to { transform: rotate(360deg); } }

.h22p-success { text-align: center; padding: 12px 4px 4px; }
.h22p-success-icon { display: inline-flex; width: 58px; height: 58px; color: #22c55e; margin-bottom: 12px; }
.h22p-success-icon svg { width: 100%; height: 100%; }
.h22p-success p { font-size: 15px; color: #344054; line-height: 1.6; margin: 0 0 18px; }
.h22p-success .h22p-btn { max-width: 200px; margin: 0 auto; }

/* ---------- Small screens ---------- */
@media (max-width: 699px) {
	.h22p-section { padding: 52px 16px 60px; }
	.h22p-card { padding: 26px 20px 24px; }
	.h22p-amount { font-size: 38px; }
}
