/*
Lamy LP — FAQ (Phase 7)

Strategy Q1 — single-column native <details>+<summary> accordion.
Matches design source layout (LPFAQ lines 869-950) but trades the
React useState toggle for native HTML disclosure (keyboard +
screen-reader accessible without ARIA polyfill, no JS required).

Section alternation: --bg-section (#0A0A0A), alternating from
Fit Check (#050505) above.

Purple Accent F: bottom-right corner (corner position 4 — completes
the 4-corner sweep across Phases 6+7).

Animation note: native <details> hides children via UA stylesheet
(display:none) when closed, so the opening opacity/translateY
transition only fires reliably in browsers that support @starting-style.
Older browsers get an instant reveal. The chevron rotation animates
reliably everywhere via transform transition. Closing is always
instant — accepted native-<details> limitation per Phase 7 spec.
*/

/* ============================================================
   Section
   ============================================================ */
.lp-faq {
	position: relative;
	overflow: hidden;
	background: var(--bg-section);
	padding-inline: clamp(64px, 10vw, 128px);
	/* Phase 8.9.6: desktop max 96px -> 64px (round 2 spacing reduction).
	   Phase 8.9.8: round 3 reduction - clamp(48, 8vw, 64) -> clamp(32, 5vw, 40). */
	padding-block: clamp(32px, 5vw, 40px);
}

.lp-faq > .lp-divider-gradient {
	height: 1px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	margin-block: clamp(48px, 8vw, 96px);
	margin-block-start: 0;
	background: var(--accent-gradient);
	border: 0;
}

/* Purple Accent Location F — bottom-right corner (corner 4) */
.lp-faq__bg-glow {
	position: absolute;
	bottom: -10%;
	right: -10%;
	width: 60%;
	height: 70%;
	background: radial-gradient(circle, var(--purple-atmosphere) 0%, transparent 70%);
	filter: blur(100px);
	opacity: 0.10;
	z-index: 0;
	pointer-events: none;
}

.lp-faq .lp-container {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

/* ============================================================
   Pill section label (scoped — same pattern as prior phases)
   ============================================================ */
.lp-faq .lp-section-label {
	display: inline-block;
	font-family: 'Heebo', sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 14px;
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid var(--gold-primary);
	border-radius: 999px;
	color: var(--gold-highlight);
	margin-bottom: 16px;
	letter-spacing: 0.02em;
	text-transform: none;
}

.lp-faq .lp-section-label::before,
.lp-faq .lp-section-label::after {
	content: none;
}

/* ============================================================
   Heading
   ============================================================ */
.lp-faq__heading {
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-weight: 800;
	font-size: clamp(27px, 3.5vw, 40px);
	color: var(--text-heading);
	text-wrap: balance;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 clamp(16px, 2vw, 24px) 0;
	text-align: center;
}

/* Phase 8.9 — intro paragraph between H2 and accordion */
.lp-faq__intro {
	font-family: 'Heebo', sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 1.4vw, 17px);
	color: var(--text-body);
	line-height: 1.6;
	text-align: center;
	max-width: 640px;
	margin: 0 auto clamp(28px, 3vw, 40px);
	text-wrap: pretty;
}

/* ============================================================
   Accordion list
   ============================================================ */
.lp-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 800px;
	margin-inline: auto;
}

/* ============================================================
   Accordion item — native <details>
   ============================================================ */
.lp-faq__item {
	background: var(--bg-card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.lp-faq__item[open] {
	border-color: rgba(212, 175, 55, 0.2);
}

/* ============================================================
   Question — <summary>
   Hide default disclosure marker across browsers, then style our own.
   ============================================================ */
.lp-faq__question {
	list-style: none;
	cursor: pointer;
	padding: clamp(16px, 2vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-family: 'Rubik', 'Heebo', sans-serif;
	font-weight: 600;
	font-size: clamp(16px, 1.5vw, 19px);
	color: var(--text-heading);
	line-height: 1.4;
	text-align: right;
	letter-spacing: -0.005em;
	transition: color 0.3s ease;
}

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

.lp-faq__question:hover {
	color: var(--gold-highlight);
}

.lp-faq__item[open] .lp-faq__question {
	color: var(--gold-highlight);
}

.lp-faq__question-text {
	flex: 1;
	text-wrap: pretty;
}

/* ============================================================
   Chevron — SVG icon, rotates 180deg on [open]
   ============================================================ */
.lp-faq__chevron {
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: var(--gold-primary);
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.lp-faq__chevron svg {
	width: 100%;
	height: 100%;
}

.lp-faq__item[open] .lp-faq__chevron {
	transform: rotate(180deg);
}

/* ============================================================
   Answer
   ============================================================ */
.lp-faq__answer {
	padding: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
	font-family: 'Heebo', sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 1.4vw, 17px);
	color: var(--text-body);
	line-height: 1.7;
	text-align: right;
}

.lp-faq__answer p {
	margin: 0 0 12px 0;
	text-wrap: pretty;
}

.lp-faq__answer p:last-child {
	margin-bottom: 0;
}

/* ============================================================
   Reduced motion — disable all FAQ transitions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.lp-faq__item,
	.lp-faq__question,
	.lp-faq__chevron {
		transition: none !important;
	}
}
