/**
 * 9XO Help Center landing page.
 * Loaded only on the Help Center page when the help-center module is enabled.
 * Design tokens mirror the About page (Elementor post-1064): --nxo-primary,
 * --nxo-dark, --nxo-text, capsule buttons, About heading scale.
 */

/* width:100% defeats Motta's fixed .container width so the hero band can
   bleed edge to edge (same neutralization as blog-landing.css). */
.nxo-help-center-page .site-content > .container {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.nxo-help-center-page .content-area,
.nxo-help-center-page .site-main,
.nxo-help-center-page .hentry {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

.nxo-help-center-page .entry-header,
.nxo-help-center-page .page-header,
.nxo-help-center-page .search-bar-hc {
	display: none !important;
}

.nxo-hc {
	--nxo-hc-accent: #6c35e8;
	--nxo-hc-accent-dark: #5222c4;
	--nxo-hc-dark: #20212a;
	--nxo-hc-soft: #f3edff;
	--nxo-hc-soft-2: #eee5ff;
	--nxo-hc-text: #20212a;
	--nxo-hc-muted: #555765;
	--nxo-hc-border: #e9e6ef;
	--nxo-hc-surface: #ffffff;
	--nxo-hc-radius: 18px;
	--nxo-hc-shadow: 0 10px 30px rgba(30, 31, 40, 0.05);
	--nxo-hc-grad: linear-gradient(135deg, var(--nxo-hc-accent), var(--nxo-hc-accent-dark));
	--nxo-hc-btn-shadow: 0 12px 28px rgba(108, 53, 232, 0.25);
	color: var(--nxo-hc-text);
	background: #fff;
	font-size: 1rem;
	line-height: 1.5;
}

.nxo-hc *,
.nxo-hc *::before,
.nxo-hc *::after {
	box-sizing: border-box;
}

.nxo-hc-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.nxo-hc-section {
	padding: 44px 0;
}

.nxo-hc-section--soft {
	background: #fcfbff;
}

.nxo-hc-section__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 24px;
	text-align: center;
}

.nxo-hc-section__header--left {
	align-items: flex-start;
	text-align: left;
	margin-bottom: 18px;
}

.nxo-hc-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--nxo-hc-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.nxo-hc-section__title {
	margin: 0;
	color: var(--nxo-hc-dark);
	font-size: clamp(30px, 3.5vw, 42px);
	font-weight: 700;
	letter-spacing: -1.2px;
	line-height: 1.15;
}

.nxo-hc-section__subtitle {
	margin: 8px 0 0;
	color: var(--nxo-hc-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Hero — gradient-only full-bleed band (no imagery): brand-purple and
   soft-pink radial glows balance the right side over the lavender base,
   plus a white sheen top-left — same layered treatment as the blog heroes. */
.nxo-hc-hero {
	position: relative;
	overflow: hidden;
	padding: 32px 0 40px;
	background:
		radial-gradient(620px 320px at 82% 24%, rgba(108, 53, 232, 0.12), transparent 70%),
		radial-gradient(480px 280px at 62% 88%, rgba(210, 92, 226, 0.1), transparent 70%),
		radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 32%),
		linear-gradient(135deg, #fbf8ff 0%, #eee9f7 48%, #e8dafd 100%);
}

.nxo-hc-hero__grid {
	display: block;
}

.nxo-hc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--nxo-hc-muted);
	font-size: 13px;
}

.nxo-hc-breadcrumb a {
	color: var(--nxo-hc-accent-dark);
	text-decoration: none;
}

.nxo-hc-breadcrumb a:hover {
	color: var(--nxo-hc-accent);
}

.nxo-hc-hero__title {
	margin: 0 0 12px;
	color: var(--nxo-hc-dark);
	font-size: clamp(38px, 4.6vw, 56px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.05;
	text-transform: uppercase;
}

.nxo-hc-hero__subtitle {
	max-width: 36rem;
	margin: 0 0 20px;
	color: var(--nxo-hc-muted);
	font-size: 16px;
	line-height: 1.7;
}

/* Unified site search spec (matches header capsule search, child 1.4.7):
   capsule white field, #e9e6ef border, purple focus ring, 38px gradient submit. */
.nxo-hc-search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 560px;
	padding: 4px 4px 4px 6px;
	border: 1px solid #e9e6ef;
	border-radius: 999px;
	background: var(--nxo-hc-surface);
	box-shadow: 0 10px 26px rgba(72, 42, 115, 0.1);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nxo-hc-search:focus-within {
	border-color: var(--nxo-hc-accent);
	box-shadow:
		0 10px 26px rgba(72, 42, 115, 0.1),
		0 0 0 3px rgba(108, 53, 232, 0.16);
}

.nxo-hc-search__icon {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	color: var(--nxo-hc-accent);
	flex: 0 0 auto;
}

.nxo-hc-search__icon svg {
	width: 20px;
	height: 20px;
}

/* Page-class prefix outranks Motta's global input[type="text"] styling
   (2px grey border, 60px height). */
body.nxo-help-center-page .nxo-hc-search__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	min-height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--nxo-hc-text);
	font-size: 14px;
	outline: none;
	box-shadow: none;
}

.nxo-hc-search__field::placeholder {
	color: #7a8090;
	opacity: 1;
}

.nxo-hc-search__submit {
	flex: 0 0 auto;
	height: 38px;
	min-height: 38px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nxo-hc-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Motta's global button:hover paints its dark-blue primary; keep the brand
   gradient (selector carries the page class to outrank it). */
body.nxo-help-center-page .nxo-hc-search__submit:hover {
	background: var(--nxo-hc-grad);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(108, 53, 232, 0.3);
}

.nxo-hc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.nxo-hc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 16px;
	border: 1px solid rgba(108, 53, 232, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--nxo-hc-accent-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nxo-hc-chip:hover {
	border-color: var(--nxo-hc-accent);
	background: var(--nxo-hc-soft);
	color: var(--nxo-hc-accent-dark);
}

/* Popular tasks */
.nxo-hc-tasks {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 14px;
}

.nxo-hc-task {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-height: 100%;
	padding: 18px 15px 16px;
	border: 1px solid var(--nxo-hc-border);
	border-radius: var(--nxo-hc-radius);
	background: var(--nxo-hc-surface);
	box-shadow: var(--nxo-hc-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.nxo-hc-task__icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--nxo-hc-soft);
	color: var(--nxo-hc-accent);
}

.nxo-hc-task__icon svg,
.nxo-hc-category__icon svg,
.nxo-hc-article__placeholder svg,
.nxo-hc-support__btn-icon svg,
.nxo-hc-task__arrow svg,
.nxo-hc-article__more svg {
	width: 22px;
	height: 22px;
	display: block;
}

.nxo-hc-task__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nxo-hc-dark);
}

.nxo-hc-task__desc {
	flex: 1 1 auto;
	color: var(--nxo-hc-muted);
	font-size: 12px;
	line-height: 1.55;
}

.nxo-hc-task__arrow {
	color: var(--nxo-hc-accent);
}

/* Categories */
.nxo-hc-categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.nxo-hc-category {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px;
	border: 1px solid var(--nxo-hc-border);
	border-radius: var(--nxo-hc-radius);
	background: var(--nxo-hc-surface);
	box-shadow: var(--nxo-hc-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.nxo-hc-category__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nxo-hc-soft);
	color: var(--nxo-hc-accent);
}

.nxo-hc-category__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--nxo-hc-dark);
}

.nxo-hc-category__desc {
	color: var(--nxo-hc-muted);
	font-size: 13px;
	line-height: 1.6;
}

/* Articles */
.nxo-hc-articles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.nxo-hc-article {
	overflow: hidden;
	border: 1px solid var(--nxo-hc-border);
	border-radius: var(--nxo-hc-radius);
	background: var(--nxo-hc-surface);
	box-shadow: var(--nxo-hc-shadow);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.nxo-hc-article__media {
	display: block;
	aspect-ratio: 16 / 11;
	background: linear-gradient(145deg, #ece4f7, #d8ccee);
}

.nxo-hc-article__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nxo-hc-article__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--nxo-hc-accent);
}

.nxo-hc-article__body {
	padding: 15px;
}

.nxo-hc-article__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.nxo-hc-article__title a {
	color: var(--nxo-hc-dark);
	text-decoration: none;
}

.nxo-hc-article__meta {
	margin: 0 0 10px;
	color: var(--nxo-hc-muted);
	font-size: 12px;
}

.nxo-hc-article__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--nxo-hc-accent);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.nxo-hc-article__more svg {
	width: 16px;
	height: 16px;
}

/* FAQ + support */
.nxo-hc-split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: 24px;
	align-items: start;
}

.nxo-hc-accordion__item {
	border: 1px solid var(--nxo-hc-border);
	border-radius: 14px;
	background: var(--nxo-hc-surface);
	margin-bottom: 10px;
	overflow: hidden;
}

.nxo-hc-accordion__heading {
	margin: 0;
}

.nxo-hc-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 0;
	background: transparent;
	color: var(--nxo-hc-dark);
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	text-align: left;
	cursor: pointer;
}

.nxo-hc-accordion__icon {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.nxo-hc-accordion__icon::before,
.nxo-hc-accordion__icon::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	height: 2px;
	background: var(--nxo-hc-accent);
	transform: translateY(-50%);
}

.nxo-hc-accordion__icon::after {
	transform: translateY(-50%) rotate(90deg);
	transition: transform 160ms ease, opacity 160ms ease;
}

.nxo-hc-accordion__item.is-open .nxo-hc-accordion__icon::after {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}

.nxo-hc-accordion__panel {
	padding: 0 16px 14px;
	color: var(--nxo-hc-muted);
	font-size: 14px;
	line-height: 1.65;
}

.nxo-hc-accordion__panel p {
	margin: 0 0 10px;
}

.nxo-hc-accordion__link {
	color: var(--nxo-hc-accent);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}

.nxo-hc-accordion__link:hover {
	color: var(--nxo-hc-accent-dark);
}

.nxo-hc-support__card {
	padding: 24px 22px;
	border: 1px solid rgba(108, 53, 232, 0.16);
	border-radius: 22px;
	background:
		radial-gradient(circle at 90% 0%, rgba(108, 53, 232, 0.1), transparent 40%),
		linear-gradient(180deg, #f7f3ff, #f3edff);
	box-shadow: var(--nxo-hc-shadow);
}

.nxo-hc-support__title {
	margin: 0 0 8px;
	color: var(--nxo-hc-dark);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.nxo-hc-support__blurb {
	margin: 0 0 18px;
	color: var(--nxo-hc-muted);
	font-size: 14px;
	line-height: 1.65;
}

.nxo-hc-support__actions {
	display: grid;
	gap: 10px;
}

.nxo-hc-support__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 11px 20px;
	border: 1px solid #aaa5b8;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: var(--nxo-hc-dark);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.nxo-hc-support__btn:hover {
	transform: translateY(-2px);
	border-color: var(--nxo-hc-accent);
	background: #fff;
}

.nxo-hc-support__btn--whatsapp {
	border-color: rgba(18, 140, 126, 0.5);
	color: #128c7e;
}

.nxo-hc-support__btn--whatsapp:hover {
	border-color: #128c7e;
}

.nxo-hc-support__btn-icon {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
}

@media (hover: hover) and (pointer: fine) {
	.nxo-hc-task:hover,
	.nxo-hc-category:hover,
	.nxo-hc-article:hover {
		transform: translateY(-4px);
		border-color: rgba(108, 53, 232, 0.3);
		box-shadow: 0 18px 40px rgba(31, 32, 40, 0.1);
	}

	.nxo-hc-article__title a:hover,
	.nxo-hc-article__more:hover {
		color: var(--nxo-hc-accent-dark);
	}
}

.nxo-hc a:focus-visible,
.nxo-hc button:focus-visible {
	outline: 3px solid rgba(108, 53, 232, 0.45);
	outline-offset: 3px;
}

@media (max-width: 1100px) {
	.nxo-hc-tasks {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nxo-hc-articles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nxo-hc-split {
		grid-template-columns: 1fr;
	}

	.nxo-hc-categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nxo-hc-container {
		width: min(100% - 28px, 1180px);
	}

	.nxo-hc-section {
		padding: 34px 0;
	}

	.nxo-hc-hero {
		padding: 22px 0 30px;
	}

	.nxo-hc-hero__title {
		font-size: 34px;
		letter-spacing: -0.5px;
	}

	.nxo-hc-search {
		flex-wrap: wrap;
		border-radius: 24px;
		padding: 8px;
	}

	/* Restore 44px touch targets on small screens. */
	body.nxo-help-center-page .nxo-hc-search__field {
		height: 44px;
		min-height: 44px;
	}

	.nxo-hc-search__submit {
		width: 100%;
		height: 44px;
		min-height: 44px;
	}

	.nxo-hc-tasks,
	.nxo-hc-articles,
	.nxo-hc-categories {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
}

@media (max-width: 520px) {
	.nxo-hc-tasks,
	.nxo-hc-articles,
	.nxo-hc-categories {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nxo-hc-task,
	.nxo-hc-category,
	.nxo-hc-article,
	.nxo-hc-search__submit,
	.nxo-hc-support__btn,
	.nxo-hc-accordion__icon::after {
		transition: none;
	}
}

/* ============================================================
   ACCORDION HOVER TREATMENT — site-wide accordion spec
   Motta's global `button:hover` / `button:focus` fills any
   unstyled button with dark blue (#2e3fa3 / #29367c), which
   leaked onto the transparent FAQ accordion triggers. Override
   with the brand-soft treatment: lavender #eee9f7 (accent-soft)
   background + dark accent text. Any future accordion trigger
   styled by 9xo code must reuse this same spec.
   ============================================================ */
.nxo-hc-accordion__trigger {
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nxo-hc-accordion__trigger:hover,
.nxo-hc-accordion__trigger:focus,
.nxo-hc-accordion__trigger:active {
	background-color: #eee9f7;
	color: var(--nxo-hc-accent-dark);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.nxo-hc-accordion__trigger {
		transition: none;
	}
}

/* ============================================================
   POPULAR ARTICLES TOPICAL IMAGES
   Bundled lavender illustrations (assets/images/modules/
   help-center/article-*.webp) fill the card media slot when an
   article has no featured image. Layout polish: clipped media,
   gentle hover zoom, shorter media band on single-column mobile
   so cards stay compact at 390px.
   ============================================================ */
.nxo-hc-article__media {
	overflow: hidden;
	position: relative;
}

.nxo-hc-article__media img {
	transition: transform 0.35s ease;
	will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
	.nxo-hc-article:hover .nxo-hc-article__media img {
		transform: scale(1.05);
	}
}

@media (max-width: 520px) {
	/* Single-column cards: wider, shorter media band. */
	.nxo-hc-article__media {
		aspect-ratio: 2 / 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nxo-hc-article__media img {
		transition: none;
	}

	.nxo-hc-article:hover .nxo-hc-article__media img {
		transform: none;
	}
}

/* ============================================================
   TASK + CATEGORY CARDS — larger icons, centered content
   The lavender icon chips were visually undersized (42/44px
   with 22px glyphs) against the card, and card content sat
   left-aligned. Chips grow to 60px (tasks) / 64px (categories)
   with 28/30px glyphs, and icon, title, description and the
   task arrow are horizontally centered. Overrides the base
   rules above by cascade order (same specificity, later).
   ============================================================ */
.nxo-hc-task,
.nxo-hc-category {
	align-items: center;
	text-align: center;
}

.nxo-hc-task__icon {
	width: 60px;
	height: 60px;
}

.nxo-hc-task__icon svg {
	width: 28px;
	height: 28px;
}

.nxo-hc-category__icon {
	width: 64px;
	height: 64px;
}

.nxo-hc-category__icon svg {
	width: 30px;
	height: 30px;
}

/* ============================================================
   Sticky-header anchor offset
   Footer FAQ deep-link (#nxo-hc-faq) and in-page support anchor
   must clear Motta's fixed sticky bar (≈80px desktop / ≈64px
   mobile) with comfortable breathing room. CSS scroll-margin
   covers direct-URL landings without JS.
   ============================================================ */
#nxo-hc-faq,
#nxo-hc-support {
	scroll-margin-top: 120px;
}

@media (max-width: 1024px) {
	#nxo-hc-faq,
	#nxo-hc-support {
		scroll-margin-top: 100px;
	}
}
