/* Sketch Suite — FAQs
   Two layouts off one accordion: the "Got a Question?" intro band
   ([sketch_faqs]) and the centred full list ([sketch_faqs_all]). */

.skfaq {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	font-family: var(--sk-font, "Saans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--skfaq-text, #6b7280);
	padding: clamp(40px, 6vw, 90px) 0;
	--skfaq-accent: #6c4df6;
	--skfaq-heading: #0e1330;
	--skfaq-text: #6b7280;
	--skfaq-panel: #f4f4f6;
}
.skfaq *,
.skfaq *::before,
.skfaq *::after { box-sizing: border-box; }

.skfaq-inner {
	width: min(1280px, 100% - clamp(32px, 6vw, 120px));
	margin-inline: auto;
}

/* ── Intro band layout ────────────────────────────────────── */
.skfaq-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
@media (max-width: 900px) {
	.skfaq-intro-grid { grid-template-columns: 1fr; gap: 36px; }
}

.skfaq-aside { position: relative; }
@media (min-width: 901px) {
	/* Keep the intro copy in view while the list scrolls past on tall sets. */
	.skfaq-aside { position: sticky; top: 96px; }
}

.skfaq-title {
	margin: 0 0 22px;
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: 1.02;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--skfaq-heading);
}
/* One or two decorative images, sitting inline beside the heading with a
   playful tilt. With two, the second overlaps the first and tilts the other
   way so the pair reads as a little stack. */
.skfaq-title__imgs {
	display: inline-flex;
	vertical-align: middle;
	margin: 50px 0.08em 0;
}
.skfaq-title__img {
	display: inline-block;
	width: clamp(96px, 12vw, 168px);
	aspect-ratio: 1 / 1;
	border-radius: 26px;
	overflow: hidden;
	transform: rotate(-7deg);
	box-shadow: 0 16px 38px rgba(14, 19, 48, 0.18);
}
.skfaq-title__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Pair: overlap and counter-rotate the second tile. */
.skfaq-title__imgs[data-count="2"] .skfaq-title__img:first-child { transform: rotate(-9deg); }
.skfaq-title__imgs[data-count="2"] .skfaq-title__img:last-child {
	transform: rotate(7deg);
	margin-left: clamp(-34px, -2.4vw, -20px);
	position: relative;
	z-index: 2;
}

.skfaq-sub {
	margin: 0 0 28px;
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.5;
	color: var(--skfaq-text);
	max-width: 30ch;
}

.skfaq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 34px;
	border-radius: 999px;
	background: var(--skfaq-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
	box-shadow: 0 10px 24px rgba(108, 77, 246, 0.28);
}
.skfaq-btn:hover { transform: translateY(-2px); filter: brightness(1.04); color: #fff; }
.skfaq-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--skfaq-accent) 45%, #fff); outline-offset: 3px; }

/* ── Accordion list ───────────────────────────────────────── */
.skfaq-list { display: flex; flex-direction: column; gap: 16px; }
.skfaq-list--center {
	width: min(860px, 100%);
	margin-inline: auto;
}

.skfaq-item {
	background: var(--skfaq-panel);
	border-radius: 18px;
	transition: background-color .2s ease;
}

.skfaq-item__head { margin: 0; }
.skfaq-item__btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	color: var(--skfaq-heading);
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 600;
	line-height: 1.3;
}
.skfaq-item__q { flex: 1 1 auto; }

.skfaq-item__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--skfaq-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .25s ease, filter .18s ease;
}
.skfaq-item__icon svg { width: 20px; height: 20px; }
.skfaq-item__btn:hover .skfaq-item__icon { filter: brightness(1.06); }
.skfaq-item.is-open .skfaq-item__icon { transform: rotate(180deg); }

/* Answer panel — animated open/close via max-height. */
.skfaq-item__panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height .3s ease;
}
.skfaq-item__answer {
	padding: 0 clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 30px);
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.6;
	color: var(--skfaq-text);
	max-width: 64ch;
}

/* ── Dedicated-page header ────────────────────────────────── */
.skfaq-all-inner { display: block; }
.skfaq-all-head { text-align: center; margin: 0 auto clamp(32px, 4vw, 56px); max-width: 720px; }
.skfaq-title--center { font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 16px; }
.skfaq-sub--center { margin: 0 auto; max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
	.skfaq-item__panel,
	.skfaq-item__icon,
	.skfaq-btn { transition: none; }
}
