/**
 * SleepOps Pricing Page Styles
 */

/* -------------------------------------------------------------------------
   Page wrapper
   ------------------------------------------------------------------------- */
.sleepops-pricing-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1a1a1a;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.pricing-hero {
	text-align: center;
	margin-bottom: 3rem;
}

.pricing-hero__eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b7c80;
	margin-bottom: 0.75rem;
}

.pricing-hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 0.75rem;
	line-height: 1.15;
}

.pricing-hero__sub {
	font-size: 1.1rem;
	color: #6b7c80;
	margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   Billing toggle
   ------------------------------------------------------------------------- */
.pricing-toggle {
	display: inline-flex;
	background: #f7f9fa;
	border: 1px solid #e6eaea;
	border-radius: 8px;
	padding: 4px;
	gap: 4px;
}

.pricing-toggle__btn {
	background: transparent;
	border: none;
	padding: 8px 20px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	color: #6b7c80;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.15s, color 0.15s;
}

.pricing-toggle__btn--active {
	background: #2e3a3f;
	color: #ffffff;
}

.pricing-toggle__btn:hover:not(.pricing-toggle__btn--active) {
	background: #e6eaea;
	color: #1a1a1a;
}

.pricing-toggle__badge {
	display: inline-block;
	background: #d4edda;
	color: #1a6630;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 20px;
	letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   Cards grid
   ------------------------------------------------------------------------- */
.pricing-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 3rem;
}

/* -------------------------------------------------------------------------
   Individual card
   ------------------------------------------------------------------------- */
.pricing-card {
	border: 1px solid #e6eaea;
	border-radius: 12px;
	background: #ffffff;
	padding: 2rem 1.75rem;
	position: relative;
	transition: box-shadow 0.2s;
}

.pricing-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card--highlight {
	border-color: #2e3a3f;
	box-shadow: 0 4px 24px rgba(46, 58, 63, 0.15);
}

/* Popular ribbon */
.pricing-card__popular {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	background: #2e3a3f;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 16px;
	border-radius: 0 0 8px 8px;
}

/* Card header */
.pricing-card__header {
	margin-bottom: 1.5rem;
}

.pricing-card__badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 1rem;
}

.pricing-card__badge--free {
	background: #f7f9fa;
	color: #6b7c80;
	border: 1px solid #e6eaea;
}

.pricing-card__badge--basic {
	background: #eef2ff;
	color: #3730a3;
}

.pricing-card__badge--pro {
	background: #fef3c7;
	color: #92400e;
}

/* Price */
.pricing-card__price {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin-bottom: 0.5rem;
}

.pricing-card__amount {
	font-size: 2.75rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
}

.pricing-card__period {
	font-size: 1rem;
	color: #6b7c80;
	font-weight: 500;
}

.pricing-card__tagline {
	font-size: 0.85rem;
	color: #6b7c80;
	margin-top: 0.35rem;
}

.pricing-card__best {
	font-size: 0.92rem;
	font-weight: 700;
	color: #2e3a3f;
	line-height: 1.45;
	margin: 0.35rem 0 0.45rem;
}

.pricing-card__value {
	font-size: 0.86rem;
	color: #4b5563;
	line-height: 1.55;
	margin: 0.35rem 0 0.45rem;
}

/* -------------------------------------------------------------------------
   Feature list
   ------------------------------------------------------------------------- */
.pricing-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem 0;
	border-top: 1px solid #f0f0f0;
	padding-top: 1.25rem;
}

.pricing-feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0.45rem 0;
	font-size: 0.92rem;
	line-height: 1.4;
}

.pricing-feature__icon {
	flex-shrink: 0;
	width: 18px;
	text-align: center;
	font-weight: 700;
	margin-top: 1px;
}

.pricing-feature--check .pricing-feature__icon {
	color: #1a6630;
}

.pricing-feature--muted {
	color: #9ca3af;
}

.pricing-feature--muted .pricing-feature__icon {
	color: #d1d5db;
}

.pricing-feature--info {
	color: #2e3a3f;
	font-style: italic;
}

.pricing-feature--info .pricing-feature__icon {
	color: #2e3a3f;
}

/* -------------------------------------------------------------------------
   CTA buttons within cards
   ------------------------------------------------------------------------- */
.pricing-card__cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}

.pricing-card__note {
	text-align: center;
	font-size: 0.78rem;
	color: #9ca3af;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Pricing buttons
   ------------------------------------------------------------------------- */
.pricing-btn {
	display: block;
	text-align: center;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s, border-color 0.15s;
	line-height: 1;
}

.pricing-btn--primary {
	background: #2e3a3f;
	color: #ffffff;
	border: 2px solid #2e3a3f;
}

.pricing-btn--primary:hover {
	background: #1a2326;
	border-color: #1a2326;
	color: #ffffff;
	text-decoration: none;
}

.pricing-btn--secondary {
	background: #f7f9fa;
	color: #2e3a3f;
	border: 2px solid #e6eaea;
}

.pricing-btn--secondary:hover {
	background: #e6eaea;
	color: #1a1a1a;
	text-decoration: none;
}

.pricing-btn--outline {
	background: transparent;
	color: #2e3a3f;
	border: 2px solid #2e3a3f;
}

.pricing-btn--outline:hover {
	background: #2e3a3f;
	color: #ffffff;
	text-decoration: none;
}

.pricing-btn--ghost {
	background: transparent;
	color: #2e3a3f;
	border: 2px solid #e6eaea;
}

.pricing-btn--ghost:hover {
	background: #f7f9fa;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Free-limit callout bar
   ------------------------------------------------------------------------- */
.pricing-limit-callout {
	background: #f7f9fa;
	border: 1px solid #e6eaea;
	border-radius: 10px;
	padding: 1.25rem 1.75rem;
	margin-bottom: 3rem;
}

.pricing-limit-callout__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.pricing-limit-callout__text {
	font-size: 0.92rem;
	color: #4b5563;
	margin: 0;
}

.pricing-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2e3a3f;
	white-space: nowrap;
	text-decoration: underline;
}

.pricing-link:hover {
	opacity: 0.75;
}

/* -------------------------------------------------------------------------
   Value alignment sections
   ------------------------------------------------------------------------- */
.pricing-alignment-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-bottom: 2rem;
}

.pricing-alignment-card {
	background: #ffffff;
	border: 1px solid #e6eaea;
	border-radius: 12px;
	padding: 1.35rem;
}

.pricing-alignment-card h2 {
	font-size: 1rem;
	line-height: 1.35;
	margin: 0 0 0.65rem;
	color: #1a1a1a;
}

.pricing-alignment-card p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #4b5563;
	margin: 0;
}

.pricing-upgrade-guide,
.pricing-medical-boundary {
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: 2rem;
}

.pricing-upgrade-guide {
	background: #eef6f7;
	border: 1px solid #d8e8eb;
}

.pricing-upgrade-guide h2,
.pricing-medical-boundary h2 {
	font-size: 1.25rem;
	margin: 0 0 1rem;
	color: #1a1a1a;
}

.pricing-upgrade-guide ul {
	margin: 0;
	padding-left: 1.2rem;
}

.pricing-upgrade-guide li {
	color: #374151;
	line-height: 1.65;
	margin: 0.25rem 0;
}

.pricing-medical-boundary {
	background: #fff8ed;
	border: 1px solid #f2ddbd;
}

.pricing-medical-boundary p {
	color: #5f4630;
	line-height: 1.7;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Crypto trust section
   ------------------------------------------------------------------------- */
.pricing-trust {
	background: #f7f9fa;
	border: 1px solid #e6eaea;
	border-radius: 12px;
	padding: 2rem 2.25rem;
	margin-bottom: 3rem;
}

.pricing-trust__fallback {
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.7;
	margin-bottom: 1.25rem;
	padding: 14px 16px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e6eaea;
}

.pricing-trust__fallback strong {
	color: #1a1a1a;
}

.pricing-trust__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.pricing-trust__desc {
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.7;
	margin-bottom: 0.75rem;
}

.pricing-trust__desc:last-of-type {
	margin-bottom: 0;
}

.pricing-trust__desc a {
	color: #2e3a3f;
	font-weight: 600;
	text-decoration: underline;
}

.pricing-trust__desc a:hover {
	opacity: 0.75;
}

.pricing-trust__checklist {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem 0;
}

.pricing-trust__checklist li {
	padding: 0.25rem 0 0.25rem 1.4rem;
	position: relative;
	font-size: 0.93rem;
	color: #4b5563;
}

.pricing-trust__checklist li::before {
	content: '–';
	position: absolute;
	left: 0.3rem;
	color: #6b7c80;
	font-weight: 600;
}

.pricing-trust__bullets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1.5rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e6eaea;
}

.pricing-trust__bullet {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	font-weight: 500;
	color: #2e3a3f;
}

.pricing-trust__bullet-icon {
	color: #1a6630;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.pricing-faq {
	margin-bottom: 3rem;
}

.pricing-faq__title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 1.5rem;
	text-align: center;
}

.pricing-faq__list {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.pricing-faq__item {
	border: 1px solid #e6eaea;
	border-radius: 8px;
	overflow: hidden;
}

.pricing-faq__item[open] {
	border-color: #2e3a3f;
}

.pricing-faq__question {
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}

.pricing-faq__question::-webkit-details-marker {
	display: none;
}

.pricing-faq__question::after {
	content: '+';
	font-size: 1.25rem;
	color: #6b7c80;
	font-weight: 400;
	line-height: 1;
	flex-shrink: 0;
	margin-left: 1rem;
}

.pricing-faq__item[open] .pricing-faq__question::after {
	content: '−';
}

.pricing-faq__answer {
	padding: 0 1.25rem 1rem;
	font-size: 0.9rem;
	color: #4b5563;
	line-height: 1.7;
}

/* -------------------------------------------------------------------------
   Bottom CTA
   ------------------------------------------------------------------------- */
.pricing-bottom-cta {
	text-align: center;
	padding: 2.5rem 1rem;
	border-top: 1px solid #e6eaea;
}

.pricing-bottom-cta p {
	font-size: 1rem;
	color: #6b7c80;
	margin-bottom: 1.25rem;
}

.pricing-bottom-cta__buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.pricing-bottom-cta .pricing-btn {
	display: inline-block;
	min-width: 180px;
}

/* -------------------------------------------------------------------------
   Subscribed state button
   ------------------------------------------------------------------------- */
.pricing-btn--subscribed {
	opacity: 0.65;
	cursor: default;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   Email modal overlay
   ------------------------------------------------------------------------- */
.sleepops-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.sleepops-modal {
	background: #ffffff;
	border-radius: 14px;
	width: 100%;
	max-width: 460px;
	padding: 2.5rem 2rem 2rem;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	animation: sleepops-modal-in 0.2s ease;
}

@keyframes sleepops-modal-in {
	from { opacity: 0; transform: scale(0.96) translateY(8px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sleepops-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
}

.sleepops-modal__close:hover {
	color: #1a1a1a;
	background: #f7f9fa;
}

.sleepops-modal__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b7c80;
	margin-bottom: 0.5rem;
}

.sleepops-modal__title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 0.5rem;
	line-height: 1.25;
}

.sleepops-modal__sub {
	font-size: 0.88rem;
	color: #6b7c80;
	margin-bottom: 1.75rem;
	line-height: 1.6;
}

.sleepops-modal__field {
	margin-bottom: 1rem;
}

.sleepops-modal__label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.4rem;
}

.sleepops-modal__input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e6eaea;
	border-radius: 8px;
	font-size: 1rem;
	color: #1a1a1a;
	outline: none;
	transition: border-color 0.15s;
	background: #ffffff;
}

.sleepops-modal__input:focus {
	border-color: #2e3a3f;
}

.sleepops-modal__input::placeholder {
	color: #9ca3af;
}

.sleepops-modal__error {
	margin-top: 0.4rem;
	font-size: 0.83rem;
	color: #dc2626;
}

.sleepops-modal__submit {
	width: 100%;
	padding: 14px 20px;
	font-size: 1rem;
	margin-top: 0.5rem;
	border: none;
	cursor: pointer;
}

.sleepops-modal__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sleepops-modal__note {
	text-align: center;
	font-size: 0.78rem;
	color: #9ca3af;
	margin-top: 0.75rem;
}

.sleepops-modal__note a {
	color: #2e3a3f;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.pricing-cards {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}

	.pricing-card--highlight {
		order: -1;
	}

	.pricing-hero__title {
		font-size: 1.9rem;
	}

	.pricing-alignment-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.sleepops-pricing-page {
		padding: 2rem 1rem 3rem;
	}

	.pricing-hero__title {
		font-size: 1.6rem;
	}

	.pricing-card {
		padding: 1.5rem 1.25rem;
	}

	.pricing-limit-callout__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.pricing-trust {
		padding: 1.5rem 1.25rem;
	}

	.pricing-upgrade-guide,
	.pricing-medical-boundary {
		padding: 1.35rem 1.25rem;
	}

	.pricing-trust__bullets {
		flex-direction: column;
		gap: 0.5rem;
	}
}
