/*
Theme Name: QR World
Theme URI: https://qrworld.linkpc.net
Author: QR World
Description: A clean, modern SaaS-style theme for the QR Business Hub plugin. Fast, accessible, mobile-first, with automatic dark mode, a customisable homepage and a polished blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qr-world
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, blog, business
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--qrw-primary: #6d28d9;
	--qrw-primary-dark: #5b21b6;
	--qrw-accent: #06b6d4;
	--qrw-bg: #f7f7fb;
	--qrw-surface: #ffffff;
	--qrw-surface-2: #f0effa;
	--qrw-border: #e6e6f0;
	--qrw-text: #14141f;
	--qrw-muted: #5f5f73;
	--qrw-shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 8px 24px rgba(20, 20, 40, .06);
	--qrw-shadow-lg: 0 20px 50px rgba(60, 30, 140, .18);
	--qrw-radius: 18px;
	--qrw-radius-sm: 12px;
	--qrw-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--qrw-header-h: 68px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--qrw-bg: #0c0c14;
		--qrw-surface: #15151f;
		--qrw-surface-2: #1b1b29;
		--qrw-border: #272738;
		--qrw-text: #f1f1f8;
		--qrw-muted: #a2a2b8;
		--qrw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		--qrw-shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--qrw-bg: #0c0c14;
	--qrw-surface: #15151f;
	--qrw-surface-2: #1b1b29;
	--qrw-border: #272738;
	--qrw-text: #f1f1f8;
	--qrw-muted: #a2a2b8;
	--qrw-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
	--qrw-shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--qrw-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--qrw-bg);
	color: var(--qrw-text);
	font-family: var(--qrw-font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--qrw-primary); text-underline-offset: 3px; }
a:hover { color: var(--qrw-primary-dark); }
:root[data-theme="dark"] a { color: #b794f6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #b794f6; } }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 3.9rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--qrw-accent); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.qrw-skip {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--qrw-primary); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.qrw-skip:focus { top: 12px; color: #fff; }

.qrw-icon { width: 1.25em; height: 1.25em; flex: none; }

.qrw-container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.qrw-container--narrow { width: min(780px, 100% - 40px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.qrw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .75em 1.3em; border-radius: 999px; border: 1px solid transparent;
	font: inherit; font-weight: 650; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.qrw-btn:hover { transform: translateY(-2px); }
.qrw-btn:active { transform: translateY(0); }
.qrw-btn--lg { padding: .95em 1.7em; font-size: 1.02rem; }
.qrw-btn--primary, .qrw-btn--primary:visited {
	background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-primary-dark));
	color: #fff !important; box-shadow: 0 8px 20px -6px rgba(109, 40, 217, .6);
}
.qrw-btn--primary:hover { box-shadow: 0 12px 26px -6px rgba(109, 40, 217, .7); }
.qrw-btn--ghost { background: var(--qrw-surface); color: var(--qrw-text) !important; border-color: var(--qrw-border); }
.qrw-btn--ghost:hover { border-color: var(--qrw-primary); }
.qrw-btn--light { background: #fff; color: #3b0f8c !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }

.qrw-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--qrw-border); background: var(--qrw-surface); color: var(--qrw-text); cursor: pointer;
	transition: border-color .18s ease, background .18s ease;
}
.qrw-iconbtn:hover { border-color: var(--qrw-primary); }

.qrw-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.qrw-link .qrw-icon { width: 1em; height: 1em; transition: transform .18s ease; }
.qrw-link:hover .qrw-icon { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.qrw-header {
	position: sticky; top: 0; z-index: 100; height: var(--qrw-header-h);
	background: color-mix(in srgb, var(--qrw-bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.qrw-header.is-scrolled { border-bottom-color: var(--qrw-border); box-shadow: 0 6px 20px rgba(20, 20, 40, .05); }
.qrw-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.qrw-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--qrw-text) !important; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.qrw-brand__mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff;
	background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-accent));
	box-shadow: 0 6px 16px -4px rgba(109, 40, 217, .6);
}
.qrw-brand__mark .qrw-icon { width: 22px; height: 22px; }
.custom-logo { max-height: 44px; width: auto; }

.qrw-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.qrw-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.qrw-menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--qrw-muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .15s ease, background .15s ease; }
.qrw-menu a:hover, .qrw-menu .current-menu-item > a { color: var(--qrw-text); background: var(--qrw-surface-2); }
.qrw-menu li { position: relative; }
.qrw-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: 14px; box-shadow: var(--qrw-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.qrw-menu li:hover > .sub-menu, .qrw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.qrw-header__tools { display: flex; gap: 8px; align-items: center; }
.qrw-menubtn { display: none; }
.qrw-menubtn__close, .qrw-themebtn__sun { display: none; }

:root[data-theme="dark"] .qrw-themebtn__moon { display: none; }
:root[data-theme="dark"] .qrw-themebtn__sun { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .qrw-themebtn__moon { display: none; }
	:root:not([data-theme="light"]) .qrw-themebtn__sun { display: block; }
}

@media (max-width: 860px) {
	.qrw-menubtn { display: inline-grid; }
	.qrw-header__tools { margin-left: auto; }
	.qrw-nav {
		position: fixed; inset: var(--qrw-header-h) 0 auto 0; margin: 0; padding: 14px 20px 24px;
		flex-direction: column; align-items: stretch; gap: 14px;
		background: var(--qrw-bg); border-bottom: 1px solid var(--qrw-border);
		box-shadow: 0 24px 40px rgba(0, 0, 0, .12);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s ease;
	}
	.qrw-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.qrw-menu { flex-direction: column; align-items: stretch; }
	.qrw-menu a { padding: 13px 14px; font-size: 1.05rem; }
	.qrw-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.qrw-nav__cta { width: 100%; }
	.qrw-menu-open .qrw-menubtn__open { display: none; }
	.qrw-menu-open .qrw-menubtn__close { display: block; }
	.qrw-menu-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.qrw-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.qrw-hero__glow {
	position: absolute; inset: -20% -10% auto -10%; height: 90%; pointer-events: none; z-index: 0;
	background:
		radial-gradient(40% 50% at 18% 30%, rgba(109, 40, 217, .20), transparent 70%),
		radial-gradient(35% 45% at 82% 20%, rgba(6, 182, 212, .20), transparent 70%);
}
.qrw-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.qrw-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: var(--qrw-surface); border: 1px solid var(--qrw-border); box-shadow: var(--qrw-shadow);
	font-size: .86rem; font-weight: 650; color: var(--qrw-muted); margin-bottom: 22px;
}
.qrw-pill .qrw-icon { color: var(--qrw-primary); width: 1.05em; height: 1.05em; }

.qrw-hero__title { margin-bottom: .35em; }
.qrw-hero__title {
	background: linear-gradient(120deg, var(--qrw-text) 20%, var(--qrw-primary) 60%, var(--qrw-accent));
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.qrw-hero__lead { font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem); color: var(--qrw-muted); max-width: 54ch; margin-bottom: 1.8em; }
.qrw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.qrw-hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--qrw-muted); font-size: .92rem; font-weight: 550; }
.qrw-hero__proof li { display: inline-flex; align-items: center; gap: 7px; }
.qrw-hero__proof .qrw-icon { color: #16a34a; width: 1.1em; height: 1.1em; stroke-width: 2.4; }

/* Hero visual */
.qrw-hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.qrw-phone {
	width: min(290px, 70vw); aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px; position: relative;
	background: linear-gradient(160deg, #2a2a40, #0e0e18); box-shadow: var(--qrw-shadow-lg);
	transform: rotate(4deg); animation: qrw-float 7s ease-in-out infinite; margin-left: clamp(60px, 9vw, 120px);
}
.qrw-phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 12px; background: #0e0e18; z-index: 2; }
.qrw-phone__screen {
	height: 100%; border-radius: 30px; padding: 46px 16px 18px; display: flex; flex-direction: column; gap: 10px;
	background: linear-gradient(180deg, #f3ecff, #ffffff 55%); color: #14141f; overflow: hidden;
}
.qrw-phone__head { display: grid; justify-items: center; gap: 2px; margin-bottom: 8px; text-align: center; }
.qrw-phone__head strong { font-size: 1.02rem; }
.qrw-phone__head small { color: #6b6b7c; }
.qrw-phone__avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-accent)); margin-bottom: 6px; }
.qrw-phone__avatar .qrw-icon { width: 26px; height: 26px; }
.qrw-phone__link {
	display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: 14px; background: #fff;
	border: 1px solid #ececf4; box-shadow: 0 4px 10px rgba(30, 20, 80, .06); font-weight: 650; font-size: .92rem;
}
.qrw-phone__link span { flex: 1; }
.qrw-phone__link .qrw-icon:first-child { color: var(--qrw-primary); }
.qrw-phone__link .qrw-icon:last-child { width: 1em; height: 1em; color: #9a9ab0; }

.qrw-qrcard {
	position: absolute; left: 0; bottom: 3%; z-index: 3; width: 176px; padding: 14px 14px 12px; border-radius: 22px;
	background: var(--qrw-surface); border: 1px solid var(--qrw-border); box-shadow: var(--qrw-shadow-lg);
	transform: rotate(-6deg); animation: qrw-float 8s ease-in-out -2s infinite;
}
.qrw-qrcard__code { color: #14141f; background: #fff; padding: 10px; border-radius: 14px; border: 1px solid #ececf4; }
.qrw-qr { display: block; width: 100%; height: auto; }
.qrw-qrcard__cta {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 8px; border-radius: 12px;
	background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-primary-dark)); color: #fff; font-weight: 700; font-size: .9rem;
}

@keyframes qrw-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

@media (max-width: 900px) {
	.qrw-hero__grid { grid-template-columns: 1fr; }
	.qrw-hero__visual { min-height: 420px; order: 2; }
	.qrw-qrcard { left: 4%; }
}
@media (max-width: 480px) {
	.qrw-qrcard { width: 128px; left: 0; bottom: 0; padding: 10px 10px 9px; }
	.qrw-phone { width: min(250px, 66vw); margin-left: 74px; }
	.qrw-hero__actions .qrw-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.qrw-section { padding: clamp(56px, 8vw, 104px) 0; }
.qrw-section--tint { background: var(--qrw-surface-2); }
.qrw-section__head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.qrw-section__head p { color: var(--qrw-muted); font-size: 1.08rem; }

.qrw-eyebrow {
	display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
	background: color-mix(in srgb, var(--qrw-primary) 12%, transparent); color: var(--qrw-primary);
	font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
}
:root[data-theme="dark"] .qrw-eyebrow { color: #c4a8f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qrw-eyebrow { color: #c4a8f8; } }

.qrw-grid { display: grid; gap: 20px; }
.qrw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.qrw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.qrw-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .qrw-grid--4 { grid-template-columns: repeat(2, 1fr); } .qrw-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .qrw-grid--2, .qrw-grid--3, .qrw-grid--4 { grid-template-columns: 1fr; } }

.qrw-card {
	background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius);
	padding: 26px; box-shadow: var(--qrw-shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.qrw-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--qrw-primary) 45%, var(--qrw-border)); box-shadow: 0 18px 40px -12px rgba(109, 40, 217, .25); }
.qrw-card h3 { margin-bottom: .4em; }
.qrw-card p { color: var(--qrw-muted); margin: 0; }

.qrw-feature__icon {
	display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--qrw-primary) 16%, transparent), color-mix(in srgb, var(--qrw-accent) 16%, transparent));
	color: var(--qrw-primary);
}
:root[data-theme="dark"] .qrw-feature__icon { color: #c4a8f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qrw-feature__icon { color: #c4a8f8; } }
.qrw-feature__icon .qrw-icon { width: 26px; height: 26px; }

/* Steps */
.qrw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.qrw-step { position: relative; padding: 30px 26px; background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius); box-shadow: var(--qrw-shadow); }
.qrw-step p { color: var(--qrw-muted); margin: 0; }
.qrw-step__num {
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
	background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-accent)); color: #fff; font-weight: 800; font-size: 1.1rem;
	box-shadow: 0 8px 18px -6px rgba(109, 40, 217, .6);
}
@media (max-width: 860px) { .qrw-steps { grid-template-columns: 1fr; } }

/* Split / showcase */
.qrw-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.qrw-split__copy p { color: var(--qrw-muted); font-size: 1.08rem; }
.qrw-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-weight: 600; }
.qrw-checks li { display: flex; align-items: center; gap: 10px; }
.qrw-checks .qrw-icon { color: #16a34a; stroke-width: 2.4; }
@media (max-width: 860px) { .qrw-split { grid-template-columns: 1fr; } }

.qrw-panel { background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: 24px; padding: 24px; box-shadow: var(--qrw-shadow-lg); }
.qrw-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.qrw-panel__head small { color: var(--qrw-muted); }
.qrw-bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-bottom: 8px; border-bottom: 1px dashed var(--qrw-border); }
.qrw-bars span {
	flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px;
	background: linear-gradient(180deg, var(--qrw-primary), color-mix(in srgb, var(--qrw-accent) 70%, var(--qrw-primary)));
	transform-origin: bottom; transform: scaleY(.15); transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.qrw-reveal.is-visible .qrw-bars span, .no-js .qrw-bars span { transform: none; }
.qrw-bars span:nth-child(2) { transition-delay: .06s; } .qrw-bars span:nth-child(3) { transition-delay: .12s; }
.qrw-bars span:nth-child(4) { transition-delay: .18s; } .qrw-bars span:nth-child(5) { transition-delay: .24s; }
.qrw-bars span:nth-child(6) { transition-delay: .30s; } .qrw-bars span:nth-child(7) { transition-delay: .36s; }
.qrw-panel__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.qrw-panel__stats div { padding: 12px; border-radius: 14px; background: var(--qrw-surface-2); display: grid; gap: 4px; }
.qrw-panel__stats small { color: var(--qrw-muted); font-weight: 600; }
.qrw-panel__stats strong { color: var(--qrw-primary); }
:root[data-theme="dark"] .qrw-panel__stats strong { color: #c4a8f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qrw-panel__stats strong { color: #c4a8f8; } }

/* FAQ */
.qrw-faq { display: grid; gap: 12px; }
.qrw-faq__item { background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius-sm); padding: 0 20px; box-shadow: var(--qrw-shadow); }
.qrw-faq__item summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.qrw-faq__item summary::-webkit-details-marker { display: none; }
.qrw-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--qrw-primary); transition: transform .2s ease; }
.qrw-faq__item[open] summary::after { content: "\2212"; }
.qrw-faq__item p { color: var(--qrw-muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.qrw-section--cta { padding-top: 0; }
.qrw-cta {
	position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 28px;
	background: radial-gradient(60% 120% at 90% 0%, rgba(6, 182, 212, .55), transparent 60%), linear-gradient(135deg, #5b21b6, #3b0f8c);
	box-shadow: var(--qrw-shadow-lg);
}
.qrw-cta h2 { color: #fff; }
.qrw-cta p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0 auto 1.6em; font-size: 1.1rem; }

/* ==========================================================================
   Inner pages / blog
   ========================================================================== */
.qrw-pagehead { padding: clamp(44px, 7vw, 84px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.qrw-pagehead h1 { font-size: clamp(2rem, 3.6vw + .6rem, 3.1rem); }
.qrw-pagehead__desc { color: var(--qrw-muted); max-width: 60ch; margin: 0 auto; }

.qrw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.qrw-layout:has(.qrw-sidebar) { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 900px) { .qrw-layout:has(.qrw-sidebar) { grid-template-columns: minmax(0, 1fr); } }

.qrw-post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.qrw-post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--qrw-surface-2); }
.qrw-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qrw-post-card:hover .qrw-post-card__media img { transform: scale(1.05); }
.qrw-post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.qrw-post-card__title { font-size: 1.3rem; }
.qrw-post-card__title a { color: var(--qrw-text) !important; text-decoration: none; }
.qrw-post-card__title a:hover { color: var(--qrw-primary) !important; }
.qrw-post-card p { margin-bottom: 18px; }
.qrw-post-card .qrw-link { margin-top: auto; }

.qrw-meta { display: flex; align-items: center; gap: 10px; color: var(--qrw-muted); font-size: .88rem; font-weight: 550; margin-bottom: 10px; }
.qrw-pagehead .qrw-meta { justify-content: center; }
.qrw-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

.qrw-article__hero { margin: 0 0 32px; border-radius: var(--qrw-radius); overflow: hidden; box-shadow: var(--qrw-shadow); }
.qrw-article__hero img { display: block; width: 100%; }

.qrw-prose { font-size: 1.1rem; line-height: 1.8; padding-bottom: 32px; }
.qrw-prose > * + * { margin-top: 1.2em; }
.qrw-prose h2, .qrw-prose h3 { margin-top: 1.8em; }
.qrw-prose img { border-radius: var(--qrw-radius-sm); }
.qrw-prose blockquote { margin-inline: 0; padding: 12px 22px; border-left: 4px solid var(--qrw-primary); background: var(--qrw-surface-2); border-radius: 0 var(--qrw-radius-sm) var(--qrw-radius-sm) 0; }
.qrw-prose pre { overflow: auto; padding: 18px; border-radius: var(--qrw-radius-sm); background: #14141f; color: #eaeaf5; font-size: .92rem; }
.qrw-prose code { background: var(--qrw-surface-2); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
.qrw-prose pre code { background: none; padding: 0; }
.qrw-prose table { width: 100%; border-collapse: collapse; }
.qrw-prose th, .qrw-prose td { border: 1px solid var(--qrw-border); padding: 10px 12px; text-align: left; }
.alignwide { width: min(1000px, 100vw - 40px); margin-inline: calc(50% - min(500px, 50vw - 20px)); }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--qrw-muted); font-size: .88rem; text-align: center; margin-top: 8px; }

.qrw-article__foot { border-top: 1px solid var(--qrw-border); padding-top: 24px; margin-bottom: 40px; }
.qrw-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--qrw-surface-2); text-decoration: none; font-size: .88rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; padding: 16px; border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius-sm); background: var(--qrw-surface); text-decoration: none; font-weight: 650; color: var(--qrw-text) !important; }
.post-navigation a span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qrw-primary); }
.post-navigation .nav-next { text-align: right; }
.qrw-pagelinks { margin-top: 1.5em; font-weight: 650; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--qrw-border); background: var(--qrw-surface); text-decoration: none; font-weight: 650; color: var(--qrw-text) !important; }
.pagination .page-numbers.current { background: var(--qrw-primary); border-color: var(--qrw-primary); color: #fff !important; }
.pagination .dots { border: 0; background: none; }

/* Sidebar */
.qrw-sidebar { display: grid; gap: 20px; align-content: start; }
.qrw-widget { background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius); padding: 22px; box-shadow: var(--qrw-shadow); }
.qrw-widget__title { font-size: 1.05rem; }
.qrw-widget ul { margin: 0; padding-left: 1.1em; }

/* Forms */
.qrw-search { display: flex; gap: 10px; max-width: 520px; margin: 24px auto; }
.qrw-search__input, .qrw-comments input[type="text"], .qrw-comments input[type="email"], .qrw-comments input[type="url"], .qrw-comments textarea {
	width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--qrw-border); background: var(--qrw-surface); color: var(--qrw-text); font: inherit;
}
.qrw-search__input:focus, .qrw-comments textarea:focus, .qrw-comments input:focus { outline: none; border-color: var(--qrw-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--qrw-primary) 20%, transparent); }
.comment-form .submit { background: linear-gradient(135deg, var(--qrw-primary), var(--qrw-primary-dark)); color: #fff; border: 0; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; }

/* Comments */
.qrw-comments { padding-bottom: 64px; }
.qrw-comments__title { font-size: 1.4rem; }
.qrw-comments__list, .qrw-comments__list .children { list-style: none; padding: 0; margin: 0; }
.qrw-comments__list .children { margin-left: 28px; }
.qrw-comments__list .comment-body { padding: 18px; margin-bottom: 14px; background: var(--qrw-surface); border: 1px solid var(--qrw-border); border-radius: var(--qrw-radius-sm); }
.qrw-comments .avatar { border-radius: 50%; }
.comment-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--qrw-muted); margin-bottom: 8px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 650; margin-bottom: 6px; }

/* Empty / 404 */
.qrw-empty { text-align: center; padding: 56px 20px; }
.qrw-notfound { padding: clamp(48px, 9vw, 120px) 0; text-align: center; }
.qrw-notfound__qr { width: 150px; margin: 0 auto 28px; padding: 14px; background: #fff; color: #14141f; border-radius: 22px; box-shadow: var(--qrw-shadow-lg); transform: rotate(-5deg); opacity: .9; }
.qrw-notfound p { color: var(--qrw-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.qrw-footer { margin-top: 24px; background: var(--qrw-surface); border-top: 1px solid var(--qrw-border); }
.qrw-footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding: 48px 0 28px; }
.qrw-footer__brand p { color: var(--qrw-muted); max-width: 38ch; margin: 14px 0 0; }
.qrw-menu--footer { flex-wrap: wrap; }
.qrw-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 18px 0 32px; border-top: 1px solid var(--qrw-border); color: var(--qrw-muted); font-size: .9rem; }
.qrw-footer__bottom a { color: var(--qrw-muted); }

/* ==========================================================================
   Motion
   ========================================================================== */
.js .qrw-reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1), transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.js .qrw-reveal.is-visible { opacity: 1; translate: 0 0; }
.js .qrw-grid > .qrw-reveal:nth-child(2) { transition-delay: .07s; }
.js .qrw-grid > .qrw-reveal:nth-child(3) { transition-delay: .14s; }
.js .qrw-grid > .qrw-reveal:nth-child(4) { transition-delay: .21s; }
.js .qrw-steps > .qrw-reveal:nth-child(2) { transition-delay: .1s; }
.js .qrw-steps > .qrw-reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .qrw-reveal { opacity: 1; translate: none; }
	.qrw-bars span { transform: none; }
}
