/* ============================================================
 * GuitarJacket — ABOUT page (product education) styles
 *
 * One long dark editorial page with a sticky page-level submenu.
 * Type system shared with the Story page: Fraunces (display serif)
 * + Inter (grotesque). Canvas #0c0c0d, warm cream text, gold accent.
 * ============================================================ */

:root {
	--cfpe-ab-bg:      #0c0c0d;
	--cfpe-ab-bg-2:    #131315;
	--cfpe-ab-ink:     #ece7df;
	--cfpe-ab-ink-dim: rgba(236, 231, 223, 0.62);
	--cfpe-ab-line:    rgba(236, 231, 223, 0.12);
	--cfpe-ab-gold:    #e7c88c;
	--cfpe-ab-gold-2:  #f7e088;
	--cfpe-ab-subnav-h: 56px;
}

/* ---- Full-bleed dark canvas over the theme ---------------- */
body.cfpe-about-active { background: var(--cfpe-ab-bg); }

.cfpe-about {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: var(--cfpe-ab-bg);
	color: var(--cfpe-ab-ink);
	-webkit-font-smoothing: antialiased;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}

/* Hide the theme's page title / featured image on this view. */
.cfpe-about-active .wp-block-post-title,
.cfpe-about-active .entry-title,
.cfpe-about-active .wp-block-post-featured-image { display: none !important; }

/* Block themes squeeze content into a narrow column; re-assert bleed. */
body.cfpe-about-active .cfpe-about {
	max-width: none !important;
	width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
body.cfpe-about-active .wp-block-post-content,
body.cfpe-about-active .entry-content,
body.cfpe-about-active main {
	overflow: visible !important;
}

/* ============================================================
 * Sticky local submenu (sits below the Hero Navigator)
 * ============================================================ */
.cfpe-ab-subnav {
	position: sticky;
	/* Pins to the top of the viewport (just below the WP admin bar for
	   logged-in users). The site Navigator bar scrolls away normally, so
	   the subnav is the topmost pinned element on this page. */
	top: var(--cfpe-nav-top, 0px);
	z-index: 50;
	background: rgba(12, 12, 13, 0.82);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--cfpe-ab-line);
}
.cfpe-ab-subnav__inner {
	max-width: 1180px;
	margin: 0 auto;
	min-height: var(--cfpe-ab-subnav-h);
	padding: 0 clamp(1rem, 4vw, 2.5rem);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.cfpe-ab-subnav__brand {
	font-family: "Fraunces", Georgia, serif;
	font-style: italic;
	font-size: 1.05rem;
	color: var(--cfpe-ab-ink);
	white-space: nowrap;
	flex: 0 0 auto;
}
/* Reserve room on the right edge so the floating Navigator tab (fixed in the
   top-right corner) never overlaps the right-aligned submenu links. The tab
   sits within ~150px of the viewport's right edge; on viewports wide enough
   that the centered submenu clears it naturally, the reservation is dropped. */
@media (max-width: 1460px) {
	.cfpe-ab-subnav__inner {
		padding-right: 150px;
	}
}
@media (max-width: 600px) {
	.cfpe-ab-subnav__inner {
		/* Tighten side gutters and drop the reserved right slot — the
		   floating Navigator tab shrinks to a small circle on phones, and
		   the pill row scrolls the active item into view via JS. */
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		gap: 0;
	}
	/* Reclaim the horizontal room the brand label eats up so all of the
	   section pills fit within the viewport instead of overflowing off the
	   right edge behind the floating tab. */
	.cfpe-ab-subnav__brand {
		display: none;
	}
	.cfpe-ab-subnav__list {
		margin-left: 0;
		width: 100%;
		/* A little end padding so the last pill clears the floating tab. */
		padding-right: 52px;
	}
}
.cfpe-ab-subnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin-left: auto;
}
.cfpe-ab-subnav__list::-webkit-scrollbar { display: none; }
.cfpe-ab-subnav__link {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: var(--cfpe-ab-ink-dim);
	text-decoration: none;
	transition: color 0.18s ease, background 0.18s ease;
}
.cfpe-ab-subnav__link:hover { color: var(--cfpe-ab-ink); }
.cfpe-ab-subnav__link.is-active {
	color: #1b160c;
	background: var(--cfpe-ab-gold);
	font-weight: 600;
}
.cfpe-ab-subnav__link:focus-visible {
	outline: 2px solid rgba(255, 220, 100, 0.8);
	outline-offset: 2px;
}

/* ============================================================
 * Sections + shared editorial primitives
 * ============================================================ */
.cfpe-ab-section {
	padding: clamp(4rem, 11vh, 8rem) 0;
	border-bottom: 1px solid var(--cfpe-ab-line);
	scroll-margin-top: calc(var(--cfpe-nav-top, 0px) + var(--cfpe-ab-subnav-h) + 8px);
	outline: none;
}
.cfpe-ab-section:last-of-type { border-bottom: 0; }
.cfpe-ab-section--compatibility,
.cfpe-ab-section--faq { background: var(--cfpe-ab-bg-2); }

.cfpe-ab-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 5vw, 3rem);
}
.cfpe-ab-wrap--narrow { max-width: 760px; }

.cfpe-ab-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--cfpe-ab-gold);
	margin: 0 0 1.4rem;
}
.cfpe-ab-display {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(2.1rem, 5.4vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: #f4efe6;
	margin: 0 0 2.4rem;
	max-width: 20ch;
}
.cfpe-ab-heading {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.7rem, 3.6vw, 2.7rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: #f4efe6;
	margin: 0 0 1rem;
}
.cfpe-ab-sub {
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	color: var(--cfpe-ab-ink-dim);
	max-width: 60ch;
	margin: 0 0 2.6rem;
}

/* ---- Section 1: Design Philosophy ------------------------- */
.cfpe-ab-philosophy__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.cfpe-ab-prose > p {
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	color: rgba(236, 231, 223, 0.82);
	margin: 0 0 1.3rem;
}
.cfpe-ab-lead {
	font-size: clamp(1.15rem, 1.8vw, 1.42rem) !important;
	line-height: 1.5;
	color: #f1ece3 !important;
	margin-bottom: 1.8rem !important;
}
.cfpe-ab-philosophy__figure {
	position: sticky;
	top: calc(var(--cfpe-nav-top, 0px) + var(--cfpe-ab-subnav-h) + 2rem);
}
.cfpe-ab-silhouette {
	aspect-ratio: 4 / 5;
	border: 1px solid var(--cfpe-ab-line);
	border-radius: 10px;
	background:
		radial-gradient(120% 80% at 50% 20%, rgba(231, 200, 140, 0.10) 0%, transparent 60%),
		linear-gradient(160deg, #161618 0%, #0e0e10 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
}
.cfpe-ab-handoff {
	margin: 3rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--cfpe-ab-line);
	font-family: "Fraunces", Georgia, serif;
	font-style: italic;
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	line-height: 1.45;
	color: #efe9df;
	max-width: 48ch;
}

/* Trademark / non-affiliation disclaimer — quiet fine print. */
.cfpe-ab-trademark {
	margin: 2.2rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--cfpe-ab-ink-dim);
	max-width: 70ch;
}
.cfpe-ab-legal-identity {
	margin: 0.8rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--cfpe-ab-ink-dim);
	max-width: 70ch;
}
.cfpe-ab-legal-identity--contact {
	margin: 1rem auto 0;
	text-align: center;
}

/* Generic placeholder treatment (silhouette, close-up media). */
[data-cfpe-placeholder] {
	position: relative;
}
[data-cfpe-placeholder]::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px);
	border-radius: inherit;
	pointer-events: none;
}
.cfpe-ab-silhouette__label,
.cfpe-ab-closeup__ph {
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(236, 231, 223, 0.4);
}

/* ---- Section 2: Compatibility wizard ---------------------- */
.cfpe-ab-wizard {
	position: relative;
	border: 1px solid var(--cfpe-ab-line);
	border-radius: 14px;
	background: linear-gradient(160deg, #161618 0%, #0e0e10 100%);
	padding: clamp(1.6rem, 4vw, 3rem);
	max-width: 720px;
}
.cfpe-ab-step { display: none; }
.cfpe-ab-step.is-active { display: block; animation: cfpe-ab-fade 0.45s ease both; }
@keyframes cfpe-ab-fade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
.cfpe-ab-step__count {
	font-size: 0.7rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--cfpe-ab-ink-dim);
	margin: 0 0 0.8rem;
}
.cfpe-ab-step__q {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	line-height: 1.25;
	color: #f4efe6;
	margin: 0 0 1.6rem;
}
.cfpe-ab-choices {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.cfpe-ab-choices--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}
.cfpe-ab-choice {
	appearance: none;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--cfpe-ab-ink);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--cfpe-ab-line);
	border-radius: 10px;
	padding: 0.95rem 1.1rem;
	transition: border-color 0.16s ease, background 0.16s ease, transform 0.08s ease;
}
.cfpe-ab-choice:hover {
	border-color: rgba(231, 200, 140, 0.55);
	background: rgba(231, 200, 140, 0.07);
}
.cfpe-ab-choice:active { transform: translateY(1px); }
.cfpe-ab-choice:focus-visible {
	outline: 2px solid rgba(255, 220, 100, 0.8);
	outline-offset: 2px;
}
.cfpe-ab-choice--ghost {
	background: transparent;
	color: var(--cfpe-ab-ink-dim);
}
.cfpe-ab-note {
	margin-top: 1.2rem;
	padding: 1rem 1.1rem;
	border-left: 2px solid var(--cfpe-ab-gold);
	background: rgba(231, 200, 140, 0.06);
	border-radius: 0 8px 8px 0;
}
.cfpe-ab-note p { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--cfpe-ab-ink-dim); }
.cfpe-ab-textlink {
	appearance: none;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--cfpe-ab-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 0;
}
.cfpe-ab-textlink:hover { color: var(--cfpe-ab-gold-2); }
.cfpe-ab-back { display: inline-block; margin-top: 1.4rem; }

/* Wizard result states */
.cfpe-ab-result__badge {
	display: inline-block;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	margin: 0 0 1.2rem;
}
.cfpe-ab-result--compatible .cfpe-ab-result__badge {
	color: #0c1f10;
	background: #9bd6a3;
}
.cfpe-ab-result--review .cfpe-ab-result__badge {
	color: #2a1f06;
	background: var(--cfpe-ab-gold);
}
.cfpe-ab-result--unsupported .cfpe-ab-result__badge {
	color: #ece7df;
	background: rgba(236, 231, 223, 0.12);
	border: 1px solid var(--cfpe-ab-line);
}
.cfpe-ab-result__text {
	font-size: 1.05rem;
	color: rgba(236, 231, 223, 0.85);
	margin: 0 0 1.6rem;
	max-width: 52ch;
}
.cfpe-ab-result__actions {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	flex-wrap: wrap;
}

/* ---- Shared button ---------------------------------------- */
.cfpe-ab-btn {
	display: inline-block;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: #1b160c;
	background: linear-gradient(170deg, #f7e088 0%, #d4a932 55%, #c5942a 100%);
	padding: 0.85rem 1.6rem;
	border-radius: 8px;
	box-shadow: 0 3px 0 0 #8a6a10, 0 6px 18px rgba(0,0,0,0.4);
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.cfpe-ab-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 0 #8a6a10, 0 3px 10px rgba(0,0,0,0.4); color: #1b160c; }
.cfpe-ab-btn:focus-visible { outline: 2px solid rgba(255,220,100,0.85); outline-offset: 3px; }
.cfpe-ab-btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.cfpe-ab-btn--ghost {
	background: transparent;
	color: var(--cfpe-ab-ink);
	border: 1px solid rgba(236, 231, 223, 0.3);
	box-shadow: none;
}
.cfpe-ab-btn--ghost:hover { color: var(--cfpe-ab-ink); border-color: var(--cfpe-ab-gold); transform: none; }

/* Compatibility footer note (mirrors the flowchart's IMPORTANT bar). */
.cfpe-ab-compat-note {
	margin: 1.6rem 0 0;
	max-width: 720px;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--cfpe-ab-ink-dim);
	padding-left: 1rem;
	border-left: 2px solid var(--cfpe-ab-line);
}

/* ---- Section 3: Close-Up View ----------------------------- */
.cfpe-ab-closeups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.8rem);
}
.cfpe-ab-closeup {
	position: relative;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--cfpe-ab-line);
}
.cfpe-ab-closeup__media {
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(140% 120% at 70% 10%, rgba(231,200,140,0.08) 0%, transparent 55%),
		linear-gradient(155deg, #18181b 0%, #0d0d0f 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}
.cfpe-ab-closeup__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.4rem 1.3rem 1.2rem;
	background: linear-gradient(0deg, rgba(8,8,9,0.92) 0%, rgba(8,8,9,0.55) 60%, transparent 100%);
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.cfpe-ab-closeup__tag {
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cfpe-ab-gold);
}
.cfpe-ab-closeup__text {
	font-size: 0.95rem;
	color: rgba(236, 231, 223, 0.86);
	line-height: 1.45;
}

/* ---- Section 4: FAQ accordion ----------------------------- */
.cfpe-ab-faq { border-top: 1px solid var(--cfpe-ab-line); }
.cfpe-ab-faq__item { border-bottom: 1px solid var(--cfpe-ab-line); }
.cfpe-ab-faq__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0.25rem;
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	color: #f1ece3;
}
.cfpe-ab-faq__q::-webkit-details-marker { display: none; }
.cfpe-ab-faq__q:focus-visible {
	outline: 2px solid rgba(255, 220, 100, 0.8);
	outline-offset: 3px;
}
.cfpe-ab-faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}
.cfpe-ab-faq__icon::before,
.cfpe-ab-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--cfpe-ab-gold);
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.cfpe-ab-faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.cfpe-ab-faq__icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.cfpe-ab-faq__item[open] .cfpe-ab-faq__icon::after { transform: scaleY(0); opacity: 0; }
.cfpe-ab-faq__a {
	padding: 0 0.25rem 1.5rem;
	max-width: 64ch;
}
.cfpe-ab-faq__a p {
	margin: 0;
	color: var(--cfpe-ab-ink-dim);
	font-size: 1rem;
	line-height: 1.65;
}

/* ---- Section 5: Contact ----------------------------------- */
.cfpe-ab-contact { text-align: center; }
.cfpe-ab-contact .cfpe-ab-eyebrow,
.cfpe-ab-contact .cfpe-ab-sub { margin-left: auto; margin-right: auto; }
.cfpe-ab-contact__actions { margin: 2rem 0 1.2rem; }
.cfpe-ab-contact__note {
	font-size: 0.8rem;
	color: rgba(236, 231, 223, 0.4);
	font-style: italic;
	margin: 0;
}

/* ---- Standalone Contact page ------------------------------ */
.cfpe-contact-page .cfpe-ab-section--contact-page {
	/* Sit just under the navigator — no hero-style vertical centering. */
	min-height: 0;
	display: block;
	border-bottom: 0;
	padding: clamp(1.5rem, 4vh, 2.75rem) 0 clamp(3rem, 8vh, 5rem);
}
.cfpe-contact-page .cfpe-ab-display {
	margin-left: auto;
	margin-right: auto;
	max-width: 18ch;
}
.cfpe-ab-form {
	margin: 2.6rem auto 0;
	max-width: 520px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.cfpe-ab-field { display: flex; flex-direction: column; gap: 0.45rem; }
.cfpe-ab-field label {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cfpe-ab-ink-dim);
}
.cfpe-ab-field input,
.cfpe-ab-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	color: var(--cfpe-ab-ink);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--cfpe-ab-line);
	border-radius: 8px;
	padding: 0.75rem 0.9rem;
	transition: border-color 0.16s ease, background 0.16s ease;
}
.cfpe-ab-field input:focus,
.cfpe-ab-field textarea:focus {
	outline: none;
	border-color: rgba(231, 200, 140, 0.6);
	background: rgba(231, 200, 140, 0.05);
}
.cfpe-ab-field textarea { resize: vertical; min-height: 120px; }
.cfpe-ab-form .cfpe-ab-btn { align-self: flex-start; }
.cfpe-ab-req { color: var(--cfpe-ab-gold); }

/* Honeypot: pulled off-screen (NOT display:none — some bots skip
   fields hidden that way, and we want them to fill it). */
.cfpe-ab-field--hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cfpe-ab-field--challenge input { max-width: 140px; }

/* Contact form result notices */
.cfpe-ab-notice {
	margin: 2rem auto 0;
	max-width: 520px;
	padding: 0.9rem 1.2rem;
	border-radius: 10px;
	font-size: 0.95rem;
	text-align: left;
}
.cfpe-ab-notice--ok {
	background: rgba(133, 196, 138, 0.1);
	border: 1px solid rgba(133, 196, 138, 0.45);
	color: #b8e0bb;
}
.cfpe-ab-notice--err {
	background: rgba(224, 122, 122, 0.1);
	border: 1px solid rgba(224, 122, 122, 0.45);
	color: #ecb3b3;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 860px) {
	.cfpe-ab-philosophy__grid { grid-template-columns: 1fr; }
	.cfpe-ab-philosophy__figure { position: static; max-width: 360px; }
	.cfpe-ab-closeups { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.cfpe-ab-subnav__brand { display: none; }
	.cfpe-ab-subnav__list { margin-left: 0; }
	.cfpe-ab-choices--grid { grid-template-columns: 1fr; }
	.cfpe-ab-result__actions { gap: 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.cfpe-ab-step.is-active { animation: none; }
	html { scroll-behavior: auto; }
}
