/**
 * hostsnix/price-versus — frontend.
 * Values measured from the home page "Stop Overpaying" section at 1440px.
 */

.hsx-pv {
	position: relative;
	overflow: hidden;
	background-color: hsl(var(--secondary) / 0.2);
	border-block: 1px solid hsl(var(--border) / 0.6);
}

.hsx-pv-texture {
	position: absolute;
	inset: 0;
	opacity: 0.4;
	pointer-events: none;
	background-image: radial-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px);
	background-size: 22px 22px;
}

.hsx-pv-inner {
	position: relative;
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding: 40px 24px;
}
@media (min-width: 768px) { .hsx-pv-inner { padding-block: 48px; } }

.hsx-pv-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hsx-pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

/* ── Left column ── */
.hsx-pv-tag { margin-bottom: 20px; }

.hsx-pv-h2 {
	margin-bottom: 16px;
	font-size: 30px; line-height: 1.2;
	font-weight: 700;
	color: hsl(var(--foreground));
}
@media (min-width: 768px) { .hsx-pv-h2 { font-size: 36px; line-height: 40px;} }

.hsx-pv-text {
	margin-bottom: 12px;
	max-width: 36rem;
	font-size: 16px; line-height: 24px;
	color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) { .hsx-pv-text { font-size: 18px; line-height: 28px;} }
.hsx-pv-text:last-of-type { margin-bottom: 24px; }

.hsx-pv-list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-direction: column; gap: 12px;
}

.hsx-pv-item { display: flex; align-items: flex-start; gap: 12px; color: hsl(var(--foreground) / 0.9); }

.hsx-pv-dot {
	display: flex; align-items: center; justify-content: center;
	height: 20px; width: 20px; flex-shrink: 0;
	margin-top: 2px;
	border-radius: 9999px;
	background-color: hsl(var(--primary) / 0.15);
	color: hsl(var(--primary));
}
.hsx-pv-dot-svg { height: 12px; width: 12px; }

.hsx-pv-item-label { font-size: 14px; line-height: 1.5; }
@media (min-width: 768px) { .hsx-pv-item-label { font-size: 16px; } }

/* ── Right panel ── */
.hsx-pv-panel { display: flex; flex-direction: column; gap: 16px; }

.hsx-pv-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .hsx-pv-controls { flex-direction: row; align-items: flex-end; } }

.hsx-pv-field { flex: 1; }

.hsx-pv-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.hsx-pv-select-wrap { position: relative; }

.hsx-pv-select {
	width: 100%;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	border: 1px solid hsl(var(--border));
	border-radius: 8px;
	background-color: hsl(var(--background));
	padding: 10px 40px 10px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--foreground));
	box-shadow: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
}
.hsx-pv-select:focus-visible {
	outline: none;
	border-color: hsl(var(--primary));
	box-shadow: 0 0 0 2px hsl(var(--primary));
}

.hsx-pv-select-svg {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	height: 16px; width: 16px;
	pointer-events: none;
	color: hsl(var(--muted-foreground));
}

/* Radio-based toggle, so it is keyboard operable before view.js runs. */
.hsx-pv-toggle {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	border: 1px solid hsl(var(--border));
	border-radius: 8px;
	background-color: hsl(var(--muted));
	padding: 4px;
}
@media (min-width: 640px) { .hsx-pv-toggle { align-self: flex-end; } }

.hsx-pv-opt { display: block; cursor: pointer; }

.hsx-pv-radio {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.hsx-pv-opt-face {
	display: inline-flex;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.hsx-pv-opt:hover .hsx-pv-opt-face { color: hsl(var(--foreground)); }

.hsx-pv-radio:checked + .hsx-pv-opt-face {
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	box-shadow: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
}
.hsx-pv-radio:focus-visible + .hsx-pv-opt-face {
	outline: 2px solid hsl(var(--primary));
	outline-offset: 2px;
}

.hsx-pv-group { display: flex; flex-direction: column; gap: 16px; }

/* ── Our card ── */
.hsx-pv-ours {
	position: relative;
	border: 1px solid hsl(var(--primary) / 0.3);
	border-radius: 16px;
	background-color: hsl(var(--card));
	padding: 24px;
	box-shadow: 0 0 0 2px hsl(var(--primary) / 0.4), var(--shadow-mint);
}

.hsx-pv-flag {
	position: absolute;
	top: -12px;
	left: 24px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 1px 2px 0 hsl(0 0% 0% / 0.05);
}
.hsx-pv-flag-svg { height: 12px; width: 12px; }

.hsx-pv-ours-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
}

.hsx-pv-ours-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hsx-pv-logo { height: 28px; width: auto; flex-shrink: 0; -o-object-fit: contain; object-fit: contain; }

.hsx-pv-plan-pill {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	border: 1px solid hsl(var(--primary) / 0.2);
	border-radius: 9999px;
	background-color: hsl(var(--primary) / 0.1);
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
	color: hsl(var(--primary));
}

.hsx-pv-ours-price { flex-shrink: 0; text-align: right; }

.hsx-pv-big {
	display: block;
	font-size: 24px;
	line-height: 1;
	font-weight: 700;
	color: hsl(var(--primary));
}
@media (min-width: 768px) { .hsx-pv-big { font-size: 30px; } }

.hsx-pv-per {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 400;
	color: hsl(var(--muted-foreground));
}

.hsx-pv-cta { margin-top: 20px; width: 100%; height: 40px; font-size: 14px; border-radius: 8px; }
.hsx-pv-cta-svg { height: 16px; width: 16px; }

/* ── Competitor cards ── */
.hsx-pv-rivals { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .hsx-pv-rivals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hsx-pv-rival {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid hsl(var(--border));
	border-radius: 12px;
	background-color: hsl(var(--card) / 0.6);
	padding: 16px;
}

.hsx-pv-rival-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 100%;
}
.hsx-pv-rival-img { height: 24px; width: auto; max-width: 120px; -o-object-fit: contain; object-fit: contain; }
.hsx-pv-rival-name { font-size: 15px; font-weight: 700; color: hsl(var(--foreground)); }

.hsx-pv-rival-price { margin-top: 12px; }

.hsx-pv-rival-figure {
	display: block;
	font-size: 24px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: hsl(var(--foreground));
}
.hsx-pv-rival-figure .hsx-pv-per { display: inline; margin-top: 0; font-size: 14px; font-weight: 600; }

.hsx-pv-rival-note {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

.hsx-pv-notes {
	padding-top: 4px;
	font-size: 12px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground) / 0.8);
}

