/**
 * PDFMaster Pro frontend and editor styles.
 * Mobile-first; design tokens are sourced from theme.json where practical.
 */

:root {
	--pm-radius-sm: .5rem;
	--pm-radius-md: .875rem;
	--pm-radius-lg: 1.25rem;
	--pm-radius-xl: 1.75rem;
	--pm-radius-pill: 999px;
	--pm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--pm-shadow-md: 0 12px 36px rgba(15, 23, 42, .09);
	--pm-shadow-lg: 0 30px 80px rgba(45, 35, 160, .15);
	--pm-transition: 220ms ease;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0); }
*, *::before, *::after { box-sizing: border-box; }
img, svg { max-width: 100%; }
a { text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
:where(a, button, input, summary, .wp-block-navigation-item__content):focus-visible { outline: 3px solid #0ea5e9; outline-offset: 3px; }
::selection { color: #fff; background: #5b4cf0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; color: #111827; background: #fff; }

.wp-site-blocks { padding: 0; }
.site-main { margin-block-start: 0; }
.alignwide { width: min(100%, var(--wp--style--global--wide-size)); }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.content-shell { min-height: 55vh; padding-block: clamp(3rem, 7vw, 6rem); }
.error-page { min-height: 62vh; padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.error-page .wp-block-buttons { justify-content: center; }

.site-header {
	position: sticky; z-index: 100; top: 0; margin: 0;
	border-bottom: 1px solid rgba(226, 232, 240, .8);
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.site-header__inner { min-height: 4.5rem; gap: 1rem; }
.brand-lockup { gap: .65rem; margin: 0; }
.brand-mark { display: grid; flex: 0 0 auto; width: 2.25rem; height: 2.25rem; place-items: center; color: #fff; border-radius: .65rem; background: linear-gradient(135deg, #5b4cf0, #7c3aed); box-shadow: 0 8px 18px rgba(91, 76, 240, .23); }
.brand-mark svg { width: 1.45rem; height: 1.45rem; }
.brand-title { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em; }
.brand-title a { color: inherit; }

.wp-element-button, button, input { font: inherit; }
.wp-element-button { transition: color var(--pm-transition), background var(--pm-transition), border-color var(--pm-transition), box-shadow var(--pm-transition), transform var(--pm-transition); }
.wp-element-button:hover { text-decoration: none; box-shadow: 0 10px 24px rgba(91, 76, 240, .22); transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-element-button { color: #4338ca; border: 1px solid #c7d2fe; background: #fff; }
.wp-block-button.is-style-outline .wp-element-button:hover { border-color: #5b4cf0; background: #f7f7ff; }

.hero-section { position: relative; isolation: isolate; margin: 0; padding-block: clamp(5rem, 10vw, 8rem) 8rem; overflow: hidden; }
.hero-section::before, .hero-section::after { position: absolute; z-index: -1; content: ""; border-radius: 50%; filter: blur(1px); }
.hero-section::before { top: 8%; left: -11rem; width: 24rem; height: 24rem; background: radial-gradient(circle, rgba(124, 58, 237, .13), transparent 68%); }
.hero-section::after { right: -12rem; bottom: 0; width: 28rem; height: 28rem; background: radial-gradient(circle, rgba(14, 165, 233, .12), transparent 68%); }
.hero-content { position: relative; }
.hero-content h1 { max-width: 920px; margin-inline: auto; }
.hero-copy { max-width: 720px; margin-inline: auto; color: #475569; }
.text-gradient { color: #5b4cf0; background: linear-gradient(100deg, #5b4cf0 5%, #7c3aed 45%, #0284c7 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { margin-bottom: .7rem; color: #5b4cf0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.eyebrow--pill { width: fit-content; margin-inline: auto; padding: .45rem .8rem; border: 1px solid #ddd6fe; border-radius: var(--pm-radius-pill); background: rgba(255, 255, 255, .82); box-shadow: var(--pm-shadow-sm); }
.trust-row { gap: .65rem 1.4rem; margin-top: 1.8rem; color: #64748b; }
.trust-row p { margin: 0; }
.trust-row span { color: #059669; font-weight: 900; }

.utility-section { position: relative; z-index: 2; margin: 0; padding-bottom: 2rem; }
.search-panel { margin-top: -4rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid #e2e8f0; border-radius: var(--pm-radius-xl); background: #fff; box-shadow: var(--pm-shadow-lg); }
.tool-search { position: relative; display: flex; align-items: center; margin-bottom: 1rem; }
.tool-search__icon { position: absolute; left: 1.1rem; width: 1rem; height: 1rem; pointer-events: none; border: 2px solid #64748b; border-radius: 50%; }
.tool-search__icon::after { position: absolute; right: -.38rem; bottom: -.24rem; width: .45rem; height: 2px; content: ""; background: #64748b; transform: rotate(45deg); }
.tool-search input { width: 100%; min-height: 3.5rem; padding: .8rem 1rem .8rem 3rem; color: #111827; border: 1px solid #cbd5e1; border-radius: .8rem; background: #fff; }
.tool-search input:focus { border-color: #5b4cf0; outline: 3px solid rgba(91, 76, 240, .15); }
.tool-search__shortcut { display: none; position: absolute; right: .7rem; padding: .25rem .45rem; color: #64748b; font-size: .7rem; border: 1px solid #e2e8f0; border-radius: .35rem; background: #f8fafc; }
.upload-zone { display: flex; min-height: 9rem; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; border: 2px dashed #c7d2fe; border-radius: var(--pm-radius-lg); background: #fafaff; transition: border-color var(--pm-transition), background var(--pm-transition), transform var(--pm-transition); }
.upload-zone.is-dragging { border-color: #5b4cf0; background: #f3f1ff; transform: scale(.995); }
.upload-zone__icon { display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; color: #5b4cf0; border-radius: .9rem; background: #ede9fe; }
.upload-zone p { margin: 0; }
.upload-zone__title { color: #1e293b; font-weight: 750; }
.upload-zone label { color: #5b4cf0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.upload-zone__meta, .upload-zone__selection { margin-top: .25rem !important; color: #64748b; font-size: .8rem; }

.section-heading { align-items: flex-end; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-heading h2, .section-heading p { margin-top: 0; }
.section-heading--center { margin-bottom: 3rem; }
.tools-section { padding-top: 4rem; }
.tool-grid { display: grid; gap: 1rem; }
.tool-grid--featured { grid-template-columns: 1fr; }
.tool-grid--directory { grid-template-columns: 1fr; }
.tool-card { position: relative; display: block; min-width: 0; padding: 1.35rem; color: #111827; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #fff; box-shadow: var(--pm-shadow-sm); transition: border-color var(--pm-transition), box-shadow var(--pm-transition), transform var(--pm-transition); }
.tool-card:hover { text-decoration: none; border-color: #c7d2fe; box-shadow: var(--pm-shadow-md); transform: translateY(-4px); }
.tool-card h3 { margin: 1.15rem 0 .4rem; font-size: 1.15rem; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.55; }
.tool-card__icon { display: grid; width: 3rem; height: 3rem; place-items: center; color: #5b4cf0; font-size: 1.1rem; font-weight: 850; border-radius: .85rem; background: #ede9fe; }
.tool-card__badge { position: absolute; top: 1rem; right: 1rem; padding: .25rem .5rem; color: #4338ca; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--pm-radius-pill); background: #ede9fe; }
.tool-card__link { display: inline-block; margin-top: 1.25rem; color: #4338ca; font-size: .85rem; font-weight: 750; }
.tool-card--blue .tool-card__icon { color: #0369a1; background: #e0f2fe; }
.tool-card--green .tool-card__icon { color: #047857; background: #d1fae5; }
.tool-card--orange .tool-card__icon { color: #b45309; background: #fef3c7; }
.tool-card--red .tool-card__icon { color: #b91c1c; background: #fee2e2; }
.tool-card--pink .tool-card__icon { color: #be185d; background: #fce7f3; }
.category-header { margin-top: clamp(4rem, 9vw, 7rem); }
.category-tabs { display: flex; max-width: 100%; gap: .45rem; margin-top: 1.5rem; padding-bottom: .35rem; overflow-x: auto; scrollbar-width: thin; }
.category-tabs button { flex: 0 0 auto; padding: .6rem .9rem; color: #475569; font-size: .82rem; font-weight: 700; cursor: pointer; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-pill); background: #fff; }
.category-tabs button:hover, .category-tabs button.is-active { color: #fff; border-color: #5b4cf0; background: #5b4cf0; }
.tool-card--compact { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.tool-card--compact .tool-card__icon { flex: 0 0 2.65rem; width: 2.65rem; height: 2.65rem; }
.tool-card--compact h3 { margin: 0 0 .15rem; font-size: .95rem; }
.tool-card--compact p { font-size: .78rem; }
.tool-card[hidden] { display: none; }
.tool-grid__empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: #64748b; border: 1px dashed #cbd5e1; border-radius: var(--pm-radius-md); }

.feature-grid { gap: 1rem; }
.feature-card { height: 100%; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #fff; box-shadow: var(--pm-shadow-sm); }
.feature-card h3 { margin-top: 1rem; }
.feature-card p:last-child { color: #64748b; }
.feature-icon { display: grid; width: 3rem; height: 3rem; margin: 0; place-items: center; color: #5b4cf0; font-size: 1.35rem; border-radius: .9rem; background: #ede9fe; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #e2e8f0; }
.stats-grid div { padding: 1.5rem .75rem; text-align: center; background: #fff; }
.stats-grid dt { color: #4338ca; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 850; letter-spacing: -.04em; }
.stats-grid dd { margin: .25rem 0 0; color: #64748b; font-size: .75rem; }

.testimonial-grid { display: grid; gap: 1rem; }
.testimonial-card { margin: 0; padding: 1.5rem; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #fff; box-shadow: var(--pm-shadow-sm); }
.testimonial-card blockquote { margin: 1rem 0 1.5rem; color: #334155; font-size: 1rem; line-height: 1.75; }
.stars { color: #f59e0b; font-size: .85rem; letter-spacing: .12em; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .75rem; }
.testimonial-card figcaption span:last-child { display: flex; flex-direction: column; }
.testimonial-card small { color: #64748b; }
.avatar { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; color: #fff; font-size: .72rem; font-weight: 800; border-radius: 50%; background: #5b4cf0; }
.avatar--green { background: #059669; }
.avatar--orange { background: #d97706; }

.faq-layout { display: grid; gap: 2.5rem; }
.faq-intro h2 { margin-top: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.faq-intro > p:last-child { color: #64748b; }
.faq-list details { border-bottom: 1px solid #cbd5e1; }
.faq-list summary { position: relative; padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; color: #1e293b; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 1.2rem; right: .2rem; content: "+"; color: #5b4cf0; font-size: 1.4rem; font-weight: 500; transition: transform var(--pm-transition); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details div { padding: 0 2rem 1.25rem 0; color: #64748b; }
.faq-list details p { margin: 0; }
.newsletter-section { margin: 0; padding-block: clamp(3rem, 7vw, 6rem); }
.newsletter-card { padding: clamp(2rem, 6vw, 4rem); border-radius: var(--pm-radius-xl); box-shadow: var(--pm-shadow-lg); }
.newsletter-card p { color: rgba(255, 255, 255, .83); }
.newsletter-form { display: grid; gap: .75rem; max-width: 580px; margin: 1.5rem auto 0; }
.newsletter-form input { min-height: 3.25rem; padding: .75rem 1rem; color: #111827; border: 1px solid rgba(255, 255, 255, .5); border-radius: .75rem; background: #fff; }
.newsletter-form button { min-height: 3.25rem; padding: .75rem 1.25rem; color: #4338ca; font-weight: 800; cursor: pointer; border: 0; border-radius: .75rem; background: #fff; }
.newsletter-form button:hover { background: #f8fafc; box-shadow: 0 8px 25px rgba(15, 23, 42, .16); }
.newsletter-form__status { grid-column: 1 / -1; margin: 0 !important; text-align: center; font-size: .8rem; }

.site-footer { margin: 0; padding-block: clamp(3.5rem, 7vw, 5rem) 1.5rem; }
.footer-grid { gap: 2rem; }
.site-footer .brand-title { font-size: 1.25rem; }
.site-footer h3 { color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-block: .55rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-trust { color: #a7f3d0; }
.footer-bottom { gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; color: #94a3b8; border-top: 1px solid #334155; }
.footer-bottom p { margin: 0; }

.post-grid { gap: 1.25rem; }
.post-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #fff; box-shadow: var(--pm-shadow-sm); }
.post-card .wp-block-post-featured-image { margin-top: 0; overflow: hidden; border-radius: .8rem; }
.wp-block-query-pagination { margin-top: 3rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { max-width: 100%; color: #111827; border: 1px solid #cbd5e1; border-radius: .65rem; background: #fff; }

@media (min-width: 600px) {
	.tool-search input { padding-right: 5rem; }
	.tool-search__shortcut { display: inline-block; }
	.upload-zone { text-align: left; }
	.tool-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tool-grid--directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.newsletter-form { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 782px) {
	.tool-grid--directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stats-grid { grid-template-columns: repeat(4, 1fr); }
	.stats-grid div { padding: 2rem 1rem; }
	.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 8vw, 7rem); }
	.faq-intro { position: sticky; top: 7rem; align-self: start; }
}

@media (min-width: 960px) {
	.tool-grid--featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tool-grid--directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 781px) {
	.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
	.footer-grid > .wp-block-column:first-child { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
	.site-header__inner { min-height: 4rem; }
	.brand-title { font-size: 1rem; }
	.hero-section { padding-top: 4rem; }
	.upload-zone { flex-direction: column; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-grid > .wp-block-column:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
	.tool-card, .feature-card, .testimonial-card, .search-panel { border-color: #64748b; }
	.eyebrow, .tool-card__link { color: #312e81; }
}

@media print {
	.site-header, .site-footer, .newsletter-section, .utility-section { display: none; }
	body { color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
}

/* Premium navigation, hero, motion, and color-scheme enhancements. */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body, .site-header, .hero-section, .features-section, .faq-section, .tool-card, .feature-card, .testimonial-card, .search-panel, .upload-zone, .category-tabs button, .post-card { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

.desktop-navigation { display: none; align-items: center; gap: 1.65rem; margin-left: auto; }
.desktop-navigation > a, .mega-menu > summary { color: #334155; font-size: .9rem; font-weight: 700; }
.desktop-navigation > a:hover { color: #5b4cf0; text-decoration: none; }
.mega-menu { position: static; }
.mega-menu > summary { display: flex; min-height: 2.75rem; align-items: center; gap: .35rem; cursor: pointer; list-style: none; }
.mega-menu > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
.mega-menu > summary svg { width: 1rem; height: 1rem; transition: transform var(--pm-transition); }
.mega-menu[open] > summary { color: #5b4cf0; }
.mega-menu[open] > summary svg { transform: rotate(180deg); }
.mega-menu__panel { position: absolute; top: calc(100% + .65rem); left: 50%; display: grid; width: min(1120px, calc(100vw - 3rem)); grid-template-columns: 1.05fr repeat(3, 1fr); gap: 1rem; padding: 1rem; border: 1px solid rgba(226, 232, 240, .9); border-radius: 1.35rem; background: rgba(255, 255, 255, .94); box-shadow: 0 28px 80px rgba(15, 23, 42, .18); opacity: 0; transform: translate(-50%, -.5rem); animation: mega-in .18s ease forwards; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.mega-menu__intro { padding: 1.35rem; border-radius: 1rem; background: linear-gradient(145deg, #f1efff, #eef8ff); }
.mega-menu__intro > strong { display: block; max-width: 12rem; margin-top: .35rem; color: #111827; font-size: 1.25rem; line-height: 1.25; }
.mega-menu__intro p { margin: .6rem 0 1rem; color: #64748b; font-size: .82rem; }
.mega-menu__intro a { color: #4338ca; font-size: .82rem; font-weight: 800; }
.mega-menu__column { padding: .7rem; }
.mega-menu__label { display: block; margin: .2rem .55rem .65rem; color: #94a3b8; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mega-menu__column > a { display: flex; align-items: center; gap: .7rem; padding: .65rem .55rem; color: #1e293b; border-radius: .75rem; }
.mega-menu__column > a:hover { text-decoration: none; background: #f8fafc; }
.mega-menu__column a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.mega-menu__column strong { font-size: .84rem; }
.mega-menu__column small { color: #64748b; font-size: .7rem; }
.menu-icon { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; color: #5b4cf0; border-radius: .65rem; background: #ede9fe; }
.menu-icon svg { width: 1.25rem; height: 1.25rem; }
.menu-icon--blue { color: #0369a1; background: #e0f2fe; }
.menu-icon--green { color: #047857; background: #d1fae5; }
.menu-icon--orange { color: #b45309; background: #fef3c7; }
.menu-icon--red { color: #b91c1c; background: #fee2e2; }
.menu-icon--pink { color: #be185d; background: #fce7f3; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle { display: grid; width: 2.75rem; height: 2.75rem; padding: 0; place-items: center; color: #475569; cursor: pointer; border: 1px solid #e2e8f0; border-radius: .75rem; background: rgba(255, 255, 255, .72); }
.theme-toggle:hover { color: #5b4cf0; border-color: #c7d2fe; background: #f5f3ff; }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle__moon, [data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
.header-button { display: none; min-height: 2.75rem; align-items: center; padding: .68rem 1rem; color: #fff; font-size: .83rem; font-weight: 800; border-radius: .72rem; background: #5b4cf0; }
.header-button:hover { color: #fff; text-decoration: none; background: #4338ca; box-shadow: 0 9px 22px rgba(91, 76, 240, .22); }
.mobile-menu { position: relative; }
.mobile-menu > summary { display: grid; width: 2.75rem; height: 2.75rem; place-content: center; gap: 4px; cursor: pointer; border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; list-style: none; }
.mobile-menu > summary span { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: #334155; transition: transform var(--pm-transition), opacity var(--pm-transition); }
.mobile-menu[open] > summary span:first-child { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] > summary span:last-child { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu__panel { position: fixed; z-index: 10; top: 4.6rem; right: 1rem; left: 1rem; display: grid; gap: .3rem; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: rgba(255, 255, 255, .97); box-shadow: var(--pm-shadow-lg); animation: menu-in .18s ease both; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.mobile-menu__panel > a:not(.header-button) { min-height: 2.75rem; padding: .7rem .8rem; color: #1e293b; font-weight: 750; border-radius: .6rem; }
.mobile-menu__panel > a:hover { text-decoration: none; background: #f8fafc; }
.mobile-menu__panel .header-button { display: flex; justify-content: center; margin-top: .4rem; }

.hero-section { min-height: min(850px, calc(100vh - 4rem)); padding-block: clamp(4rem, 8vw, 7rem) 8rem; }
.hero-content { display: grid; align-items: center; gap: 3rem; }
.hero-copy-block { position: relative; z-index: 2; }
.hero-copy-block h1 { margin-inline: 0; }
.hero-copy-block .eyebrow--pill { margin-inline: 0; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .25rem; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 5px rgba(16, 185, 129, .12); animation: status-pulse 2.2s ease infinite; }
.hero-visual { position: relative; min-height: 25rem; perspective: 1000px; }
.hero-glow { position: absolute; inset: 15% 7%; border-radius: 50%; background: linear-gradient(135deg, rgba(91, 76, 240, .3), rgba(14, 165, 233, .25)); filter: blur(55px); }
.hero-orbit { position: absolute; border: 1px solid rgba(91, 76, 240, .16); border-radius: 50%; }
.hero-orbit--one { inset: 2% 5%; animation: orbit-spin 24s linear infinite; }
.hero-orbit--two { inset: 13% 16%; border-style: dashed; animation: orbit-spin 18s linear reverse infinite; }
.hero-orbit::before { position: absolute; top: 12%; left: 12%; width: .7rem; height: .7rem; content: ""; border-radius: 50%; background: #7c3aed; box-shadow: 0 0 18px #7c3aed; }
.glass-card { border: 1px solid rgba(255, 255, 255, .68); background: rgba(255, 255, 255, .72); box-shadow: 0 28px 70px rgba(56, 47, 130, .18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.document-stage { position: absolute; top: 50%; left: 50%; width: min(88%, 29rem); overflow: hidden; border-radius: 1.4rem; transform: translate(-50%, -50%) rotateY(-5deg) rotateX(2deg); animation: document-float 6s ease-in-out infinite; }
.document-stage__bar { display: flex; min-height: 3rem; align-items: center; gap: .4rem; padding: .8rem 1rem; color: #64748b; font-size: .7rem; border-bottom: 1px solid rgba(226, 232, 240, .75); }
.document-stage__bar i { width: .48rem; height: .48rem; border-radius: 50%; background: #cbd5e1; }
.document-stage__bar i:first-child { background: #f87171; }
.document-stage__bar i:nth-child(2) { background: #fbbf24; }
.document-stage__bar i:nth-child(3) { margin-right: .35rem; background: #34d399; }
.document-preview { display: block; width: 100%; color: #475569; }
.document-stage__footer { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; color: #64748b; font-size: .72rem; border-top: 1px solid rgba(226, 232, 240, .75); }
.document-stage__footer span { display: flex; align-items: center; gap: .35rem; color: #047857; font-weight: 750; }
.document-stage__footer svg { width: 1.1rem; height: 1.1rem; }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: 1rem; }
.floating-chip > span:last-child { display: flex; flex-direction: column; }
.floating-chip strong { color: #1e293b; font-size: .78rem; }
.floating-chip small { color: #64748b; font-size: .65rem; }
.floating-chip--compress { top: 12%; left: 0; animation: chip-float 5s ease-in-out infinite; }
.floating-chip--secure { right: -1%; bottom: 12%; animation: chip-float 5s 1.3s ease-in-out infinite; }

.upload-skeleton { width: min(16rem, 100%); }
.upload-skeleton:not([hidden]) { display: grid; gap: .45rem; }
.upload-skeleton span { display: block; height: .55rem; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.upload-skeleton span:nth-child(2) { width: 75%; }
.upload-skeleton span:nth-child(3) { width: 48%; }
.upload-skeleton span::after { display: block; width: 55%; height: 100%; content: ""; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: skeleton-shimmer 1.1s ease infinite; }

.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.back-to-top { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; display: grid; width: 3rem; height: 3rem; padding: 0; place-items: center; color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, .25); border-radius: .85rem; background: rgba(67, 56, 202, .92); box-shadow: 0 12px 35px rgba(15, 23, 42, .24); opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity var(--pm-transition), transform var(--pm-transition), background var(--pm-transition); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: #312e81; transform: translateY(-3px); }
.back-to-top svg { width: 1.35rem; height: 1.35rem; }

@keyframes mega-in { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-.5rem); } }
@keyframes status-pulse { 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes document-float { 50% { transform: translate(-50%, calc(-50% - .65rem)) rotateY(2deg) rotateX(-1deg); } }
@keyframes chip-float { 50% { transform: translateY(-.65rem); } }
@keyframes skeleton-shimmer { from { transform: translateX(-120%); } to { transform: translateX(220%); } }

[data-theme="dark"] body { color: #e5e7eb; background: #080d19; }
[data-theme="dark"] .site-header { border-color: rgba(51, 65, 85, .8); background: rgba(8, 13, 25, .86); }
[data-theme="dark"] .brand-title, [data-theme="dark"] .desktop-navigation > a, [data-theme="dark"] .mega-menu > summary { color: #e2e8f0; }
[data-theme="dark"] .theme-toggle, [data-theme="dark"] .mobile-menu > summary { color: #cbd5e1; border-color: #334155; background: rgba(15, 23, 42, .8); }
[data-theme="dark"] .mobile-menu > summary span { background: #e2e8f0; }
[data-theme="dark"] .mega-menu__panel, [data-theme="dark"] .mobile-menu__panel { border-color: #334155; background: rgba(15, 23, 42, .96); }
[data-theme="dark"] .mega-menu__intro { background: linear-gradient(145deg, #211b46, #102a3d); }
[data-theme="dark"] .mega-menu__intro > strong, [data-theme="dark"] .mega-menu__column > a, [data-theme="dark"] .mobile-menu__panel > a:not(.header-button) { color: #f1f5f9; }
[data-theme="dark"] .mega-menu__column > a:hover, [data-theme="dark"] .mobile-menu__panel > a:hover { background: #1e293b; }
[data-theme="dark"] .hero-section { background: radial-gradient(circle at 75% 25%, #172554 0, #0f172a 38%, #080d19 78%) !important; }
[data-theme="dark"] .text-gradient { background-image: linear-gradient(100deg, #a5b4fc, #c4b5fd, #7dd3fc); }
[data-theme="dark"] .hero-copy, [data-theme="dark"] .tool-card p, [data-theme="dark"] .feature-card p:last-child, [data-theme="dark"] .testimonial-card blockquote, [data-theme="dark"] .faq-list details div { color: #94a3b8; }
[data-theme="dark"] .eyebrow--pill { border-color: #3730a3; background: rgba(30, 41, 59, .65); }
[data-theme="dark"] .glass-card { border-color: rgba(148, 163, 184, .25); background: rgba(15, 23, 42, .66); }
[data-theme="dark"] .floating-chip strong { color: #e2e8f0; }
[data-theme="dark"] .document-stage__bar, [data-theme="dark"] .document-stage__footer { border-color: rgba(71, 85, 105, .7); }
[data-theme="dark"] .utility-section, [data-theme="dark"] .tools-section, [data-theme="dark"] .testimonials-section, [data-theme="dark"] .newsletter-section { background: #080d19; }
[data-theme="dark"] .features-section, [data-theme="dark"] .faq-section { background: #0f172a !important; }
[data-theme="dark"] .search-panel, [data-theme="dark"] .tool-card, [data-theme="dark"] .feature-card, [data-theme="dark"] .testimonial-card, [data-theme="dark"] .post-card, [data-theme="dark"] .stats-grid div { color: #e5e7eb; border-color: #253247; background: #111827; }
[data-theme="dark"] .tool-search input, [data-theme="dark"] .newsletter-form input { color: #f1f5f9; border-color: #334155; background: #0f172a; }
[data-theme="dark"] .upload-zone { border-color: #3730a3; background: #10162a; }
[data-theme="dark"] .upload-zone__title, [data-theme="dark"] .faq-list summary { color: #e2e8f0; }
[data-theme="dark"] .category-tabs button { color: #cbd5e1; border-color: #334155; background: #111827; }
[data-theme="dark"] .category-tabs button.is-active { color: #fff; border-color: #6366f1; background: #4f46e5; }
[data-theme="dark"] .stats-grid { border-color: #253247; background: #253247; }
[data-theme="dark"] .wp-block-button.is-style-outline .wp-element-button { color: #c4b5fd; border-color: #4338ca; background: rgba(30, 41, 59, .7); }

@media (min-width: 600px) { .header-button { display: flex; } }
@media (min-width: 900px) {
	.desktop-navigation { display: flex; }
	.mobile-menu { display: none; }
	.hero-content { grid-template-columns: minmax(0, .92fr) minmax(26rem, 1.08fr); gap: clamp(2rem, 6vw, 6rem); }
}
@media (max-width: 899px) {
	.hero-copy-block { text-align: center; }
	.hero-copy-block .eyebrow--pill { margin-inline: auto; }
	.hero-copy-block .wp-block-buttons, .hero-copy-block .trust-row { justify-content: center; }
}
@media (max-width: 599px) {
	.hero-visual { min-height: 21rem; }
	.floating-chip { padding: .55rem .65rem; }
	.floating-chip--compress { left: -.5rem; }
	.floating-chip--secure { right: -.5rem; }
	.header-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.status-dot, .hero-orbit, .document-stage, .floating-chip, .upload-skeleton span::after { animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
@media print { .back-to-top, .theme-toggle, .mobile-menu, .desktop-navigation { display: none !important; } }

/* Editor-selectable block styles. */
.wp-block-button.is-style-glass .wp-block-button__link {
	color: #312e81;
	border: 1px solid rgba(255, 255, 255, .72);
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 10px 30px rgba(45, 35, 160, .12);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.wp-block-button.is-style-gradient .wp-block-button__link { color: #fff; border: 0; background: linear-gradient(135deg, #5b4cf0, #7c3aed 55%, #0284c7); }
.wp-block-group.is-style-glass-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--pm-radius-xl); background: rgba(255, 255, 255, .68); box-shadow: var(--pm-shadow-lg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.wp-block-group.is-style-elevated-card { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #e2e8f0; border-radius: var(--pm-radius-lg); background: #fff; box-shadow: var(--pm-shadow-md); transition: border-color var(--pm-transition), box-shadow var(--pm-transition), transform var(--pm-transition); }
.wp-block-group.is-style-elevated-card:hover { border-color: #c7d2fe; box-shadow: var(--pm-shadow-lg); transform: translateY(-4px); }
.wp-block-group.is-style-section-shell { padding-block: clamp(4rem, 9vw, 7rem); }
.wp-block-list.is-style-check-list { padding: 0; list-style: none; }
.wp-block-list.is-style-check-list li { position: relative; margin-block: .65rem; padding-left: 1.75rem; }
.wp-block-list.is-style-check-list li::before { position: absolute; top: .1em; left: 0; display: grid; width: 1.2rem; height: 1.2rem; content: "\2713"; place-items: center; color: #047857; font-size: .7rem; font-weight: 900; border-radius: 50%; background: #d1fae5; }
.wp-block-image.is-style-soft-rounded img { border-radius: var(--pm-radius-lg); box-shadow: var(--pm-shadow-md); }
.tool-categories-section .category-header { margin-top: 0; }
.tool-directory-section { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.statistics-section { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.statistics-section .stats-grid { margin-top: 0; }
.section, .component-showcase { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.skip-link:focus { position: fixed !important; z-index: 100001; top: .75rem; left: .75rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; color: #111827; border-radius: .5rem; background: #fff; box-shadow: var(--pm-shadow-md); }
[data-theme="dark"] .wp-block-button.is-style-glass .wp-block-button__link { color: #e0e7ff; border-color: rgba(148, 163, 184, .25); background: rgba(30, 41, 59, .72); }
[data-theme="dark"] .wp-block-group.is-style-glass-panel { border-color: rgba(148, 163, 184, .22); background: rgba(15, 23, 42, .7); }
[data-theme="dark"] .wp-block-group.is-style-elevated-card { border-color: #253247; background: #111827; }
