/* Shared components used on more than one page (homepage + pricing page +
   FAQ page): the page-hero, pricing cards, the FAQ accordion, and the dark
   "value box" card used by the homepage's Audience section and the
   pricing page's value-props section. Kept out of home.css so pages that
   don't need it aren't paying for this CSS. */

/* Page hero: centered title + subtitle. Reuses the homepage hero's exact
   type scale (48px/900/56 desktop, 34px/40 mobile) so it reads as the same
   design system, just centered and on the dark navy used by the site's
   other dark sections (how-it-works, audience, stats, authenticity)
   instead of the homepage hero's light lavender. Shared by the pricing and
   FAQ pages. */
/* position:relative + z-index gives this its own stacking context so the
   box-shadow (which bleeds downward past this element's own box) paints
   on top of the following section's background, instead of being covered
   by it — normal-flow siblings otherwise paint over each other in DOM
   order, which was hiding the shadow entirely. */
.page-hero { position: relative; z-index: 1; background: #1f1346; padding-top: 64px; padding-bottom: 64px; text-align: center; border-bottom: 1px solid #ffffff; box-shadow: 0px 4px 7px 1px rgba(222, 219, 219, 1); }
.page-hero__inner { max-width: 720px; margin: 0 auto; }
.page-hero__title { font-size: 48px; font-weight: 900; line-height: 56px; color: #ffffff; letter-spacing: -0.5px; margin-bottom: 16px; }
.page-hero__subtitle { font-family: var(--font-heading); font-size: 16px; font-weight: 400; line-height: 28px; color: rgba(255, 255, 255, 0.8); }

@media (max-width: 768px) {
	.page-hero { padding-top: 40px; padding-bottom: 40px; }
	.page-hero__title { font-size: 34px; line-height: 40px; }
	.page-hero__subtitle { font-size: 16px; line-height: 24px; }
}

/* Pricing: verified via _elementor_data */
.pricing { background: #f5f5f6; }
.pricing .eyebrow {
	color: #1d1e20;
	background: #cbc8ff;
	border: none;
	padding: 4px 12px;
	text-transform: none;
}
.pricing__trust-viewport { margin-top: 15px; margin-bottom: 30px; overflow: hidden; }
.pricing__trust-track { display: flex; align-items: center; justify-content: center; }
.pricing__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 32px;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #1d1e20;
}
.pricing__trust li { display: flex; align-items: center; gap: 8px; }
.pricing__trust img { flex-shrink: 0; }
/* Hidden on desktop — the static wrapped row above is enough there. On
   mobile this duplicate becomes visible and the track scrolls -50% of its
   own width, which is exactly one copy's width, so the loop is seamless.
   Same auto-marquee pattern as the press-strip logos above. */
.pricing__trust--dup { display: none; }

@media (max-width: 768px) {
	/* Wrapping onto 4 stacked centered rows pushed the pricing cards too
	   far down on mobile — an automatic slide (not a manual swipe) matches
	   the press-strip logos' treatment. */
	.pricing__trust-viewport { margin-top: 10px; margin-bottom: 25px; }
	.pricing__trust-track {
		gap: 24px;
		width: max-content;
		animation: pricing-trust-marquee 20s linear infinite;
	}
	.pricing__trust { flex-wrap: nowrap; }
	.pricing__trust li { white-space: nowrap; }
	.pricing__trust--dup { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	.pricing__trust-track { animation: none; }
}

@keyframes pricing-trust-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
/* Pricing cards: modeled on Hostinger.com's 3-column pricing table (per
   explicit request to diverge from Hypeflare's own simpler 2-card layout) —
   dark elevated "featured" middle card, top-right discount badge,
   strikethrough price, fine print, divider, included/excluded checklist,
   and a "Build with" footer. Content is placeholder pending real numbers. */
.pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	align-items: stretch;
}
.price-card {
	position: relative;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	padding: 16px 32px 32px;
	font-family: var(--font-heading);
}
/* Featured card reads as "elevated" via its dark gradient alone — same
   padding as the other two cards so titles share one top edge exactly. */
.price-card--featured {
	background: radial-gradient(120% 100% at 50% 0%, #3d2470 0%, #1c1140 45%, #0b0718 100%);
	border: none;
	color: #ffffff;
	z-index: 1;
}
/* In-flow (not absolute) and given a fixed min-height on every card,
   badge or not — Starter/Boost get an empty slot the same height as
   Scale's, so all three titles start at the exact same Y regardless of
   which card actually has badge text. Relying on position:absolute here
   previously left Starter/Boost's title with no clearance reserved and
   they drifted out of alignment with Scale's. */
.price-card__badge-slot {
	display: flex;
	justify-content: flex-end;
	min-height: 24px;
	margin-bottom: 20px;
}
.price-card__badge {
	display: inline-flex;
	align-items: center;
	background: #f4f5ff;
	color: #1d1e20;
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 100px;
	white-space: nowrap;
}
.price-card__title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
}
.price-card--featured .price-card__title { color: #ffffff; }
.price-card__desc { font-size: 14px; line-height: 1.5; color: #6b6b6b; margin-bottom: 20px; }
.price-card--featured .price-card__desc { color: rgba(255, 255, 255, 0.72); }
.price-card__price-old {
	font-size: 14px;
	color: #6b6b6b;
	text-decoration: line-through;
	margin-bottom: 2px;
}
.price-card--featured .price-card__price-old { color: rgba(255, 255, 255, 0.5); }
.price-card__price {
	display: flex;
	align-items: flex-start;
	gap: 2px;
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-ink);
	margin-bottom: 20px;
}
.price-card--featured .price-card__price { color: #ffffff; }
.price-card__currency { font-size: 32px; font-weight: 500; line-height: 1; }
.price-card__period { align-self: flex-end; font-size: 14px; font-weight: 500; line-height: 1; color: #6b6b6b; margin-bottom: 2px; }
.price-card--featured .price-card__period { color: rgba(255, 255, 255, 0.6); }

.price-card__cta {
	display: block;
	width: 100%;
	text-align: center;
	border-radius: var(--radius-pill);
	padding: 14px;
	font-weight: 700;
	background: #ffffff;
	border: 2px solid var(--color-purple);
	color: var(--color-purple);
}
.price-card__cta:hover { background: #f4f2ff; }
.price-card--featured .price-card__cta {
	background: var(--color-purple);
	border-color: var(--color-purple);
	color: #ffffff;
}
.price-card--featured .price-card__cta:hover { background: var(--color-purple-dark); }

.price-card__divider { border: 0; border-top: 1px solid var(--color-border); margin: 20px 0; }
.price-card--featured .price-card__divider { border-top-color: rgba(255, 255, 255, 0.15); }

.price-card__benefits { margin: 0; }
.price-card__benefits li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	font-size: 14px;
}
.price-card__benefits li.is-included::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}
.price-card--featured .price-card__benefits li.is-included::before { color: #a78bfa; }
/* Excluded items are greyed out (dash + text) to read as unavailable,
   matching the reference. #6b6b6b (not the lighter #9a9a9a originally used
   here) is the minimum shade that clears WCAG AA's 4.5:1 text contrast
   ratio on the card's white background. */
.price-card__benefits li.is-excluded { color: #6b6b6b; }
.price-card--featured .price-card__benefits li.is-excluded { color: rgba(255, 255, 255, 0.4); }
/* Drawn as a rectangle (not a text glyph) so its length/thickness stays
   consistent regardless of font rendering. */
.price-card__benefits li.is-excluded::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 12px;
	height: 2px;
	background: #6b6b6b;
}
.price-card--featured .price-card__benefits li.is-excluded::before { background: rgba(255, 255, 255, 0.4); }

/* Tooltip terms (modeled on the reference's dotted-underlined items, e.g.
   "Domain – free for 1 year", "CDN included") — hover/focus reveals a short
   explanation instead of relying on the term alone. Reference shows a solid
   purple box below the term with an upward-pointing arrow connecting it to
   the term, not a dark box floating above it. */
.tip {
	border-bottom: 1px dotted currentColor;
	cursor: help;
	position: relative;
}
/* Arrow's base sits flush against the box's top edge (box margin-top equals
   the arrow's full height, 12px) so the two never overlap. z-index is
   required here — later sibling <li>s are also position:relative (for their
   own check/dash marker), and with equal z-index:auto a later DOM sibling
   paints above an earlier one, burying the tooltip under the rows below it. */
.tip:hover::before,
.tip:focus::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 100%;
	margin-top: 0;
	border: 6px solid transparent;
	border-bottom-color: #4a2fbd;
	z-index: 21;
}
.tip:hover::after,
.tip:focus::after {
	content: attr(data-tip);
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: 12px;
	background: #4a2fbd;
	color: #ffffff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	padding: 12px 14px;
	border-radius: 10px;
	white-space: normal;
	width: 240px;
	z-index: 20;
	box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
}

.price-card__build-label { font-size: 14px; font-weight: 700; color: var(--color-ink); margin-top: 28px; margin-bottom: 12px; }
.price-card--featured .price-card__build-label { color: #ffffff; }
.price-card__build { display: flex; flex-direction: column; gap: 10px; }
.price-card__build span { display: block; font-size: 14px; color: var(--color-body); }
.price-card--featured .price-card__build span { color: rgba(255, 255, 255, 0.8); }

.price-card__whybox {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(103, 61, 230, 0.08);
}
.price-card--featured .price-card__whybox { background: rgba(255, 255, 255, 0.06); }
.price-card__whybox-label { font-size: 13px; font-weight: 700; color: var(--color-purple); margin-bottom: 4px; }
.price-card--featured .price-card__whybox-label { color: #c9b8ff; }
.price-card__whybox-desc { font-size: 13px; line-height: 1.5; color: var(--color-body); }
.price-card--featured .price-card__whybox-desc { color: rgba(255, 255, 255, 0.8); }

/* Dark "value box" card: icon-box + heading + paragraph on a dark purple
   section background. First built for the homepage's Audience section;
   reused as-is (same classes) anywhere else that needs the identical
   visual treatment with different content, e.g. the pricing page. */
.audience-card {
	background: #2f1c6a;
	border-radius: var(--radius-card);
	padding: 32px;
}
.audience-card__icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #673de6;
	border-radius: 6px;
	margin-bottom: 16px;
}
.audience-card__icon { width: 24px; height: 24px; }
.audience-card h3 { color: #ffffff; font-size: 19px; margin-bottom: 12px; }
.audience-card p { font-size: 15px; color: rgba(255, 255, 255, 0.72); }

/* FAQ: verified via _elementor_data — this title is 40px/600/48 line-height,
   unlike every other section-title (36/700/40). */
.faq .section-title { font-size: 40px; font-weight: 600; line-height: 48px; }
.faq__layout {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	align-items: center;
	margin-top: 48px;
}
.faq__media img { border-radius: var(--radius-card); }
.faq__list { margin: 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	text-align: left;
	padding: 22px 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 17px;
	color: var(--color-ink);
}
.faq-item__icon {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	margin-left: 16px;
	position: relative;
}
.faq-item__icon::before,
.faq-item__icon::after {
	content: '';
	position: absolute;
	background: var(--color-purple);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.faq-item__icon::before { width: 12px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 12px; transition: transform 0.15s ease; }
.faq-item__question[aria-expanded="true"] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__answer { padding-bottom: 22px; font-size: 15px; color: var(--color-body); }
.faq-item__answer[hidden] { display: none; }
.faq-item__answer p { font-size: 15px; color: var(--color-body); }
.faq-item__answer p + p { margin-top: 12px; }

@media (max-width: 900px) {
	.faq__layout { grid-template-columns: 1fr; }
	.faq__media { order: -1; }
	/* Swipeable carousel instead of a stacked column: cards snap-scroll
	   horizontally with the featured plan centered by JS on load (see
	   pricing-swiper.js). flex:0 0 82% leaves a peek of the neighboring
	   card on each side as a swipe affordance. */
	.pricing__grid {
		display: flex;
		grid-template-columns: none;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 24px;
		margin-left: -24px;
		margin-right: -24px;
		padding: 0 24px 8px;
		/* overscroll-behavior-x on html/body (global.css) only stops the
		   outer page from bouncing — it doesn't stop THIS inner scroller's
		   own momentum/rubber-band at its start/end from chaining into the
		   page on iOS Safari, which is what reads as the whole page
		   shifting side to side. contain stops that chaining at the source. */
		overscroll-behavior-x: contain;
	}
	.pricing__grid::-webkit-scrollbar { display: none; }
	.price-card {
		scroll-snap-align: center;
		flex: 0 0 82%;
		max-width: 320px;
	}
}
