/* ==========================================================================
   bBlocks — marketing site
   Plain HTML / CSS / JS. Palette and fonts mirror the bBlocks theme.json.
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--bg: #ffffff;
	--surface: #f5f6f8;
	--surface-2: #eef1f6;
	--border: #e3e6ea;
	--text: #14171a;
	--muted: #5d656d;
	--primary: #2954e3;
	--primary-ink: #ffffff;
	--primary-soft: #e9eefd;
	--secondary: #0ea5a4;
	--accent: #f59e0b;
	--card: #ffffff;
	--shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 8px 24px rgba(20, 23, 26, .06);
	--shadow-lg: 0 24px 60px rgba(20, 23, 26, .12);
	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Manrope", "Inter", system-ui, sans-serif;
	--header-h: 68px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0f1115;
	--surface: #171a21;
	--surface-2: #1d212a;
	--border: #2a2e37;
	--text: #f3f4f6;
	--muted: #a2a9b4;
	--primary: #6d8fff;
	--primary-ink: #0f1115;
	--primary-soft: #1c2440;
	--card: #151820;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .3s, color .3s;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 800;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 200;
	background: var(--primary); color: var(--primary-ink);
	padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: transform .15s, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #fff; color: #14171a; }
.btn-light:hover { background: #f1f3f7; }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: .6em 1.05em; font-size: .92rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Announcement bar ---------- */
.announce {
	background: var(--text); color: var(--bg);
	font-size: .9rem; text-align: center; padding: 9px var(--gutter);
}
.announce a { font-weight: 600; text-underline-offset: 3px; }
.announce .pill {
	display: inline-block; background: var(--accent); color: #14171a; font-weight: 700;
	font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
	padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, transform .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.logo-mark {
	width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 1.05rem;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
	font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
	width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
	background: transparent; display: grid; place-items: center; cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.menu-toggle { display: none; }

/* ---------- Reading progress ---------- */
.progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 150;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 40px; text-align: center; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1;
	background:
		radial-gradient(40% 50% at 25% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
		radial-gradient(35% 45% at 78% 25%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 70%),
		radial-gradient(30% 40% at 55% 70%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--card); border: 1px solid var(--border); border-radius: 999px;
	padding: 6px 14px 6px 6px; font-size: .88rem; font-weight: 500; color: var(--muted);
	box-shadow: var(--shadow); margin-bottom: 26px; text-decoration: none;
}
.eyebrow b { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.grad { background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--secondary); }

/* Hero showcase (browser mockups) */
.showcase { position: relative; margin: 56px auto 0; max-width: 1080px; height: clamp(260px, 44vw, 520px); }
.browser {
	position: absolute; background: var(--card); border-radius: 14px; overflow: hidden;
	border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 10px; font-size: .7rem; color: var(--muted); background: var(--card); padding: 1px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: calc(100% - 30px); object-fit: cover; }
.browser.b-main { left: 50%; top: 0; width: 62%; height: 100%; transform: translateX(-50%); z-index: 3; }
.browser.b-left { left: 0; top: 14%; width: 34%; height: 76%; transform: rotate(-4deg); z-index: 2; }
.browser.b-right { right: 0; top: 14%; width: 34%; height: 76%; transform: rotate(4deg); z-index: 2; }
.browser .mock-hero {
	position: absolute; inset: 30px 0 0; display: flex; flex-direction: column; justify-content: center;
	padding: 6%; color: #fff; text-align: left;
	background: linear-gradient(90deg, rgba(10, 14, 30, .78), rgba(10, 14, 30, .05));
}
.mock-hero small { font-size: clamp(.55rem, 1vw, .75rem); text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.mock-hero strong { font-family: var(--font-head); font-size: clamp(1rem, 2.6vw, 2.1rem); line-height: 1.1; max-width: 12ch; margin: 6px 0 12px; letter-spacing: -.02em; }
.mock-hero em { font-style: normal; align-self: flex-start; background: #fff; color: #14171a; font-size: clamp(.55rem, 1vw, .78rem); font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* ---------- Marquee chips ---------- */
.marquee { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
	font-size: .92rem; font-weight: 500;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.chip:nth-child(3n+2) i { background: var(--secondary); }
.chip:nth-child(3n) i { background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { padding: 56px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 26px 16px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat.is-free strong { color: var(--secondary); }

/* ---------- Section basics ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.kicker {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--primary); margin-bottom: 14px;
}
.free-tag {
	display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: #067a5c; background: #dcfaef; padding: 3px 9px; border-radius: 999px;
}
:root[data-theme="dark"] .free-tag { color: #6ee7c2; background: #0f3b31; }

/* ---------- Anchor tabs ---------- */
.jump { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--border); transition: top .3s; }
.site-header.is-hidden ~ main .jump { top: 0; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: block; white-space: nowrap; padding: 14px 14px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.jump a:hover { color: var(--text); }
.jump a.is-active { color: var(--text); border-bottom-color: var(--primary); }

/* ---------- Design system ---------- */
.ds-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.ds-list { display: grid; gap: 14px; }
.ds-item {
	display: grid; grid-template-columns: 48px 1fr; gap: 16px; text-align: left;
	padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card);
	cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ds-item:hover { transform: translateY(-2px); }
.ds-item[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ds-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.ds-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.ds-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ds-icon svg { width: 24px; height: 24px; }

.ds-panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 70px); }
.ds-panel[hidden] { display: none; }
.ds-panel h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; font-family: var(--font-body); font-weight: 600; }

.palette-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; background: none; width: 100%; text-align: left; }
.palette-row:hover { background: var(--surface); }
.palette-row[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.palette-row .sw { display: flex; }
.palette-row .sw i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); margin-left: -8px; }
.palette-row .sw i:first-child { margin-left: 0; }
.palette-row b { font-weight: 600; }
.palette-row small { margin-left: auto; color: var(--muted); }

.type-row { padding: 14px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.type-row:last-child { border-bottom: 0; }
.type-row .sample { font-size: 1.6rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.type-row small { color: var(--muted); text-align: right; font-size: .82rem; }

.space-row { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 14px; padding: 6px 0; }
.space-row code { font-size: .82rem; color: var(--muted); }
.space-row span { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.style-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 18px; transition: background-color .3s; }
.style-preview .sp-inner { padding: 24px; transition: background-color .3s, color .3s; }
.style-preview .sp-inner small { text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; font-weight: 700; }
.style-preview .sp-inner strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; margin: 6px 0 14px; letter-spacing: -.02em; }
.style-preview .sp-btns { display: flex; gap: 8px; }
.style-preview .sp-btns i { font-style: normal; font-size: .78rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.style-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; }
.style-dot { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; }
.style-dot:hover { transform: scale(1.1); }
.style-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }
.style-name { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.style-name b { color: var(--text); }

/* ---------- Tabs (generic) ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab {
	border: 1px solid var(--border); background: var(--card); padding: 9px 16px; border-radius: 999px;
	font-size: .93rem; font-weight: 500; cursor: pointer; transition: all .2s;
}
.tab:hover { border-color: var(--text); }
.tab[aria-selected="true"], .tab.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.tab .count { opacity: .6; margin-left: 4px; font-size: .82rem; }

/* ---------- Starter sites ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-card {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.site-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.site-card[hidden] { display: none; }
.site-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.site-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.site-card:hover .site-thumb img { transform: scale(1.05); }
.site-thumb .overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
	color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent 62%);
}
.site-thumb .overlay strong { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.site-thumb .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.site-thumb .badges span { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #14171a; text-transform: uppercase; letter-spacing: .04em; }
.site-thumb .badges .woo { background: #7f54b3; color: #fff; }
.site-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.site-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.site-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .85rem; }
.site-meta .swatch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.site-meta .swatch i { width: 14px; height: 14px; border-radius: 50%; }
.sites-more { text-align: center; margin-top: 40px; }

/* ---------- Pattern library ---------- */
.pattern-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pattern-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; transition: transform .2s, box-shadow .2s; }
.pattern-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pattern-card[hidden] { display: none; }
.wire { aspect-ratio: 4 / 3; background: var(--surface); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.wire i { display: block; border-radius: 4px; background: var(--border); }
.wire .w-t { height: 10px; width: 60%; background: var(--text); opacity: .75; }
.wire .w-l { height: 6px; width: 85%; }
.wire .w-s { height: 6px; width: 50%; }
.wire .w-b { height: 14px; width: 34%; border-radius: 999px; background: var(--primary); }
.wire .w-row { display: flex; gap: 6px; flex: 1; }
.wire .w-row i { flex: 1; background: var(--card); border: 1px solid var(--border); }
.wire .w-img { flex: 1; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 30%, var(--surface)), color-mix(in srgb, var(--secondary) 30%, var(--surface))); }
.wire.center { align-items: center; justify-content: center; }
.wire .w-split { display: flex; gap: 8px; flex: 1; }
.wire .w-split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pattern-card h3 { font-size: 1rem; margin: 14px 4px 2px; }
.pattern-card p { margin: 0 4px 4px; color: var(--muted); font-size: .85rem; }

.split-band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.band-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.band-card h3 { margin-bottom: 8px; }
.band-card p { margin: 0; color: var(--muted); }

/* Headers & footers mini */
.hf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.hf { border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 12px; }
.hf .bar { height: 34px; border-radius: 8px; background: var(--surface); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.hf .bar i { height: 6px; border-radius: 3px; background: var(--border); width: 18px; }
.hf .bar .lg { width: 28px; height: 10px; background: var(--text); opacity: .7; }
.hf .bar .bt { width: 30px; height: 14px; border-radius: 999px; background: var(--primary); }
.hf .bar .sp { flex: 1; background: none; }
.hf .bar.center { justify-content: center; }
.hf .bar.top { height: 12px; background: var(--text); opacity: .8; margin-bottom: 4px; }
.hf .bar .srch { width: 46px; height: 14px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; }
.hf b { display: block; font-size: .88rem; margin-top: 10px; }
.hf .foot { height: 60px; border-radius: 8px; background: var(--surface); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
.hf .foot i { display: flex; flex-direction: column; gap: 4px; }
.hf .foot i::before, .hf .foot i::after { content: ""; height: 5px; border-radius: 3px; background: var(--border); }
.hf .foot.social { grid-template-columns: 1fr; place-items: center; }
.hf .foot.social i { flex-direction: row; }
.hf .foot.social i::before, .hf .foot.social i::after { width: 14px; height: 14px; border-radius: 50%; }

/* ---------- Modules ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module {
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
	display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s;
}
.module.is-on { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module h3 { margin: 0; font-size: 1.05rem; }
.module p { margin: 0; color: var(--muted); font-size: .93rem; }
.module .try { font-size: .78rem; font-weight: 600; color: var(--primary); margin-top: auto; }
.switch { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:disabled { cursor: default; opacity: .7; }

/* ---------- Dashboard tabs ---------- */
.dash { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.dash-tabs { display: grid; gap: 10px; }
.dash-tab { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 18px 20px; cursor: pointer; transition: all .2s; }
.dash-tab:hover { background: var(--card); }
.dash-tab[aria-selected="true"] { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
.dash-tab b { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.dash-tab span { color: var(--muted); font-size: .93rem; display: block; }
.dash-panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 420px; }
.dash-panel[hidden] { display: none; }
.wp-shell { display: grid; grid-template-columns: 150px 1fr; min-height: 420px; }
.wp-side { background: #1d2327; color: #c3c4c7; padding: 14px 0; font-size: .8rem; }
.wp-side div { padding: 7px 14px; }
.wp-side .on { background: #2271b1; color: #fff; }
.wp-main { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wp-main h4 { margin: 0; font-size: 1.15rem; }
.wp-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); overflow-x: auto; }
.wp-tabs span { padding: 0 0 8px; white-space: nowrap; }
.wp-tabs .on { color: var(--text); border-bottom: 2px solid var(--primary); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.check i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.check.done i { background: var(--secondary); border-color: var(--secondary); }
.check.done i::after { content: ""; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check.done span { text-decoration: line-through; color: var(--muted); }
.check em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--primary); font-weight: 600; }
.meter { height: 8px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 99px; }
.mini-sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-sites div { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .76rem; }
.mini-sites img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mini-sites b { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-weight: 600; }
.mini-sites b small { color: var(--primary); }
.design-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.design-opts div { border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: .85rem; }
.design-opts div.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.design-opts .sw { display: flex; gap: 4px; margin-top: 8px; }
.design-opts .sw i { width: 18px; height: 18px; border-radius: 50%; }

/* ---------- WooCommerce ---------- */
.woo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woo-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; color: #fff; display: flex; align-items: flex-end; }
.woo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.woo-card:hover img { transform: scale(1.04); }
.woo-card .woo-body { position: relative; padding: 32px; width: 100%; background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent); }
.woo-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.woo-card p { margin: 0 0 14px; opacity: .9; }
.woo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; justify-content: center; }
.woo-list span { font-size: .88rem; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }

/* ---------- Templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tpl { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font-size: .93rem; font-weight: 500; }
.tpl svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

/* ---------- Free vs paid ---------- */
.compare { max-width: 900px; margin: 0 auto; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--card); }
.compare table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface); font-family: var(--font-head); font-size: 1rem; }
.compare thead th.us { background: var(--primary); color: var(--primary-ink); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.compare .yes { color: var(--secondary); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare .price { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }

/* ---------- Plugins ---------- */
.plugin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plugin { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform .2s, border-color .2s; }
.plugin:hover { transform: translateY(-3px); border-color: var(--primary); }
.plugin .pi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-head); }
.plugin b { font-size: 1rem; }
.plugin span { color: var(--muted); font-size: .88rem; }

/* ---------- Review CTA ---------- */
.review-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: clamp(28px, 5vw, 56px); }
.stars { display: flex; gap: 4px; color: var(--accent); margin-bottom: 18px; }
.stars svg { width: 28px; height: 28px; }
.review-band blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.review-band .review-actions { display: flex; flex-direction: column; gap: 14px; }
.review-band .review-actions p { color: var(--muted); margin: 0; }
.review-band .review-actions .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-75%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: transform .2s, border-color .2s; }
.c-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.c-card .ci { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.c-card .ci svg { width: 24px; height: 24px; }
.c-card b { display: block; font-size: 1.04rem; }
.c-card span { color: var(--muted); font-size: .92rem; word-break: break-word; }

.form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
	border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field .err { color: #d93636; font-size: .82rem; min-height: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { font-size: .92rem; font-weight: 600; color: var(--secondary); margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { padding: clamp(40px, 7vw, 80px) 0 clamp(72px, 10vw, 120px); }
.cta-box {
	position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 64px); text-align: center; color: #fff;
	background: radial-gradient(60% 80% at 15% 10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, #2954e3, #1f3fb4 45%, #0e8f8e);
}
.cta-box h2 { max-width: 16ch; margin-inline: auto; }
.cta-box p { max-width: 560px; margin: 0 auto 30px; opacity: .9; font-size: 1.12rem; }
.cta-box .hero-cta { gap: 12px; }
.cta-box small { display: block; margin-top: 18px; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 300px; margin: 14px 0 18px; font-size: .95rem; }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { text-decoration: none; font-size: .95rem; color: var(--text); opacity: .85; word-break: break-word; }
.site-footer ul a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; }
.footer-bottom a { color: inherit; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--primary); color: var(--primary); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Floating: back to top + contact ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	border: 0; background: var(--text); color: var(--bg); cursor: pointer; display: grid; place-items: center;
	box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.float-contact { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: none; flex-direction: column; gap: 10px; }
.float-contact.is-on { display: flex; }
.float-contact a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); }
.float-contact a:first-child { background: var(--primary); }
.float-contact a:last-child { background: #1aa260; }
.float-contact svg { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav a { padding: 8px 9px; font-size: .9rem; }
	.pattern-grid, .plugin-grid, .tpl-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: repeat(4, 1fr); }
	.footer-brand { grid-column: 1 / -1; }
	.dash { grid-template-columns: 280px 1fr; }
}

@media (max-width: 960px) {
	.menu-toggle { display: grid; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border);
		padding: 12px var(--gutter) 22px; box-shadow: var(--shadow-lg);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.main-nav ul { flex-direction: column; gap: 2px; }
	.main-nav a { padding: 12px 10px; font-size: 1.02rem; }
	.header-actions { margin-left: auto; }
	.stats-grid { grid-template-columns: repeat(3, 1fr); }
	.ds-grid, .dash, .contact-grid, .review-band { grid-template-columns: 1fr; }
	.ds-panel { position: static; }
	.sites-grid, .modules-grid { grid-template-columns: repeat(2, 1fr); }
	.hf-grid { grid-template-columns: repeat(2, 1fr); }
	.dash-tabs { grid-template-columns: repeat(2, 1fr); }
	.jump ul { justify-content: flex-start; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.header-actions .btn-download { display: none; }
	.showcase { height: auto; aspect-ratio: 16 / 11; margin-top: 40px; }
	.browser.b-main { width: 86%; }
	.browser.b-left, .browser.b-right { display: none; }
	.pattern-grid, .plugin-grid, .tpl-grid, .woo-grid, .split-band { grid-template-columns: 1fr 1fr; }
	.woo-grid, .split-band { grid-template-columns: 1fr; }
	.woo-card { min-height: 320px; }
	.wp-shell { grid-template-columns: 1fr; }
	.wp-side { display: none; }
	.compare th, .compare td { padding: 12px 10px; font-size: .88rem; }
	.form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.sites-grid, .modules-grid, .pattern-grid, .plugin-grid, .dash-tabs { grid-template-columns: 1fr; }
	.tpl-grid { grid-template-columns: 1fr 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-cta .btn { width: 100%; }
	.hero-cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
	.mini-sites { grid-template-columns: 1fr 1fr; }
	.mini-sites div:nth-child(3) { display: none; }
	.design-opts { grid-template-columns: 1fr; }
	.hf-grid { grid-template-columns: 1fr; }
	.tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.tabs::-webkit-scrollbar { display: none; }
	.tab { white-space: nowrap; }
	.announce { font-size: .82rem; }
	.compare td:not(:first-child), .compare th:not(:first-child) { width: 26%; }
	.review-band .review-actions .btn { align-self: stretch; }
	.type-row .sample { font-size: 1.3rem; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.eyebrow { font-size: .8rem; padding: 6px 12px 6px 6px; max-width: 100%; }
	.eyebrow b { white-space: nowrap; }
	.dash-tabs { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; }
	.dash-tabs::-webkit-scrollbar { display: none; }
	.dash-tab { flex: none; padding: 10px 16px; border-color: var(--border); border-radius: 999px; }
	.dash-tab b { font-size: .95rem; margin: 0; white-space: nowrap; }
	.dash-tab span { display: none; }
	.dash-tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }
	.dash-panel { min-height: 0; }
	.wp-main { padding: 16px; }
}

@media (max-width: 380px) {
	.tpl-grid, .footer-grid { grid-template-columns: 1fr; }
	.logo { font-size: 1.2rem; }
}

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